:root {
    --dark: #0a0e1a;
    --dark-soft: #0f172a;
    --dark-card: rgba(15, 23, 42, 0.56);
    --dark-lighter: #131827;
    --primary: #38bdf8;
    --primary-strong: #0284c7;
    --primary-soft: rgba(56, 189, 248, 0.16);
    --text: #ffffff;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --border: rgba(12, 74, 110, 0.36);
    --shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.desktop-nav a,
.mobile-panel a {
    color: var(--muted-strong);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--primary);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 230px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
    border-color: var(--primary-strong);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--primary-strong);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    color: var(--muted-strong);
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--border);
    padding: 16px;
    background: rgba(10, 14, 26, 0.98);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    width: 100%;
}

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

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.42);
}

.hero {
    position: relative;
    min-height: 82vh;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34%), var(--dark);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: scale(1.03);
}

img.is-empty {
    opacity: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0e1a 8%, rgba(10, 14, 26, 0.78) 44%, rgba(10, 14, 26, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 118px;
    padding-top: 110px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
    margin: 18px 0 0;
    font-size: clamp(34px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.hero h2 {
    font-size: clamp(30px, 5vw, 58px);
}

.hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted-strong);
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta {
    margin: 26px 0 0;
}

.hero-meta span,
.detail-meta span,
.movie-card__meta span {
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: var(--shadow);
}

.btn-ghost {
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: var(--primary-strong);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 82px;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(203, 213, 225, 0.55);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--primary);
}

.hero-chips {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    z-index: 7;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-chips a {
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    transition: color 0.2s ease, border 0.2s ease;
}

.hero-chips a:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.62);
}

.page-main {
    padding-top: 76px;
    min-height: 72vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.28), transparent 28%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 14, 26, 1));
    border-bottom: 1px solid var(--border);
}

.compact-hero .container {
    padding: 74px 0 56px;
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: rgba(15, 23, 42, 0.28);
    border-top: 1px solid rgba(12, 74, 110, 0.22);
    border-bottom: 1px solid rgba(12, 74, 110, 0.22);
}

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

.section-head h2 {
    margin: 14px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-head p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(12, 74, 110, 0.28);
    border-radius: 16px;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.94));
}

.movie-card__poster img,
.feature-card__poster img,
.rank-item__poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.movie-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.9);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.92);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card__body {
    padding: 14px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.feature-card h3 a:hover {
    color: var(--primary);
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card__meta span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.feature-card {
    display: grid;
    grid-template-columns: minmax(220px, 38%) 1fr;
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feature-card__poster {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.94));
}

.feature-card__poster span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.9);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.feature-card__content {
    padding: 28px;
}

.feature-card h3 {
    margin: 18px 0 12px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.15;
}

.feature-card p {
    margin: 0 0 18px;
    color: var(--muted-strong);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    color: var(--muted-strong);
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 800;
}

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

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

.category-card {
    min-height: 150px;
    padding: 22px;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.16), transparent 42%), var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 850;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.rank-preview {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
    gap: 34px;
    align-items: start;
}

.rank-preview h2 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 5vw, 46px);
}

.rank-preview p {
    margin: 0 0 26px;
    color: var(--muted-strong);
}

.rank-stack,
.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border 0.2s ease, transform 0.2s ease;
}

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

.rank-item__num {
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item__poster {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.94));
    border-radius: 12px;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-panel button {
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-panel button:hover,
.filter-panel button.is-active {
    color: #ffffff;
    background: var(--primary-strong);
    border-color: rgba(56, 189, 248, 0.52);
}

.search-page-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin-top: 26px;
}

.search-page-form input {
    width: 100%;
}

.search-title {
    margin-bottom: 22px;
    color: var(--muted-strong);
    font-size: 18px;
}

.detail-hero {
    padding: 86px 0 64px;
    background: radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.22), transparent 32%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 14, 26, 1));
    border-bottom: 1px solid var(--border);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.94));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
}

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

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
}

.detail-intro p {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--muted-strong);
    font-size: 19px;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-intro .btn {
    margin-top: 24px;
}

.player-card {
    overflow: hidden;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12));
    border: 0;
    cursor: pointer;
}

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

.play-layer span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    background: rgba(14, 165, 233, 0.92);
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 34px;
}

.detail-article {
    max-width: 900px;
}

.detail-article h2 {
    margin: 0 0 16px;
    font-size: 30px;
}

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

.detail-article p {
    margin: 0 0 16px;
    color: var(--muted-strong);
    font-size: 18px;
}

.site-footer {
    background: rgba(6, 10, 20, 0.98);
    border-top: 1px solid var(--border);
    padding-top: 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.footer-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(12, 74, 110, 0.26);
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        min-height: 76vh;
        padding-bottom: 134px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .detail-poster {
        width: min(320px, 100%);
    }

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

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

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .section {
        padding: 44px 0;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .rank-item {
        grid-template-columns: 42px 62px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rank-item__num {
        font-size: 20px;
    }

    .search-page-form {
        flex-direction: column;
    }

    .detail-hero {
        padding-top: 60px;
    }

    .play-layer span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
