:root {
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --teal-50: #f0fdfa;
    --teal-600: #0d9488;
    --emerald-600: #059669;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
    --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;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan-700);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600), var(--emerald-600));
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.28);
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: var(--white);
    background: var(--cyan-600);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600), var(--emerald-600));
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(6px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto auto -28% -12%;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(165, 243, 252, 0.2);
    filter: blur(8px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 48px;
    align-items: center;
    min-height: 640px;
    padding: 72px 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cyan-50);
    font-weight: 700;
}

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

.hero h1 span {
    display: block;
    color: var(--cyan-200);
}

.hero-text {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--cyan-50);
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 2px solid transparent;
    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: var(--cyan-700);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background: var(--cyan-50);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
}

.hero-search {
    display: flex;
    max-width: 620px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.hero-search button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--cyan-700);
    background: var(--white);
    font-weight: 800;
}

.hero-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(10px);
}

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

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

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

.hero-slide-content {
    position: absolute;
    inset: auto 0 0;
    padding: 80px 26px 26px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.86));
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-slide-content p {
    display: -webkit-box;
    margin: 0 0 16px;
    color: var(--cyan-50);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--cyan-50);
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.slider-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    width: 28px;
    background: var(--white);
}

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

.stat-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.stat-card span {
    color: var(--cyan-100);
    font-size: 13px;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: var(--white);
}

.section.tint {
    background: linear-gradient(135deg, var(--cyan-50), var(--teal-50));
}

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

.section-title {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.more-link,
.watch-link {
    color: var(--cyan-600);
    font-weight: 800;
}

.more-link:hover,
.watch-link:hover {
    color: var(--cyan-700);
}

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

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

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

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

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

.category-card,
.feature-card,
.movie-card,
.detail-card,
.filter-panel,
.list-panel {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.category-card,
.feature-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.feature-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon,
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
    font-size: 24px;
}

.category-card h2,
.category-card h3,
.feature-card h2,
.feature-card h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 20px;
}

.category-card p,
.feature-card p {
    margin: 0;
    color: var(--gray-600);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gray-100);
}

.movie-card.compact .poster-link {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.07);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--cyan-600);
    font-size: 13px;
    font-weight: 800;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: linear-gradient(135deg, var(--teal-600), var(--emerald-600));
}

.movie-card-body {
    padding: 18px;
}

.movie-meta {
    margin-bottom: 8px;
    color: var(--cyan-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card p,
.card-tags {
    display: -webkit-box;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    color: var(--gray-500);
    font-size: 13px;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600), var(--emerald-600));
}

.page-hero-inner {
    padding: 58px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--cyan-50);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-input-wrap {
    position: relative;
}

.filter-input-wrap span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.filter-input,
.filter-selects select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    outline: 0;
    color: var(--gray-800);
    background: var(--white);
}

.filter-input {
    padding: 0 44px 0 16px;
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.filter-selects select {
    min-width: 150px;
    padding: 0 14px;
}

.empty-result {
    display: none;
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--gray-500);
    text-align: center;
}

.empty-result.show {
    display: block;
}

.is-hidden {
    display: none !important;
}

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

.breadcrumb a {
    color: var(--cyan-600);
    font-weight: 700;
}

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

.detail-card {
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: var(--cyan-600);
    box-shadow: 0 18px 38px rgba(8, 145, 178, 0.35);
    font-size: 34px;
    text-indent: 4px;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 16px;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gray-600);
}

.detail-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--gray-100);
    font-size: 14px;
    font-weight: 700;
}

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

.tag {
    color: var(--cyan-700);
    background: var(--cyan-50);
}

.detail-section {
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
}

.detail-section h2 {
    margin: 0 0 10px;
    color: var(--gray-800);
    font-size: 23px;
}

.detail-section p {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.detail-section .lead {
    color: var(--cyan-600);
    font-weight: 800;
}

.side-poster {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow);
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--gray-100);
}

.side-poster div {
    padding: 18px;
}

.side-poster h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.side-poster p {
    margin: 0 0 8px;
    color: var(--gray-600);
}

.related-section {
    margin-top: 34px;
}

.list-panel {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--emerald-600));
    font-weight: 900;
}

.rank-row img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--gray-100);
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.site-footer p,
.site-footer li {
    margin: 0;
    color: var(--gray-400);
    font-size: 14px;
}

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

.site-footer a:hover {
    color: var(--cyan-200);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    text-align: center;
    font-size: 14px;
}

.keyword-line {
    line-height: 1.9;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--cyan-600);
    box-shadow: var(--shadow-lg);
    font-size: 24px;
}

.back-top.show {
    display: block;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .hero-inner {
        min-height: auto;
        padding: 48px 0;
    }

    .hero-actions,
    .hero-search {
        flex-direction: column;
    }

    .hero-slider,
    .hero-slide img {
        min-height: 360px;
    }

    .stat-grid,
    .category-grid,
    .movie-grid,
    .movie-grid.compact-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-selects {
        flex-direction: column;
    }

    .section-head {
        display: block;
    }

    .rank-row {
        grid-template-columns: 44px 74px minmax(0, 1fr);
    }

    .rank-row img {
        width: 74px;
        height: 74px;
    }

    .rank-row .watch-link {
        grid-column: 3;
    }
}
