/* InfoPelis Premium Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Dark Theme Variables (Default) */
    --bg-main: #0b0c15;
    --bg-gradient: radial-gradient(circle at 50% 0%, #17182f 0%, #080911 70%);
    --bg-card: rgba(22, 24, 45, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(139, 92, 246, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-glow: 0 0 20px rgba(139, 92, 246, 0.4);
    
    /* Neon Colors */
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

[data-bs-theme="light"] {
    /* Light Theme Variables */
    --bg-main: #f8fafc;
    --bg-gradient: radial-gradient(circle at 50% 0%, #eef2f6 0%, #e2e8f0 100%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-glow: rgba(59, 130, 246, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-glow: 0 0 15px rgba(59, 130, 246, 0.2);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Global Reset & Base Styles */
body {
    font-family: var(--font-primary);
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color-glow);
    border-radius: 50px;
    border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Glassmorphic Navigation Bar */
.navbar-glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    padding: 12px 0;
}
.navbar-glass .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-glass .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-glass .nav-link:hover, 
.navbar-glass .nav-link.active {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
    z-index: 1;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    background: linear-gradient(to right, var(--text-primary) 30%, var(--accent-purple) 70%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px;
    font-weight: 400;
}

/* Glassmorphic Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-input-wrapper {
    position: relative;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}
.search-input-wrapper:focus-within {
    border-color: var(--accent-purple);
    box-shadow: var(--primary-glow);
    transform: scale(1.01);
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px 16px 52px;
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
}
.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Category Pills Section */
.categories-wrapper {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.categories-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.category-pill {
    white-space: nowrap;
    background: var(--bg-card);
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.category-pill i {
    font-size: 0.9rem;
}
.category-pill:hover {
    color: var(--text-primary) !important;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
}
.category-pill.active {
    background: var(--gradient-primary);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: var(--primary-glow);
}

/* Premium Movie Cards Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Card Style */
.movie-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.movie-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
}

/* Poster Container & Image Hover Zoom */
.poster-container {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: #000000;
}
.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.movie-card-premium:hover .poster-img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(0.6);
}

/* Floating Badges */
.category-badge-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Play Icon Overlay */
.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    pointer-events: none;
    box-shadow: var(--primary-glow);
}
.play-overlay-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    animation: pulseGlow 1.8s infinite;
    opacity: 0;
}
.movie-card-premium:hover .play-overlay-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.0);
}
.movie-card-premium:hover .play-overlay-btn::after {
    opacity: 1;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Card Body & Footer */
.card-content-premium {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.movie-title-premium {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
    /* Multi-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-director-premium {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.movie-desc-premium {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Styled Button */
.btn-premium {
    background: var(--gradient-primary);
    border: none;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.btn-premium:active {
    transform: translateY(0);
}
.btn-premium-disabled {
    background: rgba(148, 163, 184, 0.15) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Themeswitcher Icon Anim */
.theme-switch-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.theme-switch-btn:hover {
    border-color: var(--accent-purple);
    transform: rotate(20deg);
}

/* Beautiful Modal styling */
.modal-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-content-dark {
    background: rgba(15, 17, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    overflow: hidden;
}
.modal-header-premium {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
}
.modal-body-premium {
    padding: 24px;
}
.modal-info-panel {
    margin-top: 20px;
}
.modal-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.modal-info-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

/* Responsive Video Container with spinner */
.video-player-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--accent-purple);
}

/* ADMIN PANEL SPECIFIC STYLES */
/* Glassmorphic Login Layout */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1e1b4b 0%, #030712 100%);
    padding: 20px;
}
.login-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

/* Floating Inputs Styling */
.form-input-premium {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-family: var(--font-primary);
    transition: all 0.3s ease !important;
}
.form-input-premium:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}
.form-select-premium {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}
.form-select-premium:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* Sidebar Styling */
.admin-sidebar {
    width: 280px;
    background: rgba(15, 17, 32, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.admin-main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 40px 0 auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}
.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}
.sidebar-link.active {
    background: var(--gradient-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Styled Table */
.admin-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.admin-table {
    margin-bottom: 0 !important;
}
.admin-table th {
    background: rgba(10, 10, 20, 0.6) !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.admin-table td {
    padding: 18px 24px !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: transparent !important;
}
.admin-table tr:last-child td {
    border-bottom: none !important;
}
.admin-table tr {
    transition: background 0.3s ease;
}
.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Media Previews */
.preview-box-premium {
    background: rgba(15, 23, 42, 0.3);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.preview-box-premium:hover {
    border-color: var(--accent-purple);
}
.image-preview-element {
    max-height: 180px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Ruffle Flash container */
.ruffle-player-premium {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }
    .admin-main-content {
        margin-left: 0;
        padding: 20px;
    }
    .sidebar-menu {
        margin: 20px 0;
        flex-direction: row;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .sidebar-link {
        margin-bottom: 0;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .sidebar-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: none;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .poster-container {
    }
}

/* InfoPelis Premium Visual Additions */

/* Featured Movie Banner */
.featured-banner-premium {
    position: relative;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px;
    background: #080911;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
    z-index: 1;
    transition: all 0.4s ease;
}
.featured-banner-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center;
    filter: blur(35px) brightness(0.32);
    z-index: -2;
}
.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(11, 12, 21, 0.9) 0%, rgba(11, 12, 21, 0.5) 60%, rgba(11, 12, 21, 0.9) 100%);
    z-index: -1;
}
.featured-content {
    max-width: 65%;
    z-index: 2;
    text-align: left;
}
.featured-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #d8b4fe;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
}
.featured-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.88rem;
    color: #cbd5e1;
    align-items: center;
}
.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.featured-desc {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.featured-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.featured-poster-right {
    width: 210px;
    height: 310px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-banner-premium:hover .featured-poster-right {
    transform: scale(1.04) translateY(-8px);
}
.featured-poster-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Favorite Star Button */
.fav-badge-floating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fav-badge-floating:hover {
    transform: scale(1.15);
    background: rgba(15, 23, 42, 0.85);
    border-color: #ef4444;
}
.fav-badge-floating:active {
    transform: scale(0.9);
}

/* Actions Toolbar on Movie Cards */
.btn-action-premium {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-action-premium:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}
.btn-action-premium:active {
    transform: translateY(0);
}
.btn-action-premium.liked i {
    color: var(--accent-blue) !important;
}
.btn-action-premium.liked {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent-blue);
}

.btn-lg-circle {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}
.btn-lg-circle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: #ffffff;
}

/* Metadata panel inside Card body */
.movie-meta-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.movie-meta-premium span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Custom Toast notification system */
.custom-toast {
    background: rgba(15, 17, 32, 0.85) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Theater Cinema Mode overlay styles */
.modal.cinema-mode .modal-dialog {
    max-width: 95% !important;
    width: 95% !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.cinema-mode .modal-content-dark {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 1) !important;
}
.modal.cinema-mode .modal-info-panel {
    display: none !important;
}
.modal.cinema-mode .video-player-wrapper {
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.modal.cinema-mode .modal-body-premium {
    padding: 12px;
}
.modal.cinema-mode .modal-header-premium {
    padding: 12px 24px;
}

/* Extra sorting controls styling */
.form-select-premium {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 50px !important;
    font-weight: 500;
}
.form-select-premium:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: var(--primary-glow) !important;
}

/* Category Pill Active State Animation */
.category-pill.active i {
    animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

/* Dashboard Statistics Animations */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Media Responsive Styles */
@media (max-width: 991px) {
    .featured-banner-premium {
        min-height: auto;
        padding: 30px;
        flex-direction: column;
    }
    .featured-content {
        max-width: 100%;
        margin-bottom: 25px;
    }
    .featured-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .featured-title {
        font-size: 1.8rem;
    }
    .featured-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .featured-actions button, 
    .featured-actions div {
        width: 100%;
    }
}

/* Phase 2 Premium Additions */

/* Custom Carousel Indicators */
#featuredCarousel .carousel-indicators {
    margin-bottom: -20px;
    gap: 6px;
}
#featuredCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}
#featuredCarousel .carousel-indicators .active {
    width: 28px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--accent-purple);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Custom Carousel Prev/Next Buttons */
#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    background-color: rgba(15, 17, 32, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
#featuredCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent-purple) !important;
    border-color: var(--accent-purple);
    box-shadow: var(--primary-glow);
    transform: scale(1.1);
}

/* Continue Watching Progress Bar styling */
.poster-container .progress {
    height: 6px !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px);
    z-index: 4;
    border: none !important;
}
.poster-container .progress-bar {
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-blue) 100%) !important;
    box-shadow: 0 0 8px var(--accent-purple);
    transition: width 0.4s ease;
}

/* Resume Playback Alert Banner */
#resumePlaybackAlert {
    background: rgba(139, 92, 246, 0.12) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
#resumePlaybackAlert .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
#resumePlaybackAlert .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}
#resumePlaybackAlert .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Admin Category Page styling */
.admin-table td code {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-table tr td .btn-outline-primary:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.admin-table tr td .btn-outline-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

