html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8fafc, #eff6ff);
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

.nav-link-active {
    color: #f59e0b;
    border-bottom: 2px solid #f59e0b;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1000ms ease;
}

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

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

.movie-card {
    transform: translateY(0);
}

.movie-card:hover {
    transform: translateY(-0.25rem);
}

.movie-card img {
    transition: transform 500ms ease;
}

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

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
}

.category-card {
    min-height: 12rem;
}

.player-shell {
    position: relative;
    width: 100%;
    background: #020617;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.55);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.35));
    border: 0;
    cursor: pointer;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: linear-gradient(to right, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35);
}

.player-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-top: 0.85rem solid transparent;
    border-bottom: 0.85rem solid transparent;
    border-left: 1.2rem solid #fff;
}

.player-status {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 4;
    color: #fff;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 200ms ease;
}

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

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

@media (max-width: 768px) {
    .hero-section {
        height: 560px;
    }

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

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