:root {
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #0a0e1a;
    color: #e2e8f0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

.site-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 12%, rgba(14, 165, 233, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(56, 189, 248, 0.10), transparent 26rem),
        #0a0e1a;
}

.site-main {
    flex: 1;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 14, 26, 0.88);
    border-bottom: 1px solid rgba(12, 74, 110, 0.45);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
    font-size: 18px;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: white;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: #94a3b8;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #38bdf8;
    transform: translateY(-1px);
}

.site-search {
    position: relative;
    width: min(280px, 26vw);
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(12, 74, 110, 0.55);
    border-radius: 999px;
    outline: none;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.20);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(420px, 92vw);
    max-height: 520px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(12, 74, 110, 0.55);
    border-radius: 20px;
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

.search-result-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(15, 23, 42, 0.74);
}

.search-result-item img {
    width: 58px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.search-result-title {
    color: white;
    font-weight: 760;
}

.search-result-meta,
.search-result-desc {
    color: #94a3b8;
    font-size: 13px;
}

.search-empty {
    padding: 18px;
    color: #94a3b8;
    text-align: center;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.75);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-nav .nav-link {
    padding: 10px 0;
}

.hero-slider {
    position: relative;
    height: min(78vh, 760px);
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #0a0e1a 0%, rgba(10, 14, 26, 0.82) 40%, rgba(10, 14, 26, 0.35) 100%),
        linear-gradient(to right, rgba(10, 14, 26, 0.92), rgba(10, 14, 26, 0.15));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 110px 0 86px;
}

.hero-copy {
    width: min(760px, 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(2, 132, 199, 0.20);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    color: white;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-desc {
    max-width: 680px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.22);
    font-size: 14px;
    font-weight: 680;
}

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

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

.button-primary {
    color: white;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 14px 38px rgba(14, 165, 233, 0.30);
}

.button-primary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
}

.button-primary:hover {
    box-shadow: 0 18px 46px rgba(14, 165, 233, 0.42);
}

.button-ghost {
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(125, 211, 252, 0.24);
}

.slider-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: white;
    background: rgba(10, 14, 26, 0.62);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-control:hover {
    background: rgba(2, 132, 199, 0.82);
    transform: translateY(-50%) scale(1.04);
}

.slider-prev {
    left: 18px;
    transform: translateY(-50%);
}

.slider-next {
    right: 18px;
    transform: translateY(-50%);
}

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

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.85);
    transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
    width: 34px;
    background: #38bdf8;
}

.section-block {
    padding: 66px 0 0;
}

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

.section-title-group {
    display: grid;
    gap: 8px;
}

.section-kicker {
    color: #38bdf8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    color: white;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    color: #94a3b8;
    max-width: 680px;
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(12, 74, 110, 0.38);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.42);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.60);
    box-shadow: 0 24px 60px rgba(2, 132, 199, 0.16);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #020617;
}

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

.movie-card:hover .poster-wrap img,
.feature-card:hover .feature-poster img,
.related-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.96), transparent);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.88);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-title {
    color: white;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    color: #94a3b8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
    color: #bae6fd;
    font-size: 12px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.16);
}

.feature-list {
    display: grid;
    gap: 22px;
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    overflow: hidden;
    border: 1px solid rgba(12, 74, 110, 0.42);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.32));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.55);
}

.feature-poster {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

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

.feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 30px;
}

.feature-title {
    color: white;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.feature-desc {
    color: #cbd5e1;
    line-height: 1.85;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border: 1px solid rgba(12, 74, 110, 0.42);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.17), transparent 12rem),
        rgba(15, 23, 42, 0.50);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.60);
}

.category-index {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.category-title {
    margin-top: 18px;
    color: white;
    font-size: 26px;
    font-weight: 900;
}

.category-desc {
    margin-top: 10px;
    color: #94a3b8;
    line-height: 1.75;
}

.rank-list {
    display: grid;
    gap: 14px;
    counter-reset: rank;
}

.rank-item {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 62px 88px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(12, 74, 110, 0.35);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.44);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.55);
}

.rank-number::before {
    content: counter(rank, decimal-leading-zero);
    color: #38bdf8;
    font-size: 22px;
    font-weight: 900;
}

.rank-poster {
    width: 88px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

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

.rank-title {
    color: white;
    font-size: 18px;
    font-weight: 850;
}

.rank-desc {
    margin-top: 6px;
    color: #94a3b8;
    line-height: 1.6;
}

.rank-action {
    padding: 9px 15px;
    border-radius: 999px;
    color: #dff6ff;
    background: rgba(2, 132, 199, 0.22);
    font-weight: 760;
}

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

.page-title {
    color: white;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-desc {
    max-width: 780px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #38bdf8;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(12, 74, 110, 0.36);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.42);
}

.filter-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(12, 74, 110, 0.48);
    border-radius: 14px;
    outline: none;
    color: white;
    background: rgba(10, 14, 26, 0.70);
}

.filter-control:focus {
    border-color: #0284c7;
}

.filter-empty {
    display: none;
    padding: 30px;
    color: #94a3b8;
    text-align: center;
    border: 1px solid rgba(12, 74, 110, 0.35);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.38);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(12, 74, 110, 0.46);
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.player-area video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    cursor: pointer;
    overflow: hidden;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.12));
}

.player-start {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.45);
    font-size: 30px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
    transform: scale(1.06);
    background: rgba(14, 165, 233, 0.98);
}

.player-title-row {
    padding: 20px 22px 22px;
}

.detail-title {
    color: white;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.detail-panel {
    padding: 22px;
    border: 1px solid rgba(12, 74, 110, 0.42);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.46);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #020617;
}

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

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

.detail-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(12, 74, 110, 0.28);
}

.detail-meta-row span:first-child {
    color: #94a3b8;
}

.detail-meta-row span:last-child {
    color: #e0f2fe;
    text-align: right;
}

.prose-card {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(12, 74, 110, 0.38);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.38);
}

.prose-card h2 {
    color: white;
    font-size: 26px;
    font-weight: 900;
}

.prose-card p {
    margin-top: 16px;
    color: #cbd5e1;
    line-height: 2;
}

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

.related-card {
    overflow: hidden;
    border: 1px solid rgba(12, 74, 110, 0.34);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.42);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.55);
}

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

.site-footer {
    margin-top: 74px;
    border-top: 1px solid rgba(12, 74, 110, 0.34);
    background: rgba(10, 14, 26, 0.84);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-links a:hover {
    color: #38bdf8;
}

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

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

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

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

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-panel .site-search {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-slider {
        min-height: 600px;
        height: 74vh;
    }

    .hero-content {
        padding: 96px 0 86px;
    }

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

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

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

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

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

    .rank-action {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
    }
}

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

    .header-inner {
        height: 66px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-slider {
        min-height: 560px;
    }

    .slider-control {
        display: none;
    }

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

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

    .feature-body,
    .prose-card,
    .detail-panel {
        padding: 20px;
    }

    .rank-item {
        grid-template-columns: 38px 62px 1fr;
        gap: 12px;
    }

    .rank-poster {
        width: 62px;
    }
}
