:root {
    color-scheme: light;
    --brand-blue: #2563eb;
    --brand-blue-dark: #1e40af;
    --brand-cyan: #0891b2;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.logo-text {
    letter-spacing: -0.03em;
}

.nav-link {
    position: relative;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-cyan);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.35rem;
    height: 0.18rem;
    border-radius: 999px;
    background: var(--brand-cyan);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 0.25rem 0.3rem 0.25rem 0.75rem;
}

.nav-search input {
    width: 11rem;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.88rem;
    color: #334155;
}

.nav-search button,
.primary-button,
.secondary-button,
.filter-button {
    border: 0;
    cursor: pointer;
}

.nav-search button {
    border-radius: 999px;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.mobile-panel {
    display: none;
}

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

.hero-stage {
    position: relative;
    height: 540px;
    width: 100%;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 43rem;
    color: #ffffff;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 0.35rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0 0 1rem;
}

.hero-desc {
    color: #e5e7eb;
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 44rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-meta {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #d1d5db;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    padding: 0.85rem 1.35rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.32);
}

.primary-button:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-1px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 1rem;
    height: 0.26rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.section-wrap {
    padding: 4rem 1rem;
}

.section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.7rem;
}

.section-kicker {
    color: var(--brand-blue);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.section-subtitle {
    margin: 0.65rem 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-grid.compact {
    gap: 1rem;
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
}

.poster-frame {
    position: relative;
    height: 15rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 0.45rem;
    background: var(--brand-blue);
    color: #ffffff;
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-body {
    padding: 1rem;
}

.card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 850;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7rem;
}

.movie-card:hover .card-title {
    color: var(--brand-blue);
}

.card-desc {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.95rem;
}

.card-meta {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: #64748b;
    font-size: 0.82rem;
}

.card-tags {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.22rem 0.52rem;
    font-size: 0.74rem;
    font-weight: 700;
}

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

@media (min-width: 768px) {
    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .category-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.category-tile {
    display: block;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.category-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 1rem;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
}

.category-tile p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-size: 0.9rem;
}

.feature-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .feature-strip {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.rank-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem 5.2rem 1fr;
    gap: 0.9rem;
    align-items: center;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.rank-num {
    font-size: 1.35rem;
    font-weight: 950;
    color: var(--brand-blue);
    text-align: center;
}

.rank-poster {
    width: 5.2rem;
    height: 4rem;
    border-radius: 0.75rem;
    object-fit: cover;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.rank-title {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-weight: 850;
}

.rank-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .filter-panel {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
    }
}

.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.78rem 0.85rem;
    background: #ffffff;
    color: #334155;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.filter-button {
    border-radius: 0.75rem;
    padding: 0.78rem 1rem;
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0891b2);
    color: #ffffff;
    padding: 5rem 1rem;
}

.page-hero-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

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

.page-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.page-desc {
    max-width: 55rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    font-size: 1.05rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 22rem;
    }
}

.player-card,
.content-card,
.side-card {
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

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

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.94);
    color: #ffffff;
    padding: 0.9rem 1.35rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.34);
}

.player-box.is-playing .player-button {
    display: none;
}

.player-info {
    padding: 1rem 1.2rem 1.2rem;
}

.player-info h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 900;
}

.player-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.content-card {
    padding: 1.4rem;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}

.content-card p {
    color: #334155;
    line-height: 1.95;
    margin: 0 0 1rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    .meta-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.meta-item {
    border-radius: 0.9rem;
    background: #f8fafc;
    padding: 0.8rem;
}

.meta-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.28rem;
}

.meta-value {
    color: #0f172a;
    font-weight: 850;
}

.side-card {
    padding: 1rem;
}

.related-link {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 0.9rem;
    transition: background 0.18s ease;
}

.related-link:hover {
    background: #f1f5f9;
}

.related-link img {
    width: 4.5rem;
    height: 3.4rem;
    object-fit: cover;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.related-link h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 850;
    color: #0f172a;
}

.related-link p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

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

.empty-state {
    display: none;
    border-radius: 1rem;
    background: #ffffff;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

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

.footer-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #38bdf8;
}

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

    .nav-link.is-active::after {
        display: none;
    }

    .hero-stage {
        height: 620px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 5.5rem;
    }

    .hero-control {
        display: none;
    }

    .section-head {
        display: block;
    }

    .poster-frame {
        height: 17rem;
    }

    .rank-row {
        grid-template-columns: 2.4rem 4.2rem 1fr;
    }

    .rank-poster {
        width: 4.2rem;
        height: 3.4rem;
    }
}
