* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-600: #ea580c;
    --orange-900: #7c2d12;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 20px 60px rgba(120, 53, 15, 0.12);
    --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.10);
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 44%, var(--amber-50));
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--amber-200);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94));
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(146, 64, 14, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--amber-700);
}

.brand-icon,
.footer-logo span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: var(--gray-700);
    font-weight: 700;
}

.mobile-nav.open {
    display: flex;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.14));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.section-kicker {
    margin-bottom: 8px;
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.12);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy p {
    max-width: 740px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-tags {
    margin: 24px 0 0;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.side-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--amber-500);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover,
.side-link:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber-500);
}

.section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-heading a {
    color: var(--amber-700);
    font-weight: 800;
}

.warm-panel {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(253, 230, 138, 0.6);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.72);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(234, 88, 12, 0.12));
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.type-badge,
.rank-num {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--amber-500);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.rank-num {
    left: 12px;
    right: auto;
    background: rgba(17, 24, 39, 0.76);
}

.movie-card-body {
    padding: 18px;
}

.card-meta-line,
.row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3,
.movie-row h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a,
.movie-row h3 a {
    transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.movie-row:hover h3 a {
    color: var(--amber-600);
}

.movie-card p,
.movie-row p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.55;
    font-size: 14px;
}

.tag-row span {
    padding: 5px 9px;
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--gray-900);
    box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-tile span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.category-tile div {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #ffffff;
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-tile small {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.55;
}

.rank-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.movie-row {
    display: flex;
    gap: 16px;
    min-height: 132px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.72);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.row-poster {
    flex: 0 0 116px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
}

.row-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-info {
    min-width: 0;
    padding: 2px 4px 2px 0;
}

.rank-pill {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    color: #ffffff;
    background: var(--amber-500);
    border-radius: 999px;
    font-weight: 900;
}

.library-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(253, 230, 138, 0.76);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.06);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid var(--amber-200);
    border-radius: 14px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-800);
    font-size: 15px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    color: var(--amber-700);
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
    color: #ffffff;
    background: var(--amber-500);
    border-color: var(--amber-500);
}

.empty-state {
    display: none;
    padding: 36px;
    color: var(--gray-600);
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 18px;
}

.empty-state.show {
    display: block;
}

.page-hero {
    position: relative;
    padding: 92px 0 72px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.52), transparent 34%), linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.compact-hero {
    padding-top: 78px;
}

.page-hero .breadcrumb,
.detail-hero .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.overview-stack {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(253, 230, 138, 0.76);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.overview-cover {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.16);
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.overview-info h2 {
    margin: 6px 0 12px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.overview-info p {
    margin: 0 0 18px;
    color: var(--gray-600);
    line-height: 1.8;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-list a {
    padding: 8px 12px;
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.12);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    padding: 76px 0;
    color: #ffffff;
    overflow: hidden;
    background: #111827;
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.3));
}

.detail-hero-content {
    position: relative;
    z-index: 1;
}

.detail-title-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.detail-section {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 34px;
    background: #000000;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(17, 24, 39, 0.24);
}

.player-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-video {
    z-index: 1;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.66;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.72));
}

.play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 20px 55px rgba(245, 158, 11, 0.38);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.play-trigger span {
    margin-left: 5px;
    font-size: 34px;
}

.player-shell.is-playing .player-cover {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-main,
.detail-side {
    padding: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(253, 230, 138, 0.72);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.detail-main h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.detail-main p {
    margin: 0 0 24px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 16px;
}

.detail-side ul {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.detail-side li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--amber-200);
}

.detail-side strong {
    color: var(--gray-500);
}

.detail-side span {
    text-align: right;
    color: var(--gray-800);
    font-weight: 800;
}

.side-link {
    width: 100%;
    color: #ffffff;
    background: var(--amber-500);
}

.site-footer {
    margin-top: 72px;
    color: var(--amber-50);
    background: linear-gradient(90deg, var(--amber-900), var(--orange-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-grid p {
    max-width: 480px;
    color: var(--amber-100);
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 16px;
}

.footer-grid a {
    display: block;
    margin: 10px 0;
    color: var(--amber-100);
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: var(--amber-100);
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

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

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

    .hero {
        min-height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.88));
    }

    .featured-grid,
    .large-grid,
    .all-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-layout,
    .detail-grid,
    .detail-title-wrap,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 260px;
    }

    .library-tools {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 22px;
    }

    .hero {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 74px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-grid,
    .large-grid,
    .all-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-row {
        min-height: 118px;
    }

    .row-poster {
        flex-basis: 96px;
    }

    .page-hero {
        padding: 62px 0 52px;
    }

    .detail-hero {
        padding: 48px 0;
    }

    .detail-title-wrap {
        gap: 22px;
    }

    .play-trigger {
        width: 72px;
        height: 72px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
