:root {
    --bg: #fffaf2;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1e5d0;
    --amber: #d97706;
    --orange: #ea580c;
    --red: #dc2626;
    --soft: #fff7ed;
    --shadow: 0 20px 50px rgba(146, 64, 14, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 46%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(251, 191, 36, 0.24);
    background: rgba(255, 250, 242, 0.88);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange), var(--red));
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(135deg, #b45309, #ea580c, #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #5b6472;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #9a3412;
    background: #ffedd5;
}

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

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #9a3412;
}

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

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

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 32px 16px 64px;
    background:
        radial-gradient(circle at 20% 12%, rgba(253, 186, 116, 0.72), transparent 32%),
        radial-gradient(circle at 78% 8%, rgba(248, 113, 113, 0.46), transparent 30%),
        linear-gradient(135deg, #f59e0b 0%, #ea580c 46%, #dc2626 100%);
}

.hero-stage {
    position: relative;
    width: min(1180px, 100%);
    min-height: 590px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 38px 90px rgba(127, 29, 29, 0.26);
    background: rgba(17, 24, 39, 0.35);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 42px;
    padding: 72px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.38;
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.90), rgba(120, 53, 15, 0.64), rgba(15, 23, 42, 0.22)),
        radial-gradient(circle at 28% 18%, rgba(251, 191, 36, 0.32), transparent 36%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 760px;
    margin: 20px 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.section-link,
.spotlight-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-button {
    color: #9a3412;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.section-link:hover,
.spotlight-panel a:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
}

.hero-poster {
    display: block;
    align-self: stretch;
    min-height: 420px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.36);
}

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

.hero-poster span,
.detail-poster span,
.rating-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.hero-search {
    position: relative;
    z-index: 8;
    width: min(760px, calc(100% - 32px));
    margin: -32px auto 0;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

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

.hero-search div,
.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 16px;
    color: var(--text);
    background: #fffaf2;
    outline: none;
}

.hero-search button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

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

.soft-bg {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.section-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 18px;
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.story-card h2,
.meta-card h2,
.rank-side h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.story-card p,
.spotlight-panel p,
.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link,
.spotlight-panel a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.category-card,
.overview-card,
.movie-card,
.story-card,
.meta-card,
.spotlight-panel,
.rank-side {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 35px rgba(146, 64, 14, 0.08);
}

.category-card {
    min-height: 230px;
    padding: 22px;
    isolation: isolate;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--red));
    font-weight: 900;
}

.category-card strong,
.overview-main strong {
    display: block;
    margin-top: 18px;
    font-size: 21px;
}

.category-card em,
.overview-main em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.category-card img {
    position: absolute;
    right: -28px;
    bottom: -26px;
    z-index: -1;
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.24;
    transform: rotate(8deg);
}

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

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

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

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

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

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 900;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    display: block;
    color: #1f2937;
    font-weight: 900;
    font-size: 17px;
    line-height: 1.28;
}

.movie-title:hover {
    color: var(--orange);
}

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

.movie-meta span {
    color: #92400e;
    background: #fff7ed;
    border-color: #ffedd5;
    font-size: 12px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.06);
    transition: 0.25s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: #fdba74;
}

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

.rank-row img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

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

.rank-main strong {
    font-size: 18px;
}

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

.rank-info {
    color: #b45309;
    font-weight: 900;
}

.spotlight-panel {
    padding: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(254, 215, 170, 0.24), transparent 35%),
        linear-gradient(135deg, #7c2d12, #c2410c, #dc2626);
}

.spotlight-panel span {
    color: #fed7aa;
    font-weight: 900;
}

.spotlight-panel h2 {
    margin: 14px 0;
    color: #ffffff;
}

.spotlight-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.spotlight-panel a {
    margin-top: 24px;
    color: #9a3412;
    background: #ffffff;
}

.page-main {
    padding-top: 44px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 54px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 22%, rgba(254, 215, 170, 0.34), transparent 34%),
        linear-gradient(135deg, #92400e, #ea580c, #dc2626);
    box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.filter-bar {
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(140px, auto));
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.06);
}

.filter-bar-wide {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, auto));
}

.overview-card {
    padding: 22px;
}

.overview-main span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.overview-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.overview-links a {
    padding: 9px 12px;
    border-radius: 12px;
    color: #92400e;
    background: #fff7ed;
    font-weight: 700;
}

.detail-main {
    width: 100%;
    margin: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 72px 16px;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) saturate(1.14);
    transform: scale(1.08);
    opacity: 0.36;
}

.detail-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 10px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 24px 0 14px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
}

.detail-line {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

.player-section {
    margin-top: -72px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.70));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #9a3412;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.26);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 46px 0 0;
}

.story-card,
.meta-card {
    padding: 28px;
}

.story-card + .story-card {
    margin-top: 24px;
}

.story-card p {
    font-size: 17px;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 14px;
    margin: 22px 0 0;
}

.meta-card dt {
    color: var(--muted);
}

.meta-card dd {
    margin: 0;
    font-weight: 800;
}

.related-section {
    padding-bottom: 72px;
}

.rank-page-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.rank-list-large .rank-row {
    grid-template-columns: 54px 82px minmax(0, 1fr) auto;
}

.rank-side {
    padding: 24px;
    position: sticky;
    top: 96px;
}

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

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fffaf2, #fff7ed);
}

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

.footer-brand {
    color: #b45309;
    font-size: 24px;
}

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

.footer-links a {
    color: #6b7280;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #92400e;
    border-top: 1px solid var(--line);
}

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

@media (max-width: 1080px) {
    .hero-slide,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .rank-side {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
    }

    .hero-shell {
        min-height: 640px;
        padding-top: 18px;
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px 82px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .hero-search div,
    .filter-bar,
    .filter-bar-wide {
        grid-template-columns: 1fr;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 34px 24px;
    }

    .detail-hero {
        min-height: auto;
        padding: 42px 16px 100px;
    }

    .detail-wrap {
        gap: 24px;
    }

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

    .player-section {
        margin-top: -58px;
    }

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

    .rank-info {
        grid-column: 3;
    }
}

@media (max-width: 520px) {
    .category-grid,
    .overview-grid,
    .movie-grid,
    .movie-grid-home,
    .side-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .detail-info h1 {
        font-size: 40px;
    }

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