@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;800&display=swap");

:root {
    color-scheme: dark;
    --ice-950: #020617;
    --ice-925: #07111f;
    --ice-900: #0f172a;
    --ice-850: #172033;
    --ice-800: #1e293b;
    --ice-700: #334155;
    --ice-500: #64748b;
    --ice-400: #94a3b8;
    --ice-300: #cbd5e1;
    --ice-100: #f1f5f9;
    --frost-700: #0369a1;
    --frost-600: #0284c7;
    --frost-500: #0ea5e9;
    --frost-400: #38bdf8;
    --glacier-500: #06b6d4;
    --glow: rgba(14, 165, 233, 0.35);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.26);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 8%, rgba(6, 182, 212, 0.12), transparent 28rem),
        linear-gradient(180deg, var(--ice-950), #050b17 54%, var(--ice-950));
    color: var(--ice-100);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

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

.brand-text strong {
    color: white;
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

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

.nav-link,
.mobile-link {
    color: var(--ice-300);
    border-radius: 12px;
    transition: 0.25s ease;
}

.nav-link {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(14, 165, 233, 0.16);
    color: white;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--ice-100);
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 74vh;
    background: var(--ice-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 4s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.36) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 46%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1240px) / 2));
    bottom: 124px;
    width: min(720px, calc(100% - 48px));
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--frost-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 16px;
    color: white;
    font-size: clamp(36px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
}

.hero-content p,
.page-hero p,
.detail-info p {
    width: min(680px, 100%);
    color: var(--ice-300);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: var(--ice-300);
    backdrop-filter: blur(12px);
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    padding: 7px 11px;
    font-size: 13px;
}

.card-meta span {
    padding: 5px 8px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.section-action,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--frost-600), var(--glacier-500));
    color: white;
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(2, 132, 199, 0.42);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.62);
    color: white;
}

.btn-ghost:hover,
.section-action:hover,
.text-link:hover {
    border-color: rgba(56, 189, 248, 0.48);
    color: white;
    background: rgba(14, 165, 233, 0.14);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--frost-400);
}

.hero-search-card {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -64px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-search-card h2,
.section-heading h2,
.content-card h2,
.side-card h2,
.category-card h2 {
    margin: 8px 0 0;
    color: white;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.home-search,
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search input,
.search-box input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    outline: 0;
    background: rgba(2, 6, 23, 0.56);
    color: white;
    padding: 0 16px;
}

.home-search button {
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--frost-600);
    color: white;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.section {
    padding: 82px 0;
}

.section-soft {
    background: rgba(15, 23, 42, 0.42);
}

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

.section-heading p {
    margin: 10px 0 0;
    color: var(--ice-400);
    line-height: 1.7;
}

.section-action,
.text-link {
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--frost-400);
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: var(--ice-900);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.45s ease;
    z-index: -2;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
    z-index: -1;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile p {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 72px;
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.category-tile p {
    bottom: 18px;
    margin: 0;
    color: var(--ice-300);
    font-size: 13px;
    line-height: 1.6;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.poster,
.poster-wide {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ice-800);
}

.poster {
    aspect-ratio: 3 / 4;
}

.poster-wide {
    aspect-ratio: 16 / 9;
}

.poster img,
.poster-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.06);
}

.rating,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.rating {
    top: 12px;
    right: 12px;
    min-width: 44px;
    height: 28px;
    background: rgba(2, 6, 23, 0.74);
    color: #facc15;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #111827;
    font-size: 14px;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card h3 a:hover {
    color: var(--frost-400);
}

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

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--ice-900);
}

.page-hero-small {
    min-height: 320px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 22% 20%, rgba(14, 165, 233, 0.24), transparent 28rem),
        linear-gradient(135deg, var(--ice-900), var(--ice-950));
}

.page-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.5)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 98px 0 72px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 430px) 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.68);
}

.search-box {
    position: relative;
}

.search-box span {
    color: var(--ice-300);
    font-size: 14px;
    font-weight: 800;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.filter-chip {
    min-height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    color: var(--ice-300);
    padding: 0 14px;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.18);
    color: white;
}

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

.category-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow-card);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 230px;
    overflow: hidden;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px;
}

.category-card-body p {
    margin: 0;
    color: var(--ice-400);
    line-height: 1.8;
}

.detail-hero {
    min-height: 620px;
}

.detail-bg {
    opacity: 0.86;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: end;
    padding: 92px 0 70px;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ice-400);
    font-size: 14px;
}

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

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

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card,
.content-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.44));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frost-500), var(--glacier-500));
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.38);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 26px;
    border-left: 24px solid white;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
}

.content-card,
.side-card {
    padding: 24px;
}

.content-card p {
    color: var(--ice-300);
    font-size: 16px;
    line-height: 1.95;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 16px;
    margin: 18px 0 0;
}

.side-card dt {
    color: var(--ice-500);
}

.side-card dd {
    margin: 0;
    color: var(--ice-200);
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-list .movie-card {
    display: grid;
    grid-template-columns: 94px 1fr;
}

.side-list .poster {
    aspect-ratio: 3 / 4;
}

.side-list .movie-card p,
.side-list .card-meta {
    display: none;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand p,
.footer-links a {
    color: var(--ice-400);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 18px;
}

.footer-links a:hover {
    color: var(--frost-400);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--ice-500);
    text-align: center;
}

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

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

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

    .detail-cover {
        width: min(330px, 100%);
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-stage {
        min-height: 680px;
    }

    .hero-content {
        bottom: 150px;
    }

    .hero-search-card,
    .filter-panel,
    .footer-grid,
    .category-card {
        grid-template-columns: 1fr;
    }

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

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

    .filter-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1240px);
    }

    .brand-text small {
        display: none;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-info p {
        font-size: 15px;
    }

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

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

    .home-search {
        display: grid;
    }

    .side-list .movie-card {
        grid-template-columns: 82px 1fr;
    }
}
