
:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-soft: #141414;
    --surface: #1f1f1f;
    --surface-light: #2a2a2a;
    --border: #333333;
    --text: #ffffff;
    --muted: #a3a3a3;
    --soft: #d1d5db;
    --accent: #f97316;
    --accent-deep: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.18);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.14), transparent 34%), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

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

img.image-missing {
    visibility: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(20, 20, 20, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
}

.logo-copy {
    display: grid;
    line-height: 1.1;
}

.logo-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.logo-copy em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d1d5db;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fb923c;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    color: white;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface);
    color: #d1d5db;
}

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

.hero-slider {
    position: relative;
    min-height: 560px;
    height: 72vh;
    overflow: hidden;
    background: var(--bg);
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.03);
}

.hero-shade,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.62) 42%, rgba(10, 10, 10, 0.18)), linear-gradient(0deg, var(--bg), rgba(10, 10, 10, 0.36) 46%, rgba(10, 10, 10, 0.12));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fb923c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.8);
    content: "";
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 22px 0 0;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-line span,
.article-tags span {
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.26);
    color: #fed7aa;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

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

.hero-rail {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    gap: 12px;
}

.hero-rail-card {
    width: 116px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(31, 31, 31, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.hero-rail-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-rail-card span {
    display: block;
    padding: 9px 10px;
    overflow: hidden;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.section-title div {
    display: grid;
    gap: 8px;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.section-title a {
    color: #fb923c;
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(31, 31, 31, 0.72);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 160px));
    gap: 12px;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box span {
    color: #fb923c;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #111111;
    color: white;
    padding: 0 14px;
    outline: none;
}

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

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

.movie-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.82), rgba(20, 20, 20, 0.96));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1f1f1f, #0f0f0f);
}

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

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    font-size: 15px;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #fb923c;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
    padding-left: 6px;
    color: #575757;
    content: "·";
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 900;
}

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

.tag-line span {
    background: rgba(255, 255, 255, 0.07);
    color: #d1d5db;
}

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

.category-tile,
.category-overview-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(31, 31, 31, 0.88), rgba(10, 10, 10, 0.96));
    padding: 18px;
    box-shadow: var(--shadow);
}

.category-tile {
    display: grid;
    gap: 14px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

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

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

.category-covers img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(20, 20, 20, 0.96));
}

.page-hero {
    max-width: 1280px;
    margin: 32px auto 0;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 56px 32px;
    box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1,
.ranking-hero h1 {
    font-size: clamp(38px, 6vw, 66px);
}

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

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.category-overview-head a {
    color: #fb923c;
    font-weight: 800;
    white-space: nowrap;
}

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

.mini-movie {
    min-width: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-movie img {
    width: 70px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.mini-movie span {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.mini-movie strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-movie em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.mini-movie i {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-style: normal;
}

.mini-movie i span {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
    font-size: 11px;
}

.hero-mini-list {
    max-width: 760px;
    margin-top: 28px;
}

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

.detail-backdrop,
.detail-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-backdrop img {
    object-fit: cover;
    filter: blur(3px) saturate(1.08);
    transform: scale(1.04);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: #d1d5db;
    font-size: 14px;
}

.breadcrumb a {
    color: #fb923c;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.detail-info h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.detail-facts span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    font-weight: 700;
}

.player-section {
    padding-top: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.7));
    color: white;
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.38);
}

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

.player-shell.is-playing .play-overlay,
.player-shell.is-ready .play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.detail-article,
.detail-side {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(31, 31, 31, 0.78);
    padding: 28px;
    box-shadow: var(--shadow);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.9;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-side dt {
    color: #fb923c;
    font-size: 13px;
    font-weight: 800;
}

.detail-side dd {
    margin: -8px 0 6px;
    color: #e5e7eb;
}

.block-button {
    width: 100%;
    margin-top: 22px;
}

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

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

.footer-inner p,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

.footer-inner h3 {
    margin: 0 0 16px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

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

.empty-state {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed rgba(249, 115, 22, 0.5);
    border-radius: 20px;
    color: #fed7aa;
    text-align: center;
}

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

    .menu-button {
        display: block;
    }

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

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

    .hero-rail {
        display: none;
    }
}

@media (max-width: 860px) {
    .hero-slider {
        min-height: 640px;
        height: auto;
    }

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

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

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

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

    .mini-movie-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .logo-copy strong {
        font-size: 17px;
    }

    .hero-content,
    .content-section,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

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

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

    .page-hero {
        margin: 18px 16px 0;
        padding: 34px 20px;
    }
}
