:root {
    --site-bg: #f8fafc;
    --card-bg: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f1f5f9;
    --line: #e5e7eb;
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-red: #ef4444;
    --brand-pink: #ec4899;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--site-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell,
.section-shell,
.footer-shell,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.32);
}

.brand-name {
    font-size: 1.22rem;
    letter-spacing: 0.02em;
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #334155;
    border-radius: 999px;
}

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

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

.mobile-nav-link {
    padding: 10px 12px;
    color: #475569;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav-link:hover {
    color: var(--brand);
    background: #fff7ed;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.45), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.28)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 58%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 110px 0 180px;
}

.hero-kicker {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #ffedd5;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.hero-chips,
.pill-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.36);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--brand);
    background: #fff7ed;
    border-color: #fed7aa;
}

.hero-panel {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr auto;
    gap: 18px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-search {
    display: flex;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
}

.hero-search input {
    min-width: 0;
    padding: 0 18px;
    border-radius: 999px 0 0 999px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.hero-chips a {
    color: #ffffff;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

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

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

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

.section-shell {
    padding: 68px 0;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading span,
.page-hero-inner span {
    color: var(--brand);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero-inner h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero-inner p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.section-heading.compact h2 {
    font-size: 2rem;
}

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

.featured-grid .movie-card-wide,
.top-rank-grid .movie-card-wide {
    grid-column: span 2;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-card-wide .movie-cover-link {
    aspect-ratio: 16 / 9;
}

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

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

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.8rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--brand);
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #475569;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    color: var(--brand-dark);
    border-radius: 999px;
    background: #fff7ed;
    font-size: 0.8rem;
    font-weight: 800;
}

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

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

.category-tile {
    min-height: 118px;
    padding: 22px;
    color: #ffffff;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand), var(--brand-red) 55%, var(--brand-pink));
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.22);
}

.category-tile span,
.category-tile strong {
    display: block;
}

.category-tile span {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.rank-panel,
.related-panel,
.player-card,
.category-card-large {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-list,
.ranking-page-list,
.category-samples {
    display: grid;
    gap: 12px;
}

.rank-item,
.compact-card {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover,
.compact-card:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-number {
    width: 32px;
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 900;
}

.rank-item img,
.compact-card img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    background: #fed7aa;
}

.rank-copy,
.compact-card span {
    display: grid;
    min-width: 0;
}

.rank-copy strong,
.compact-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em,
.compact-card em {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-red) 60%, var(--brand-pink));
}

.page-hero-inner {
    padding: 76px 0;
}

.page-hero-inner span,
.page-hero-inner p {
    color: rgba(255, 255, 255, 0.86);
}

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

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

.category-card-large {
    overflow: hidden;
}

.category-card-head {
    display: block;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.category-card-head span,
.category-card-head strong {
    display: block;
}

.category-card-head span {
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-card-head strong {
    color: rgba(255, 255, 255, 0.82);
}

.category-samples {
    padding: 16px;
}

.compact-card {
    grid-template-columns: 58px minmax(0, 1fr);
}

.compact-card img {
    width: 58px;
    height: 76px;
}

.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--soft);
}

.ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-page-list .rank-item {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.detail-shell {
    padding: 28px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--brand);
}

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

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-red));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.42);
    font-size: 2.2rem;
}

.player-overlay span:last-child {
    font-size: 1.1rem;
    font-weight: 900;
}

.detail-content {
    padding: 26px;
}

.detail-content h1 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.lead-text {
    color: #334155;
    font-size: 1.12rem;
    font-weight: 700;
}

.detail-meta {
    margin: 18px 0 26px;
    padding: 14px;
    border-radius: 16px;
    background: var(--soft);
}

.detail-content h2,
.related-panel h2 {
    margin: 24px 0 10px;
    font-size: 1.35rem;
}

.detail-content p {
    color: #334155;
}

.tag-cloud {
    margin-top: 22px;
}

.related-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.related-list {
    padding: 0;
}

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

.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding: 50px 0 34px;
}

.footer-logo .brand-name,
.footer-group h2 {
    color: #ffffff;
}

.footer-brand p {
    max-width: 360px;
    color: #94a3b8;
}

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

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

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

.is-hidden-card {
    display: none;
}

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

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

    .rank-panel,
    .related-panel {
        position: static;
    }

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

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

    .mobile-toggle {
        display: flex;
        justify-content: center;
    }

    .hero-carousel,
    .hero-copy {
        min-height: 620px;
    }

    .hero-copy {
        padding: 90px 0 230px;
    }

    .movie-grid,
    .featured-grid,
    .top-rank-grid,
    .category-grid,
    .category-overview,
    .ranking-page-list,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .featured-grid .movie-card-wide,
    .top-rank-grid .movie-card-wide {
        grid-column: span 1;
    }

    .filter-bar {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .hero-search {
        border-radius: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-search input {
        min-height: 42px;
        border-radius: 14px;
    }

    .hero-search button {
        min-height: 42px;
    }

    .section-shell,
    .detail-shell {
        width: min(100% - 22px, 1180px);
    }

    .movie-card-body,
    .detail-content {
        padding: 16px;
    }
}
