:root {
    --bg: #060708;
    --bg-soft: #0b0d10;
    --panel: #101419;
    --card: #151a21;
    --line: #333d47;
    --line-soft: #1d2530;
    --text: #ffffff;
    --muted: #a4adba;
    --muted-2: #6f7b8a;
    --primary: #f5871f;
    --primary-2: #ffaf45;
    --danger: #e84e36;
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 6%, rgba(245, 135, 31, 0.18), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(232, 78, 54, 0.14), transparent 28%),
        linear-gradient(180deg, #060708 0%, #0b0d10 48%, #060708 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 7, 8, 0.84);
    border-bottom: 1px solid rgba(51, 61, 71, 0.72);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(245, 135, 31, 0.36);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    color: #d6dbe2;
    font-size: 14px;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: #d6dbe2;
}

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

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid rgba(51, 61, 71, 0.45);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0 92px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -2;
    opacity: 0.32;
    filter: blur(2px);
}

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

.hero-bg::after,
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #060708 0%, rgba(6, 7, 8, 0.86) 34%, rgba(6, 7, 8, 0.42) 66%, #060708 100%),
        linear-gradient(0deg, #060708 0%, transparent 48%, rgba(6, 7, 8, 0.86) 100%);
}

.hero-content {
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 6.2vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: #d3d7de;
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #d6dbe2;
    background: rgba(21, 26, 33, 0.82);
    border: 1px solid rgba(51, 61, 71, 0.78);
    border-radius: 999px;
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 22px;
    color: #111;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 30px rgba(245, 135, 31, 0.28);
}

.ghost-btn,
.section-link,
.text-btn {
    min-height: 44px;
    padding: 0 18px;
    color: #f2f4f6;
    background: rgba(21, 26, 33, 0.74);
    border: 1px solid rgba(51, 61, 71, 0.86);
}

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

.ghost-btn:hover,
.section-link:hover,
.text-btn:hover {
    color: var(--primary);
    border-color: rgba(245, 135, 31, 0.68);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    width: min(340px, 100%);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(245, 135, 31, 0.35);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

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

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

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

.section {
    padding: 74px 0 0;
}

.page-main {
    padding-top: 42px;
}

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

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1,
.side-panel h2,
.rank-board h2,
.detail-content h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    isolation: isolate;
    background: var(--card);
    border: 1px solid rgba(51, 61, 71, 0.74);
    border-radius: var(--radius);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transform: scale(1.02);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 20%, rgba(6, 7, 8, 0.9) 100%);
}

.category-tile:hover img {
    opacity: 0.6;
    transform: scale(1.08);
}

.category-tile span {
    color: #fff;
    font-size: 20px;
    font-weight: 850;
}

.category-tile p {
    margin: 8px 0 0;
    color: #cfd5df;
    font-size: 13px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: rgba(21, 26, 33, 0.88);
    border: 1px solid rgba(51, 61, 71, 0.66);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    background: rgba(21, 26, 33, 0.98);
    border-color: rgba(245, 135, 31, 0.62);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0b0d10;
}

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

.movie-card:hover .poster-link img,
.movie-card:hover .wide-cover img {
    transform: scale(1.08);
}

.poster-link::after,
.wide-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.88));
}

.cover-year,
.cover-region,
.hot-badge {
    position: absolute;
    z-index: 2;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 750;
}

.cover-year {
    top: 10px;
    right: 10px;
}

.cover-region {
    bottom: 10px;
    left: 10px;
    background: rgba(245, 135, 31, 0.92);
}

.hot-badge {
    top: 10px;
    left: 10px;
    background: rgba(232, 78, 54, 0.9);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: rgba(245, 135, 31, 0.95);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.24s ease;
}

.card-title:hover {
    color: var(--primary);
}

.card-body p,
.wide-info p,
.review-card p,
.page-hero p,
.side-panel p,
.detail-content p,
.site-footer p {
    color: var(--muted);
}

.card-body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0 12px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    min-height: 24px;
    padding: 2px 8px;
    font-size: 11px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
}

.search-box {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: var(--muted-2);
    background: rgba(16, 20, 25, 0.92);
    border: 1px solid rgba(51, 61, 71, 0.74);
    border-radius: 14px;
}

.search-box input,
.filter-panel select {
    width: 100%;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.search-box input::placeholder {
    color: #697483;
}

.filter-panel select {
    max-width: 180px;
    min-height: 48px;
    padding: 0 14px;
    background: rgba(16, 20, 25, 0.92);
    border: 1px solid rgba(51, 61, 71, 0.74);
    border-radius: 14px;
}

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

.side-panel,
.rank-board,
.detail-content article,
.category-overview-card,
.page-hero,
.detail-info {
    background: rgba(16, 20, 25, 0.86);
    border: 1px solid rgba(51, 61, 71, 0.68);
    border-radius: 22px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.side-panel {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 92px;
}

.review-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.review-card {
    padding: 16px;
    background: rgba(21, 26, 33, 0.72);
    border: 1px solid rgba(51, 61, 71, 0.55);
    border-radius: 16px;
}

.review-card a {
    display: block;
    color: #fff;
    font-weight: 800;
}

.review-card p {
    margin: 8px 0 10px;
    font-size: 13px;
}

.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted-2);
    font-size: 13px;
}

.page-hero {
    padding: clamp(28px, 5vw, 54px);
    margin-bottom: 34px;
    background:
        linear-gradient(135deg, rgba(245, 135, 31, 0.14), transparent 42%),
        rgba(16, 20, 25, 0.86);
}

.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 17px;
}

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

.category-overview-card {
    padding: 18px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
}

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

.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 24px;
}

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

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

.breadcrumb a:hover {
    color: var(--primary);
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
}

.wide-cover {
    position: relative;
    min-height: 198px;
    overflow: hidden;
    background: #0b0d10;
}

.wide-info {
    padding: 18px;
}

.wide-info .card-title {
    min-height: auto;
    font-size: 17px;
}

.wide-info p {
    margin: 10px 0 14px;
    font-size: 14px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
}

.rank-board {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 20px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr) auto 46px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(51, 61, 71, 0.42);
}

.rank-row:hover .rank-title {
    color: var(--primary);
}

.rank-row img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.rank-num {
    color: var(--primary);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--muted-2);
    font-size: 12px;
}

.rank-score {
    color: var(--primary-2);
    font-weight: 900;
    text-align: right;
}

.detail-main {
    padding-bottom: 80px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 24px;
    align-items: stretch;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(51, 61, 71, 0.7);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    color: #111;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
    border: 0;
    cursor: pointer;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #111;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 50%;
    box-shadow: 0 18px 50px rgba(245, 135, 31, 0.36);
    font-size: 34px;
}

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

.detail-info {
    padding: 28px;
}

.detail-info h1 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #d6dbe2;
    font-size: 17px;
}

.detail-meta span {
    padding: 5px 10px;
    background: rgba(21, 26, 33, 0.85);
    border: 1px solid rgba(51, 61, 71, 0.6);
    border-radius: 999px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.detail-content article {
    padding: 26px;
}

.detail-content h2 {
    font-size: 26px;
}

.detail-content p {
    margin: 14px 0 0;
    font-size: 16px;
}

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

.site-footer {
    margin-top: 88px;
    padding: 48px 0 26px;
    background: rgba(6, 7, 8, 0.92);
    border-top: 1px solid rgba(51, 61, 71, 0.62);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 36px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p {
    max-width: 520px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
}

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

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 20px;
    color: var(--muted-2);
    border-top: 1px solid rgba(51, 61, 71, 0.4);
    font-size: 13px;
}

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

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 15px;
        font-size: 13px;
    }

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

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

    .split-layout,
    .rank-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .side-panel,
    .rank-board {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 54px 0 84px;
    }

    .hero-poster {
        width: min(260px, 72vw);
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .library-grid,
    .category-overview-grid,
    .wide-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .rank-row {
        grid-template-columns: 30px 40px minmax(0, 1fr) 44px;
    }

    .rank-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 62px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p,
    .page-hero p {
        font-size: 15px;
    }

    .section {
        padding-top: 52px;
    }

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

    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        max-width: none;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .library-grid,
    .category-overview-grid,
    .wide-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .wide-cover {
        min-height: 166px;
    }

    .detail-info,
    .detail-content article,
    .page-hero {
        padding: 20px;
    }

    .play-overlay span {
        width: 66px;
        height: 66px;
        font-size: 27px;
    }
}
