/* ==========================================================================
   PELIS.CLUB - PREMIUM MODERN STREAMING DESIGN SYSTEM
   Dark Theme: Midnight Purple & Neon Emerald Accents
   ========================================================================== */

/* Google Fonts - Outfit for Headings & Inter for Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --bg-darkest: #090a0f;
    --bg-darker: #10121a;
    --bg-card: #151824;
    --bg-glass: rgba(16, 18, 26, 0.75);
    --border-glass: rgba(255, 255, 255, 0.06);

    /* Harmonious Harmonized Colors */
    --primary: #10b981;
    /* Emerald Green */
    --primary-hover: #059669;
    --secondary: #3b82f6;
    /* Sapphire Blue */
    --secondary-hover: #2563eb;

    --text-main: #f4f4f5;
    --text-muted: #9ca3af;
    --rating-gold: #fbbf24;
    --text-white: #ffffff;

    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-darkest);
}

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

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Sleek Dynamic Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

/* Header Dropdown Menu hover */
.menu-dropdown-container:hover .menu-dropdown-menu {
    display: block !important;
}

.menu-dropdown-container:hover .menu-dropdown-trigger {
    color: var(--primary) !important;
}

.menu-dropdown-trigger.active {
    color: var(--primary) !important;
}

.header-scrolled {
    background: #090a0f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-text-span {
    display: inline-block;
    transition: font-size 0.3s ease;
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.menu-nav a:hover,
.menu-nav a.active {
    color: var(--primary);
}

/* Custom Search Box in Header (Click to Expand) */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.search-icon:hover {
    color: var(--primary);
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-white);
    padding: 0.55rem 0;
    border-radius: var(--border-radius-lg);
    outline: none;
    font-size: 0.85rem;
    width: 0;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.search-wrapper.active .search-input,
.search-input:focus {
    width: 240px;
    opacity: 1;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1px solid var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
    pointer-events: auto;
}

/* Hero Section Premium */
.hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    width: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(9, 10, 15, 0.9) 0%, rgba(9, 10, 15, 0.6) 40%, rgba(9, 10, 15, 0.1) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, var(--bg-darkest) 0%, rgba(9, 10, 15, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    margin-top: 50px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--rating-gold);
    font-weight: bold;
}

.hero-overview {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

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

/* Shelf Section Slider */
.section-shelf {
    margin-bottom: 4rem;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.6rem;
    position: relative;
    padding-left: 0.8rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-all-link:hover {
    color: var(--text-white);
}

/* Movie Card Premium Grid & Shelf */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.8rem;
}

@media (max-width: 480px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.movie-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

.movie-card:hover .movie-poster {
    transform: scale(1.1);
    filter: brightness(0.35) blur(1.5px);
}

.movie-card::after {
    content: '\F5C0';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 2.8rem;
    color: var(--primary);
    opacity: 0;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.movie-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card badges */
.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-movie {
    background: linear-gradient(135deg, #e50914 0%, #ff4b55 100%);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

.badge-series {
    background: linear-gradient(135deg, #0d6efd 0%, #00f2fe 100%);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.badge-anime {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    box-shadow: 0 4px 8px rgba(121, 40, 202, 0.3);
}

/* Hover Details Overlay */
.movie-overlay {
    position: absolute;
    inset: 0;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    z-index: 4;
    transition: var(--transition-smooth);
    background: linear-gradient(to top, rgba(9, 10, 15, 0.95) 0%, rgba(9, 10, 15, 0.7) 50%, rgba(9, 10, 15, 0.1) 100%);
}

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

.card-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--rating-gold);
}

.card-year {
    color: var(--text-muted);
}

/* Watch View Styling */
.watch-layout {
    margin-top: 100px;
    margin-bottom: 4rem;
}

.watch-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .watch-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Aspects-ratio robust responsive iframe */
.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
}

.player-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Content Details Info */
.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.info-meta-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.overview-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.detail-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Actor Circular Avatars */
.cast-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cast-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    font-size: 0.8rem;
}

.cast-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Season and Episodes Selector Layout */
.episodes-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    height: fit-content;
}

.season-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.02);
}

/* Premium thin scrollbar for season tabs */
.season-tabs::-webkit-scrollbar {
    height: 4px;
}

.season-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--border-radius-sm);
}

.season-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.season-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.season-tab.active,
.season-tab:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.episodes-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.5rem;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    font-size: 0.9rem;
    font-weight: 600;
}

.episode-item:hover,
.episode-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.episode-item-badge {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.episode-item.active .episode-item-badge {
    background: var(--primary);
    color: var(--text-white);
}

/* Premium Admin sync Panel dashboard */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    max-width: 480px;
    margin: 120px auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
    outline: none;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

/* Sincronizador Dashboard layout */
.dashboard-layout {
    margin-top: 100px;
    margin-bottom: 4rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.stat-info strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.stat-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Sync Controls & Dynamic Log */
.sync-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .sync-panel-grid {
        grid-template-columns: 1fr;
    }
}

.control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2rem;
}

.sync-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
}

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

.sync-action-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sync-action-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.log-card {
    background: #06070a;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.log-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.log-console {
    background: #020204;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #10b981;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Live dynamic Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1.5rem;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Responsive Footer */
.app-footer {
    background: #090a0f;
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-desc {
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    font-size: 0.8rem;
}

/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Hide/Show utilities */
@media (min-width: 992px) {
    .d-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .d-none {
        display: none !important;
    }

    .d-lg-none {
        display: block !important;
    }

    .d-lg-block {
        display: none !important;
    }

    .d-lg-flex {
        display: none !important;
    }

    .d-sm-inline {
        display: none !important;
    }

    /* Header nav responsive adjustments */
    .menu-nav {
        display: none !important;
    }
}

/* ==========================================================================
   UNIFIED MINIMALIST DYNAMIC NAVBAR SYSTEM
   ========================================================================== */
.header-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    width: 100%;
}

/* Search Box style adjustments */
.search-wrapper {
    margin-right: auto;
    margin-left: 2rem;
}

/* Sleek Menu Toggle Button & Mobile Action Button */
.menu-toggle-btn, .mobile-action-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.4rem;
    padding: 0;
    outline: none;
}

.mobile-action-btn {
    font-size: 1.15rem; /* Better balance for search icon */
}

.menu-toggle-btn:hover, .mobile-action-btn:hover,
.menu-toggle-btn.active, .mobile-action-btn.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.menu-toggle-btn i, .mobile-action-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle-btn.active i {
    transform: rotate(90deg);
}

/* Premium Full-Width Mobile Search Bar (Covers Header when active) */
.mobile-search-container {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #090a0f;
    padding: 0 1rem;
    z-index: 1050;
    border-bottom: 1px solid var(--border-glass);
}

.mobile-search-container.active {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.8rem !important;
    animation: mobileSearchFadeIn 0.25s ease-in-out forwards;
}

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

.mobile-search-back-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-white) !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0 !important;
}

.mobile-search-back-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--primary) !important;
}

.mobile-search-form {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.mobile-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 2.5rem;
    border-radius: var(--border-radius-lg);
    color: var(--text-white);
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.mobile-search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.mobile-search-clear-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-search-clear-icon:hover {
    color: #ef4444;
}

.mobile-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(13, 15, 24, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1.5px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    z-index: 10010;
    max-height: 360px;
    overflow-y: auto;
    border-top: 1px solid var(--border-glass);
}

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

/* Unified Links Menu styling */
.nav-links-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.nav-links-menu a:hover,
.nav-links-menu a.active {
    color: var(--primary);
}

/* Outlined Register button in nav */
.btn-register-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-white) !important;
    padding: 0.4rem 1rem;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-register-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.nav-menu-separator {
    display: none;
    height: 1px;
    background: var(--border-glass);
    width: 100%;
    margin: 0.5rem 0;
}

/* Desktop Flat Tops display default: hidden on desktop, flat on mobile drawer */
.nav-top-link {
    display: none;
}

/* RESPONSIVE LAYOUT FOR SMALL SCREENS (< 991px) */
@media (max-width: 991px) {
    .search-wrapper {
        display: none !important;
    }

    .mobile-actions-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.6rem !important;
    }

    .menu-toggle-btn, .mobile-action-btn {
        display: flex !important;
    }

    /* Collapsible Navigation Side Drawer - Professional Off-Canvas Fixed Layout */
    .nav-links-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: rgba(9, 10, 15, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
        gap: 0.75rem;
        z-index: 10000; /* Must sit above everything else */
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .nav-links-menu.active {
        transform: translateX(0);
    }

    /* Premium mobile link styling with rounded card backdrops and soft glow transitions */
    .nav-links-menu a {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.98rem;
        font-weight: 600;
        color: var(--text-muted);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        gap: 0.8rem;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links-menu a:hover,
    .nav-links-menu a.active {
        background: rgba(16, 185, 129, 0.08);
        border-color: rgba(16, 185, 129, 0.25);
        color: var(--primary);
        transform: translateX(4px);
    }

    .nav-links-menu a.active {
        border-left: 3px solid var(--primary) !important;
        padding-left: calc(1.25rem - 3px);
        box-shadow: inset 5px 0 15px rgba(16, 185, 129, 0.05);
    }

    /* Staggered cascading entry micro-animations for menu items */
    .nav-links-menu.active a {
        animation: menuItemFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    .nav-links-menu.active a:nth-child(1) { animation-delay: 0.03s; }
    .nav-links-menu.active a:nth-child(2) { animation-delay: 0.06s; }
    .nav-links-menu.active a:nth-child(3) { animation-delay: 0.09s; }
    .nav-links-menu.active a:nth-child(4) { animation-delay: 0.12s; }
    .nav-links-menu.active a:nth-child(5) { animation-delay: 0.15s; }
    .nav-links-menu.active a:nth-child(6) { animation-delay: 0.18s; }
    .nav-links-menu.active a:nth-child(7) { animation-delay: 0.21s; }
    .nav-links-menu.active a:nth-child(8) { animation-delay: 0.24s; }

    @keyframes menuItemFadeIn {
        from {
            opacity: 0;
            transform: translateY(12px) translateX(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0) translateX(0);
        }
    }

    .nav-top-link {
        display: flex;
    }

    .nav-menu-separator {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
        width: 100%;
        margin: 0.25rem 0;
    }

    .btn-register-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.85rem !important;
        font-size: 0.95rem !important;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
        border: none !important;
    }

    .btn-register-nav:hover {
        transform: scale(1.02) !important;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Avatar Upload Elements */
.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: visible;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--bg-card);
    transition: var(--transition-smooth);
}

.avatar-edit-overlay:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
}

/* Modal Premium Glassmorphic for List Edits */
.premium-modal {
    position: fixed;
    inset: 0;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.premium-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Drawer Overlay background blur & off-canvas transition backdrop */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 9998;
    pointer-events: none;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
    pointer-events: auto;
    background: rgba(9, 10, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Responsive header adjustments for small screens */
@media (max-width: 576px) {
    .logo-container a {
        font-size: 1.25rem !important;
        gap: 0.35rem;
    }

    .logo-container a i {
        font-size: 1.4rem !important;
    }

    .logo-suffix {
        display: none;
    }

    .logo-text-span {
        font-size: 4.2vw !important; /* Fluid responsive mobile typography */
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .logo-container a {
        font-size: 1.12rem !important;
    }
}


/* Real-Time Search Suggestions Autocomplete Styles */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

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

.suggestion-item:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-white);
}

.suggestion-item:hover .suggestion-title {
    color: var(--primary);
}

.suggestion-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-smooth);
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
    line-height: 1;
}

.suggestion-badge.badge-movie {
    background: rgba(229, 9, 20, 0.15);
    color: #ff4b55;
    border: 1px solid rgba(229, 9, 20, 0.25);
}

.suggestion-badge.badge-series {
    background: rgba(13, 110, 253, 0.15);
    color: #00f2fe;
    border: 1px solid rgba(13, 110, 253, 0.25);
}

.suggestion-badge.badge-anime {
    background: rgba(121, 40, 202, 0.15);
    color: #ff0080;
    border: 1px solid rgba(121, 40, 202, 0.25);
}

.suggestion-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--rating-gold);
    font-weight: 700;
}

.suggestion-no-results {
    padding: 1.8rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-no-results i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==========================================================================
   PERFILES DE ACTORES Y DIRECTORES (TMDB INTEGRACIÓN)
   ========================================================================== */

.profile-hero {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(16, 18, 26, 0.95) 0%, rgba(9, 10, 15, 0.98) 100%);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
    padding: calc(3rem + 70px) 0 3rem 0; /* Pushed down to clear the fixed 70px menu */
    display: flex;
    align-items: center;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.profile-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
    width: 240px;
    position: relative;
}

.profile-avatar {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    border: 3px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-avatar-wrapper:hover .profile-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
    transform: translateY(-5px);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.profile-role-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
}

.profile-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-meta-label {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-meta-value {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 600;
}

.profile-bio-title {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-bio-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar for Bio */
.profile-bio-text::-webkit-scrollbar {
    width: 6px;
}

.profile-bio-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.profile-bio-text::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

.profile-bio-text::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Interactive Reparto (Cast Member Links) */
a.cast-member {
    transition: var(--transition-smooth);
    cursor: pointer;
}

a.cast-member:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

a.cast-member:hover span {
    color: var(--primary) !important;
}

a.cast-member:hover img.cast-avatar {
    border-color: var(--primary);
}

/* Responsividad para Perfiles */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .profile-avatar-wrapper {
        width: 200px;
    }

    .profile-name {
        font-size: 2.3rem;
    }

    .profile-meta-grid {
        justify-items: center;
    }

    .profile-bio-text {
        max-height: none;
        padding-right: 0;
    }
}

/* --- HORIZONTAL VIDEO CARDS & SERVERS SELECTOR --- */
.movie-card.horizontal {
    aspect-ratio: 16 / 10 !important;
}

.server-selector-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    width: 100%;
}

.server-selector-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.server-buttons-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.server-btn {
    font-size: 0.82rem !important;
    padding: 0.5rem 1.2rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 576px) {
    .server-selector-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .server-selector-title {
        margin-bottom: 0.2rem;
        border-bottom: 1px solid var(--border-glass);
        padding-bottom: 0.5rem;
    }
    .server-buttons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        width: 100%;
    }
    .server-btn {
        justify-content: center;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* --- SEARCH SUGGESTIONS DROPDOWN STYLES --- */
#searchSuggestionsDropdown {
    transition: opacity 0.2s var(--transition-smooth);
}

.suggestion-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    transition: background 0.2s var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    width: 100%;
}

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

.suggestion-item:hover,
.suggestion-item.focused {
    background: rgba(16, 185, 129, 0.08);
    outline: none;
}

.suggestion-item.focused .suggestion-title {
    color: var(--primary);
}

.suggestion-poster {
    width: 38px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.suggestion-title {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-white);
    transition: color 0.2s;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.suggestion-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.suggestion-badge.badge-movie {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    border: 1.2px solid rgba(16, 185, 129, 0.25);
}

.suggestion-badge.badge-series {
    background: rgba(59, 130, 246, 0.12);
    color: var(--secondary);
    border: 1.2px solid rgba(59, 130, 246, 0.25);
}

.suggestion-rating {
    color: var(--rating-gold);
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.suggestion-no-results {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-no-results i {
    font-size: 1.3rem;
    color: var(--border-glass);
}

/* Cinema Mode Active Styles & Backdrop */
.cinema-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97); /* Ultra premium dark backdrop */
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Evitar interceptación de clics por defecto */
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
    cursor: pointer;
}
body.cinema-mode-active .cinema-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permitir clic para cerrar */
}
body.cinema-mode-active .app-header {
    transform: translateY(-100%);
}
body.cinema-mode-active .player-container {
    z-index: 999 !important;
    position: relative;
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.45) !important;
    border-color: var(--primary) !important;
    transform: scale(1.02); /* Subtle scale up for primary focus */
}
body.cinema-mode-active .server-selector-container {
    position: relative;
    z-index: 999 !important;
}
body.cinema-mode-active .btn-cinema-mode {
    position: relative;
    z-index: 999 !important;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%) !important;
    color: #000 !important;
    border-color: var(--primary) !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
}
body.cinema-mode-active #globalAnnouncementBanner {
    display: none !important;
}

/* VIP Comment Card Styles */
.comment-card-vip {
    border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15) !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(21, 24, 36, 0.95) 100%) !important;
    position: relative;
    overflow: hidden;
}
.comment-card-vip::after {
    content: 'VIP';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.15rem 0.5rem;
    border-bottom-left-radius: var(--border-radius-sm);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.username-vip {
    color: #fbbf24 !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    animation: vipGlow 2.5s infinite ease-in-out;
}
@keyframes vipGlow {
    0%, 100% { text-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
    50% { text-shadow: 0 0 12px rgba(245, 158, 11, 0.8), 0 0 16px rgba(245, 158, 11, 0.4); }
}