:root {
    --bg: #f9fafb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #92400e;
    --amber-soft: #fff7ed;
    --rose: #e11d48;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.26);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    background: linear-gradient(90deg, #78350f, #d97706);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    position: relative;
    color: #374151;
    padding: 28px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber);
    transition: right 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    right: 0;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--amber-dark);
}

.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fff1f2 48%, #fffbeb);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.22), transparent 25%),
        radial-gradient(circle at 70% 15%, rgba(225, 29, 72, 0.18), transparent 27%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: auto, auto, 42px 42px, 42px 42px;
}

.hero-grid {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    gap: 56px;
    align-items: center;
    padding: 48px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-dark);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, var(--amber), var(--rose));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 720px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
    color: white;
    background: linear-gradient(90deg, var(--amber), var(--amber-dark));
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.25);
}

.btn.ghost {
    background: white;
    color: var(--amber-dark);
    border-color: #fde68a;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.btn.ghost.light {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.36);
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 18px;
    color: var(--ink);
    font-size: 15px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: #fff;
    font-weight: 800;
    background: var(--amber);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    color: #4b5563;
}

.hero-stats span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.hero-stats strong {
    color: var(--amber-dark);
}

.hero-visual {
    position: relative;
}

.hero-slides {
    position: relative;
    height: 340px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.hero-slide-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 1;
    color: white;
}

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

.hero-slide-copy span {
    color: #fde68a;
}

.hero-poster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hero-poster-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    border-radius: 22px;
    color: white;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
    transition: transform 0.25s ease;
}

.hero-poster-card:hover {
    transform: translateY(-4px) scale(1.01);
}

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

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

.hero-poster-card span,
.hero-poster-card small {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 1;
}

.hero-poster-card span {
    bottom: 36px;
    font-weight: 800;
}

.hero-poster-card small {
    bottom: 15px;
    color: #fde68a;
}

.section {
    padding: 80px 0;
}

.white-section {
    background: var(--paper);
}

.soft-section {
    background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-head.left {
    text-align: left;
}

.section-head h2,
.split-head h2,
.story-card h2,
.meta-card h2,
.watch-info h2,
.sitemap-card h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-head p {
    max-width: 700px;
    margin: 12px auto 0;
    color: var(--muted);
}

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

.text-link {
    color: var(--amber-dark);
    font-weight: 800;
}

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

.feature-card {
    padding: 24px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fffbeb);
    border: 1px solid #fde68a;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.feature-card strong {
    display: block;
    font-size: 20px;
    color: var(--amber-dark);
}

.feature-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

.category-tile {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: #78350f;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: #6b7280;
    font-size: 14px;
}

.category-tile em {
    font-style: normal;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.play-float {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 44px;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    background: var(--rose);
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.24);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title:hover {
    color: var(--amber-dark);
}

.card-line {
    display: -webkit-box;
    height: 48px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
}

.card-meta span,
.tag-row span,
.detail-tags span,
.genre-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
}

.tag-row,
.detail-tags,
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-card.compact .card-line {
    height: 42px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 64px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.rank-row img {
    width: 64px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-index {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: var(--amber);
    font-weight: 900;
}

.rank-row small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.rank-table {
    display: grid;
    gap: 8px;
}

.rank-table-row {
    display: grid;
    grid-template-columns: 56px 1fr 90px 90px 80px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
}

.rank-table-row span {
    color: var(--rose);
    font-weight: 900;
}

.rank-table-row em {
    color: var(--muted);
    font-style: normal;
}

.rank-table-row b {
    color: var(--amber-dark);
}

.page-hero {
    padding: 72px 0;
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    color: #4b5563;
    font-size: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.filter-bar input {
    height: 46px;
    border-radius: 16px;
    background: #f9fafb;
}

.filter-bar span {
    color: var(--muted);
    white-space: nowrap;
}

.sticky-filter {
    position: sticky;
    top: 96px;
    z-index: 2;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.34;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster img {
    width: 300px;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 14px;
}

.detail-one-line {
    max-width: 760px;
    color: #f3f4f6;
    font-size: 19px;
}

.player-section {
    background: #0f172a;
    color: white;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.24), rgba(0, 0, 0, 0.25));
    cursor: pointer;
}

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

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.32);
}

.player-overlay strong {
    font-size: 20px;
}

.watch-info {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.watch-info p {
    color: #d1d5db;
}

.watch-info dl {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}

.watch-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
}

.watch-info dt {
    color: #9ca3af;
}

.watch-info dd {
    margin: 0;
    color: #fde68a;
    font-weight: 800;
}

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

.story-card,
.meta-card,
.sitemap-card {
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.story-card p {
    margin-top: 12px;
    color: #374151;
    font-size: 17px;
}

.story-card h2 + p + h2 {
    margin-top: 32px;
}

.meta-card ul {
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.meta-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.next-prev {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.next-prev a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--amber-dark);
    background: var(--amber-soft);
    font-weight: 800;
}

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

.sitemap-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
}

.sitemap-card ul {
    padding: 0;
    list-style: none;
}

.sitemap-card li {
    border-bottom: 1px solid var(--line);
}

.sitemap-card a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    color: #374151;
}

.sitemap-card a:hover {
    color: var(--amber-dark);
}

.sitemap-movies {
    columns: 2;
    column-gap: 32px;
}

.sitemap-movies li {
    break-inside: avoid;
}

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

.site-footer {
    color: white;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 38px;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
    color: #d1d5db;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        background: white;
        box-shadow: 0 22px 36px rgba(17, 24, 39, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero-copy {
        text-align: center;
    }

    .hero-actions,
    .page-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .detail-poster img {
        width: min(300px, 100%);
    }
}

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

    .header-inner {
        height: 72px;
    }

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

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 44px 0;
    }

    .hero-visual {
        display: none;
    }

    .hero-search,
    .filter-bar,
    .split-head,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button {
        height: 44px;
    }

    .feature-grid,
    .category-grid,
    .movie-grid,
    .rank-grid,
    .all-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-table-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-table-row em,
    .rank-table-row b {
        display: none;
    }

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

    .sitemap-movies {
        columns: 1;
    }
}
