:root {
    --site-primary: #d89410;
    --site-primary-dark: #b6790d;
    --site-accent: #f95c16;
    --site-secondary: #2f344c;
    --site-muted: #5f729c;
    --site-bg: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-bg);
    color: #111827;
}

img {
    background: linear-gradient(135deg, #2f344c, #d89410);
}

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

.site-main {
    flex: 1;
}

.nav-link-active {
    color: var(--site-primary);
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(216, 148, 16, 0.25);
}

.hero-wrap {
    position: relative;
    height: min(74vh, 760px);
    min-height: 560px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 720ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.22) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0) 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
}

.hero-panel {
    max-width: 46rem;
}

.hero-title {
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 14px 35px rgba(0, 0, 0, 0.38);
}

.hero-summary {
    max-width: 42rem;
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 240ms ease, background 240ms ease;
}

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

.search-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
}

.movie-card {
    min-width: 0;
}

.movie-card[hidden] {
    display: none !important;
}

.card-cover {
    background: linear-gradient(135deg, #2f344c 0%, #5f729c 48%, #d89410 100%);
}

.movie-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 700;
}

.category-tile {
    position: relative;
    overflow: hidden;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 11rem;
    height: 11rem;
    right: -4rem;
    bottom: -5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.rank-number {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
}

.filter-control {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    padding: 0.85rem 1rem;
    color: #111827;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-control:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(216, 148, 16, 0.12);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #111827;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

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

.play-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    font-size: 2.25rem;
    padding-left: 0.22rem;
    transition: transform 180ms ease, background 180ms ease;
}

.play-overlay:hover .play-icon {
    transform: scale(1.08);
    background: #fff;
}

.player-status {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: #fff;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.player-status.is-visible {
    opacity: 1;
}

.detail-cover {
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(135deg, #2f344c, #d89410);
}

.detail-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.no-result {
    display: none;
}

.no-result.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .hero-wrap {
        height: 620px;
        min-height: 620px;
    }

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

    .hero-summary {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .play-icon {
        width: 4.25rem;
        height: 4.25rem;
        font-size: 1.9rem;
    }
}
