:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --dark: #0f172a;
    --dark-soft: #1f2937;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --orange: #f97316;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 52%, #eef2f7 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(249, 115, 22, 0.2));
    filter: blur(9px);
    z-index: -1;
}

.brand-mark span {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #ffffff;
    transform: translateX(2px);
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #111827;
    margin: 5px 0;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel.open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.28), transparent 34%), linear-gradient(135deg, #0f172a 0%, #111827 48%, #1f2937 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1.5px);
    background-size: 42px 42px;
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 88px;
}

.hero-kicker {
    width: max-content;
    margin: 0 auto 28px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 46px;
}

.hero-slide.active {
    display: grid;
}

.hero-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    min-height: 360px;
    background: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    transform: translateZ(0);
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.04);
}

.hero-image span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.05) 56%, rgba(245, 158, 11, 0.1));
}

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

.hero-badge,
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    font-weight: 800;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 20px 0 8px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #fcd34d, #fb923c, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.hero-copy p {
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
}

.hero-tags,
.detail-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 22px 0 28px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span {
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span,
.detail-tags span {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.primary-button,
.ghost-button,
.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

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

.ghost-button.dark {
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
}

.line-button {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.hero-control {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--amber-light), var(--orange));
}

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

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -30px;
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.intro-strip > div {
    flex: 1;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 22px;
    padding: 26px 30px;
    box-shadow: var(--soft-shadow);
}

.intro-strip h2,
.section-heading h2,
.text-panel h2,
.side-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

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

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading a {
    color: #b45309;
    font-weight: 900;
}

.search-panel {
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--soft-shadow);
}

.search-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 900;
}

.search-box {
    display: flex;
    gap: 10px;
}

.movie-search {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    outline: none;
}

.movie-search:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-clear {
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    cursor: pointer;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #374151);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.04));
}

.corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.92);
}

.play-dot {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.card-content {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d97706;
    font-size: 12px;
    font-weight: 900;
}

.card-content strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
}

.card-summary {
    min-height: 45px;
    color: #6b7280;
    font-size: 14px;
}

.category-grid,
.category-large-grid {
    display: grid;
    gap: 20px;
}

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

.category-tile,
.category-large {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile {
    min-height: 180px;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
}

.category-tile span {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    color: #ffffff;
}

.category-tile strong,
.category-large strong {
    font-size: 22px;
    line-height: 1.2;
}

.category-tile small {
    margin-top: 8px;
    color: #e5e7eb;
}

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

.category-large {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 180px;
}

.category-cover {
    background: linear-gradient(135deg, #111827, #374151);
}

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

.category-info {
    padding: 24px;
    display: grid;
    align-content: center;
    gap: 12px;
}

.category-info em {
    color: var(--muted);
    font-style: normal;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

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

.rank-item img {
    width: 74px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    overflow: hidden;
    color: #6b7280;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-action {
    padding: 8px 12px;
    border-radius: 12px;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
    background: #fffbeb;
}

.ranking-full {
    gap: 10px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 34%), linear-gradient(135deg, #0f172a, #111827 55%, #1f2937);
}

.page-hero-shell,
.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero p {
    margin: 0 0 10px;
    color: #fcd34d;
    font-weight: 900;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: #d1d5db;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #d1d5db;
    font-size: 14px;
}

.breadcrumb a {
    color: #fde68a;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    align-items: center;
    gap: 36px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

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

.player-cover img {
    object-fit: cover;
}

.player-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.34);
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #d1d5db;
    font-size: 18px;
}

.detail-tags {
    margin: 20px 0 28px;
}

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

.text-panel,
.side-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.text-panel {
    padding: 34px;
}

.text-panel p {
    color: #374151;
    font-size: 17px;
}

.side-panel {
    padding: 28px;
    align-self: start;
}

.side-panel dl {
    margin: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 14px;
}

.side-panel dt {
    color: #6b7280;
    font-weight: 900;
}

.side-panel dd {
    margin: 0;
    color: #111827;
}

.site-footer {
    margin-top: 76px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #0f172a 54%, #111827);
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 34px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 430px;
    margin: 0;
    color: #9ca3af;
}

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

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

.footer-columns a {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
}

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

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

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

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

    .hero-copy {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        min-height: 68px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .brand-text small {
        display: none;
    }

    .hero-shell,
    .page-hero-shell,
    .detail-shell,
    .section-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-shell {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .hero-slide {
        gap: 26px;
    }

    .hero-image,
    .hero-image img {
        min-height: 240px;
    }

    .intro-strip,
    .section-heading,
    .search-box,
    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .category-large-grid,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .category-large {
        grid-template-columns: 1fr;
    }

    .category-cover {
        min-height: 200px;
    }

    .rank-item {
        grid-template-columns: 38px 62px minmax(0, 1fr);
    }

    .rank-action {
        display: none;
    }

    .detail-content {
        padding-top: 34px;
    }

    .side-panel dl {
        grid-template-columns: 1fr;
    }
}
