/* Design Tokens & CSS Custom Properties */
:root {
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Theme Colors (Warm/Amber-dark fire theme) */
    --bg-base: #080605;
    --bg-workspace: #0f0b09;
    --bg-card: rgba(24, 18, 15, 0.45);
    --bg-card-hover: rgba(38, 28, 22, 0.7);
    --bg-sidebar: rgba(12, 9, 8, 0.95);
    --bg-topbar: rgba(15, 11, 9, 0.75);
    
    /* Neon Glow & Brand Accents (Fire Theme) */
    --accent-glow: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --accent-glow-hover: linear-gradient(135deg, #ea580c 0%, #ca8a04 100%);
    --color-primary: #f97316;
    --color-secondary: #eab308;
    --color-primary-rgb: 249, 115, 22;
    --color-secondary-rgb: 234, 179, 8;
    
    /* Borders & Outlines */
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(249, 115, 22, 0.15);
    
    /* Text Hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Effects */
    --shadow-cinema: 0 20px 50px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.25);
    --blur-glass: blur(14px);
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default browser focus outline box */
button:focus, 
input:focus, 
select:focus, 
textarea:focus, 
[role="button"]:focus, 
a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Scrollbars custom styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Main Layout Structure */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    z-index: 100;
    backdrop-filter: var(--blur-glass);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px 35px 15px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon {
    font-size: 19px;
    color: #fff;
    animation: fireGlow 2s infinite alternate;
}

.brand-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-name span {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition-fast);
    width: 100%;
}

.nav-item i {
    font-size: 18px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--color-primary);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.05);
}

.nav-item.active i {
    color: var(--color-secondary);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.logout-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.logout-link:hover {
    color: var(--color-secondary);
}

/* Main Workspace View */
.main-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-workspace);
    overflow: hidden;
    position: relative;
}

/* Header Top Bar */
.top-bar {
    height: 75px;
    min-height: 75px;
    background: var(--bg-topbar);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 90;
}

.search-wrapper {
    position: relative;
    width: 400px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-fast);
}

.search-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    background: rgba(0, 0, 0, 0.45);
}

.clear-search {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
    font-size: 14px;
    padding: 2px;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Secondary Panels: Split View Container */
.content-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Secondary Sidebar: Categories (Left columns) */
.categories-panel {
    width: 250px;
    border-right: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    overflow-y: auto;
}

.panel-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0 10px;
    font-weight: 800;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.category-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.category-btn.active {
    color: #fff;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    border-left: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.05);
}

/* Catalog View Area (Center panels) */
.catalog-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.03) 0%, transparent 40%);
}

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

.catalog-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.catalog-count {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Spotlight Hero Banner Card */
.spotlight-banner {
    position: relative;
    border-radius: 18px;
    height: 320px;
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background: #000;
}

.spotlight-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(6, 5, 8, 0.95) 0%, rgba(6, 5, 8, 0.65) 45%, rgba(6, 5, 8, 0.1) 100%),
                linear-gradient(to top, rgba(6, 5, 8, 0.95) 0%, transparent 35%);
    z-index: 2;
}

.spotlight-content {
    position: absolute;
    left: 45px;
    bottom: 45px;
    right: 45px;
    z-index: 5;
    max-width: 550px;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-glow);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
}

.spotlight-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.spotlight-plot {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent-glow);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--accent-glow-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Grid Views */
.items-grid-wrapper {
    flex: 1;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

/* Cards configurations (Live & VOD style differences) */
.media-card {
    position: relative;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.media-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(var(--color-primary-rgb), 0.1);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.media-card.vod-style .card-img-wrapper {
    aspect-ratio: 2/3;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

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

.play-icon-glow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-glow);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-card:hover .play-icon-glow {
    transform: scale(1);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 5;
    text-transform: uppercase;
}

.card-badge.live-active {
    background: rgba(220, 38, 38, 0.85);
    border-color: rgba(239, 68, 68, 0.2);
}

.card-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Global Search Section suggestions styling */
.global-search-suggestions {
    border-top: 1px solid var(--border-glass);
    margin-top: 25px;
    padding-top: 20px;
}

.sug-title {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 12px;
}

.sug-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.sug-item:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateX(4px);
    color: #fff;
}

.sug-item i {
    color: var(--color-primary);
}

/* Skeleton Loading Screens */
.skeleton-card {
    height: 180px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
}

.skeleton-card.vod-style {
    height: 270px;
}

.skeleton-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Split Workspace View (Split Player panels) */
.split-player-workspace {
    flex: 1;
    display: flex;
    padding: 25px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(11, 9, 14, 0.98) 0%, rgba(6, 5, 8, 1) 100%);
    position: relative;
}

.player-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Custom Video Player Container */
.cinema-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-cinema);
}

.cinema-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Controls Overlay layer */
.player-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.85) 100%);
    z-index: 10;
    pointer-events: none;
}

.cinema-player-container:hover .player-controls-overlay,
.cinema-player-container.controls-active .player-controls-overlay {
    opacity: 1;
}

.player-controls-top {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.player-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.player-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.player-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-media-type {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-media-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.player-logo-watermark {
    margin-left: auto;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
}

.player-logo-watermark i {
    color: var(--color-primary);
}

.player-controls-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.btn-giant-play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: #fff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transform: scale(0.9);
    transition: var(--transition-fast);
}

.btn-giant-play:hover {
    transform: scale(1.05);
    background: #fff;
    color: #000;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

.player-controls-bottom {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

/* Video Timeline */
.timeline-container {
    width: 100%;
    height: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.timeline-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: height 0.1s ease;
}

.timeline-container:hover .timeline-bar {
    height: 6px;
}

.timeline-progress {
    height: 100%;
    background: var(--accent-glow);
    border-radius: 4px;
    width: 0%;
}

.timeline-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-container:hover .timeline-knob {
    opacity: 1;
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.volume-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}

.volume-control-group:hover .volume-slider-wrapper,
.volume-slider-wrapper:hover {
    width: 75px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.playback-time {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.live-indicator-badge {
    background: var(--color-secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-blink-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite alternate;
}

/* Error banner */
.player-error-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 5, 8, 0.95);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.error-content {
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}

.error-icon {
    font-size: 45px;
    color: #ef4444;
}

.error-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.error-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Detail view */
.media-details-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
}

.details-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 12px;
}

.media-details-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.media-details-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.media-details-plot {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Episodes Section (Series) */
.series-episodes-section {
    margin-top: 30px;
    border-top: 1px solid var(--border-glass);
    padding-top: 25px;
}

.section-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 15px;
}

.seasons-tabs-list {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.season-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.season-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.season-btn.active {
    background: var(--accent-glow);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.episode-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.episode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.ep-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 10px;
}

.ep-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.episode-card:hover .ep-img {
    transform: scale(1.05);
}

.ep-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 34px;
}

/* Animations */
@keyframes fireGlow {
    from { filter: drop-shadow(0 0 2px rgba(255,255,255,0.4)); }
    to { filter: drop-shadow(0 0 10px rgba(249,115,22,0.75)); }
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Styles */
.login-body {
    background: radial-gradient(circle at center, #120e1d 0%, #060508 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-card {
    background: rgba(15, 12, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(168, 85, 247, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: fireGlow 2s infinite alternate;
}

.login-brand {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.login-brand span {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.login-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive Overrides (Smartphones and Tablets) */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
        align-items: center;
    }
    .brand-name, .sidebar-footer { display: none; }
    .sidebar-brand { padding: 0 0 20px 0; }
    .nav-item {
        justify-content: center;
        padding: 14px;
    }
    .nav-item span { display: none; }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }
    .app-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        position: sticky;
        top: 0;
    }
    .sidebar-brand { padding: 0; }
    .brand-name { display: inline; }
    .sidebar-nav {
        flex-direction: row;
        gap: 15px;
        width: auto;
    }
    .nav-item {
        width: auto;
        padding: 10px;
    }
    .main-workspace {
        height: auto;
        overflow: visible;
    }
    .top-bar {
        padding: 15px;
        height: auto;
        flex-direction: column;
        gap: 15px;
    }
    .search-wrapper { width: 100%; }
    .content-container {
        flex-direction: column;
    }
    .categories-panel {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 15px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .panel-title { display: none; }
    .categories-list {
        flex-direction: row;
        gap: 10px;
    }
    .category-btn {
        width: auto;
        display: inline-block;
        padding: 8px 16px;
    }
    .category-btn.active {
        border-left: none;
        border-bottom: 2px solid var(--color-primary);
        padding-left: 16px;
    }
    .catalog-view {
        padding: 15px;
    }
    .spotlight-banner {
        height: 220px;
    }
    .spotlight-title { font-size: 24px; }
    .spotlight-plot { display: none; }
    .split-player-workspace {
        padding: 15px;
    }
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 12px !important;
    }
    .card-details {
        padding: 8px 10px !important;
    }
    .card-title {
        font-size: 12px !important;
    }
    .card-subtitle {
        font-size: 9px !important;
    }
}

/* Player Loader Spinner (bolita de carga) */
.player-loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    pointer-events: none;
    display: none;
}

.spinner-ring {
    width: 55px;
    height: 55px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: cssSpinnerRotate 0.8s linear infinite;
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.6));
}

@keyframes cssSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seek-skip-btn {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seek-skip-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.player-controls-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Header profile logout button */
.logout-btn-top {
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 12px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
}

.logout-btn-top:hover {
    color: #ef4444;
    transform: scale(1.15);
}

/* VOD Server/Language selection styling */
.vod-servers-section {
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    margin-top: 20px;
}
.vod-servers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.server-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.server-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.server-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}
