:root {
    color-scheme: dark;
    --bg: #0d0f12;
    --bg-deep: #050607;
    --panel: #1a1d23;
    --panel-soft: #21252b;
    --line: #2b3038;
    --text: #f7f7f8;
    --muted: #a8b0bd;
    --muted-deep: #6d7480;
    --blood: #e63946;
    --blood-deep: #c1121f;
    --gold: #eab308;
    --glow: 0 0 20px rgba(255, 77, 77, 0.3);
    --radius: 18px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(230, 57, 70, 0.16), transparent 30rem),
        linear-gradient(180deg, #0d0f12 0%, #08090b 100%);
    color: var(--text);
}

img {
    background: #111418;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(43, 48, 56, 0.9);
    background: rgba(13, 15, 18, 0.94);
    backdrop-filter: blur(12px);
}

.navbar {
    max-width: 1280px;
    min-height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.logo-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blood), #ff6b6b);
    box-shadow: var(--glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.62rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(230, 57, 70, 0.16);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
}

.header-search input,
.movie-search,
.filter-select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    background: rgba(26, 29, 35, 0.9);
    color: #ffffff;
    padding: 0.72rem 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.movie-search:focus,
.filter-select:focus {
    border-color: rgba(230, 57, 70, 0.55);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.14);
}

.search-button,
.menu-toggle,
.hero-control,
.hero-dot,
.player-overlay,
.inline-button {
    border: 0;
    color: #ffffff;
}

.search-button,
.inline-button {
    border-radius: 0.85rem;
    background: var(--blood);
    padding: 0.72rem 1rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.search-button:hover,
.inline-button:hover {
    background: var(--blood-deep);
    transform: translateY(-1px);
    box-shadow: var(--glow);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--panel-soft);
    font-size: 1.35rem;
}

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

.section-space {
    padding: 4rem 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ff8585;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.section-title {
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.section-desc {
    color: var(--muted);
    max-width: 48rem;
    margin-top: 0.6rem;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #050607;
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.62) 45%, rgba(5, 6, 7, 0.16) 100%),
        linear-gradient(0deg, #0d0f12 0%, rgba(13, 15, 18, 0.58) 35%, transparent 100%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 7rem 0 5rem;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.badge,
.meta-pill,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(230, 57, 70, 0.22);
    border: 1px solid rgba(230, 57, 70, 0.26);
}

.badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.meta-pill,
.tag {
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
    color: #ffb8b8;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.98;
    font-weight: 900;
    margin: 0 0 1rem;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
}

.hero-desc {
    max-width: 760px;
    color: #e8edf3;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.85rem 1.15rem;
    font-weight: 800;
    transition: all 0.25s ease;
}

.primary-action {
    background: var(--blood);
    color: #ffffff;
    box-shadow: var(--glow);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    font-size: 1.8rem;
    line-height: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(230, 57, 70, 0.82);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 1rem;
    transform: translateY(-50%);
}

.hero-next {
    right: 1rem;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 2rem;
    background: var(--blood);
}

.grid {
    display: grid;
    gap: 1.3rem;
}

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

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

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

.movie-card,
.category-card,
.feature-card,
.info-card,
.player-panel {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(33, 37, 43, 0.95), rgba(20, 23, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.065);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.movie-card,
.category-card,
.feature-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover,
.category-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.34);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35), var(--glow);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-cover img,
.detail-cover img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.category-card:hover .category-cover img,
.feature-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08) 55%, transparent);
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blood);
    box-shadow: var(--glow);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-float,
.feature-card:hover .play-float {
    opacity: 1;
}

.cover-meta {
    position: absolute;
    z-index: 2;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: #ffffff;
    font-size: 0.82rem;
}

.rating {
    color: var(--gold);
    font-weight: 800;
}

.card-body {
    padding: 1rem;
}

.card-title {
    color: #ffffff;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.9rem;
    color: var(--muted-deep);
    font-size: 0.82rem;
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr);
}

.feature-card .card-cover {
    aspect-ratio: auto;
    min-height: 260px;
}

.feature-card .card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 1.1rem;
}

.category-name {
    color: #ffffff;
    font-weight: 850;
    font-size: 1.25rem;
    margin-bottom: 0.45rem;
}

.category-intro,
.muted {
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 0.8rem;
    margin: 1.5rem 0 2rem;
}

.empty-state {
    display: none;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

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

.page-hero {
    padding: 4.2rem 0 2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.18), transparent 22rem),
        linear-gradient(180deg, rgba(33, 37, 43, 0.64), rgba(13, 15, 18, 0));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted-deep);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #ff9a9a;
}

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

.detail-cover {
    position: sticky;
    top: 5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
    aspect-ratio: 3 / 4;
}

.detail-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.detail-summary {
    color: #dfe5ec;
    font-size: 1.05rem;
}

.info-card {
    padding: 1.3rem;
    margin-top: 1rem;
}

.info-card h2,
.info-card h3 {
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.info-card p + p {
    margin-top: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.player-panel {
    margin: 2rem 0;
    padding: 1rem;
    background: #050607;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1), rgba(0, 0, 0, 0.44));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-overlay span {
    width: 4.4rem;
    height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blood);
    box-shadow: var(--glow);
    font-size: 2rem;
    padding-left: 0.2rem;
}

.player-overlay strong {
    font-size: 1.05rem;
}

.rank-list {
    display: grid;
    gap: 0.9rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 4rem 8rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(26, 29, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.065);
    transition: all 0.25s ease;
}

.rank-item:hover {
    border-color: rgba(230, 57, 70, 0.34);
    transform: translateY(-2px);
}

.rank-no {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    border-radius: 0.8rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #050607;
    color: var(--muted-deep);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

    .header-search {
        min-width: 200px;
    }
}

@media (max-width: 860px) {
    .navbar {
        flex-wrap: wrap;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links,
    .header-search {
        display: none;
        width: 100%;
    }

    .nav-links.open,
    .header-search.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        width: 100%;
    }

    .hero-carousel {
        min-height: 76vh;
    }

    .hero-content {
        padding-bottom: 4.5rem;
    }

    .hero-control {
        display: none;
    }

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

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

    .feature-card .card-cover {
        min-height: 220px;
    }

    .detail-cover {
        position: relative;
        top: auto;
        max-width: 360px;
    }

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

    .rank-item {
        grid-template-columns: 3rem 6.5rem minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }
}

@media (max-width: 560px) {
    .grid-3,
    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .section-space {
        padding: 3rem 0;
    }

    .rank-item {
        grid-template-columns: 2.5rem 5.2rem minmax(0, 1fr);
        gap: 0.65rem;
    }
}
