:root {
    --bg: #050505;
    --bg-soft: #0d0d0f;
    --panel: rgba(31, 41, 55, 0.5);
    --panel-strong: rgba(17, 24, 39, 0.84);
    --line: rgba(249, 115, 22, 0.28);
    --text: #ffffff;
    --muted: #9ca3af;
    --soft: #e5e7eb;
    --accent: #f97316;
    --accent-soft: rgba(249, 115, 22, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(124, 45, 18, 0.24), transparent 34rem),
        var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(124, 45, 18, 0.14);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: fit-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #b45309);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.26);
}

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

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

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

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #d1d5db;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: var(--accent-soft);
}

.top-search {
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(55, 65, 81, 0.85);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.78);
}

.top-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 11px 14px;
}

.top-search button,
.inline-filter button,
.hero-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: var(--accent);
    padding: 11px 16px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: 14px;
    background: rgba(31, 41, 55, 0.75);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    padding: 14px 24px 18px;
}

.mobile-panel.open {
    display: block;
}

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-cats {
    margin-top: 12px;
}

.mobile-cats a {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.65);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25)),
        linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.1) 44%, rgba(5, 5, 5, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: calc(50% - 620px);
    top: 50%;
    width: min(620px, calc(100% - 48px));
    transform: translateY(-50%);
    z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 620px;
    margin: 18px 0 18px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-row,
.detail-meta,
.rank-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-meta strong,
.rank-meta span,
.rank-meta strong,
.meta-row span,
.meta-row a {
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.82);
    border: 1px solid rgba(55, 65, 81, 0.75);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.detail-meta strong,
.rank-meta strong,
.meta-row a {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.32);
    background: rgba(249, 115, 22, 0.12);
}

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

.primary-btn,
.secondary-btn,
.ghost-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
    padding: 13px 22px;
}

.secondary-btn,
.ghost-link,
.text-link {
    color: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: rgba(17, 24, 39, 0.72);
    padding: 12px 18px;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-link:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: absolute;
    right: calc(50% - 600px);
    bottom: 92px;
    z-index: 3;
    width: 240px;
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: var(--shadow);
}

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

.hero-poster span {
    display: block;
    color: #fed7aa;
    padding: 13px 15px;
    font-size: 14px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.22s ease;
}

.hero-dot.active {
    width: 36px;
    background: var(--accent);
}

.quick-panel {
    max-width: 1120px;
    margin: -42px auto 0;
    position: relative;
    z-index: 7;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search,
.inline-filter {
    display: flex;
    flex: 1;
    min-width: 260px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
}

.hero-search input,
.inline-filter input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 13px 18px;
}

.quick-cats,
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-cats a,
.filter-tabs button {
    color: #d1d5db;
    border: 1px solid rgba(55, 65, 81, 0.72);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.62);
    padding: 10px 14px;
}

.filter-tabs button {
    cursor: pointer;
}

.filter-tabs button.active {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.44);
    background: var(--accent-soft);
}

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 24px;
}

.section-wrap.slim {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    gap: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-heading a {
    margin-left: auto;
    color: #fdba74;
}

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

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

.movie-card {
    border: 1px solid rgba(55, 65, 81, 0.74);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(31, 41, 55, 0.36);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    transition: all 0.26s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.42);
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.34s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    padding: 6px 10px;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    right: auto;
    top: 12px;
    bottom: auto;
    background: var(--accent);
}

.card-body {
    padding: 18px;
}

.movie-card.compact .card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card.compact .card-body h3 {
    font-size: 15px;
}

.card-body h3 a:hover {
    color: var(--accent);
}

.card-body p {
    margin: 0 0 14px;
    min-height: 4.8em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.compact .card-body p {
    min-height: 3em;
    -webkit-line-clamp: 2;
}

.band-section {
    border-block: 1px solid rgba(55, 65, 81, 0.38);
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.18), rgba(17, 24, 39, 0.22));
}

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

.category-tile,
.category-card-large {
    border: 1px solid rgba(249, 115, 22, 0.26);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(31, 41, 55, 0.48)),
        rgba(17, 24, 39, 0.84);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.category-tile {
    padding: 24px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-tile span,
.category-card-large h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.category-tile strong,
.category-card-large p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.category-card-large {
    padding: 18px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-collage img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(55, 65, 81, 0.68);
    border-radius: 20px;
    background: rgba(31, 41, 55, 0.32);
    padding: 12px;
}

.rank-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #7c2d12);
    font-weight: 800;
}

.rank-cover img {
    width: 92px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: #050505;
}

.page-hero {
    max-width: 1240px;
    margin: 30px auto 0;
    padding: 54px 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 24rem),
        rgba(17, 24, 39, 0.6);
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

.page-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.detail-hero {
    min-height: 560px;
}

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

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

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.7) 50%, rgba(0, 0, 0, 0.54) 100%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 24px;
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: center;
    gap: 42px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fdba74;
    margin-bottom: 18px;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.one-line {
    max-width: 780px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags {
    margin-top: 18px;
}

.detail-info .primary-btn {
    margin-top: 28px;
}

.detail-main {
    padding-top: 32px;
}

.player-card,
.story-card {
    border: 1px solid rgba(55, 65, 81, 0.7);
    border-radius: 28px;
    background: rgba(31, 41, 55, 0.32);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.player-card {
    overflow: hidden;
}

.player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.62));
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.38);
    font-size: 32px;
}

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

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

.story-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 2;
    font-size: 16px;
}

.filter-grid .is-hidden,
.rank-list .is-hidden {
    display: none;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(55, 65, 81, 0.62);
    background: rgba(0, 0, 0, 0.72);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 44px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fdba74;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-grid a {
    color: var(--muted);
}

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

.copyright {
    color: #6b7280;
    border-top: 1px solid rgba(55, 65, 81, 0.52);
    text-align: center;
    padding: 18px 24px;
}

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

    .hero-content {
        left: 72px;
    }

    .hero-poster {
        right: 52px;
        width: 200px;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        padding: 0 18px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        left: 24px;
        top: 44%;
    }

    .hero-poster {
        left: 24px;
        right: auto;
        bottom: 78px;
        width: 150px;
    }

    .quick-panel,
    .page-hero {
        margin-inline: 18px;
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .rank-row {
        grid-template-columns: 44px 74px 1fr;
    }

    .rank-row .ghost-link {
        grid-column: 3;
        width: fit-content;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding-top: 38px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero p,
    .one-line {
        font-size: 15px;
    }

    .hero-control {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-cover {
        display: none;
    }

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

    .section-heading a {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
