:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --orange: #f97316;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 35rem),
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand {
    font-size: 22px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: white;
    background: rgba(249, 115, 22, 0.15);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    background: rgba(30, 41, 59, 0.9);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hero {
    position: relative;
    height: min(600px, calc(100vh - 72px));
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 0 116px;
}

.eyebrow,
.kicker {
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    margin: 12px 0 18px;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 21px);
}

.hero-tags,
.tag-row,
.movie-meta,
.page-actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions,
.page-actions {
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.search-form button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button,
.hero-search button {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
    color: white;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

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

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.hero-search {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 82px;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-search input,
.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    color: white;
    background: rgba(2, 6, 23, 0.66);
    outline: none;
}

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

.section-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 0;
}

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

.section-heading h2,
.detail-text h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: #fed7aa;
    font-weight: 800;
}

.category-grid,
.category-overview-grid,
.movie-grid {
    display: grid;
    gap: 18px;
}

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

.category-chip,
.category-panel,
.movie-card,
.rank-card,
.detail-card,
.player-panel,
.page-hero,
.search-form,
.filter-bar,
.detail-text {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.category-chip,
.category-panel {
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-chip:hover,
.category-panel:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(30, 41, 59, 0.86);
}

.category-chip strong,
.category-panel h2 {
    display: block;
    margin: 0 0 6px;
    font-size: 20px;
}

.category-chip span,
.category-panel p,
.movie-info p,
.rank-card p,
.footer-grid p,
.detail-text p {
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.86);
}

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

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 14px;
}

.movie-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.movie-meta span {
    padding: 4px 8px;
    font-size: 11px;
}

.movie-info h3,
.rank-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-card h3 a:hover,
.category-samples a:hover {
    color: #fb923c;
}

.movie-info p,
.rank-card p {
    margin: 0 0 12px;
    font-size: 13px;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: #fef3c7;
    font-size: 11px;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-num {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
}

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

.rank-kicker {
    color: #fb923c !important;
    font-size: 12px !important;
    font-weight: 750;
}

.page-main,
.detail-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero {
    margin: 42px 0 0;
    border-radius: 28px;
    padding: clamp(30px, 6vw, 70px);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.82)),
        rgba(15, 23, 42, 0.84);
}

.page-hero.slim {
    max-width: none;
}

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

.category-panel-link {
    display: block;
}

.panel-kicker {
    color: #fb923c;
    font-size: 13px;
    font-weight: 800;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(2, 6, 23, 0.32);
}

.filter-bar,
.search-form {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 24px;
}

.search-form {
    grid-template-columns: 1fr 120px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 18px;
    color: var(--subtle);
    font-size: 14px;
}

.breadcrumb a {
    color: #fed7aa;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: stretch;
}

.player-panel,
.detail-card {
    border-radius: 26px;
    overflow: hidden;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background: black;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: black;
}

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

.play-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 6px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 24px 50px rgba(249, 115, 22, 0.35);
}

.play-overlay strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 18px;
}

.detail-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.detail-card h1 {
    margin: 8px 0 12px;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.1;
}

.detail-card p {
    color: var(--muted);
}

.detail-text {
    border-radius: 24px;
    padding: 28px;
}

.detail-text h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.detail-text p + h2 {
    margin-top: 30px;
}

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

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

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

.footer-grid li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 13px;
    text-align: center;
}

.text-page p {
    max-width: 900px;
}

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

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

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

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

    .watch-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        min-height: 620px;
        height: auto;
    }

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

    .hero-search {
        bottom: 88px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-dots {
        bottom: 44px;
    }

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

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

    .rank-card {
        grid-template-columns: 88px 1fr;
    }

    .filter-bar,
    .search-form {
        grid-template-columns: 1fr;
    }

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

    .video-frame {
        min-height: 240px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .rank-list.compact,
    .featured-rank {
        grid-template-columns: 1fr;
    }

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

    .detail-card img {
        max-width: 220px;
    }
}
