:root {
    --site-bg: #0a1929;
    --site-bg-soft: #102a43;
    --site-card: #243b53;
    --site-card-2: #334e68;
    --site-text: #f3f4f6;
    --site-muted: #9ca3af;
    --site-amber: #f59e0b;
    --site-amber-light: #fbbf24;
    --site-border: rgba(251, 191, 36, 0.18);
    --site-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.12), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(59, 130, 246, 0.12), transparent 30rem),
        var(--site-bg);
    color: var(--site-text);
    min-height: 100vh;
}

img {
    background: linear-gradient(135deg, #102a43, #243b53);
}

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a1929;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav a,
.mobile-menu a {
    color: #d1d5db;
    font-weight: 600;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
    padding: 0.65rem 0.9rem;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.desktop-nav a.active,
.mobile-menu a.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.nav-search {
    display: none;
    align-items: center;
    min-width: 260px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(16, 42, 67, 0.84);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    outline: none;
    color: #ffffff;
    background: transparent;
}

.nav-search button {
    padding: 0.65rem 0.9rem;
    color: #0a1929;
    font-weight: 700;
    background: #fbbf24;
}

.mobile-toggle {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    color: #ffffff;
    background: rgba(51, 78, 104, 0.94);
}

.mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.55rem;
}

.mobile-menu a {
    padding: 0.85rem 1rem;
    background: rgba(16, 42, 67, 0.92);
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--site-shadow);
    background: #102a43;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    background:
        linear-gradient(90deg, rgba(10, 25, 41, 0.96) 0%, rgba(10, 25, 41, 0.74) 43%, rgba(10, 25, 41, 0.1) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    max-width: 760px;
    display: grid;
    gap: 1rem;
    animation: fadeIn 0.55s ease both;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.hero-title {
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 680px;
    color: #d1d5db;
    font-size: 1.05rem;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
    border-radius: 0.95rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a1929;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
    background: rgba(51, 78, 104, 0.92);
    color: #ffffff;
}

.hero-dots {
    position: absolute;
    left: 2rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.55rem;
    z-index: 3;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    width: 2.2rem;
    background: #fbbf24;
}

.hero-quick {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 520px;
    z-index: 4;
}

.hero-mini {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(16, 42, 67, 0.82);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.hero-mini img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-mini span {
    display: block;
    padding: 0.65rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-block {
    margin-top: 3rem;
}

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

.section-head h2,
.section-title {
    color: #fbbf24;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 850;
}

.section-head p {
    color: #9ca3af;
    margin-top: 0.35rem;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(36, 59, 83, 0.92);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.26);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #102a43;
}

.movie-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover {
    transform: scale(1.05);
}

.card-badge,
.rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #0a1929;
    font-size: 0.78rem;
    font-weight: 800;
    background: #fbbf24;
}

.play-dot {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0a1929;
    background: rgba(251, 191, 36, 0.92);
}

.movie-card-body {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.movie-card h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.movie-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: #9ca3af;
    font-size: 0.82rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(180deg, rgba(10, 25, 41, 0.32), rgba(10, 25, 41, 0.95)),
        var(--cat-image);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
    padding: 1.25rem;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.category-card h2,
.category-card h3 {
    color: #ffffff;
    font-weight: 850;
    font-size: 1.35rem;
}

.category-card p {
    color: #d1d5db;
    margin-top: 0.45rem;
}

.page-hero {
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(251, 191, 36, 0.16);
    background:
        linear-gradient(135deg, rgba(51, 78, 104, 0.88), rgba(16, 42, 67, 0.88)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 24rem);
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    max-width: 860px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 780px;
    margin-top: 0.8rem;
    color: #d1d5db;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-layout {
    display: grid;
    gap: 1.5rem;
}

.detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
    border-radius: 1.4rem;
    background: rgba(36, 59, 83, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--site-shadow);
}

.detail-cover img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-info {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.detail-info h1 {
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.detail-desc {
    color: #d1d5db;
    font-size: 1.05rem;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-panel,
.content-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 1.3rem;
    background: rgba(16, 42, 67, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

.player-panel h2,
.content-panel h2 {
    color: #fbbf24;
    font-size: 1.4rem;
    font-weight: 850;
    margin-bottom: 1rem;
}

.player-shell {
    position: relative;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.55rem;
    color: #ffffff;
    font-weight: 850;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
    transition: opacity 0.25s ease;
}

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

.player-icon {
    display: inline-flex;
    width: 4.8rem;
    height: 4.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0a1929;
    font-size: 1.7rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

.article-text {
    color: #d1d5db;
    display: grid;
    gap: 0.95rem;
    line-height: 1.85;
}

.search-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(36, 59, 83, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-input {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 0.9rem;
    padding: 0 1rem;
    color: #ffffff;
    background: rgba(10, 25, 41, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    outline: none;
}

.search-input:focus {
    border-color: rgba(251, 191, 36, 0.7);
}

.empty-state {
    display: none;
    padding: 2rem;
    text-align: center;
    color: #d1d5db;
    border-radius: 1rem;
    background: rgba(36, 59, 83, 0.82);
}

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

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 4.3rem 1fr;
    gap: 0.85rem;
    align-items: center;
    border-radius: 1rem;
    padding: 0.7rem;
    background: rgba(36, 59, 83, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-item img {
    width: 4.3rem;
    height: 4.3rem;
    border-radius: 0.8rem;
    object-fit: cover;
}

.rank-item strong {
    color: #ffffff;
    display: block;
}

.rank-item span {
    color: #fbbf24;
    font-size: 0.82rem;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 25, 41, 0.95);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 1rem;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-links a {
    color: #fbbf24;
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .nav-search {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-slide {
        padding: 3.4rem;
    }

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

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

    .detail-top {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-quick {
        display: grid;
    }

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

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        align-items: start;
    }

    .detail-main {
        display: grid;
        gap: 1.5rem;
    }
}

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

@media (max-width: 767px) {
    .hero-slider {
        min-height: 560px;
        border-radius: 1.3rem;
    }

    .hero-dots {
        left: 1.2rem;
    }

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