:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.10);
    --orange: #f97316;
    --pink: #ec4899;
    --rose: #f43f5e;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.14), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(236, 72, 153, 0.16), transparent 32%),
        linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff1f2 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    backdrop-filter: blur(22px);
}

.nav-wrap {
    width: min(1220px, calc(100% - 28px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.22);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #0f172a;
    border-radius: 2px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-track,
.hero-slide {
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #ec4899 48%, #0f172a);
}

.hero-bg.is-absent,
.detail-bg.is-absent,
.hero-poster img.is-absent,
.movie-poster.is-absent,
.detail-poster img.is-absent,
.rank-thumb img.is-absent {
    opacity: 0;
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 60px;
    padding-top: 42px;
    padding-bottom: 42px;
}

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

.eyebrow,
.section-heading span,
.split-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fb923c;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-site-title,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 20px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-tags span,
.detail-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.button-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.hero-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 470px;
    border-radius: 32px;
    background: linear-gradient(135deg, #fb923c, #ec4899 46%, #0f172a);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hero-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img,
.detail-poster:hover img {
    transform: scale(1.05);
}

.hero-poster span,
.detail-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    color: #fff;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    font-weight: 900;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.search-section {
    padding: 34px 0 0;
}

.search-panel {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    border-radius: 18px;
    color: #0f172a;
    background: #fff7ed;
    font-size: 16px;
}

.search-panel button {
    min-width: 116px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
    cursor: pointer;
}

.section-heading,
.split-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.split-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.split-heading a {
    flex: 0 0 auto;
    color: #f97316;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.36);
    box-shadow: 0 24px 70px rgba(249, 115, 22, 0.18);
}

.movie-poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #ec4899 52%, #0f172a);
}

.poster-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 15%, rgba(255, 255, 255, 0.42), transparent 26%),
        linear-gradient(135deg, #fb923c, #ec4899 55%, #0f172a);
}

.movie-poster {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-year {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(14px);
}

.movie-play {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

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

.movie-meta,
.rank-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-card-title {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.movie-card-title a:hover,
.rank-info a:hover,
.category-panel a:hover,
.side-card a:hover {
    color: #f97316;
}

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

.category-band,
.soft-section {
    background:
        radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 241, 242, 0.95));
}

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

.category-tile,
.category-panel {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.18);
}

.category-tile span,
.category-panel-title {
    color: #f97316;
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong,
.category-panel p {
    margin: 12px 0;
    color: #334155;
    line-height: 1.7;
}

.category-tile em {
    margin-top: auto;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.category-panel ul {
    margin: auto 0 18px;
    padding: 0;
    list-style: none;
}

.category-panel li {
    margin-top: 8px;
    color: #475569;
    font-weight: 700;
}

.category-more {
    color: #ec4899;
    font-weight: 900;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 20px;
    font-weight: 1000;
}

.rank-thumb {
    position: relative;
    overflow: hidden;
    width: 84px;
    height: 108px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fb923c, #ec4899 52%, #0f172a);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

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

.rank-action {
    padding: 9px 14px;
    color: #fff;
    border-radius: 999px;
    background: #0f172a;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #431407 48%, #831843);
}

.page-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -80px;
    top: -140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.44), transparent 64%);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.page-hero h1 {
    margin: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-tabs a {
    padding: 10px 14px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-weight: 800;
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.detail-hero,
.detail-inner {
    min-height: 640px;
}

.detail-inner {
    position: relative;
    z-index: 2;
    padding: 36px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fb923c;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.detail-copy h1 {
    color: #fff;
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.86);
}

.detail-tags {
    margin: 24px 0 30px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.38);
}

.play-overlay span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 26px solid #fff;
}

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

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

.article-card,
.side-card {
    padding: 28px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 26px;
    color: #334155;
    font-size: 16px;
    line-height: 2;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a, #1e293b 54%, #831843);
}

.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0 38px;
}

.footer-wrap p {
    max-width: 420px;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-wrap h2 {
    margin: 0 0 16px;
    color: #fb923c;
    font-size: 16px;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    text-align: center;
}

[data-hidden="true"] {
    display: none !important;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .rank-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 76px;
        display: none;
        padding: 14px;
        border: 1px solid rgba(249, 115, 22, 0.14);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero-content,
    .detail-grid,
    .page-hero-inner,
    .article-grid,
    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .page-hero-inner {
        display: grid;
    }

    .hero-poster,
    .detail-poster {
        min-height: 360px;
        max-width: 280px;
    }

    .hero-poster img,
    .detail-poster img {
        min-height: 360px;
    }

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

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

    .rank-action {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .brand {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 760px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .search-panel {
        display: grid;
    }

    .search-panel button {
        min-height: 50px;
    }

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

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

    .split-heading {
        display: grid;
    }

    .rank-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .rank-thumb {
        display: none;
    }

    .rank-info h2 {
        font-size: 16px;
    }
}
