:root {
    --site-night-950: #0a1929;
    --site-night-900: #10233a;
    --site-night-850: #142b45;
    --site-night-800: #173553;
    --site-moon-600: #d88c16;
    --site-moon-500: #e9a828;
    --site-moon-300: #ffd580;
    --site-text: #f8fafc;
    --site-muted: #a8b3c7;
    --site-line: rgba(255, 255, 255, 0.1);
    --site-card: rgba(15, 33, 54, 0.78);
    --site-card-strong: rgba(18, 41, 67, 0.94);
    --site-radius-lg: 28px;
    --site-radius-md: 20px;
    --site-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at 16% -4%, rgba(233, 168, 40, 0.26), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(65, 110, 255, 0.16), transparent 30rem),
        linear-gradient(180deg, var(--site-night-950), var(--site-night-900) 42%, var(--site-night-950));
    font-family: Inter, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    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;
    border-bottom: 1px solid var(--site-line);
    background: rgba(10, 25, 41, 0.78);
    backdrop-filter: blur(20px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, var(--site-moon-300), var(--site-moon-500));
    box-shadow: 0 12px 30px rgba(233, 168, 40, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.78);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 4px;
    background: currentColor;
}

.page-main {
    padding-bottom: 72px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 34px;
}

.hero-frame {
    position: relative;
}

.hero-window {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 34px;
    background: rgba(15, 33, 54, 0.68);
    box-shadow: var(--site-shadow);
}

.hero-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
    flex: 0 0 100%;
    min-height: 520px;
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) brightness(0.72);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.72) 42%, rgba(10, 25, 41, 0.16)),
        linear-gradient(0deg, rgba(10, 25, 41, 0.98), transparent 48%);
}

.hero-content {
    position: relative;
    width: min(760px, 100%);
    padding: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(233, 168, 40, 0.28);
    border-radius: 999px;
    color: var(--site-moon-300);
    background: rgba(233, 168, 40, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 18px 0 16px;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-desc,
.page-desc,
.detail-lead {
    max-width: 760px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

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

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

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

.btn-primary {
    color: #101827;
    background: linear-gradient(135deg, var(--site-moon-300), var(--site-moon-500));
    box-shadow: 0 18px 42px rgba(233, 168, 40, 0.26);
}

.btn-primary:hover {
    box-shadow: 0 22px 54px rgba(233, 168, 40, 0.36);
}

.btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(10, 25, 41, 0.72);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    right: 30px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--site-moon-500);
}

.quick-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(720px, 100%);
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.quick-search input,
.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.quick-search input {
    padding: 0 16px;
}

.quick-search input::placeholder,
.search-box input::placeholder {
    color: rgba(226, 232, 240, 0.56);
}

.section {
    padding: 40px 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--site-moon-300);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--site-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-md);
    background: var(--site-card);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(233, 168, 40, 0.38);
    background: var(--site-card-strong);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(233, 168, 40, 0.12), rgba(65, 110, 255, 0.08));
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 213, 128, 0.92);
    font-size: 0.76rem;
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.15em;
    margin: 0;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.82);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
}

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

.category-card {
    display: grid;
    min-height: 178px;
    align-content: space-between;
    padding: 20px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-md);
    background:
        radial-gradient(circle at 88% 12%, rgba(233, 168, 40, 0.22), transparent 7rem),
        rgba(255, 255, 255, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    border-color: rgba(233, 168, 40, 0.42);
    background:
        radial-gradient(circle at 88% 12%, rgba(233, 168, 40, 0.28), transparent 7rem),
        rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-weight: 950;
}

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

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.rank-no {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, var(--site-moon-300), var(--site-moon-500));
    font-weight: 950;
}

.rank-title {
    margin: 0;
    font-weight: 900;
}

.rank-meta {
    margin: 4px 0 0;
    color: var(--site-muted);
    font-size: 0.86rem;
}

.rank-score {
    color: var(--site-moon-300);
    font-weight: 950;
    white-space: nowrap;
}

.page-hero {
    padding: 54px 0 30px;
}

.page-card {
    padding: 34px;
    border: 1px solid var(--site-line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 95% 0%, rgba(233, 168, 40, 0.18), transparent 18rem),
        rgba(255, 255, 255, 0.07);
    box-shadow: var(--site-shadow);
}

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

.filter-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.82);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: #111827;
    border-color: transparent;
    background: var(--site-moon-500);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(680px, 100%);
    min-height: 52px;
    margin-top: 24px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.detail-hero {
    padding: 40px 0 34px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--site-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 8%, rgba(233, 168, 40, 0.18), transparent 18rem),
        rgba(255, 255, 255, 0.07);
    box-shadow: var(--site-shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

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

.player-section {
    padding: 34px 0;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.38);
    box-shadow: var(--site-shadow);
}

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

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(233, 168, 40, 0.22), transparent 17rem),
        rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

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

.play-badge {
    display: inline-grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, var(--site-moon-300), var(--site-moon-500));
    box-shadow: 0 18px 52px rgba(233, 168, 40, 0.35);
    font-size: 2.4rem;
    font-weight: 950;
}

.player-caption {
    padding: 20px 24px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 950;
}

.player-caption p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

.content-card {
    padding: 28px;
    border: 1px solid var(--site-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.07);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 1.48rem;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 18px;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.95;
}

.sidebar-card {
    position: sticky;
    top: 96px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.side-link:hover {
    border-color: rgba(233, 168, 40, 0.38);
    background: rgba(255, 255, 255, 0.1);
}

.side-link img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.side-link span {
    display: block;
    margin-top: 3px;
    color: var(--site-muted);
    font-size: 0.78rem;
}

.empty-state {
    display: none;
    padding: 36px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    color: var(--site-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
}

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

.site-footer {
    border-top: 1px solid var(--site-line);
    color: rgba(226, 232, 240, 0.72);
    background: rgba(5, 12, 22, 0.42);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
}

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

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

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

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

    .rank-panel,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .navbar {
        min-height: 64px;
    }

    .mobile-toggle {
        display: block;
    }

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

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

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

    .hero-slide {
        min-height: 570px;
    }

    .hero-content {
        padding: 78px 24px 58px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        right: 24px;
        bottom: 22px;
    }

    .quick-search {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .quick-search input {
        min-height: 44px;
    }

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

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

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

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

    .rank-score {
        grid-column: 2;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .detail-poster {
        max-width: 340px;
        margin: 0 auto;
    }

    .content-card {
        padding: 22px;
    }
}

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

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

    .card-title {
        min-height: auto;
    }
}
