:root {
    --card-radius: 16px;
}

body {
    background: #f7f7f9;
}

.film-card {
    background: #fff;
    border: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    transition: transform .2s ease;
}

.film-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.poster-wrap {
    position: relative;
    background: #e9ecef;
}

.poster {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.episode-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    color: #fff;
    font-size: .60rem;
    padding: 2px 6px;
}

.film-title {
    font-weight: 700;
    font-size: .98rem;
    color: #1f1f1f;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3rem;
}

.film-meta {
    font-size: .8rem;
    color: #6c757d;
}

.film-link {
    text-decoration: none;
}

.film-link:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.load-more {
    display: block;
    margin: 1.5rem auto;
    border-radius: 50px;
    padding: .5rem 1.5rem;
}

.category-bar .btn { border-radius:20px; }

.toolbar {
    background: #fff;
    border-radius: 16px;
    padding: .75rem .9rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.search-input {
    border-radius: 999px;
}

.player-wrap {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.player-wrap video {
    width: 100%;
    height: 70vh;
    object-fit: contain;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.episode-box {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    transition: all .2s ease;
}

.episode-box:hover {
    background: #e9ecef;
}

.episode-box.active {
    background: #6e37e7;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-desc {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.btn-primary {
    background-color: #6e37e7 !important;
    border-color: #6e37e7 !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #5c2fc5 !important; /* sedikit lebih gelap untuk hover */
    border-color: #5c2fc5 !important;
}
.btn-outline-primary {
    color: #6e37e7 !important;
    border-color: #6e37e7 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #6e37e7 !important;
    color: #fff !important;
}