main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 1rem;
}

/* ===============================
NETFLIX STYLE - REFACTORED
=============================== */

:root {
    --netflix-red: #e50914;
    --netflix-dark: #0f0f0f;
    --netflix-card: #181818;
    --netflix-light-dark: #1f1f1f;
    --text-light: #ffffff;
    --text-muted: #aaa;
}

/* BASE STYLES */
body {
    background: var(--netflix-dark);
    color: var(--text-light);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* LIGHT MODE */
body.light-mode {
    background: #f5f5f5;
    color: #111;
}

body.light-mode .card {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.light-mode .navbar {
    background: #ffffff !important;
    border-bottom: 2px solid var(--netflix-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.light-mode .navbar .nav-link {
    color: #333 !important;
}

body.light-mode .navbar .nav-link:hover {
    color: var(--netflix-red) !important;
}

body.light-mode .footer {
    background-color: #fff !important;
    border-top: 1px solid #ddd;
}

body.light-mode .footer a,
body.light-mode .footer .text-muted {
    color: #666 !important;
}

body.light-mode .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

body.light-mode .form-control:focus {
    background-color: #fff;
    border-color: var(--netflix-red);
    color: #333;
}

/* NAVBAR - FIXED */
.navbar {
    background: #000 !important;
    border-bottom: 2px solid var(--netflix-red);
    padding: 0.5rem 1rem;
    z-index: 1030;
}

.navbar-brand {
    color: var(--netflix-red) !important;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    color: #fff !important;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--netflix-red) !important;
}

.nav-link.active {
    color: var(--netflix-red) !important;
    font-weight: bold;
}

/* NAVBAR COLLAPSE - CRITICAL FIXES */
.navbar-collapse {
    transition: none; /* Hindari transisi ganda */
}

/* Desktop styles */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        padding: 1rem;
        border-top: 2px solid var(--netflix-red);
        border-bottom: 2px solid var(--netflix-red);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1000;
    }
    
    /* Bootstrap collapse classes */
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    body.light-mode .navbar-collapse {
        background: #fff;
    }
    
    .navbar-nav {
        margin: 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-menu {
        background: var(--netflix-card);
        border: none;
        margin-top: 0.5rem;
    }
    
    body.light-mode .navbar-nav .dropdown-menu {
        background: #f5f5f5;
    }
}

/* NAVBAR TOGGLER */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* BUTTONS */
.btn-primary {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
}

.btn-primary:hover {
    background-color: #f40612;
    border-color: #f40612;
}

.btn-outline-primary {
    color: var(--netflix-red);
    border-color: var(--netflix-red);
}

.btn-outline-primary:hover {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: #fff;
}

.btn-outline-danger {
    color: #fff;
    border-color: var(--netflix-red);
}

.btn-outline-danger:hover {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: #fff;
}

/* CARDS */
.card {
    background: var(--netflix-card);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.card-header {
    background-color: var(--netflix-red);
    color: white;
    font-weight: bold;
    border-bottom: none;
    padding: 0.75rem 1.25rem;
}

.card-header.bg-primary {
    background-color: var(--netflix-red) !important;
}

.card-header.bg-secondary {
    background-color: #333 !important;
}

.card-header.bg-success {
    background-color: #28a745 !important;
}

.card-header.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.card-title {
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #FFF;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* HERO BANNER */
.hero-banner {
    background: linear-gradient(90deg, #b30000, #000);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

/* BREADCRUMBS */
.breadcrumb {
    background-color: var(--netflix-card) !important;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: var(--netflix-red);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* FORMS */
.form-label,
.control-label,
label.control-label,
.form-group label {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    background-color: #444;
    border-color: var(--netflix-red);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
    outline: none;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #000;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1020;
}

.bottom-nav a {
    color: #aaa;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    flex: 1;
    padding: 8px 0;
}

.bottom-nav a i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--netflix-red);
}

/* Spacing agar tidak ketutup bottom nav */
.page-container {
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

/* THEME TOGGLE */
.theme-toggle {
    cursor: pointer;
    font-size: 20px;
    margin-left: 15px;
    color: #fff;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--netflix-red);
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    width: 90%;
    max-width: 600px;
}

.search-input {
    height: 50px;
    font-size: 18px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px 0 0 4px;
}

.search-input:focus {
    background: #111;
    color: #fff;
    border-color: var(--netflix-red);
    box-shadow: none;
    outline: none;
}

/* NOTIFICATION */
.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1040;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
    background-color: var(--netflix-card);
    border-left: 4px solid var(--netflix-red);
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* DRAMA THUMBNAIL */
.drama-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* VIDEO CONTAINER */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000;
    border-radius: 8px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ALERTS */
.alert-success {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
}

.alert-danger {
    background-color: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 4px;
}

.alert-warning {
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 4px;
}

.alert-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
}

/* VIP BADGE */
.vip-badge {
    background-color: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

/* PAGINATION */
.pagination .page-link {
    background-color: var(--netflix-card);
    border-color: #333;
    color: #fff;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
}

/* DROPDOWN */
.dropdown-menu {
    background-color: var(--netflix-card);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.dropdown-item {
    color: #fff;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: var(--netflix-red);
    color: #fff;
}

.dropdown-divider {
    border-top: 1px solid #333;
}

/* FOOTER */
.footer {
    background-color: var(--netflix-card) !important;
    color: var(--text-muted) !important;
    border-top: 1px solid #333;
    padding: 2rem 0;
}

.footer a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--netflix-red) !important;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-banner {
        padding: 20px;
    }
    
    .drama-thumbnail {
        height: 150px;
    }
    
    .site-signup .col-md-8.col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .site-signup .card-body {
        padding: 1rem !important;
    }
}

/* UTILITY CLASSES */
.text-netflix-red {
    color: var(--netflix-red) !important;
}

.bg-netflix-red {
    background-color: var(--netflix-red) !important;
}

.border-netflix-red {
    border-color: var(--netflix-red) !important;
}

/* CRITICAL FIX: Pastikan class collapse bekerja dengan benar */
.navbar-collapse.collapse {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0;
    transition: none;
}

.navbar-collapse.collapse.show {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1;
}

.navbar-collapse.collapsing {
    height: 0 !important;
    overflow: hidden !important;
    transition: height 0.35s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1;
}

/* Fix untuk konten yang terlalu panjang */
.drama-detail .card-text {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
}

.drama-detail .card-text::-webkit-scrollbar {
    width: 3px;
}

.drama-detail .card-text::-webkit-scrollbar-track {
    background: #333;
}

.drama-detail .card-text::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
}

/* Fix untuk badge yang overflow */
.drama-detail .badge {
    white-space: normal;
    word-break: break-word;
}

/* Fix untuk text yang terlalu panjang */
.drama-detail .card-title {
    word-break: break-word;
    font-size: 1.25rem;
}

@media (max-width: 480px) {
    .drama-detail .card-title {
        font-size: 1.1rem;
    }
}

/* Mobile specific */
@media (max-width: 991.98px) {
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        opacity: 0;
    }
    
    .navbar-collapse.collapsing {
        position: relative;
        top: 0;
        background: #000;
        padding: 1rem;
        border-top: 2px solid var(--netflix-red);
        border-bottom: 2px solid var(--netflix-red);
    }
    
    .navbar-collapse.collapse.show {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1;
        padding: 1rem;
        background: #000;
        border-top: 2px solid var(--netflix-red);
        border-bottom: 2px solid var(--netflix-red);
    }
    
    body.light-mode .navbar-collapse.collapsing,
    body.light-mode .navbar-collapse.collapse.show {
        background: #fff;
    }
}

/* ===============================
DRAMA DETAIL PAGE - EPISODE STYLE
=============================== */

/* Layout utama mengikuti episode.php */
.drama-detail .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Kolom kiri - main content */
.drama-detail .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Kolom kanan - sidebar */
.drama-detail .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Card styling mengikuti episode.php */
.drama-detail .card {
    background: var(--netflix-card);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.drama-detail .card-header {
    background-color: var(--netflix-red);
    color: white;
    font-weight: bold;
    border-bottom: none;
    padding: 0.75rem 1.25rem;
}

.drama-detail .card-header.bg-primary {
    background-color: var(--netflix-red) !important;
}

.drama-detail .card-header.bg-secondary {
    background-color: #333 !important;
}

/* Cover image styling */
.drama-detail .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    border-radius: 8px 0 0 8px;
}

/* Detail info card */
.drama-detail .detail-info-card .row.g-0 {
    min-height: 400px;
}

.drama-detail .detail-info-card .col-md-4 {
    height: 100%;
}

.drama-detail .detail-info-card .card-body {
    padding: 1.5rem;
}

/* Badge styling */
.drama-detail .badge.bg-primary,
.drama-detail .badge.bg-info {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.drama-detail .badge.bg-primary {
    background-color: var(--netflix-red) !important;
}

.drama-detail .badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Tags container */
.drama-detail .tags-container {
    margin: 1rem 0;
}

.drama-detail .tags-container .badge {
    background-color: #333 !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.drama-detail .tags-container .badge:hover {
    background-color: var(--netflix-red) !important;
}

/* Action buttons */
.drama-detail .action-buttons {
    margin-top: 1.5rem;
}

.drama-detail .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.drama-detail .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: scale(1.05);
}

.drama-detail .btn-outline-secondary {
    color: #fff;
    border-color: #666;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.drama-detail .btn-outline-secondary:hover {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: #fff;
    transform: scale(1.05);
}

/* Episode list container - SAMA PERSIS dengan episode.php */
.drama-detail .episode-list-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--netflix-red) #333;
    padding: 0;
}

.drama-detail .episode-list-container::-webkit-scrollbar {
    width: 5px;
}

.drama-detail .episode-list-container::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.drama-detail .episode-list-container::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 10px;
}

/* List group items - SAMA PERSIS dengan episode.php */
.drama-detail .list-group {
    border-radius: 0;
}

.drama-detail .list-group-item {
    background-color: var(--netflix-card);
    color: #fff;
    border-color: #333;
    padding: 1rem;
    transition: all 0.3s ease;
}

.drama-detail .list-group-item:hover {
    background-color: #333;
    transform: translateX(5px);
    border-left: 3px solid var(--netflix-red);
}

.drama-detail .list-group-item.active {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
}

.drama-detail .list-group-item a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* VIP badge - SAMA dengan episode.php */
.drama-detail .vip-badge-small {
    background-color: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Info list di sidebar */
.drama-detail .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drama-detail .info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
    color: #fff;
    display: flex;
    align-items: center;
}

.drama-detail .info-list li:last-child {
    border-bottom: none;
}

.drama-detail .info-list i {
    color: var(--netflix-red);
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
}

.drama-detail .info-list strong {
    min-width: 100px;
    color: #aaa;
    font-weight: normal;
}

.drama-detail .info-list span {
    color: #fff;
}

/* Share buttons */
.drama-detail .share-buttons {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.drama-detail .share-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drama-detail .share-buttons .btn:hover {
    transform: scale(1.1);
}

.drama-detail .share-buttons .btn-outline-primary {
    border-color: #3b5998;
    color: #3b5998;
}

.drama-detail .share-buttons .btn-outline-primary:hover {
    background-color: #3b5998;
    color: #fff;
}

.drama-detail .share-buttons .btn-outline-info {
    border-color: #1da1f2;
    color: #1da1f2;
}

.drama-detail .share-buttons .btn-outline-info:hover {
    background-color: #1da1f2;
    color: #fff;
}

.drama-detail .share-buttons .btn-outline-success {
    border-color: #25d366;
    color: #25d366;
}

.drama-detail .share-buttons .btn-outline-success:hover {
    background-color: #25d366;
    color: #fff;
}

/* Episode count badge */
.drama-detail .episode-count {
    background-color: rgba(229, 9, 20, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--netflix-red);
    border: 1px solid var(--netflix-red);
}

/* Responsive */
@media (max-width: 991.98px) {
    .drama-detail .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Kolom kiri (main content) tampil duluan */
    .drama-detail .col-lg-8 {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Kolom kanan (sidebar) tampil setelah konten utama */
    .drama-detail .col-lg-4 {
        order: 2;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0;
    }
    
    /* Card di mobile */
    .drama-detail .card {
        margin-bottom: 15px;
    }
    
    /* Cover image di mobile */
    .drama-detail .cover-image {
        border-radius: 8px 8px 0 0;
        max-height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Detail info card di mobile */
    .drama-detail .detail-info-card .row.g-0 {
        display: flex;
        flex-direction: column;
    }
    
    .drama-detail .detail-info-card .col-md-4,
    .drama-detail .detail-info-card .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .drama-detail .detail-info-card .col-md-4 {
        height: 250px;
    }
    
    /* Episode list container di mobile */
    .drama-detail .episode-list-container {
        max-height: 350px;
    }
    
    /* Sidebar cards di mobile */
    .drama-detail .col-lg-4 .card {
        margin-bottom: 15px;
    }
    
    /* Info list di mobile */
    .drama-detail .info-list li {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .drama-detail .info-list strong {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .drama-detail .info-list span {
        font-size: 0.9rem;
    }
    
    /* Share buttons di mobile */
    .drama-detail .share-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    /* Action buttons di mobile */
    .drama-detail .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .drama-detail .action-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Tags container di mobile */
    .drama-detail .tags-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .drama-detail .tags-container .badge {
        margin: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Fix untuk layar sangat kecil */
@media (max-width: 480px) {
    .drama-detail .detail-info-card .col-md-4 {
        height: 200px;
    }
    
    .drama-detail .episode-list-container {
        max-height: 300px;
    }
    
    .drama-detail .card-header h5 {
        font-size: 1rem;
    }
    
    .drama-detail .episode-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .drama-detail .list-group-item {
        padding: 0.75rem;
    }
    
    .drama-detail .list-group-item strong {
        font-size: 0.9rem;
    }
    
    .drama-detail .list-group-item small {
        font-size: 0.8rem;
    }
    
    .drama-detail .vip-badge-small {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
}

/* Fix untuk landscape mode di mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .drama-detail .detail-info-card .col-md-4 {
        height: 300px;
    }
    
    .drama-detail .episode-list-container {
        max-height: 400px;
    }
}

/* Hide sidebar di mobile jika diperlukan */
@media (max-width: 576px) {
    .drama-detail .hide-sidebar-mobile .col-lg-4 {
        display: none;
    }
}



@media (max-width: 767.98px) {
    .drama-detail .detail-info-card .col-md-4 {
        height: 250px;
    }
    
    .drama-detail .episode-list-container {
        max-height: 400px;
    }
}

/* Ad label */
.drama-detail .ad-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Fix untuk Histats agar tidak naik sendiri */
#histats_counter {
    min-height: 20px;
    margin: 10px 0;
}

/* Fix untuk card di signup */
.site-signup .card {
    max-width: 100%;
    overflow: hidden;
}

.site-signup .input-group {
    width: 100%;
}

.site-signup .form-control {
    height: 45px;
}

/* ===============================
LOADING ANIMATIONS - NETFLIX STYLE
=============================== */

/* Loading Overlay untuk halaman detail */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(229, 9, 20, 0.1);
    border-top: 4px solid #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Loading untuk episode video */
.video-loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.video-loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(229, 9, 20, 0.1);
    border-top: 3px solid #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.video-loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.video-loading-progress {
    width: 200px;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.video-loading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #e50914;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

/* Skeleton loading untuk card */
.skeleton-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 2/3;
    background: #333;
}

.skeleton-line {
    height: 16px;
    background: #333;
    margin: 10px;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

/* Skeleton untuk detail */
.skeleton-detail {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #333;
    border-radius: 8px;
}

.skeleton-title {
    height: 32px;
    background: #333;
    margin: 15px 0;
    border-radius: 4px;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    background: #333;
    margin: 10px 0;
    border-radius: 4px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .video-loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .video-loading-progress {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .video-loading-progress {
        width: 120px;
    }
    
    .video-loading-text {
        font-size: 0.9rem;
    }
}