:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 35%, var(--amber-50));
    color: var(--stone-800);
}

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

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

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

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--stone-900);
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--stone-600);
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--stone-800);
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 20px 80px;
    background: linear-gradient(135deg, #92400e, var(--amber-600) 45%, #b45309);
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 22%), radial-gradient(circle at 50% 100%, rgba(28, 25, 23, 0.25), transparent 42%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 44px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 2px solid transparent;
    font-weight: 900;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--white);
    color: var(--amber-700);
    box-shadow: 0 16px 30px rgba(41, 37, 36, 0.18);
}

.btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--amber-50);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 640px;
    margin-top: 34px;
}

.hero-stat {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.78);
}

.hero-stage {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-feature {
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 35px 80px rgba(28, 25, 23, 0.28);
}

.hero-feature img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(180deg, transparent 28%, rgba(28, 25, 23, 0.78));
}

.hero-feature-content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 2;
}

.hero-feature-content h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.2vw, 42px);
}

.hero-feature-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.hero-tag-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tag-row span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.hero-tag-row span {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.hero-dots {
    position: absolute;
    left: 28px;
    top: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: var(--white);
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 20px;
}

.section.compact {
    padding-top: 34px;
}

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

.section-title h2,
.section-title h1 {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.08);
    border: 1px solid rgba(231, 229, 228, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--stone-200));
}

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

.movie-card:hover .poster-link img,
.mini-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--amber-700);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: all 0.25s ease;
    font-weight: 900;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 8px 16px rgba(28, 25, 23, 0.22);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-card-line {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.65;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--stone-500);
    font-size: 12px;
}

.movie-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--stone-100);
}

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

.category-card {
    min-height: 188px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid var(--amber-200);
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.07);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber-500);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--stone-900);
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(140px, 180px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    background: var(--white);
    padding: 0 14px;
    color: var(--stone-800);
    outline: none;
    font: inherit;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--stone-900), #78350f 52%, var(--amber-700));
    color: var(--white);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 78px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.ranking-item img {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--amber-100);
}

.ranking-item h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.ranking-item p {
    margin: 0 0 10px;
    color: var(--stone-600);
    line-height: 1.65;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 24px 60px rgba(28, 25, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.42));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--amber-700);
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

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

.detail-card,
.side-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.06);
}

.detail-card {
    margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
}

.detail-card p {
    color: var(--stone-700);
    line-height: 1.95;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.detail-meta span {
    display: block;
    padding: 12px;
    border-radius: 14px;
    background: var(--amber-50);
    color: var(--stone-700);
    font-weight: 800;
}

.side-poster {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 18px;
    background: var(--amber-100);
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--stone-50);
    transition: background 0.2s ease;
}

.mini-card:hover {
    background: var(--amber-50);
}

.mini-card img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--amber-100);
    transition: transform 0.25s ease;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    margin-bottom: 6px;
    line-height: 1.35;
}

.mini-card em {
    color: var(--stone-500);
    font-size: 12px;
    font-style: normal;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: 0 8px 20px rgba(41, 37, 36, 0.06);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--amber-100);
    transition: transform 0.3s ease;
}

.related-card span {
    display: block;
    padding: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.pagination-links a {
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--stone-100);
    color: var(--stone-700);
    font-weight: 800;
}

.pagination-links a:hover {
    background: var(--amber-100);
    color: var(--amber-700);
}

.site-footer {
    margin-top: 40px;
    padding: 48px 20px;
    background: var(--stone-900);
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(245, 158, 11, 0.28);
}

[data-card].hidden {
    display: none;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .hero-stage {
        min-height: 460px;
    }

    .hero-feature,
    .hero-feature img {
        min-height: 460px;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        padding: 48px 16px 58px;
    }

    .hero-inner {
        gap: 30px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stage,
    .hero-feature,
    .hero-feature img {
        min-height: 390px;
    }

    .section {
        padding: 42px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .btn {
        margin-top: 16px;
    }

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

    .category-grid,
    .ranking-list,
    .footer-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-item {
        grid-template-columns: 54px 76px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 76px;
        height: 104px;
    }
}
