/*
    Layarkaca21 - Premium Streaming
    Style bekerja dengan Bootstrap
    POLISHED & CONSISTENT VERSION
*/

/* ========================================
   VARIABLES
======================================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-light: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --text-muted: #666666;
    --red: #e50914;
    --red-hover: #ff0a16;
    --gold: #f5c518;
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ========================================
   BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    background: #000 !important;
    border-bottom: 1px solid #222;
    padding: 0 !important;
    min-height: 70px;
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    padding: 0 15px;
}

/* Logo */
.navbar-brand {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 15px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 28px;
    color: var(--red);
}

.navbar-brand:hover {
    color: var(--red) !important;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    padding: 25px 15px !important;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link i {
    font-size: 14px;
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    background: var(--bg-light);
    border: 1px solid #333;
    border-radius: var(--radius);
    margin-top: 0;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.navbar .dropdown-item {
    color: var(--text-gray);
    padding: 10px 20px;
    font-size: 14px;
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background: rgba(229,9,20,0.15);
    color: var(--red);
}

/* Genre Dropdown Grid */
.dropdown-menu-genre {
    min-width: 320px !important;
    padding: 15px !important;
}

.dropdown-menu-genre .dropdown-menu-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu-genre .dropdown-item {
    padding: 8px 12px;
    border-radius: 5px;
}

.dropdown-item-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--red) !important;
    color: #fff !important;
    text-align: center;
    margin-top: 10px;
    padding: 12px !important;
    border-radius: var(--radius);
    font-weight: 600;
}

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

/* Search Input */
.search-input {
    background: var(--bg-light) !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 25px 0 0 25px !important;
    padding: 10px 18px !important;
    width: 200px;
    height: 42px;
    font-size: 14px;
}

.search-input:focus {
    background: #222 !important;
    border-color: var(--red) !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.form-inline .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.form-inline .input-group-append {
    display: flex;
}

.form-inline .btn-danger {
    background: var(--red);
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 10px 18px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.form-inline .btn-danger:hover {
    background: var(--red-hover);
}

/* Mobile Toggle */
.navbar-toggler {
    border-color: #444 !important;
    padding: 8px 12px;
}

.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") !important;
}

/* Mobile Search */
.mobile-search {
    display: none;
}

/* ========================================
   MOBILE NAVBAR
======================================== */
@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
    
    .navbar {
        min-height: 60px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        font-size: 18px !important;
        padding: 10px 0 !important;
    }
    
    .navbar-brand i {
        font-size: 24px;
    }
    
    .navbar .form-inline {
        display: none !important;
    }
    
    .mobile-search {
        display: flex !important;
        width: 100%;
        padding: 10px 15px;
        background: var(--bg-dark);
        border-top: 1px solid #222;
        order: 3;
    }
    
    .mobile-search .input-group {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .mobile-search .search-input {
        flex: 1;
        min-width: 0;
        width: auto !important;
        height: 44px;
        padding: 12px 18px !important;
    }
    
    .mobile-search .btn-danger {
        height: 44px;
        padding: 12px 18px;
    }
    
    .navbar-collapse {
        background: #0a0a0a;
        margin: 0 -15px;
        padding: 15px;
        border-top: 1px solid #222;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        border-radius: var(--radius);
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--bg-light);
    }
    
    .navbar .dropdown-menu {
        background: #0a0a0a;
        border: none;
        padding: 0 0 0 20px;
        box-shadow: none;
    }
    
    .dropdown-menu-genre {
        min-width: 100% !important;
    }
    
    .dropdown-menu-genre .dropdown-menu-inner {
        max-height: none;
    }
}

/* ========================================
   HERO SLIDER
======================================== */
#heroSlider {
    position: relative;
    margin-bottom: 0;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.5);
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 100px 30px 50px;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Hero Meta */
.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta .quality {
    background: var(--red);
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--red);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

#heroSlider:hover .carousel-control-prev,
#heroSlider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* ========================================
   TRENDING SECTION - NETFLIX STYLE
======================================== */
.trending-section {
    padding: 40px 0;
    background: #0a0a0a;
}

.trending-container {
    position: relative;
}

.trending-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-list::-webkit-scrollbar {
    display: none;
}

.trending-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
}

.trending-item:hover {
    transform: scale(1.05);
}

.trending-rank {
    position: relative;
    width: 60px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-number {
    font-size: 80px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px #444;
    font-family: 'Arial Black', sans-serif;
    line-height: 1;
}

.trending-item:hover .rank-number {
    -webkit-text-stroke-color: var(--red);
}

.trending-poster {
    width: 80px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.trending-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.trending-item:hover .trending-overlay {
    opacity: 1;
}

.trending-overlay i {
    font-size: 24px;
    color: var(--red);
}

.trending-info {
    width: 120px;
}

.trending-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.trending-meta .rating {
    color: var(--gold);
}

/* Trending Navigation */
.trending-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.trending-container:hover .trending-nav {
    opacity: 1;
}

.trending-nav:hover {
    background: var(--red);
}

.trending-prev {
    left: 0;
}

.trending-next {
    right: 0;
}

/* ========================================
   SECTIONS
======================================== */
.movies-section {
    padding: 40px 0;
}

.bg-dark-2 {
    background: #0a0a0a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--red);
}

.view-all {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--red);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-item {
    padding: 8px 18px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tab-item:hover,
.tab-item.active {
    background: var(--red);
    color: #fff;
}

/* ========================================
   MOVIE GRID
======================================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229,9,20,0.2);
}

.movie-card .poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Badges */
.movie-card .quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.movie-card .rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: var(--gold);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-card .year-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 4px;
}

/* Play Overlay */
.movie-card .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.movie-card .play-overlay i {
    font-size: 50px;
    color: var(--red);
}

/* Card Info */
.movie-card .card-info {
    padding: 12px;
}

.movie-card .card-info h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card .card-info h3 a {
    color: #fff;
}

.movie-card .card-info h3 a:hover {
    color: var(--red);
}

.movie-card .card-info .meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   BUTTONS
======================================== */
.btn-red {
    background: var(--red);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-red:hover {
    background: var(--red-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--red);
}

/* ========================================
   SINGLE MOVIE DETAIL
======================================== */
.single-movie {
    padding: 30px 0;
}

.movie-detail {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.movie-backdrop {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.movie-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, transparent 30%, var(--bg-card) 100%);
}

.movie-content {
    display: flex;
    gap: 30px;
    padding: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.movie-poster {
    flex-shrink: 0;
    width: 220px;
}

.movie-poster img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.movie-poster .badge-tv {
    background: linear-gradient(135deg, var(--red) 0%, #b20710 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(229,9,20,0.3);
}

.movie-info {
    flex: 1;
    min-width: 0;
}

.movie-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 15px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb a {
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb span {
    color: var(--text-gray);
}

.breadcrumb-sep {
    color: var(--text-muted);
    margin: 0 8px;
}

.breadcrumb-title {
    color: var(--text-muted);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Movie Meta */
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.movie-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-light);
    border-radius: 25px;
    font-size: 13px;
    color: var(--text-gray);
}

.movie-meta .meta-item i {
    color: var(--red);
    font-size: 12px;
}

.movie-meta .meta-item.rating {
    background: rgba(245,197,24,0.15);
    color: var(--gold);
}

.movie-meta .meta-item.rating i {
    color: var(--gold);
}

/* Movie Genres */
.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.movie-genres a {
    padding: 6px 14px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.movie-genres a:hover {
    background: var(--red-hover);
    color: #fff;
}

/* Tagline */
.tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--red);
}

/* Synopsis */
.movie-synopsis {
    margin-bottom: 25px;
}

.movie-synopsis h3 {
    color: var(--red);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-synopsis p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}

/* Details Table */
.movie-details-table {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.movie-details-table table {
    width: 100%;
}

.movie-details-table th {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 13px;
    padding: 12px 0;
    width: 120px;
    vertical-align: top;
}

.movie-details-table th i {
    color: var(--red);
    margin-right: 8px;
    width: 16px;
}

.movie-details-table td {
    font-size: 13px;
    padding: 12px 0;
    color: var(--text-gray);
    line-height: 1.6;
}

.movie-details-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.movie-details-table tr:last-child {
    border-bottom: none;
}

.movie-details-table td a {
    color: var(--red);
    transition: var(--transition);
}

.movie-details-table td a:hover {
    color: var(--red-hover);
}

.imdb-link {
    background: rgba(245,197,24,0.15);
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--gold) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Movie Actions */
.movie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================================
   VIDEO PLAYER
======================================== */
.player-section {
    padding: 40px 0;
}

.player-box {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid #333;
}

.player-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.player-header h3 i {
    color: var(--red);
}

.quality-badge {
    background: var(--red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
}

/* Server List */
.server-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(0,0,0,0.3);
    flex-wrap: wrap;
}

.server-label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-btn:hover {
    border-color: var(--red);
    background: rgba(229,9,20,0.1);
}

.server-btn.active {
    background: var(--red);
    border-color: var(--red);
}

/* Player Container */
.player-container {
    background: #000;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Player Info */
.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--bg-light);
    flex-wrap: wrap;
    gap: 15px;
}

.player-tips {
    flex: 1;
}

.player-tips p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-tips i {
    color: var(--gold);
}

.player-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    background: var(--red);
}

/* ========================================
   EPISODE SECTION
======================================== */
.episode-section {
    padding: 40px 0;
}

.episode-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
}

.episode-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-box h3 i {
    color: var(--red);
}

/* Season Tabs */
.season-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.season-btn {
    padding: 12px 20px;
    background: var(--bg-light);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.season-btn .episode-count {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
}

.season-btn:hover,
.season-btn.active {
    background: var(--red);
}

.season-btn.active .episode-count {
    background: rgba(0,0,0,0.2);
}

/* Episode List */
.episode-list {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.episode-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    transition: var(--transition);
}

.episode-item:hover {
    background: rgba(229,9,20,0.1);
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-number {
    width: 45px;
    height: 45px;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-info span,
.episode-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.episode-play {
    color: var(--red);
    font-size: 24px;
    opacity: 0.5;
    transition: var(--transition);
}

.episode-item:hover .episode-play {
    opacity: 1;
}

/* ========================================
   TRAILER MODAL
======================================== */
.trailer-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.trailer-modal.active {
    display: flex;
}

.trailer-modal-content {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trailer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #333;
}

.trailer-modal-header h4 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.trailer-modal-header h4 i {
    color: #ff0000;
}

.trailer-close {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.trailer-close:hover {
    background: var(--red);
}

.trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RELATED SECTION
======================================== */
.related-section {
    padding: 40px 0;
    background: var(--bg-dark);
}

.related-section .section-header {
    margin-bottom: 25px;
}

.related-section .section-header h2 {
    font-size: 20px;
}

/* ========================================
   ARCHIVE / GENRE PAGE
======================================== */
.archive-header {
    padding: 30px 0;
    background: linear-gradient(var(--bg-card), var(--bg-dark));
}

.archive-header h1 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.archive-header h1 i {
    color: var(--red);
}

.archive-stats {
    margin-top: 10px;
}

/* Row Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 10px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
}

/* Sidebar Filter */
.filter-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-sidebar h4 {
    color: var(--red);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.filter-list li {
    margin-bottom: 5px;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-gray);
    border-radius: 5px;
    font-size: 13px;
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
    background: rgba(229,9,20,0.1);
    color: var(--red);
}

.filter-list .count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   SEARCH PAGE
======================================== */
.search-header {
    padding: 40px 0;
    background: linear-gradient(var(--bg-card), var(--bg-dark));
    text-align: center;
}

.search-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-large .input-group {
    display: flex;
    background: var(--bg-light);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #333;
}

.search-form-large input {
    flex: 1;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.search-form-large input::placeholder {
    color: var(--text-muted);
}

.search-form-large button {
    padding: 15px 30px;
    background: var(--red);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.search-form-large button:hover {
    background: var(--red-hover);
}

/* ========================================
   GENRE TAGS
======================================== */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.genre-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.genre-tag:hover {
    background: var(--red);
    color: #fff;
}

.genre-tag .count {
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-gray);
}

.genre-tag:hover .count {
    background: rgba(0,0,0,0.2);
    color: #fff;
}

/* Large Genre Tags */
.genre-tags-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.genre-tag-large {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    transition: var(--transition);
}

.genre-tag-large:hover {
    background: var(--red);
    transform: translateY(-3px);
    color: #fff;
}

.genre-tag-large .name {
    font-size: 16px;
    font-weight: 600;
}

.genre-tag-large .count {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.genre-tag-large:hover .count {
    color: rgba(255,255,255,0.8);
}

/* ========================================
   PAGINATION
======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: var(--bg-card);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.pagination .page-item .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--red);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: #000;
    margin-top: 50px;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--red);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--red);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--red);
    color: #fff;
}

/* ========================================
   BACK TO TOP
======================================== */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--red-hover);
    transform: translateY(-3px);
}

/* ========================================
   NO RESULTS
======================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 50px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-muted);
}

/* Suggestions */
.suggestions h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.alert-info {
    background: rgba(100,150,200,0.15);
    border: 1px solid rgba(100,150,200,0.3);
    color: #8bc4ea;
}

.alert-warning {
    background: rgba(245,197,24,0.15);
    border: 1px solid rgba(245,197,24,0.3);
    color: var(--gold);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .col-lg-9, .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-lg-3 {
        margin-top: 30px;
    }
    
    .movie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 0;
        padding-top: 30px;
    }
    
    .movie-poster {
        width: 180px;
    }
    
    .movie-meta,
    .movie-genres,
    .movie-actions {
        justify-content: center;
    }
    
    .breadcrumb {
        justify-content: center;
    }
    
    .movie-synopsis h3 {
        justify-content: center;
    }
    
    .carousel-item img {
        height: 350px;
    }
    
    .filter-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .carousel-item img {
        height: 280px;
    }
    
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .server-list {
        justify-content: center;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .season-tabs {
        justify-content: center;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
    
    .breadcrumb-title {
        max-width: 100px;
    }
    
    .movie-info h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .movie-card .card-info {
        padding: 10px;
    }
    
    .movie-card .card-info h3 {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .carousel-caption h3 {
        font-size: 16px;
    }
    
    .movie-info h1 {
        font-size: 20px;
    }
    
    .movie-meta .meta-item {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .server-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .episode-box {
        padding: 15px;
    }
    
    .archive-header h1 {
        font-size: 22px;
    }
}

/* ========================================
   UTILITIES
======================================== */
.text-red { color: var(--red) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--red) !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.text-center { text-align: center !important; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* ========================================
   PERFORMANCE
======================================== */
.navbar,
#back-to-top {
    will-change: transform, opacity;
}

.movies-grid,
.episode-list,
.related-section {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.movie-card,
.dropdown-menu,
.trailer-modal-content {
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (hover: hover) {
    .movie-card:hover {
        transform: translateY(-5px) translateZ(0);
    }
}

@media (hover: none) {
    .movie-card:hover {
        transform: none;
    }
    
    .movie-card:active {
        transform: scale(0.98);
    }
}
/* ========================================
   DETAIL PAGE - ENHANCED STYLES
   Added for new detail.php layout
======================================== */

/* ----------------------------------------
   ERROR PAGE
---------------------------------------- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    font-size: 80px;
    color: var(--red);
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-content h1 {
    font-size: 100px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 10px;
}

.error-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.error-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------
   DETAIL BREADCRUMB (New)
---------------------------------------- */
.detail-breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-gray);
}

.breadcrumb-list a:hover {
    color: var(--red);
}

.breadcrumb-list .active {
    color: var(--text-white);
}

/* ----------------------------------------
   MOVIE HERO SECTION (New Layout)
---------------------------------------- */
.movie-hero {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(20px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
}

.hero-backdrop-fallback {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    filter: none;
}

.movie-hero .container {
    position: relative;
    z-index: 1;
}

.movie-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Poster Wrap */
.movie-poster-wrap {
    position: relative;
}

.movie-poster-wrap .movie-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
}

.movie-poster-wrap .movie-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-badge {
    position: absolute;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
}

.poster-badge.badge-tv {
    top: 10px;
    left: 10px;
    background: var(--red);
    color: #fff;
}

.poster-badge.badge-quality {
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: #000;
}

.poster-actions {
    margin-top: 20px;
}

.btn-play-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-play-main:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

/* Movie Info (Hero) */
.movie-hero .movie-info {
    padding: 10px 0;
}

.movie-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.movie-tagline {
    font-style: italic;
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Meta Badges (New Style) */
.movie-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.meta-badge i {
    color: var(--text-muted);
}

.meta-badge.rating {
    background: rgba(245, 197, 24, 0.2);
    color: var(--gold);
}

.meta-badge.rating i {
    color: var(--gold);
}

/* Genre Links (New) */
.genre-link {
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-gray);
    transition: var(--transition);
}

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

/* Synopsis (Enhanced) */
.synopsis-text {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 14px;
}

.synopsis-text p {
    margin: 0;
}

.no-synopsis {
    color: var(--text-muted);
    font-style: italic;
}

/* Action Buttons (New) */
.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-watch {
    background: var(--red);
    color: #fff;
}

.btn-watch:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-trailer {
    background: transparent;
    border: 2px solid #ff0000;
    color: #ff0000;
}

.btn-trailer:hover {
    background: #ff0000;
    color: #fff;
}

.btn-share {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-gray);
}

.btn-share:hover {
    background: var(--text-muted);
    color: #fff;
}

/* ----------------------------------------
   MOVIE DETAILS SECTION (New 2-Column)
---------------------------------------- */
.movie-details-section {
    padding: 40px 0;
    background: var(--bg-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid #222;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th,
.info-table td {
    padding: 12px 0;
    font-size: 14px;
}

.info-table th {
    width: 140px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    vertical-align: top;
}

.info-table th i {
    width: 20px;
    margin-right: 8px;
}

.info-table td {
    color: var(--text-gray);
}

.info-table td a {
    color: var(--text-white);
}

.info-table td a:hover {
    color: var(--red);
}

.quality-text {
    background: var(--red);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.external-link {
    color: var(--gold) !important;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-gray);
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--red);
    color: #fff;
}

/* Sidebar */
.details-sidebar {
    position: sticky;
    top: 90px;
}

/* Rating Card (New) */
.rating-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.rating-score {
    margin-bottom: 15px;
}

.rating-score .score {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
}

.rating-score .max {
    font-size: 20px;
    color: var(--text-muted);
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    font-size: 18px;
    color: var(--gold);
    margin: 0 2px;
}

.rating-label {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* Quick Info Card */
.quick-info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}

.quick-info-card h4 {
    font-size: 14px;
    color: var(--red);
    margin-bottom: 15px;
}

.quick-info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-info-card li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-info-card li:last-child {
    border-bottom: none;
}

.quick-info-card li i {
    width: 16px;
    color: var(--text-muted);
}

.quick-info-card li strong {
    color: var(--text-white);
    margin-left: auto;
}

/* ----------------------------------------
   PLAYER SECTION (Enhanced)
---------------------------------------- */
.player-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.player-header .player-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.player-header .player-title i {
    color: var(--red);
}

.player-quality {
    background: var(--red);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

/* Server Selection (New) */
.server-selection {
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Player Footer */
.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    flex-wrap: wrap;
    gap: 15px;
}

.player-footer .player-tips {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.player-footer .player-tips i {
    color: var(--gold);
}

/* ----------------------------------------
   EPISODES SECTION (Enhanced)
---------------------------------------- */
.episodes-section {
    padding: 40px 0;
    background: var(--bg-dark);
}

.episodes-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
}

/* Season Tabs (New) */
.season-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-light);
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.season-tab:hover {
    background: #333;
}

.season-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.season-tab .ep-count {
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Episode Item (Enhanced) */
.ep-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.ep-info {
    flex: 1;
    min-width: 0;
}

.ep-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ep-play {
    font-size: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.episode-item:hover .ep-play {
    color: var(--red);
}

/* ----------------------------------------
   MODAL (Enhanced)
---------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
}

.modal-header h4 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h4 i {
    color: #ff0000;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--red);
}

.modal-body {
    padding: 0;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

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

/* ----------------------------------------
   TOAST NOTIFICATION
---------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: #28a745;
}

/* ----------------------------------------
   DETAIL PAGE RESPONSIVE
---------------------------------------- */
@media (max-width: 992px) {
    .movie-main {
        grid-template-columns: 200px 1fr;
        gap: 25px;
    }
    
    .movie-title {
        font-size: 26px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .details-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .movie-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .movie-poster-wrap {
        max-width: 220px;
        margin: 0 auto;
    }
    
    .movie-title {
        font-size: 22px;
    }
    
    .movie-meta-badges {
        justify-content: center;
    }
    
    .movie-hero .movie-genres {
        justify-content: center;
    }
    
    .movie-hero .movie-synopsis {
        text-align: left;
    }
    
    .movie-hero .movie-actions {
        justify-content: center;
    }
    
    .details-sidebar {
        grid-template-columns: 1fr;
    }
    
    .info-table th {
        width: 120px;
    }
    
    .server-selection {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .episodes-card .season-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .movie-hero {
        padding: 25px 0;
    }
    
    .movie-title {
        font-size: 20px;
    }
    
    .btn-action {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-action span {
        display: none;
    }
    
    .info-table th,
    .info-table td {
        display: block;
        padding: 8px 0;
    }
    
    .info-table th {
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .info-table td {
        padding-top: 5px;
    }
    
    .episodes-card .episode-item {
        padding: 12px;
    }
    
    .ep-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}