:root {
    --site-bg: #0a1929;
    --site-bg-soft: #102a43;
    --site-card: rgba(16, 42, 67, 0.88);
    --site-card-strong: rgba(36, 59, 83, 0.94);
    --site-border: rgba(188, 204, 220, 0.16);
    --site-text: #f0f4f8;
    --site-muted: #bcccdc;
    --site-accent: #f59e0b;
    --site-accent-strong: #fbbf24;
    --site-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --site-radius: 26px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.14), transparent 28rem),
        var(--site-bg);
    color: var(--site-text);
}

img {
    object-fit: cover;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(10, 25, 41, 0.78);
    border-bottom: 1px solid var(--site-border);
    backdrop-filter: blur(18px);
}

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

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

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

.brand-name {
    font-size: 1.08rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--site-text);
    background: rgba(255, 255, 255, 0.08);
}

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

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--site-text);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #06111e;
}

.hero-slider {
    position: relative;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(6, 17, 30, 0.94) 0%, rgba(6, 17, 30, 0.72) 44%, rgba(6, 17, 30, 0.28) 100%),
        linear-gradient(0deg, var(--site-bg) 0%, transparent 44%);
}

.hero-content {
    position: relative;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 110px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--site-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 860px;
    font-size: clamp(2.6rem, 7vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    text-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
}

.hero p {
    max-width: 720px;
    margin-top: 22px;
    color: var(--site-muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.85;
}

.hero-badges,
.detail-badges,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-badges span,
.detail-badges span,
.card-tags span,
.detail-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    color: #101828;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--site-text);
}

.btn-full {
    width: 100%;
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 25, 41, 0.58);
    border: 1px solid var(--site-border);
    backdrop-filter: blur(18px);
}

.hero-controls > button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--site-text);
    font-size: 1.3rem;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 26px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
    width: 44px;
    background: var(--site-accent-strong);
}

.hero-category-strip {
    position: absolute;
    left: 50%;
    bottom: 118px;
    z-index: 9;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-category-strip a {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--site-muted);
    border: 1px solid var(--site-border);
    backdrop-filter: blur(14px);
}

.hero-category-strip a:hover {
    color: var(--site-text);
    background: rgba(245, 158, 11, 0.16);
}

.section {
    padding: 78px 0;
}

.section-raised {
    position: relative;
    margin-top: -24px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--site-accent-strong);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 0.6fr));
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: rgba(16, 42, 67, 0.62);
    backdrop-filter: blur(18px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--site-muted);
    font-size: 0.82rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 13px;
    color: var(--site-text);
    background: rgba(10, 25, 41, 0.74);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.68);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: var(--site-card);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--site-bg-soft);
}

.poster-link img {
    width: 100%;
    height: 100%;
    transition: transform 0.34s ease;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(10, 25, 41, 0.82);
    color: var(--site-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.movie-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--site-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-eyebrow span {
    color: var(--site-muted);
}

.movie-card h3 {
    min-height: 2.8em;
    font-size: 1.02rem;
    line-height: 1.4;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover,
.category-card h2 a:hover {
    color: var(--site-accent-strong);
}

.movie-card p {
    display: -webkit-box;
    min-height: 4.8em;
    margin-top: 9px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-tags {
    margin-top: 13px;
}

.card-tags span {
    padding: 5px 8px;
    font-size: 0.74rem;
}

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

.category-card {
    display: grid;
    gap: 15px;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(36, 59, 83, 0.88), rgba(16, 42, 67, 0.78));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.category-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

.category-card h3,
.category-card h2 {
    font-size: 1.16rem;
}

.category-card p {
    color: var(--site-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

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

.category-card-wide {
    grid-template-columns: 220px 1fr;
    align-items: center;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mini-links a {
    color: var(--site-accent-strong);
    font-size: 0.86rem;
}

.section-split {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 34px;
}

.inner-head {
    margin-bottom: 18px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--site-border);
    background: rgba(16, 42, 67, 0.72);
}

.rank-item:hover {
    background: rgba(36, 59, 83, 0.88);
}

.rank-num {
    color: var(--site-accent-strong);
    font-weight: 900;
}

.rank-item img {
    width: 52px;
    height: 72px;
    border-radius: 12px;
}

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

.rank-meta {
    color: var(--site-muted);
    font-size: 0.85rem;
}

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

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

.page-hero,
.detail-hero {
    position: relative;
    padding: 72px 0 42px;
    background:
        radial-gradient(circle at 14% 8%, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(180deg, rgba(16, 42, 67, 0.74), rgba(10, 25, 41, 0));
}

.page-hero p {
    max-width: 760px;
    margin-top: 16px;
    color: var(--site-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

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

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

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

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

.detail-copy p {
    max-width: 860px;
    margin-top: 18px;
    color: var(--site-muted);
    font-size: 1.08rem;
    line-height: 1.86;
}

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

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

.player-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--site-shadow);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    color: var(--site-text);
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 22rem);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    color: #101828;
    font-size: 2rem;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
}

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

.article-panel,
.info-panel {
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: 26px;
    background: var(--site-card);
}

.article-panel h2,
.info-panel h2 {
    margin-bottom: 16px;
    font-size: 1.45rem;
}

.article-panel h2:not(:first-child) {
    margin-top: 30px;
}

.article-panel p {
    color: var(--site-muted);
    line-height: 1.95;
    margin-bottom: 14px;
}

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

.info-panel {
    align-self: start;
    position: sticky;
    top: 98px;
}

.info-panel li {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--site-border);
}

.info-panel li span {
    color: var(--site-muted);
    font-size: 0.84rem;
}

.info-panel li strong {
    font-weight: 800;
    line-height: 1.5;
}

.info-panel .btn {
    margin-top: 20px;
}

.ranking-list-page {
    display: grid;
    gap: 16px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: var(--site-card);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--site-accent-strong);
    color: #101828;
    font-weight: 900;
}

.ranking-content {
    align-self: center;
}

.ranking-content h2 {
    font-size: 1.25rem;
}

.ranking-content p {
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.7;
}

.filter-empty {
    display: none;
    margin-top: 22px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    color: var(--site-muted);
    background: rgba(16, 42, 67, 0.58);
}

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

.site-footer {
    border-top: 1px solid var(--site-border);
    padding: 44px 0 24px;
    background: rgba(6, 17, 30, 0.64);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 620px;
    color: var(--site-muted);
    line-height: 1.7;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--site-muted);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 0.9rem;
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

    .info-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--site-border);
        border-radius: 22px;
        background: rgba(10, 25, 41, 0.96);
        box-shadow: var(--site-shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 780px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 48px;
    }

    .hero-poster {
        display: none;
    }

    .hero-category-strip {
        bottom: 104px;
    }

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

    .search-field {
        grid-column: 1 / -1;
    }

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

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

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

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

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

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

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 560px) {
    .container,
    .site-header-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 2.45rem;
        letter-spacing: -0.05em;
    }

    .hero-category-strip {
        display: none;
    }

    .hero-controls {
        bottom: 26px;
    }

    .section {
        padding: 54px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 34px 46px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .ranking-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .article-panel,
    .info-panel {
        padding: 20px;
    }
}
