:root {
    color-scheme: dark;
    --bg: #090d14;
    --panel: rgba(17, 24, 39, 0.86);
    --panel-strong: #111827;
    --muted-panel: #1f2937;
    --text: #f8fafc;
    --muted: #a7b0c0;
    --soft: #667085;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #f97316;
    --accent-2: #fb923c;
    --accent-dark: #7c2d12;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 34%), radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.12), transparent 28%), var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

img.is-hidden {
    display: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent), #dc2626);
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.26);
}

.brand-name {
    font-size: 20px;
}

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

.site-nav a {
    color: #d8dee9;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

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

.nav-search input,
.hero-search input,
.live-search-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.82);
    color: var(--text);
    outline: none;
    padding: 12px 16px;
}

.nav-search input {
    width: 180px;
}

.nav-search input:focus,
.hero-search input:focus,
.live-search-input:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.nav-search button,
.hero-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
}

.nav-search button,
.hero-search button,
.primary-btn {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: white;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.24);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(17, 24, 39, 0.62);
    color: #f8fafc;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.7);
    color: var(--text);
    padding: 10px 14px;
}

.hero-slider {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    min-height: 760px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #2b1205);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.72) 42%, rgba(3, 7, 18, 0.22) 100%), linear-gradient(0deg, #090d14 0%, transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 660px;
    flex-direction: column;
    justify-content: center;
    padding: 84px 0 150px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(249, 115, 22, 0.26);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
    margin: 18px 0 0;
    max-width: 850px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-title-alt {
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    color: var(--accent-2);
    font-size: clamp(32px, 5vw, 66px);
}

.hero-content p {
    max-width: 680px;
    color: #d4d8e2;
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-dots {
    position: absolute;
    z-index: 4;
    right: max(28px, calc((100vw - 1180px) / 2));
    bottom: 118px;
    display: flex;
    gap: 10px;
}

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

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

.hero-thumbs {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: -110px;
    padding-bottom: 30px;
}

.hero-thumbs a {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    padding: 10px;
}

.hero-thumbs img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-thumbs span {
    display: -webkit-box;
    overflow: hidden;
    color: #f7f7f8;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-search-strip {
    border-block: 1px solid var(--line);
    background: rgba(17, 24, 39, 0.64);
}

.search-strip-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    align-items: center;
    gap: 30px;
    padding: 28px 0;
}

.search-strip-inner h2,
.search-strip-inner p {
    margin: 0;
}

.search-strip-inner p {
    margin-top: 8px;
    color: var(--muted);
}

.section-block {
    padding: 66px 0;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.82), rgba(17, 24, 39, 0.96));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-year,
.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.poster-year {
    right: 10px;
    top: 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.poster-type {
    left: 10px;
    bottom: 10px;
    background: rgba(249, 115, 22, 0.9);
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    padding: 0;
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 54px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

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

.category-card,
.category-feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.92), rgba(124, 45, 18, 0.26));
    padding: 24px;
}

.category-card span,
.category-feature-card span {
    color: var(--accent-2);
    font-weight: 900;
}

.category-card p,
.category-feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-feature-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
}

.category-feature-card h2,
.category-feature-card p,
.category-feature-card span {
    position: relative;
    z-index: 1;
}

.ranking-section {
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.22), rgba(17, 24, 39, 0.34));
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.rank-panel,
.detail-side,
.seo-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.76);
    box-shadow: var(--shadow);
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
    align-self: start;
}

.rank-panel h2,
.detail-side h2 {
    margin: 0 0 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 14px 0;
}

.rank-row span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.18);
    color: var(--accent-2);
    font-weight: 900;
}

.rank-row strong {
    display: block;
    font-size: 15px;
}

.rank-row em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.2), transparent 30%), linear-gradient(135deg, #111827, #090d14 64%, #2b1205);
}

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

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.page-hero .hero-search {
    max-width: 620px;
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.7);
    color: var(--text);
    cursor: pointer;
    padding: 9px 14px;
}

.filter-buttons button.is-active {
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
}

.filter-empty {
    color: var(--muted);
}

.detail-hero {
    padding: 42px 0 66px;
    background: radial-gradient(circle at 15% 8%, rgba(249, 115, 22, 0.18), transparent 30%), linear-gradient(135deg, #111827, #090d14);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 26px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, #1f2937, #111827 60%, #7c2d12);
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    color: #d7dde8;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta div {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.62);
    padding: 14px;
}

.detail-meta dt {
    color: var(--soft);
    font-size: 13px;
}

.detail-meta dd {
    margin: 6px 0 0;
    font-weight: 900;
}

.player-section {
    padding: 66px 0 32px;
}

.player-section h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 44px);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    color: white;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
}

.player-start.is-hidden {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.32);
}

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

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

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    color: #d9e0ea;
    font-size: 17px;
    line-height: 1.95;
}

.seo-content {
    padding: 24px 0 72px;
}

.seo-box h2 {
    margin-top: 0;
}

.seo-box p {
    color: var(--muted);
    line-height: 1.85;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.92);
    padding: 46px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 30px;
}

.footer-brand {
    color: white;
    font-size: 24px;
}

.site-footer p,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d8dee9;
    padding: 8px 12px;
}

.footer-bottom {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

[hidden] {
    display: none !important;
}

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

    .hero-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

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

    .site-nav {
        order: 5;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(17, 24, 39, 0.96);
        padding: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .nav-search {
        order: 6;
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-slider,
    .hero-track,
    .hero-slide {
        min-height: 720px;
    }

    .hero-content {
        min-height: 600px;
        padding-bottom: 150px;
    }

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

    .search-strip-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 260px;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

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

    .movie-desc {
        min-height: 48px;
        font-size: 13px;
    }

    .hero-thumbs {
        display: none;
    }

    .hero-dots {
        right: 18px;
        bottom: 42px;
    }

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

    .section-block {
        padding: 46px 0;
    }

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

    .hero-actions,
    .hero-search,
    .nav-search {
        align-items: stretch;
        flex-direction: column;
    }

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

    .player-start {
        font-size: 18px;
    }

    .play-mark {
        width: 66px;
        height: 66px;
    }
}
