:root {
    --bg: #050505;
    --panel: rgba(17, 24, 39, 0.72);
    --panel-strong: rgba(17, 24, 39, 0.95);
    --line: rgba(249, 115, 22, 0.22);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f9fafb;
    --muted: #a1a1aa;
    --soft: #d1d5db;
    --accent: #f97316;
    --accent-2: #fb923c;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
    --radius: 24px;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 35%),
        radial-gradient(circle at 80% 12%, rgba(251, 146, 60, 0.12), transparent 32%),
        linear-gradient(135deg, #080808 0%, #111827 54%, #000000 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
}

main {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #b91c1c);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--accent-2);
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #d1d5db;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent-2);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(17, 24, 39, 0.74);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.top-search button,
.mobile-search button,
.filter-controls button,
.btn {
    height: 42px;
    border-radius: 999px;
    padding: 0 18px;
    border: 0;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.filter-controls button:hover,
.btn:hover {
    transform: translateY(-2px);
    background: #ea580c;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.24);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.ghost {
    color: var(--accent-2);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

.mobile-nav {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.92);
}

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

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 42%, rgba(0,0,0,0.3) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(249, 115, 22, 0.26), transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 720px;
    margin: 0 auto;
    padding: 92px 24px 104px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.22);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin-top: 22px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin-top: 22px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.card-badges,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.card-badges span,
.tag-cloud a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.18);
    font-size: 12px;
    font-weight: 700;
}

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

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow), 0 0 80px rgba(249, 115, 22, 0.2);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -110px 90px rgba(0, 0, 0, 0.6);
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
    background: var(--accent);
}

.intro-strip {
    max-width: 1180px;
    margin: -38px auto 32px;
    padding: 18px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.intro-strip a {
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}

.section,
.page-hero,
.detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.page-hero.small {
    min-height: 300px;
}

.category-hero {
    border-bottom: 1px solid var(--line-soft);
}

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

.section-heading.compact {
    display: block;
    margin-bottom: 20px;
}

.section-heading span {
    display: block;
    color: var(--accent-2);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-heading a {
    color: var(--accent-2);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.68);
    border: 1px solid var(--line-soft);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 22px 55px rgba(0,0,0,0.38), 0 0 34px rgba(249, 115, 22, 0.12);
}

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

.poster-frame img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.poster-year,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-year {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(0,0,0,0.62);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.card-body {
    padding: 16px;
}

.card-badges {
    margin-bottom: 12px;
}

.card-body h2,
.rank-copy h2 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h2 a:hover,
.rank-copy h2 a:hover {
    color: var(--accent-2);
}

.card-body p,
.rank-copy p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.glass-section {
    max-width: 1232px;
    margin-top: 28px;
    margin-bottom: 28px;
    border-radius: 30px;
    border: 1px solid var(--line-soft);
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(16px);
}

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

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

.category-tile,
.category-card-large a {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(17,24,39,0.82));
    border: 1px solid rgba(249, 115, 22, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card-large a:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.5);
}

.category-tile span,
.category-card-large span {
    color: var(--accent-2);
    font-size: 22px;
    font-weight: 950;
}

.category-tile strong,
.category-card-large h2 {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.category-card-large em {
    color: #fff;
    font-style: normal;
    font-weight: 900;
}

.filter-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 10px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 150px 150px 150px 110px;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background: rgba(17, 24, 39, 0.66);
}

.empty-state {
    display: none;
    margin-top: 18px;
    color: #fca5a5;
    font-weight: 700;
}

.empty-state.is-visible {
    display: block;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 90px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--line-soft);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), #7f1d1d);
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.94), rgba(0,0,0,0.46)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(249, 115, 22, 0.26), transparent 34%);
}

.detail-inner {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: center;
    gap: 46px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #fed7aa;
    font-weight: 700;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(249, 115, 22, 0.28);
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    background: radial-gradient(circle, rgba(249,115,22,0.18), rgba(0,0,0,0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    font-size: 34px;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
}

.play-overlay strong {
    font-size: 22px;
}

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

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

.content-panel {
    padding: 28px;
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid var(--line-soft);
}

.main-copy h2,
.side-info h2 {
    margin-bottom: 18px;
    color: var(--accent-2);
    font-size: 26px;
    font-weight: 950;
}

.main-copy h2:not(:first-child) {
    margin-top: 28px;
}

.main-copy p {
    color: #d1d5db;
    line-height: 1.95;
    font-size: 16px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 16px;
    color: #d1d5db;
}

.side-info dt {
    color: #9ca3af;
}

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

.page-switch {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.page-switch a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
    line-height: 1.5;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    border-top: 1px solid var(--line-soft);
    background: rgba(0,0,0,0.72);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    margin-top: 16px;
    color: #9ca3af;
    line-height: 1.75;
}

.footer-links h2 {
    margin-bottom: 14px;
    color: var(--accent-2);
    font-size: 18px;
    font-weight: 900;
}

.footer-links div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

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

.footer-bottom {
    padding: 18px 24px;
    text-align: center;
    color: #71717a;
    border-top: 1px solid var(--line-soft);
}

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

@media (max-width: 1120px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-content,
    .detail-inner,
    .movie-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

    .filter-controls {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

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

    .hero-content,
    .section,
    .page-hero,
    .detail-inner,
    .filter-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content {
        padding-top: 58px;
        padding-bottom: 88px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 42px;
    }

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

    .intro-strip {
        margin-left: 16px;
        margin-right: 16px;
        grid-template-columns: 1fr 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .card-body {
        padding: 13px;
    }

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

    .category-grid,
    .category-grid.large,
    .compact-rank,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 46px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 14px;
    }

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

    .detail-inner {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .content-panel {
        padding: 20px;
    }
}
