:root {
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-amber: #f59e0b;
    --color-red: #ef4444;
    --color-gray-950: #111827;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-300: #d1d5db;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
    --color-white: #ffffff;
    --shadow-soft: 0 12px 35px rgba(17, 24, 39, 0.10);
    --shadow-strong: 0 25px 60px rgba(17, 24, 39, 0.24);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-gray-800);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
    -webkit-background-clip: text;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gray-700);
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: var(--color-orange);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(360px, 32vw);
    border: 1px solid var(--color-gray-300);
    border-radius: 999px;
    overflow: hidden;
    background: var(--color-white);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--color-gray-800);
}

.header-search button,
.wide-search button {
    border: 0;
    color: var(--color-white);
    background: var(--color-orange);
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.wide-search button:hover {
    background: var(--color-orange-dark);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--color-gray-800);
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-section {
    padding: 32px 0 16px;
}

.hero-card {
    position: relative;
    display: block;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    background: #000000;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.6s ease;
}

.hero-card:hover .hero-image {
    transform: scale(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 5vw, 56px);
    right: clamp(24px, 5vw, 56px);
    bottom: clamp(28px, 6vw, 58px);
    display: grid;
    justify-items: start;
    gap: 16px;
    max-width: 760px;
    color: var(--color-white);
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-badge {
    padding: 8px 16px;
    color: var(--color-white);
    background: var(--color-orange);
}

.eyebrow {
    color: var(--color-orange);
}

.hero-title {
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.hero-desc {
    max-width: 720px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

.hero-meta {
    color: #f3f4f6;
    font-size: 15px;
}

.hero-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    color: var(--color-orange);
}

.hero-button {
    padding: 13px 28px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-orange);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-button:hover {
    background: var(--color-orange-dark);
    transform: translateY(-1px);
}

.section-block {
    margin: 32px 0;
    padding: 28px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.no-margin {
    margin: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.search-panel h2,
.side-card h2 {
    margin: 6px 0 0;
    color: var(--color-gray-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.compact-grid {
    gap: 14px;
}

.movie-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.66);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    overflow: hidden;
    color: var(--color-gray-800);
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta,
.card-desc {
    color: var(--color-gray-500);
    font-size: 13px;
    line-height: 1.45;
}

.card-desc {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--color-orange-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.compact-card .card-desc {
    display: none;
}

.search-panel,
.search-workbench,
.list-tools {
    display: grid;
    gap: 18px;
    margin: 32px auto;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: var(--shadow-soft);
}

.wide-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-gray-300);
    border-radius: 999px;
    background: var(--color-white);
}

.wide-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
}

.filter-links,
.filter-buttons,
.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-links a,
.filter-buttons button,
.category-chip-list a {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: var(--color-orange-dark);
    background: #fff7ed;
    font-weight: 700;
}

.filter-links a,
.filter-buttons button {
    padding: 9px 14px;
}

.filter-buttons button {
    cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover,
.filter-links a:hover {
    color: var(--color-white);
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 46px 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffedd5;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong,
.rank-copy em,
.rank-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--color-gray-800);
}

.rank-copy em,
.rank-copy span {
    color: var(--color-gray-500);
    font-style: normal;
    font-size: 13px;
}

.category-chip-list a {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
}

.category-chip-list span {
    color: var(--color-gray-500);
    font-size: 13px;
    font-weight: 500;
}

.page-shell {
    padding: 28px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--color-orange);
}

.page-hero {
    margin-bottom: 28px;
    padding: 36px;
    border-radius: var(--radius-xl);
    color: var(--color-gray-700);
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 65%, #ffedd5 100%);
    box-shadow: var(--shadow-soft);
}

.page-hero p {
    max-width: 820px;
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.7;
}

.compact-hero {
    padding: 30px 34px;
}

.list-tools label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: var(--color-gray-700);
}

.list-tools input {
    width: 100%;
    border: 1px solid var(--color-gray-300);
    border-radius: 999px;
    outline: 0;
    padding: 13px 16px;
}

.result-count {
    margin: 0;
    color: var(--color-gray-500);
    font-weight: 700;
}

.list-grid {
    margin-top: 24px;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.category-overview-copy h2 {
    margin: 8px 0 8px;
    font-size: 28px;
}

.category-overview-copy p {
    margin: 0 0 14px;
    color: var(--color-gray-600);
}

.mini-poster-row {
    display: flex;
    gap: 10px;
}

.mini-poster-row img {
    width: 82px;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffedd5;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.aside-card {
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
    padding: 10px;
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--color-white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--color-orange);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
    font-size: 34px;
    transform: translateX(3px);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.72);
    text-align: center;
}

.player-message.is-visible {
    display: block;
}

.detail-card,
.aside-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 16px;
    color: var(--color-gray-800);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 14px;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--color-gray-100);
}

.detail-tags {
    margin-bottom: 22px;
}

.detail-card h2,
.aside-card h2 {
    margin: 0 0 12px;
    color: var(--color-gray-800);
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--color-gray-700);
    line-height: 1.85;
}

.review-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #f9fafb;
}

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.poster-info-card {
    display: grid;
    gap: 12px;
}

.poster-info-card img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #ffedd5;
}

.poster-info-card strong {
    font-size: 22px;
}

.poster-info-card span {
    color: var(--color-gray-500);
}

.single-column {
    grid-template-columns: 1fr;
}

.single-column .movie-card {
    grid-template-columns: 92px minmax(0, 1fr);
}

.single-column .poster-frame {
    height: 134px;
    aspect-ratio: auto;
}

.site-footer {
    margin-top: 44px;
    padding: 38px 0;
    border-top: 1px solid var(--color-gray-200);
    background: rgba(255, 255, 255, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    max-width: 460px;
    color: var(--color-gray-500);
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--color-gray-800);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--color-gray-600);
}

.footer-brand {
    margin-bottom: 12px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: var(--color-gray-500);
    background: var(--color-white);
    text-align: center;
}

@media (max-width: 1180px) {
    .desktop-nav {
        display: none;
    }

    .header-search {
        width: min(460px, 48vw);
        margin-left: auto;
    }

    .mobile-menu-button {
        display: block;
    }

    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .split-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .header-inner {
        min-height: 64px;
        gap: 12px;
    }

    .brand-text {
        font-size: 20px;
    }

    .header-search {
        display: none;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 420px;
        border-radius: 18px;
    }

    .section-block,
    .search-panel,
    .search-workbench,
    .list-tools,
    .page-hero,
    .detail-card,
    .aside-card {
        padding: 20px;
        border-radius: 18px;
    }

    .section-heading,
    .category-overview-card {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .wide-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .wide-search button {
        width: 100%;
    }

    .mini-poster-row {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .rank-item {
        grid-template-columns: 38px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-item img {
        width: 62px;
        height: 88px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .single-column .movie-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }
}
