:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --rose-600: #e11d48;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.16);
    --panel: rgba(255, 255, 255, 0.84);
    --shadow: 0 20px 60px rgba(120, 53, 15, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(254, 215, 170, 0.78), transparent 34rem),
        radial-gradient(circle at top right, rgba(254, 240, 138, 0.68), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 48%, #fffbeb 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(255, 251, 235, 0.88);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500), var(--red-500));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.brand-name {
    font-size: 20px;
    background: linear-gradient(90deg, #92400e, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #92400e;
    font-size: 15px;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-size: 22px;
}

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

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 28px auto 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 620px;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(124, 45, 18, 0.42), rgba(249, 115, 22, 0.08)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 55%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(38px, 7vw, 88px);
    max-width: 650px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 22px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.inline-btn,
.search-box button,
.play-layer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-btn,
.search-box button,
.play-layer button {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500), var(--red-500));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.inline-btn:hover,
.search-box button:hover,
.play-layer button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: 54px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 32px;
    background: #fbbf24;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-search,
.hero-category-links,
.hero-mini-list,
.panel-card,
.filter-box {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search {
    padding: 22px;
}

.hero-search label {
    display: block;
    margin-bottom: 12px;
    color: #92400e;
    font-weight: 900;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-box input,
.filter-box select {
    min-width: 0;
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    color: var(--text);
    background: #fff;
}

.hero-category-links {
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.hero-category-links a:hover {
    color: #fff;
    background: var(--orange-500);
}

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

.hero-mini-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.hero-mini-card img {
    width: 76px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
}

.hero-mini-card span {
    font-weight: 900;
    line-height: 1.35;
}

.content-section {
    margin: 38px 0;
}

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

.section-head div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 32px;
}

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    color: #1f2937;
}

.section-more {
    color: #ea580c;
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.09);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(120, 53, 15, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fef3c7;
}

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

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

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: #111827;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    min-height: 58px;
    overflow: hidden;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a16207;
    font-size: 12px;
    font-weight: 800;
}

.tag-row {
    margin-top: 10px;
}

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

.category-card {
    min-height: 150px;
    padding: 20px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.22);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
}

.category-card p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--red-500));
    font-weight: 900;
}

.rank-item img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-title {
    margin: 34px 0 22px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.84));
    box-shadow: var(--shadow);
}

.page-title p {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.85;
}

.filter-box {
    margin: 0 0 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
}

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
    cursor: pointer;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-layer button {
    min-width: 120px;
    min-height: 54px;
    font-size: 18px;
}

.detail-card {
    margin-top: 18px;
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

.detail-card h2 {
    margin: 24px 0 10px;
    font-size: 24px;
}

.detail-card p {
    color: #374151;
    line-height: 1.95;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    background: #fff7ed;
}

.side-link img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
}

.side-link span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 58px;
    color: #fff7ed;
    background: linear-gradient(135deg, #78350f, #9a3412, #7f1d1d);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #fde68a;
}

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

.footer-links a {
    color: #fff;
    font-weight: 800;
}

.hidden-card {
    display: none !important;
}

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

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

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

    .hero-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 64px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255, 251, 235, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: auto;
        margin-top: 18px;
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 56px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-dots {
        left: 24px;
    }

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

    .search-box,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

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

    .category-list {
        grid-template-columns: 1fr;
    }

    .filter-box {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
    }

    .rank-item .primary-btn {
        grid-column: 2 / -1;
    }
}
