:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-900: #1e3a8a;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --amber-50: #fffbeb;
    --orange-50: #fff7ed;
    --white: #ffffff;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan-500), #2563eb);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.2);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: #111827;
    padding: 10px 16px 16px;
}

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

.hero-carousel {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.72) 43%, rgba(15, 23, 42, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    padding: 88px 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-label {
    padding: 8px 16px;
    margin-bottom: 22px;
    color: #22d3ee;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan-500), #2563eb);
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.28);
}

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

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.primary-btn.small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 14px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 84px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.48);
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 54px;
    background: #22d3ee;
}

.hero-search {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 20px;
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
}

.hero-search button,
.hero-search a {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan-500), #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-search a {
    background: rgba(255, 255, 255, 0.13);
}

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

.white-section,
.soft-section,
.warm-section,
.more-section,
.dark-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
}

.white-section {
    background: #fff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.warm-section {
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50), #fff1f2);
}

.more-section,
.dark-section {
    color: #fff;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900), #0b255e);
}

.section-head,
.center-head,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.center-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.section-head h2,
.center-head h2,
.category-overview-head h2,
.detail-article h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

.light-head h2,
.light-head p {
    color: #fff;
}

.section-head a,
.category-overview-head a {
    color: var(--cyan-600);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.poster img,
.rank-thumb img,
.mini-card img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover .poster img,
.rank-item:hover .rank-thumb img,
.mini-card:hover img {
    transform: scale(1.08);
}

.poster::after,
.mini-card::after,
.rank-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 58%);
    opacity: 0.8;
}

.play-badge,
.year-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    left: 14px;
    bottom: 14px;
    padding: 8px 13px;
    background: linear-gradient(90deg, var(--cyan-500), #2563eb);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(2, 6, 23, 0.7);
}

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

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.card-tags span,
.detail-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.rank-content h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover {
    color: var(--cyan-600);
}

.movie-card p,
.rank-content p,
.center-head p,
.category-card p,
.category-overview-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.card-meta {
    margin-top: 15px;
}

.card-meta span {
    color: #64748b;
    background: #f1f5f9;
}

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

.category-card,
.category-overview-card {
    display: block;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: 0.25s ease;
}

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

.category-name {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.category-preview {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
}

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

.rank-list {
    grid-template-columns: 1fr;
    width: min(980px, 100%);
    margin: 0 auto;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 138px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.rank-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.dark-section .rank-content h2,
.ranking-page-section .rank-content h2 {
    color: #fff;
}

.rank-content p {
    color: #cbd5e1;
}

.rank-meta span {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
}

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

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

.mini-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
}

.mini-card span {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--slate-950), var(--blue-900), var(--slate-900));
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero h1 {
    max-width: 820px;
    margin: 8px 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 26px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.hidden-by-filter {
    display: none !important;
}

.detail-main {
    background: #f8fafc;
}

.detail-hero {
    padding: 28px max(16px, calc((100% - 1180px) / 2)) 44px;
    color: #fff;
    background: radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.25), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-900), #0b255e);
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 26px;
    align-items: stretch;
}

.detail-player-card,
.detail-info-card,
.detail-article {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.28);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.2));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan-500), #2563eb);
    box-shadow: 0 20px 36px rgba(6, 182, 212, 0.42);
}

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

.detail-info-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

.detail-cover {
    overflow: hidden;
    min-height: 260px;
    border-radius: 18px;
    background: #0f172a;
}

.detail-info h1 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.detail-meta span {
    color: #475569;
    background: #f1f5f9;
}

.detail-text-section {
    padding-top: 46px;
}

.detail-article {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 34px;
    color: #111827;
    background: #fff;
}

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

.detail-article p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
    text-align: justify;
}

.detail-article .lead-text {
    color: #0f172a;
    font-size: 19px;
    font-weight: 750;
}

.site-footer {
    color: #cbd5e1;
    background: #020617;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 34px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-about p,
.footer-links a,
.footer-links span {
    display: block;
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 8px;
}

.footer-links h2 {
    margin: 0 0 13px;
    color: #fff;
    font-size: 16px;
    font-weight: 850;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    font-size: 14px;
}

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

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-carousel,
    .hero-content {
        min-height: 640px;
    }

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

    .hero-dots {
        bottom: 132px;
    }

    .section,
    .white-section,
    .soft-section,
    .warm-section,
    .more-section,
    .dark-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

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

    .movie-grid,
    .archive-grid,
    .compact-grid,
    .related-grid,
    .rank-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 106px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 13px;
    }

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

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

    .detail-cover {
        min-height: 220px;
    }

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

@media (max-width: 480px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-meta span,
    .card-meta span,
    .rank-meta span {
        font-size: 12px;
    }

    .movie-card-body,
    .category-card,
    .category-overview-card,
    .detail-article {
        padding: 18px;
    }
}
