:root {
    --bg: #fffaf2;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fef3c7;
    --line: #f1e6d0;
    --accent: #d97706;
    --accent-2: #ea580c;
    --accent-3: #ef4444;
    --dark: #111827;
    --shadow: 0 22px 60px rgba(146, 64, 14, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 36rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf2 42%, #ffffff 100%);
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-size: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.26);
}

.brand-name {
    font-size: 21px;
}

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

.nav-link {
    padding: 10px 16px;
    color: #374151;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #92400e;
    background: #ffedd5;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #92400e;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.hero-section {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 116px 16px 56px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fee2e2 100%);
}

.hero-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.5;
}

.orb-one {
    width: 360px;
    height: 360px;
    left: 8%;
    top: 16%;
    background: rgba(245, 158, 11, 0.22);
}

.orb-two {
    width: 430px;
    height: 430px;
    right: -6%;
    bottom: 6%;
    background: rgba(239, 68, 68, 0.16);
}

.hero-shell {
    position: relative;
    width: min(1180px, 100%);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 46px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
    max-width: 680px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #b45309;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 620px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    background: #ffedd5;
}

.hero-tags {
    margin-top: 18px;
}

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

.primary-button,
.ghost-button,
.wide-link,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.wide-link:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.ghost-button,
.section-link {
    min-height: 48px;
    padding: 0 22px;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.25);
    background: rgba(255, 255, 255, 0.72);
}

.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    padding: 14px;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-poster img,
.detail-poster img,
.poster-wrap img,
.ranking-cover img,
.hero-mini-card img,
.category-preview img,
.rank-item img {
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    background: linear-gradient(135deg, #fde68a, #fed7aa, #fecaca);
}

.hero-score {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.hero-dot {
    width: 42px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.22);
}

.hero-dot.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text);
    border: 0;
    outline: 0;
    border-radius: 18px;
    background: #fff7ed;
}

.hero-search button {
    min-width: 112px;
    min-height: 48px;
    color: #ffffff;
    font-weight: 800;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-category-row a {
    padding: 8px 14px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.8);
}

.top-spaced {
    padding-top: 104px;
}

.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 64px 0;
}

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

.section-heading h2,
.side-heading h2,
.story-panel h2,
.category-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading span,
.category-card p,
.page-hero p,
.story-panel p,
.footer-brand p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster-wrap img {
    border-radius: 0;
    transition: transform 0.3s ease;
}

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

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.25);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fffbeb;
}

.movie-card h3 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
}

.panel,
.page-hero,
.detail-hero,
.story-panel,
.player-box,
.category-card {
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.panel {
    padding: 28px;
}

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

.category-tile,
.category-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
}

.category-link span {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.category-link strong {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    color: #b45309;
    font-size: 14px;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
}

.rank-number {
    color: #d97706;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: #111827;
    line-height: 1.35;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.wide-link {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    color: #92400e;
    background: #ffedd5;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 42px;
    background: linear-gradient(135deg, #ffffff, #fff7ed 65%, #fee2e2);
}

.compact-hero h1,
.category-hero h1 {
    font-size: clamp(34px, 6vw, 58px);
}

.inline-search {
    min-width: min(460px, 100%);
    margin-top: 0;
}

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

.category-card {
    display: grid;
    gap: 18px;
}

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

.category-preview a {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.category-preview img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.hero-mini-card {
    display: grid;
    gap: 10px;
    width: 170px;
    padding: 12px;
    color: #111827;
    font-weight: 800;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.12);
}

.hero-mini-card img {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.filter-bar {
    margin: 0 0 28px;
}

.filter-bar select {
    max-width: 180px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.07);
}

.ranking-rank {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.ranking-cover {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
}

.ranking-main h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.ranking-main p {
    margin: 8px 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-main {
    background:
        radial-gradient(circle at 85% 12%, rgba(239, 68, 68, 0.10), transparent 28rem),
        radial-gradient(circle at 0% 30%, rgba(245, 158, 11, 0.12), transparent 30rem);
}

.detail-hero {
    padding: 34px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 22px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    background: #fde68a;
    box-shadow: 0 20px 45px rgba(146, 64, 14, 0.16);
}

.detail-copy h1 {
    font-size: clamp(34px, 6vw, 64px);
}

.detail-one-line {
    margin: 20px 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

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

.detail-meta-grid span {
    min-height: 76px;
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #92400e;
    font-size: 13px;
}

.player-section {
    padding: 32px 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    padding: 12px;
    background: #0f172a;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.58));
}

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    font-size: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.3);
}

.player-start.hidden {
    display: none;
}

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

.story-panel {
    padding: 28px;
}

.story-panel h2 {
    font-size: 28px;
}

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

.site-footer {
    margin-top: 34px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 36px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 21px;
}

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

.footer-links h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .hero-slide,
    .split-section,
    .detail-layout,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 900px;
    }

    .hero-poster {
        max-width: 380px;
        margin: 0 auto;
    }

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

    .inline-search {
        width: 100%;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        height: 68px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 98px;
    }

    .hero-slider {
        min-height: 820px;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-search,
    .filter-bar {
        flex-direction: column;
    }

    .hero-search button,
    .filter-bar select {
        width: 100%;
        max-width: none;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .category-preview,
    .detail-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-row {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

    .ranking-row .ghost-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .page-hero,
    .detail-hero,
    .panel,
    .story-panel {
        padding: 22px;
    }

    .hero-mini-card {
        width: 100%;
        grid-template-columns: 72px 1fr;
        align-items: center;
    }

    .hero-mini-card img {
        aspect-ratio: 1;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .category-preview,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-slider {
        min-height: 760px;
    }

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

    .hero-desc,
    .detail-one-line {
        font-size: 16px;
    }
}
