:root {
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f1f5f9;
    --dark: #080b12;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 320px, #fff 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.32);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff3e9;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: #374151;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
}

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

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #0b0f18;
}

.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;
    transform: scale(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(18, 19, 26, 0.56), rgba(244, 63, 94, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-kicker,
.detail-kicker {
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
}

.hero h2 {
    margin: 0 0 18px;
    color: #fed7aa;
    font-size: clamp(24px, 3vw, 40px);
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.category-pills,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions {
    margin-top: 28px;
}

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

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.3);
}

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

.ghost-button.dark {
    color: var(--orange);
    background: #fff7ed;
    border-color: #fed7aa;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.primary-button.full {
    width: 100%;
    margin-top: 18px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.34) !important;
}

.hero-dot.active {
    width: 26px !important;
    background: #fff !important;
}

.top-strip {
    padding: 24px;
    background: #0f172a;
}

.strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.24), rgba(244, 63, 94, 0.20));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

.strip-inner strong {
    display: block;
    font-size: 20px;
}

.strip-inner span {
    color: #cbd5e1;
}

.strip-inner a {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    border-radius: 999px;
    font-weight: 700;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading > div {
    display: grid;
    gap: 8px;
}

.section-line {
    width: 42px;
    height: 5px;
    display: block;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    border-radius: 999px;
}

.section-heading h2 {
    margin: 0;
    font-size: 30px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    opacity: 0.7;
}

.poster-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.rank-mark {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    border-radius: 12px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.card-body h2 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.compact-card .card-body h2 {
    font-size: 16px;
}

.card-body p {
    height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    overflow: hidden;
}

.tag-row span,
.detail-tags a {
    color: var(--orange);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 700;
}

.category-band {
    max-width: none;
    background: linear-gradient(180deg, #fff7ed, #fff);
}

.category-band > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.category-pills {
    margin-bottom: 28px;
}

.category-pills a {
    padding: 11px 18px;
    color: #7c2d12;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.1);
}

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

.category-tile,
.overview-card,
.rank-panel,
.detail-content article,
.detail-content aside {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-tile h2,
.overview-card h2,
.rank-panel h2,
.detail-content h2 {
    margin: 0 0 12px;
}

.category-tile p,
.overview-card p,
.rank-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.mini-posters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.mini-posters a {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #111827;
}

.mini-posters img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.mini-posters span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 8px 8px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px;
    background: #fff7ed;
    border-radius: 16px;
}

.rank-row span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    border-radius: 10px;
    font-weight: 800;
}

.rank-row strong {
    display: block;
    line-height: 1.3;
}

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

.search-panel {
    position: relative;
    margin-bottom: 26px;
}

.search-panel input {
    width: 100%;
    height: 54px;
    padding: 0 52px 0 20px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    outline: none;
    background: #fff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.search-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 24px;
}

.page-hero {
    min-height: 330px;
    display: grid;
    place-items: center;
    padding: 64px 24px;
    text-align: center;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.5), transparent 28%), radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.42), transparent 28%), linear-gradient(135deg, #0f172a, #111827 58%, #7c2d12);
}

.page-hero.slim-hero {
    min-height: 260px;
}

.page-hero p {
    margin: 0 0 10px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: #e5e7eb;
    line-height: 1.8;
}

.hero-actions.centered {
    justify-content: center;
}

.overview-links {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.overview-links a {
    padding: 11px 14px;
    background: #fff7ed;
    border-radius: 14px;
    color: #7c2d12;
    font-weight: 700;
}

.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 24px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    padding: 32px;
    color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.36), transparent 28%), linear-gradient(135deg, #0f172a, #111827 62%, #7c2d12);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

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

.detail-copy {
    align-self: center;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-line {
    max-width: 780px;
    color: #f3f4f6;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 9px 13px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.player-section {
    margin: 34px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.64));
    border: 0;
    cursor: pointer;
}

.play-layer span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.36);
}

.play-layer strong {
    font-size: 20px;
}

.play-layer.hide {
    display: none;
}

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

.detail-content article p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-content dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}

.detail-content dt {
    color: var(--muted);
}

.detail-content dd {
    margin: 0;
    color: #111827;
    font-weight: 750;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.2fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

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

.site-footer a:hover {
    color: #fdba74;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    margin: 0;
    padding: 7px 11px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border-radius: 999px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-card].hidden {
    display: none;
}

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

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

    .split-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-top: 32px;
    }

    .strip-inner,
    .detail-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .detail-hero {
        padding: 22px;
    }

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

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

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

    .hero {
        height: 680px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .content-section,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card-grid,
    .small-grid,
    .category-grid,
    .overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .player-shell {
        border-radius: 18px;
    }
}
