:root {
    --frost-50: #f0f9ff;
    --frost-100: #e0f2fe;
    --frost-500: #0ea5e9;
    --frost-600: #0284c7;
    --frost-700: #0369a1;
    --frost-800: #075985;
    --frost-900: #0c4a6e;
    --ice-50: #ecfeff;
    --ice-200: #a5f3fc;
    --ice-400: #22d3ee;
    --ice-500: #06b6d4;
    --ice-600: #0891b2;
    --ice-900: #164e63;
    --silver-50: #f8fafc;
    --silver-100: #f1f5f9;
    --silver-200: #e2e8f0;
    --silver-300: #cbd5e1;
    --silver-400: #94a3b8;
    --silver-500: #64748b;
    --silver-600: #475569;
    --silver-700: #334155;
    --silver-800: #1e293b;
    --silver-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--silver-900);
    background: linear-gradient(180deg, var(--silver-50), var(--white));
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-900), var(--frost-800), var(--ice-900));
    box-shadow: var(--shadow-soft);
}

.nav-wrap {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ice-400), var(--frost-500));
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28);
}

.logo-text {
    background: linear-gradient(90deg, var(--ice-200), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ice-200);
}

.nav-toggle {
    display: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--frost-800);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--white);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    position: relative;
    height: 74vh;
    min-height: 520px;
    overflow: hidden;
    color: var(--white);
    background: var(--silver-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--silver-200);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--frost-600);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 650;
    color: var(--frost-700);
    background: var(--frost-100);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: var(--silver-200);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.48);
    backdrop-filter: blur(10px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    background: linear-gradient(90deg, var(--frost-500), var(--ice-500));
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.36);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 800;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--white);
}

.section {
    padding: 58px 0;
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--silver-600);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

.card {
    overflow: hidden;
    border: 1px solid var(--silver-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--silver-200), var(--frost-100));
}

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

.card:hover .poster img {
    transform: scale(1.08);
}

.poster-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
    opacity: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 16px;
    color: var(--white);
    transition: opacity 0.2s ease;
}

.card:hover .poster-cover {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--silver-500);
    font-size: 12px;
}

.card-desc {
    margin: 0;
    color: var(--silver-600);
    font-size: 13px;
    line-height: 1.6;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: var(--silver-900);
    border: 1px solid var(--silver-200);
    background: linear-gradient(135deg, var(--white), var(--frost-50));
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--silver-600);
}

.page-hero {
    padding: 64px 0 44px;
    color: var(--white);
    background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(135deg, var(--frost-900), var(--ice-900));
}

.page-hero h1 {
    margin: 0 0 14px;
    max-width: 880px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--silver-200);
    font-size: 18px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--silver-200);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--silver-300);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--silver-800);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--frost-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-panel button {
    border-radius: 16px;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    cursor: pointer;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--silver-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-no {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
}

.rank-thumb {
    width: 86px;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--silver-600);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.82fr);
    gap: 34px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--silver-900);
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--black);
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    z-index: 2;
}

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

.play-button {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.36);
}

.detail-panel {
    padding: 24px;
    border: 1px solid var(--silver-200);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-panel h2,
.detail-panel h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-panel p {
    margin: 0 0 14px;
    color: var(--silver-700);
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--silver-200);
}

.info-list strong {
    color: var(--silver-900);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.tags span {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--frost-700);
    background: var(--frost-100);
}

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

.footer {
    margin-top: 56px;
    color: var(--silver-300);
    background: linear-gradient(180deg, var(--silver-900), var(--frost-900));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.footer h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer p,
.footer li {
    color: var(--silver-400);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    text-align: center;
    color: var(--silver-400);
}

.empty-state {
    display: none;
    padding: 28px;
    border: 1px dashed var(--silver-300);
    border-radius: 24px;
    color: var(--silver-600);
    text-align: center;
    background: var(--white);
}

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

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

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

    .detail-wrap {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero {
        height: 72vh;
        min-height: 560px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 86px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.86));
    }

    .hero-control {
        display: none;
    }

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

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

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

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

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

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .rank-no {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .rank-thumb {
        width: 72px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container,
    .nav-wrap,
    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .movie-grid,
    .related-grid {
        gap: 14px;
    }

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