
:root {
    --site-bg: #07111f;
    --site-panel: rgba(16, 42, 67, 0.82);
    --site-panel-solid: #102a43;
    --site-panel-strong: #0b1f33;
    --site-line: rgba(188, 204, 220, 0.18);
    --site-text: #f0f4f8;
    --site-muted: #bcccdc;
    --site-soft: #829ab1;
    --site-accent: #f59e0b;
    --site-accent-2: #fbbf24;
    --site-radius: 24px;
    --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

body {
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 78% 8%, rgba(59, 130, 246, 0.13), transparent 30rem),
        linear-gradient(180deg, #06101d 0%, #0b1726 46%, #07111f 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--site-line);
    background: rgba(7, 17, 31, 0.82);
    backdrop-filter: blur(20px);
}

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

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    color: #111827;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.32);
}

.brand-text {
    font-size: 1.28rem;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--site-muted);
    font-size: 0.94rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(315px, 32vw);
    padding: 6px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    color: var(--site-text);
    outline: none;
    background: transparent;
}

.header-search input {
    padding: 0 10px;
    font-size: 0.9rem;
}

.header-search button,
.wide-search button {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    color: #111827;
    font-weight: 800;
    background: var(--site-accent);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--site-line);
    background: rgba(7, 17, 31, 0.96);
}

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0;
}

.mobile-cats {
    padding-top: 0;
}

.mobile-cats a {
    padding: 8px 12px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    color: var(--site-muted);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.76) 45%, rgba(7, 17, 31, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.1) 0%, #07111f 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 48px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--site-accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    max-width: 880px;
    color: #ffffff;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-summary {
    max-width: 680px;
    margin-top: 24px;
    color: var(--site-muted);
    font-size: 1.13rem;
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-dot {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.hero-dot.active {
    background: var(--site-accent);
}

.quick-search {
    position: relative;
    z-index: 4;
    margin-top: -54px;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: rgba(16, 42, 67, 0.88);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.section-head h2,
.spotlight-layout h2,
.rank-panel h2,
.category-card h2,
.category-overview-card h2,
.detail-article h2,
.detail-side h2 {
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2.45rem);
    font-weight: 920;
    letter-spacing: -0.05em;
}

.wide-search,
.filter-bar {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.wide-search input,
.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
}

.section {
    padding: 82px 0;
}

.alt-section {
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.22), rgba(16, 42, 67, 0.04));
}

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

.section-link,
.text-link {
    color: #fbbf24;
    font-weight: 900;
}

.section-intro {
    max-width: 620px;
    margin: 16px 0 24px;
    color: var(--site-muted);
    line-height: 1.9;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: rgba(16, 42, 67, 0.66);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(16, 42, 67, 0.92);
}

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

.poster-link img,
.detail-poster img,
.category-covers img,
.category-overview-media img,
.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.rating,
.rank-badge {
    position: absolute;
    top: 10px;
    display: inline-grid;
    min-width: 40px;
    min-height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 950;
    background: var(--site-accent);
}

.rating {
    right: 10px;
}

.rank-badge {
    left: 10px;
}

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

.movie-card h2 {
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.35;
}

.movie-meta,
.movie-desc {
    margin-top: 8px;
    color: var(--site-muted);
    font-size: 0.88rem;
}

.movie-desc {
    min-height: 3.7em;
    line-height: 1.7;
}

.tag-row {
    margin-top: 13px;
    gap: 7px;
}

.tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.72rem;
}

.spotlight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 30px;
    align-items: start;
}

.rank-panel,
.detail-side,
.detail-article,
.player-card,
.category-overview-card,
.top-rank-card,
.rank-table {
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: rgba(16, 42, 67, 0.72);
    box-shadow: var(--site-shadow);
}

.rank-panel {
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.05);
}

.rank-item:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.12);
}

.rank-no,
.rank-score {
    color: var(--site-accent);
    font-weight: 950;
}

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

.category-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: rgba(16, 42, 67, 0.66);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
}

.category-covers,
.category-overview-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 18px;
}

.category-covers img,
.category-overview-media img {
    aspect-ratio: 1 / 1.15;
}

.category-card p,
.category-overview-card p,
.site-footer p,
.page-hero p,
.detail-one-line,
.detail-article p {
    color: var(--site-muted);
    line-height: 1.85;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 58px;
    border-bottom: 1px solid var(--site-line);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 25rem),
        linear-gradient(180deg, rgba(16, 42, 67, 0.74), rgba(7, 17, 31, 0));
}

.page-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.page-hero p {
    max-width: 760px;
}

.slim-hero {
    padding-bottom: 48px;
}

.filter-bar {
    max-width: 720px;
    margin-top: 28px;
    border-radius: 22px;
}

.filter-bar select {
    max-width: 160px;
    color: var(--site-text);
    border-left: 1px solid var(--site-line);
}

.filter-bar option {
    color: #111827;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 18px;
}

.category-overview-media {
    margin-bottom: 0;
}

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

.top-rank-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.top-rank-card::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.98));
}

.top-rank-card span,
.top-rank-card h2,
.top-rank-card p {
    position: relative;
    z-index: 2;
}

.top-rank-card span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 15px;
    color: #111827;
    font-weight: 950;
    background: var(--site-accent);
}

.top-rank-card h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 950;
}

.rank-table {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px 1.2fr 2fr 70px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--site-line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover {
    background: rgba(245, 158, 11, 0.09);
}

.rank-row-no,
.rank-row-score {
    color: var(--site-accent);
    font-weight: 950;
}

.rank-row-title {
    color: #ffffff;
    font-weight: 900;
}

.rank-row-meta {
    color: var(--site-muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 58px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    filter: blur(20px);
    transform: scale(1.1);
}

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

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, 0.86) 58%, rgba(7, 17, 31, 0.62) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: var(--site-shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--site-muted);
    font-size: 0.9rem;
}

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

.detail-info h1 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-one-line {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: 1.12rem;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-stats span {
    padding: 9px 12px;
    border-radius: 14px;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.08);
}

.detail-tags {
    margin-bottom: 28px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 950;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
}

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

.detail-article,
.detail-side {
    padding: 28px;
}

.detail-article h2 + p {
    margin-top: 12px;
}

.detail-article p + h2 {
    margin-top: 28px;
}

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

.detail-side dt {
    color: var(--site-soft);
    font-size: 0.82rem;
}

.detail-side dd {
    color: #ffffff;
    font-weight: 800;
}

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

.site-footer {
    border-top: 1px solid var(--site-line);
    background: rgba(7, 17, 31, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 950;
}

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

.footer-links a {
    color: var(--site-muted);
}

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

.footer-bottom {
    padding: 18px 0;
    color: var(--site-soft);
    text-align: center;
    border-top: 1px solid var(--site-line);
}

.is-filter-hidden {
    display: none !important;
}

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

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

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

    .spotlight-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-button {
        display: flex;
        margin-left: auto;
    }

    .mobile-panel.is-open {
        display: block;
    }

    .hero {
        min-height: 620px;
    }

    .quick-search-inner,
    .detail-hero-inner,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .category-overview-media {
        max-width: 260px;
    }

    .rank-row {
        grid-template-columns: 46px 1fr 58px;
    }

    .rank-row-meta {
        display: none;
    }
}

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

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.05em;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section {
        padding: 54px 0;
    }

    .quick-search {
        margin-top: -28px;
    }

    .wide-search,
    .filter-bar {
        flex-direction: column;
        border-radius: 20px;
    }

    .filter-bar select {
        max-width: none;
        border-left: 0;
        border-top: 1px solid var(--site-line);
    }

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

    .movie-desc {
        display: none;
    }

    .top-rank-card {
        min-height: 300px;
    }
}
