:root {
    --bg: #0d0d0f;
    --bg-soft: #151518;
    --bg-lift: #1d1d22;
    --surface: #222229;
    --surface-light: #2b2b33;
    --border: rgba(255, 255, 255, 0.08);
    --muted: #9ca3af;
    --text: #ffffff;
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background:
        radial-gradient(circle at 10% -10%, rgba(249, 115, 22, 0.18), transparent 34rem),
        radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.12), transparent 30rem),
        var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(13, 13, 15, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.34);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

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

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

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

.nav-link:hover,
.nav-link.is-active {
    color: white;
    background: rgba(249, 115, 22, 0.16);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    color: white;
}

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

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid var(--border);
}

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

.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.mobile-categories a {
    color: var(--muted);
    font-size: 14px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    height: 72vh;
    overflow: hidden;
    background: #050505;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s 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:
        linear-gradient(90deg, rgba(13, 13, 15, 0.98), rgba(13, 13, 15, 0.62), rgba(13, 13, 15, 0.22)),
        linear-gradient(0deg, var(--bg), rgba(13, 13, 15, 0.12) 45%, rgba(13, 13, 15, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px 90px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.eyebrow,
.detail-kicker {
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 13px;
    margin-bottom: 14px;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

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

.hero-tags,
.tag-row,
.side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.side-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.25);
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
    background: var(--accent-light);
}

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

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

.band-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border-block: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-head span {
    width: 5px;
    height: 32px;
    background: var(--accent);
    border-radius: 999px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.section-head a {
    margin-left: auto;
    color: var(--accent-light);
    font-weight: 700;
}

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

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

.featured-grid .movie-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-card {
    min-width: 0;
}

.movie-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 11;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-link:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
    pointer-events: none;
}

.play-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    background: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.92);
    color: white;
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 12px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-large .movie-info h2 {
    font-size: 26px;
}

.movie-info p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 12px;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: 44px 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition: transform 0.25s ease, background 0.25s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    background: var(--surface-light);
}

.compact-card strong:first-child {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    background: rgba(249, 115, 22, 0.9);
}

.compact-card img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card span {
    min-width: 0;
}

.compact-card b {
    display: block;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.category-tile {
    min-height: 132px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(255, 255, 255, 0.03)),
        var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border 0.25s ease;
}

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

.category-tile span {
    font-size: 22px;
    font-weight: 800;
}

.category-tile strong {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.page-hero {
    min-height: 310px;
    padding: 76px 24px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(13, 13, 15, 0.76)),
        radial-gradient(circle at 82% 20%, rgba(251, 146, 60, 0.25), transparent 24rem),
        var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.page-hero > div {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero p {
    margin: 0 0 12px;
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

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

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.search-panel input,
.filter-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: white;
    background: var(--bg-soft);
}

.filter-select {
    align-self: end;
}

.empty-state {
    display: none;
    margin: 40px 0 0;
    color: var(--muted);
    text-align: center;
}

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

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

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

.breadcrumb a {
    color: var(--accent-light);
}

.breadcrumb b {
    color: #e5e7eb;
    font-weight: 600;
}

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

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-panel video {
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22));
}

.player-cover button {
    position: relative;
    z-index: 5;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
}

.player-cover button span {
    margin-right: 8px;
}

.detail-content {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 13px;
}

.lead-text {
    color: #f3f4f6;
    font-size: 19px;
    line-height: 1.8;
    font-style: italic;
}

.detail-content h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

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

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: #6b7280;
}

.side-card dd {
    margin: 0;
    color: #e5e7eb;
}

.side-card dd a {
    color: var(--accent-light);
}

.related-section {
    padding-top: 54px;
}

.site-footer {
    margin-top: 40px;
    background: #101012;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    font-weight: 900;
    font-size: 20px;
}

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

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: #6b7280;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .header-inner {
        height: 66px;
        padding-inline: 18px;
    }

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

    .hero-slider {
        min-height: 560px;
        height: auto;
    }

    .hero-content {
        padding-bottom: 92px;
    }

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

    .featured-grid .movie-card-large {
        grid-column: span 2;
    }

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

    .filter-select {
        align-self: auto;
    }

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

    .detail-side {
        position: static;
    }

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

@media (max-width: 620px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .section-wrap {
        padding: 52px 16px;
    }

    .page-hero {
        min-height: 260px;
        padding: 54px 16px;
    }

    .movie-grid,
    .archive-grid,
    .featured-grid,
    .ranking-grid,
    .ranking-page-grid,
    .category-grid,
    .category-grid-large {
        grid-template-columns: 1fr;
    }

    .featured-grid .movie-card-large {
        grid-column: auto;
    }

    .compact-card {
        grid-template-columns: 36px 78px 1fr;
        gap: 10px;
    }

    .compact-card img {
        width: 78px;
        height: 52px;
    }

    .detail-shell {
        padding-inline: 16px;
    }

    .detail-content,
    .side-card {
        padding: 20px;
        border-radius: 20px;
    }

    .player-panel {
        border-radius: 20px;
    }
}
