/* ==========================================================================
   MOROCOPLAY THEME - MAIN STYLESHEET (CINEMATIC DARK, GLASSMORPHISM & VECTOR ICONS)
   ========================================================================== */

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

body.morocoplay-body {
    background-color: var(--bg-primary, #07090e);
    color: var(--text-primary, #f8fafc);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ---------------- Layout & Sidebar ---------------- */
.morocoplay-layout {
    display: flex;
    min-height: 100vh;
}

.morocoplay-sidebar {
    width: 260px;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
}

.morocoplay-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-cube {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.brand-highlight {
    color: var(--accent-blue, #00d2ff);
}

.sidebar-close-mobile {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 14px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-dim, #64748b);
    padding: 0 12px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 8px);
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-icon {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.nav-list a:hover, .nav-list a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-list a.active {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--accent-blue, #00d2ff);
    color: #ffffff;
    font-weight: 600;
}

.nav-list a.active .nav-icon {
    color: var(--accent-blue, #00d2ff);
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim, #64748b);
    transition: background 0.2s;
}

.nav-list a:hover .nav-dot {
    background: var(--accent-blue, #00d2ff);
}

.sidebar-user-footer {
    padding: 16px 14px;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    background: rgba(0,0,0,0.2);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 210, 255, 0.4);
}

.user-meta {
    flex: 1;
    overflow: hidden;
}

.user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
}

.user-logout-btn {
    color: var(--text-dim, #64748b);
    font-size: 1.2rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-logout-btn:hover {
    color: #ef4444;
}

.btn-sidebar-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* ---------------- Main Area & Topbar ---------------- */
.morocoplay-main-area {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.morocoplay-topbar {
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.topbar-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    padding: 8px 16px;
    border-radius: 999px;
    width: 380px;
    max-width: 100%;
    transition: all 0.2s;
}

.topbar-search-form:focus-within {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-blue, #00d2ff);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.search-icon {
    font-size: 1.1rem;
    color: #94a3b8;
}

.search-field {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    width: 100%;
}

/* ---------------- Live Search Dropdown ---------------- */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    backdrop-filter: blur(16px);
}

.live-search-list {
    display: flex;
    flex-direction: column;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

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

.live-search-item:hover {
    background: rgba(0, 210, 255, 0.12);
}

.live-search-thumb {
    width: 38px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
}

.live-search-meta {
    flex: 1;
    overflow: hidden;
}

.live-search-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.live-search-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.live-search-type {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.live-search-rating {
    color: #f59e0b;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 2px;
}

.live-search-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.topbar-admin-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.topbar-admin-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------------- Platform Toolbar & Dropdown ---------------- */
.platform-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    margin-bottom: 30px;
    overflow-x: auto;
}

.platform-toolbar-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.platform-chips {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-chip {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.platform-chip:hover, .platform-chip.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-blue, #00d2ff);
    color: #ffffff;
}

.more-platforms-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 100;
    min-width: 180px;
    max-height: 250px;
    overflow-y: auto;
}

.platform-drop-item {
    display: block;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: all 0.2s;
}

.platform-drop-item:hover {
    background: rgba(0, 210, 255, 0.15);
    color: #00d2ff;
}

/* ---------------- Carrusel Interactivo & Cards ---------------- */
.carousel-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-carousel-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-carousel-nav:hover {
    background: var(--accent-blue, #00d2ff);
    color: #07090e;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

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

.morocoplay-carousel-track::-webkit-scrollbar {
    display: none;
}

.morocoplay-carousel-track .movie-card {
    flex: 0 0 calc((100% - (7 * 16px)) / 8);
    min-width: 135px;
}

@media (max-width: 1400px) {
    .morocoplay-carousel-track .movie-card {
        flex: 0 0 calc((100% - (5 * 16px)) / 6);
    }
}

@media (max-width: 1024px) {
    .morocoplay-carousel-track .movie-card {
        flex: 0 0 calc((100% - (3 * 16px)) / 4);
    }
}

@media (max-width: 640px) {
    .morocoplay-carousel-track .movie-card {
        flex: 0 0 calc((100% - (1 * 16px)) / 2.3);
    }
}

/* ---------------- Movie Card & Hover Overlay ---------------- */
.morocoplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    background: #0f172a;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 210, 255, 0.4);
    z-index: 20;
}

.card-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 15;
}

.btn-fav.active, .btn-fav:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* ---------------- Card Hover Overlay ---------------- */
.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.97) 0%, rgba(15, 23, 42, 0.9) 60%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(8px);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 10;
}

.movie-card:hover .card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hover-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hover-rating {
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hover-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.hover-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-desc {
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-play-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #07090e;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.4);
}

.hover-play-btn:hover {
    color: #000;
}

/* ---------------- Landing Page Styles ---------------- */
.landing-hero-section {
    position: relative;
    padding: 90px 48px 60px;
    text-align: center;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(0, 210, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.landing-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00d2ff;
    margin-bottom: 24px;
}

.landing-main-heading {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
}

.landing-text-gradient {
    background: linear-gradient(135deg, #00d2ff 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subheading {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 36px;
}

.landing-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-landing-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
    color: #07090e;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    transition: all 0.2s;
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.6);
    color: #000;
}

.btn-landing-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-landing-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.landing-lock-badge {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d2ff;
    font-size: 2.2rem;
    opacity: 0;
    transition: all 0.3s;
}

.landing-preview-card:hover .landing-lock-badge {
    opacity: 1;
    background: rgba(7, 9, 14, 0.7);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.landing-feature-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
}

.feature-icon-box {
    width: 54px;
    height: 54px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: #00d2ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.landing-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.landing-feature-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.landing-cta-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    padding: 48px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.landing-cta-box h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.landing-cta-box p {
    font-size: 1rem;
    color: #94a3b8;
}

/* ---------------- Hero Section ---------------- */
.morocoplay-hero {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 40px 48px;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #07090e 0%, rgba(7, 9, 14, 0.6) 50%, rgba(7, 9, 14, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
}

.hero-meta-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.badge-featured {
    background: var(--accent-blue, #00d2ff);
    color: #07090e;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.badge-rating {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.badge-year {
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-overview {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-hero-play {
    background: #ffffff;
    color: #07090e;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-sm, 8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-hero-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-hero-trailer {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
}

.btn-hero-trailer:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------------- Catalogs & Containers ---------------- */
.morocoplay-page-container {
    padding: 32px 48px;
    flex: 1;
}

.catalog-section {
    margin-bottom: 48px;
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.section-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue, #00d2ff);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-clear-history {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-clear-history:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* ---------------- Player Skin & Controls ---------------- */
.morocoplay-watch-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px 60px;
    position: relative;
    z-index: 10;
}

.movie-backdrop-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.backdrop-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #07090e 100%);
}

.morocoplay-player-container {
    background: rgba(14, 18, 28, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.morocoplay-player-controls {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.morocoplay-lang-tabs {
    display: flex;
    gap: 8px;
}

.morocoplay-lang-tab {
    padding: 8px 18px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.morocoplay-lang-tab.active {
    background: var(--accent-blue, #00d2ff);
    color: #07090e;
    border-color: var(--accent-blue, #00d2ff);
}

.morocoplay-servers-group {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.morocoplay-servers-group.active {
    display: flex;
}

.morocoplay-srv-btn {
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.morocoplay-srv-btn.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-blue, #00d2ff);
    color: #ffffff;
}

.morocoplay-screen-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    width: 100%;
}

.morocoplay-intro-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    z-index: 20;
}

.morocoplay-intro-box {
    text-align: center;
    max-width: 400px;
    padding: 30px;
}

.morocoplay-logo-pulse {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 18px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.5);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 210, 255, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 45px rgba(0, 210, 255, 0.8); }
}

.morocoplay-intro-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 6px;
}

.morocoplay-intro-sub {
    font-size: 0.85rem;
    color: var(--text-dim, #64748b);
    margin-bottom: 20px;
}

.morocoplay-btn-play-trigger {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    transition: all 0.2s;
}

.morocoplay-btn-play-trigger:hover {
    transform: scale(1.05);
}

.morocoplay-iframe-holder {
    width: 100%;
    height: 100%;
}

.morocoplay-iframe-holder iframe {
    width: 100%;
    height: 100%;
}

.morocoplay-server-note-bar {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.morocoplay-server-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.morocoplay-server-note .info-icon {
    color: var(--accent-blue, #00d2ff);
    font-size: 1.1rem;
}

.btn-report-player {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-report-player:hover {
    background: #ef4444;
    color: #fff;
}

/* ---------------- Movie Details Grid ---------------- */
.movie-details-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.poster-card {
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.poster-img {
    width: 100%;
    display: block;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.movie-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
}

.btn-fav-large {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.12));
    padding: 8px 18px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-fav-large.active, .btn-fav-large:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.meta-pills-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.pill {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    display: inline-flex;
    align-items: center;
}

.rating-pill {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.genre-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.genre-tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--accent-blue, #00d2ff);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.movie-synopsis h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.synopsis-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted, #94a3b8);
}

/* ---------------- TV Show Seasons & Episodes ---------------- */
.season-episode-selector-card {
    background: rgba(14, 18, 28, 0.85);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: var(--radius-md, 14px);
    padding: 20px 24px;
    margin-bottom: 36px;
}

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

.selector-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
}

.badge-active-ep {
    background: var(--accent-blue, #00d2ff);
    color: #07090e;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
}

.seasons-tab-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
}

.season-btn {
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #94a3b8);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.season-btn.active {
    background: var(--accent-blue, #00d2ff);
    color: #07090e;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.episode-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.episode-btn .ep-num {
    font-weight: 800;
    color: var(--accent-blue, #00d2ff);
}

.episode-btn.active, .episode-btn:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent-blue, #00d2ff);
    color: #fff;
}

/* ---------------- Footer ---------------- */
.morocoplay-footer {
    padding: 40px 48px;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
    background: rgba(5, 7, 10, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-title {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim, #64748b);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    max-width: 450px;
}

.footer-right {
    text-align: right;
}

.credit-badge {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim, #64748b);
    margin-bottom: 2px;
}

.credit-author {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d2ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 1024px) {
    .morocoplay-sidebar {
        transform: translateX(-100%);
    }
    .morocoplay-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close-mobile {
        display: block;
    }
    .sidebar-toggle-btn {
        display: block;
    }
    .morocoplay-main-area {
        margin-left: 0;
    }
    .movie-details-grid {
        grid-template-columns: 1fr;
    }
    .movie-poster-column {
        display: none;
    }
    .landing-main-heading {
        font-size: 2.2rem;
    }
    .morocoplay-page-container, .morocoplay-topbar, .morocoplay-hero, .morocoplay-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
