@charset "UTF-8";

:root {
    --bg: #08111f;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #111827;
    --card: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #a9b4c7;
    --soft: #dbe7ff;
    --blue: #2563eb;
    --purple: #7c3aed;
    --orange: #f97316;
    --red: #ef4444;
    --green: #22c55e;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.34), transparent 36rem),
        radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.22), transparent 30rem),
        linear-gradient(135deg, #061020 0%, #0a1020 42%, #111827 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

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;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.93), rgba(124, 58, 237, 0.93));
    box-shadow: 0 18px 40px rgba(3, 7, 18, 0.28);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.site-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, #f97316, #ef4444),
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 12px 32px rgba(239, 68, 68, 0.4);
}

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

.desktop-nav a,
.mobile-nav a {
    border-radius: 999px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    width: min(370px, 34vw);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 9px 12px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button {
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #fff;
    padding: 8px 15px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.page-main {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
    background-position: center;
    background-size: cover;
}

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

.hero-content {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 118px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 7px 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.34);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 690px;
    margin: 24px 0 0;
    color: #e2e8f0;
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 36px;
}

.hero-tags span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.36);
}

.secondary-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

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

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

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

.section {
    margin-top: 44px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 9px 0 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.movie-info {
    padding: 14px;
}

.movie-name {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    overflow: hidden;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-line {
    min-height: 44px;
    margin: 9px 0 0;
    color: #dbe7ff;
    font-size: 14px;
    line-height: 1.55;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(124, 58, 237, 0.16)),
        rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card::after {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    content: "";
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
}

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

.category-card strong {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 25px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 12px 0 20px;
    color: #dbe7ff;
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px 1fr;
    gap: 14px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--card);
    transition: transform 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 950;
}

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

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

.rank-content {
    min-width: 0;
}

.rank-title {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0;
    color: #dbe7ff;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 54px);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.48), rgba(249, 115, 22, 0.16)),
        rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #dbe7ff;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.82);
    padding: 12px 14px;
}

.filter-panel input::placeholder {
    color: var(--muted);
}

.empty-state {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(22px, 4vw, 44px);
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 4vw, 38px);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.38), rgba(124, 58, 237, 0.18)),
        rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

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

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

.breadcrumb a {
    color: #e2e8f0;
}

.detail-title {
    margin: 0;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-line {
    margin: 18px 0 0;
    color: #dbe7ff;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.player-section {
    margin-top: 34px;
}

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

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

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

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

.play-trigger span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 22px 50px rgba(239, 68, 68, 0.42);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 34px;
}

.content-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.content-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.content-panel p {
    margin: 0 0 18px;
    color: #dbe7ff;
    font-size: 17px;
}

.side-stack {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.22s ease, transform 0.22s ease;
}

.side-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.side-link img {
    width: 54px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

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

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner strong {
    font-size: 22px;
    font-weight: 950;
}

.footer-inner p {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

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

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

@media (max-width: 940px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero {
        min-height: 560px;
    }

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

    .rank-list,
    .detail-body,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .page-main {
        width: min(100% - 24px, var(--max));
        padding-top: 22px;
    }

    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, var(--max));
    }

    .hero-content {
        width: min(100% - 24px, var(--max));
        padding: 70px 0 100px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-no {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

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

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 20px;
    }

    .detail-title {
        letter-spacing: -0.04em;
    }
}


.category-preview {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin: 16px 0 18px;
}

.category-preview a {
    overflow: hidden;
    color: #dbe7ff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

