:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --dark: #0f172a;
    --gold: #f59e0b;
    --orange: #f97316;
    --shadow: 0 24px 54px rgba(15, 23, 42, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner,
.wrap,
.hero-content,
.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
    color: var(--dark);
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-size: 15px;
    font-weight: 800;
}

.nav-links a:hover,
.nav-links a.active {
    color: #92400e;
    background: #fffbeb;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.hero-carousel {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    color: #fff;
    background: var(--dark);
}

.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-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 16%, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.22)), linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 630px;
    padding: 78px 0 88px;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 42px;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow {
    padding: 7px 13px;
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.hero-title,
.page-title,
.detail-title {
    margin: 18px 0 16px;
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.hero-title {
    font-size: clamp(44px, 7vw, 82px);
}

.hero-desc {
    max-width: 710px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.pill {
    padding: 5px 10px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.13);
}

.hero-meta .pill,
.detail-meta .pill {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
}

.hero-panel h2 {
    margin: 0 0 14px;
}

.hero-search,
.filter-bar {
    display: grid;
    gap: 12px;
}

.hero-search {
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: #fff;
}

.hero-search input {
    border: 0;
    border-radius: 0;
}

.hero-search button {
    border: 0;
    padding: 0 18px;
    color: #fff;
    background: var(--gold);
    font-weight: 900;
}

.hero-mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.hero-mini-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-mini-item img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini-item strong,
.hero-mini-item small {
    display: block;
}

.hero-mini-item small {
    color: rgba(255, 255, 255, 0.72);
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.active {
    width: 54px;
    background: var(--gold);
}

.section {
    padding: 58px 0;
}

.section-alt {
    background: #fffbeb;
}

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

.kicker {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 950;
}

.section-desc,
.page-desc,
.card-desc,
.rank-summary {
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-desc {
    margin: 10px 0 14px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

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

.category-card {
    min-height: 166px;
    padding: 22px;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffbeb, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    padding: 64px 0 38px;
    border-bottom: 1px solid #f3f4f6;
    background: radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.16), transparent 30%), linear-gradient(135deg, #ffffff, #fffbeb 46%, #f8fafc);
}

.page-title {
    max-width: 900px;
    font-size: clamp(36px, 6vw, 64px);
}

.page-desc {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 18px;
}

.filter-bar {
    grid-template-columns: 1fr 220px;
    margin-top: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark), #334155);
    font-weight: 950;
}

.rank-item:nth-child(-n + 3) .rank-num {
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-cover {
    width: 92px;
    height: 118px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.detail-top {
    padding: 54px 0;
    color: #fff;
    background: radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.34), transparent 30%), linear-gradient(135deg, var(--dark), #111827 55%, #1f2937);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-title {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-copy p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.25);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.58));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 20px 38px rgba(249, 115, 22, 0.36);
    font-size: 34px;
}

.play-overlay.is-hidden {
    display: none;
}

.content-card {
    margin-top: 32px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    color: #374151;
    white-space: pre-line;
}

.site-footer {
    margin-top: 66px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--dark), #111827);
}

.footer-inner {
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 20px;
}

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

.hidden-card {
    display: none;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-title {
        font-size: 46px;
    }

    .section-head,
    .footer-inner {
        grid-template-columns: 1fr;
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 72px 1fr;
    }

    .rank-cover {
        width: 72px;
        height: 96px;
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .wrap,
    .hero-content,
    .footer-inner {
        width: min(100% - 24px, 1220px);
    }

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

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

    .hero-search button {
        min-height: 46px;
    }
}
