:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --blue-900: #1e3a8a;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --orange-500: #f97316;
    --yellow-400: #facc15;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: rgba(148, 163, 184, 0.22);
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #eef7ff 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
}

.header-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--cyan-300);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
}

.nav-link,
.mobile-nav a {
    color: rgba(226, 232, 240, 0.86);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav.open {
    display: grid;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 48%, #155e75);
}

.hero-ambient {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.5), transparent 28%), radial-gradient(circle at 80% 25%, rgba(37, 99, 235, 0.48), transparent 30%);
    animation: ambientPulse 5s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.44;
        transform: scale(1.02);
    }
}

.hero-slider {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 600px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 40px;
    padding: 64px 0 96px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #0e7490;
    background: rgba(34, 211, 238, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.hero .hero-kicker,
.detail-hero .hero-kicker {
    color: var(--cyan-300);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-content h1,
.compact-hero h1,
.detail-copy h1 {
    margin-top: 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-content p,
.compact-hero p,
.detail-one-line {
    max-width: 720px;
    margin-top: 22px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

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

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.button-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-stats span {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-poster img,
.detail-poster,
.movie-cover,
.rank-card img,
.mini-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 52px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 56px;
    background: #ffffff;
}

.hero-strip {
    position: relative;
    z-index: 3;
    width: min(1280px, calc(100% - 32px));
    margin: -74px auto 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-strip-title {
    display: grid;
    align-content: center;
    gap: 4px;
}

.hero-strip-title strong {
    font-size: 18px;
}

.hero-strip-title span {
    color: var(--muted);
    font-size: 13px;
}

.mini-poster-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.mini-poster {
    position: relative;
    min-height: 150px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--slate-900);
}

.mini-poster span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.section,
.category-overview-list {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-overlap {
    padding-top: 112px;
}

.page-section {
    padding-top: 40px;
}

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head h2,
.category-overview-copy h2,
.story-card h2 {
    margin-top: 10px;
    color: var(--slate-900);
    font-size: clamp(26px, 3.3vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-link,
.pager-links a {
    color: var(--blue-600);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--slate-900);
    outline: none;
}

.search-box input:focus,
.filter-select:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

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

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.15);
}

.movie-cover-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-cover {
    transition: transform 0.4s ease;
}

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

.movie-rating,
.movie-type {
    position: absolute;
    top: 10px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-rating {
    right: 10px;
    background: rgba(250, 204, 21, 0.92);
    color: #422006;
}

.movie-type {
    left: 10px;
    background: rgba(15, 23, 42, 0.68);
}

.movie-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.movie-name {
    overflow: hidden;
    color: var(--slate-900);
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-line {
    min-height: 42px;
    color: var(--muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}

.category-section {
    padding-top: 18px;
}

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

.category-card,
.category-overview-card,
.story-card,
.rank-panel,
.latest-panel,
.rank-movie-area {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 205px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(37, 99, 235, 0.14);
}

.category-card strong {
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-copy p,
.story-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    color: #0e7490;
    font-size: 13px;
    font-weight: 800;
}

.split-section,
.rank-layout,
.detail-text-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 28px;
}

.rank-panel,
.latest-panel,
.rank-movie-area,
.story-card {
    padding: 24px;
}

.rank-panel.wide {
    align-self: start;
    position: sticky;
    top: 104px;
}

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

.rank-list-large {
    max-height: 900px;
    overflow: auto;
    padding-right: 4px;
}

.rank-card {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 10px;
    border-radius: 20px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.rank-card img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.rank-number {
    color: var(--blue-600);
    font-size: 16px;
    font-weight: 900;
}

.rank-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-body strong {
    overflow: hidden;
    color: var(--slate-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-body span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 900;
}

.page-hero {
    min-height: 310px;
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 56%, #155e75);
    color: #ffffff;
}

.compact-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.category-overview-list {
    display: grid;
    gap: 26px;
    padding-top: 52px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 0.48fr 1fr;
    gap: 24px;
    padding: 24px;
}

.category-overview-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.category-overview-copy > span {
    color: #0e7490;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.detail-hero {
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(226, 232, 240, 0.8);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    margin-top: 36px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.detail-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.76));
    text-align: center;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.3);
    font-size: 34px;
    transform: translateX(3px);
}

.play-overlay strong {
    padding: 0 18px;
    font-size: clamp(18px, 2.5vw, 28px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.detail-section {
    padding-bottom: 30px;
}

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

.story-card p {
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.pager-links {
    display: flex;
    gap: 16px;
}

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: rgba(226, 232, 240, 0.78);
}

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
    font-weight: 800;
}

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .split-section,
    .rank-layout,
    .detail-text-section,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .rank-panel.wide {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-shell {
        min-height: 66px;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slider {
        height: 700px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 38px 0 112px;
    }

    .hero-poster {
        justify-self: start;
        width: min(260px, 72vw);
    }

    .hero-strip {
        grid-template-columns: 1fr;
        margin-top: -54px;
    }

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

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

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

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

    .detail-poster {
        width: min(260px, 70vw);
    }

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .section,
    .category-overview-list,
    .hero-slider,
    .hero-strip,
    .detail-shell,
    .compact-hero > div,
    .header-shell,
    .footer-shell {
        width: min(100% - 20px, 1280px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-content h1,
    .compact-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-content p,
    .compact-hero p,
    .detail-one-line {
        font-size: 15px;
    }

    .filter-row,
    .category-grid,
    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four,
    .movie-grid-three {
        grid-template-columns: 1fr;
    }

    .movie-card {
        flex-direction: row;
    }

    .movie-cover-wrap {
        width: 118px;
        min-width: 118px;
        aspect-ratio: 2 / 3;
    }

    .movie-line {
        min-height: 36px;
    }

    .rank-card {
        grid-template-columns: 32px 52px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .player-shell {
        border-radius: 20px;
    }
}
