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

        :root {
            --primary: #0a2540;
            --accent: #0074FF;
            --accent-light: #00C4FF;
            --accent-gradient: linear-gradient(135deg, #0074FF 0%, #00C4FF 100%);
            
            --bg-body: #f4f6f9;
            --card-bg: #ffffff;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Lato', sans-serif;
            background: var(--bg-body);
            color: var(--text-dark);
            line-height: 1.4;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .media-title, .footer-logo {
            font-family: 'Lato', sans-serif;
            font-weight: 900;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* --- HEADER --- */
        header {
            background: var(--accent-gradient);
            padding: 15px 0;
            position: relative;
            z-index: 100;
            box-shadow: 0 4px 15px rgba(0, 116, 255, 0.25);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .search-bar {
            flex: 1;
            max-width: 500px;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 40px;
            padding: 8px 18px;
            transition: var(--transition);
        }

        .search-bar:focus-within {
            background: rgba(255, 255, 255, 0.4);
            border-color: #ffffff;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .search-bar input {
            width: 100%;
            background: transparent;
            border: none;
            color: #ffffff;
            outline: none;
            font-family: 'Lato', sans-serif;
            font-size: 0.9rem;
        }

        .search-bar input::placeholder {
            color: rgba(255, 255, 255, 0.9);
        }

        .search-bar i {
            color: #ffffff;
            font-size: 1rem;
        }

        .header-actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .icon-btn {
            color: #ffffff;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .icon-btn:hover {
            transform: scale(1.15);
        }

        .btn-login {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.6);
            padding: 8px 18px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .btn-login:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #ffffff;
        }

        /* --- MENÚ FLOTANTE --- */
        .menu-spacer {
            padding: 15px 0;
            display: flex;
            justify-content: center;
            position: sticky;
            top: 0;
            z-index: 99;
        }

        .floating-nav {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 50px;
            padding: 6px 14px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            max-width: 95vw;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .floating-nav::-webkit-scrollbar {
            display: none;
        }

        .floating-nav .nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #475569;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 8px 16px;
            border-radius: 30px;
            transition: var(--transition);
            white-space: nowrap;
        }

        .floating-nav .nav-item:hover,
        .floating-nav .nav-item.active {
            color: var(--accent);
            background: rgba(0, 116, 255, 0.08);
        }

        .floating-nav .nav-divider {
            width: 1px;
            height: 20px;
            background: rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
        }

        .floating-nav .badge-nav {
            background: var(--accent);
            color: #ffffff;
            font-size: 0.62rem;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 800;
        }

        /* --- HERO BANNER CARRUSEL --- */
        .hero-banner {
            position: relative;
            min-height: 460px;
            border-radius: 24px;
            overflow: hidden;
            background: #000;
            margin-bottom: 40px;
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
        }

        .hero-backdrop {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            opacity: 0.75;
            transition: background-image 0.5s ease-in-out, opacity 0.5s ease-in-out;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.65) 50%, rgba(0,0,0,0.2) 100%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            padding: 40px 50px;
            max-width: 650px;
            color: #ffffff;
            transition: opacity 0.3s ease;
        }

        .hero-badge {
            background: #0074FF;
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 15px;
        }

        .hero-title-container {
            margin-bottom: 15px;
            min-height: 90px;
            display: flex;
            align-items: center;
        }

        .hero-title-logo {
            max-width: 380px;
            max-height: 140px;
            width: 100%;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
        }

        .hero-title {
            font-size: 2.5rem;
            line-height: 1.1;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }

        .hero-subtitle {
            font-size: 0.88rem;
            color: #e2e8f0;
            margin-bottom: 24px;
            font-weight: 500;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hero-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .btn-play {
            background: #0074FF;
            color: #ffffff;
            padding: 10px 20px;
            min-height: 40px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid rgba(255,255,255,.12);
            cursor: pointer;
            transition: var(--transition);
            box-sizing: border-box;
            text-decoration: none;
        }

        .btn-play:hover {
            background: #00C4FF;
            transform: translateY(-2px);
        }

        .btn-trailer {
            background: rgba(10, 25, 43, 0.58);
            color: #ffffff;
            padding: 10px 20px;
            min-height: 40px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            cursor: pointer;
            backdrop-filter: blur(4px);
            transition: var(--transition);
        }

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

        .slider-controls {
            position: absolute;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 3;
            pointer-events: none;
        }

        .slider-arrow {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.4);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            pointer-events: auto;
            backdrop-filter: blur(6px);
            transition: var(--transition);
        }

        .slider-arrow:hover {
            background: var(--accent);
            border-color: var(--accent);
            transform: scale(1.1);
        }

        .slider-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 3;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: var(--transition);
        }

        .dot.active {
            background: #0074FF;
            width: 24px;
            border-radius: 10px;
        }

        /* --- FILAS Y SECCIONES DE CONTENIDO --- */
        .content-section {
            margin-bottom: 40px;
        }

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

        .section-title {
            font-size: 1.25rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::before {
            content: '';
            width: 4px;
            height: 18px;
            background: var(--accent);
            border-radius: 2px;
            display: inline-block;
        }

        .section-nav-arrows {
            display: flex;
            gap: 8px;
        }

        .nav-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: #ffffff;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }

        .nav-circle:hover {
            border-color: var(--accent);
            background: var(--accent);
            color: #ffffff;
        }

        /* --- CARRUSELES HORIZONTALES --- */
        .carousel-container {
            position: relative;
            width: 100%;
        }

        .cards-row {
            display: flex;
            gap: 18px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 10px 4px 20px 4px;
            scrollbar-width: none;
        }

        .cards-row::-webkit-scrollbar {
            display: none;
        }

        .media-card {
            flex: 0 0 calc(20% - 15px);
            min-width: 200px;
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            cursor: pointer;
            position: relative;
        }

        .media-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-md);
            border-color: rgba(0, 116, 255, 0.3);
        }

        .media-poster {
            width: 100%;
            aspect-ratio: 2 / 3;
            background: #cbd5e1;
            overflow: hidden;
            position: relative;
        }

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

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

        .poster-overlay {
            position: absolute;
            inset: 0;
            background: rgba(10, 37, 64, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

        .poster-overlay i {
            color: #ffffff;
            font-size: 2.2rem;
            background: var(--accent);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transform: scale(0.8);
            transition: var(--transition);
        }

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

        .media-card:hover .poster-overlay i {
            transform: scale(1);
        }

        .media-info {
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
            justify-content: space-between;
            background: #ffffff;
        }

        .media-title {
            font-size: 0.95rem;
            color: var(--text-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
        }

        .media-meta-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .media-type-meta {
            gap: 5px;
        }

        .media-type-meta .tag-type {
            flex: 0 0 auto;
            text-transform: none;
        }

        .media-type-meta .meta-separator {
            color: var(--text-muted);
            font-weight: 700;
        }

        .tag-category {
            color: var(--accent);
            font-weight: 700;
        }

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

        .media-poster > .tag-seasons {
            position: absolute;
            right: 8px;
            bottom: 8px;
            z-index: 4;
            background: var(--accent);
            color: #ffffff;
            padding: 4px 7px;
            border-radius: 5px;
            font-size: 0.7rem;
            line-height: 1;
            font-weight: 700;
            border: 1px solid rgba(255,255,255,0.35);
            box-shadow: 0 3px 8px rgba(0,0,0,0.22);
            white-space: nowrap;
        }

        .media-meta-tags .tag-seasons {
            display: none;
        }

        /* --- FICHAS CUADRADAS PARA CANALES DE TELEGRAM --- */
        .channel-card {
            flex: 0 0 190px;
            min-width: 190px;
            background: var(--card-bg);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px;
            text-align: center;
        }

        .channel-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-md);
            border-color: rgba(0, 116, 255, 0.4);
        }

        .channel-avatar {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 14px;
            overflow: hidden;
            background: #e2e8f0;
            margin-bottom: 12px;
            position: relative;
        }

        .channel-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .channel-info {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .channel-name {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--text-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .channel-subs {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin-bottom: 10px;
        }

        .btn-join-telegram {
            background: #229ED9;
            color: #ffffff;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 7px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            transition: var(--transition);
        }

        .btn-join-telegram:hover {
            background: #1b82b3;
        }

        /* --- MODAL REPRODUCTOR --- */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #0f172a;
            width: 100%;
            max-width: 900px;
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            background: rgba(255,255,255,0.1);
            color: #ffffff;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.1rem;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: #ef4444;
            color: #ffffff;
        }

        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            background: #000000;
        }

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

        /* --- FOOTER --- */
        footer {
            background: var(--accent-gradient);
            padding: 40px 0 20px 0;
            text-align: center;
            color: #ffffff;
            font-size: 0.75rem;
            box-shadow: 0 -4px 15px rgba(0, 116, 255, 0.25);
            margin-top: 50px;
        }

        .footer-logo {
            font-size: 1.8rem;
            color: #ffffff;
            margin-bottom: 20px;
            display: inline-block;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.9);
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1200px) {
            .media-card {
                flex: 0 0 calc(25% - 14px);
            }
        }

        @media (max-width: 900px) {
            .media-card {
                flex: 0 0 calc(33.33% - 12px);
            }
        }

        @media (max-width: 600px) {
            .container {
                padding: 0 16px;
            }

            .media-card {
                flex: 0 0 calc(45% - 10px);
                min-width: 140px;
            }

            .channel-card {
                flex: 0 0 160px;
                min-width: 160px;
            }

            .hero-title {
                font-size: 1.8rem;
            }

            .hero-title-logo {
                max-width: 230px;
            }

            .hero-content {
                padding: 30px 20px;
            }
        }


/* SAP Play MOBILE FLOATING MENU FIX 1.0.26 */
@media (max-width: 768px) {
  .menu-spacer {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
  }

  .floating-nav {
    position: relative !important;
    z-index: 10000 !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  .floating-nav::-webkit-scrollbar { display: none !important; }
  .floating-nav .nav-item { flex: 0 0 auto !important; white-space: nowrap !important; }
}

@media (max-width: 480px) {
  .menu-spacer { padding: 8px 8px !important; }
  .floating-nav { max-width: calc(100vw - 16px) !important; }
}


/* SAP Play MOBILE FLOATING MENU — CORRECCIÓN 1.0.27 */
@media (max-width: 768px) {
  /* Evita que overflow-x del documento rompa position: sticky. */
  html,
  body {
    overflow-x: clip !important;
  }

  .menu-spacer {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    min-height: 56px !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    background: rgba(255,255,255,.78) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: visible !important;
  }

  .floating-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: calc(100vw - 20px) !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    transform: none !important;
  }

  .floating-nav::-webkit-scrollbar {
    display: none !important;
  }

  .floating-nav .nav-item,
  .floating-nav .nav-divider {
    flex: 0 0 auto !important;
  }

  .floating-nav .nav-item {
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .menu-spacer {
    min-height: 52px !important;
    padding: 7px 8px !important;
  }

  .floating-nav {
    max-width: calc(100vw - 16px) !important;
  }
}



/* SAP Play 1.0.30 — stacking fix: floating menu must stay below video/embed modal */
.menu-spacer {
  z-index: 100 !important;
}
.floating-nav {
  z-index: 101 !important;
}
.modal,
#videoModal {
  z-index: 100000 !important;
}
.modal-content {
  position: relative;
  z-index: 100001 !important;
}


/* =========================================================
   SAP Play 1.0.31 — Menú flotante basado en HOME.html
   - Misma píldora en escritorio y móvil.
   - Sticky, centrado y desplazable horizontalmente en móvil.
   - El reproductor/modal siempre queda por encima.
   ========================================================= */
.menu-spacer {
  padding: 15px 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 99 !important;
}

.floating-nav {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 50px !important;
  padding: 6px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: max-content !important;
  max-width: 95vw !important;
  margin: 0 auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  position: relative !important;
  z-index: 100 !important;
  transform: none !important;
}

.floating-nav::-webkit-scrollbar {
  display: none !important;
}

.floating-nav .nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #475569 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 30px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.floating-nav .nav-item:hover,
.floating-nav .nav-item.active {
  color: var(--accent) !important;
  background: rgba(0, 116, 255, 0.08) !important;
}

.floating-nav .nav-divider {
  width: 1px !important;
  height: 20px !important;
  background: rgba(0, 0, 0, 0.1) !important;
  flex: 0 0 auto !important;
}

.floating-nav .badge-nav {
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 0.62rem !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  flex: 0 0 auto !important;
}

/* El modal de reproducción debe superar al menú, igual que en HOME.html. */
.modal,
#videoModal {
  z-index: 1000 !important;
}

.modal-content {
  position: relative !important;
  z-index: 1001 !important;
}

@media (max-width: 768px) {
  .menu-spacer {
    padding: 15px 10px !important;
    overflow: hidden !important;
  }

  .floating-nav {
    width: max-content !important;
    max-width: calc(100vw - 20px) !important;
    margin: 0 auto !important;
    flex: 0 1 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .floating-nav .nav-item,
  .floating-nav .nav-divider,
  .floating-nav .badge-nav {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 480px) {
  .menu-spacer {
    padding: 15px 8px !important;
  }

  .floating-nav {
    max-width: calc(100vw - 16px) !important;
  }
}


/* Etiqueta de país del contenido */

.country-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    min-height: 20px;
    border-radius: 4px;
    background: #0074FF;
    color: #fff;
    font-size: .68rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .1px;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.show-country-badge {
    position: static;
    margin-bottom: 10px;
    font-size: .72rem;
    padding: 4px 9px;
}


.media-type-row{
  margin-top:7px;
  min-height:22px;
}
.tag-type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:6px;
  background:var(--primary,#0074ff);
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:none;
  white-space:nowrap;
}


@media (max-width:768px){
  .media-type-row{margin-top:6px;}
  .tag-type{font-size:9px;padding:4px 8px;}
}


/* =========================================================
   SAP Play 1.0.49 — Móvil más compacto, amplio y fresco
   Reduce espacios, tipografías y controles sin sacrificar
   legibilidad ni la zona táctil principal.
   ========================================================= */
@media (max-width: 768px) {
  .container { padding-left: 10px !important; padding-right: 10px !important; }

  header { padding: 5px 0 !important; }
  .header-top { gap: 5px !important; }
  .header-top img { width: 104px !important; max-height: 34px !important; }
  .btn-login { padding: 4px 8px !important; font-size: .74rem !important; gap: 4px !important; }
  .icon-btn { font-size: 1.05rem !important; }
  .header-actions { gap: 9px !important; }
  .search-bar { padding: 4px 10px !important; margin-top: 3px !important; min-height: 34px; }
  .search-bar input { font-size: .78rem !important; }
  .search-bar i, .search-submit { font-size: .82rem !important; }

  .menu-spacer { padding: 6px 8px !important; min-height: 48px !important; }
  .floating-nav { padding: 5px 7px !important; max-width: calc(100vw - 12px) !important; box-shadow: 0 7px 18px rgba(0,0,0,.08) !important; }
  .floating-nav .nav-item { width: 38px !important; min-width: 38px !important; height: 38px !important; font-size: .96rem !important; }

  .hero-banner, .show-hero { border-radius: 14px !important; margin-bottom: 18px !important; }
  .hero-content { padding: 24px 16px !important; }
  .hero-title { font-size: 1.55rem !important; line-height: 1.08 !important; }
  .hero-title-logo, .show-title-logo { max-width: 190px !important; width: auto !important; }
  .hero-subtitle, .show-overview { font-size: .78rem !important; line-height: 1.42 !important; }
  .hero-actions { gap: 7px !important; }
  .btn-play, .btn-trailer { padding: 8px 13px !important; font-size: .76rem !important; }

  .section-header { margin-bottom: 12px !important; }
  .section-title { font-size: 1.05rem !important; gap: 7px !important; }
  .section-title::before { width: 3px !important; height: 18px !important; }
  .content-section { margin-bottom: 26px !important; }

  .media-card { border-radius: 11px !important; }
  .media-info { padding: 8px !important; }
  .media-title { font-size: .80rem !important; line-height: 1.2 !important; }
  .media-meta, .media-meta-tags { font-size: .66rem !important; gap: 4px !important; }
  .poster-overlay i { width: 38px !important; height: 38px !important; font-size: .9rem !important; }
  .badge, .type-badge, .country-badge, .season-count { font-size: .58rem !important; padding: 3px 6px !important; }

  .show-hero { min-height: 360px !important; padding: 16px !important; }
  .details-grid { gap: 16px !important; }
  .server-bar { gap: 5px !important; padding: 7px 38px 7px 6px !important; }
  .server-btn { padding: 5px 9px !important; font-size: .68rem !important; }
  .cast-grid { gap: 8px !important; }
  .cast-avatar-wrapper { width: 64px !important; height: 64px !important; }

  .sugerencias-grid { gap: 9px !important; }
  .sugerencias-grid .suggestion-card { border-radius: 11px !important; }
  .sugerencias-grid .suggestion-card .media-info { padding: 8px !important; }
  .sugerencias-grid .suggestion-card .media-title { font-size: .76rem !important; }
  .sugerencias-grid .suggestion-card .media-meta-tags { font-size: .62rem !important; gap: 4px !important; }

  .episodes-grid, .extras-grid { gap: 8px !important; }
  .ep-img { height: 92px !important; }
  .ep-body { padding: 8px !important; gap: 3px !important; }
  .ep-title { font-size: .72rem !important; }
  .ep-desc { font-size: .62rem !important; }

  .notification-panel { top: 58px !important; right: 8px !important; width: min(350px, calc(100vw - 16px)) !important; border-radius: 13px !important; }
  .notification-head { padding: 11px 12px !important; }
  .notification-item { padding: 9px 11px !important; gap: 9px !important; }
  .notification-thumb, .notification-thumb img, .notification-thumb-fallback { width: 40px !important; height: 54px !important; min-width: 40px !important; }
}

@media (max-width: 480px) {
  .container { padding-left: 8px !important; padding-right: 8px !important; }
  .header-top img { width: 96px !important; }
  .btn-login { padding: 3px 7px !important; font-size: .70rem !important; }
  .icon-btn { font-size: 1rem !important; }
  .search-bar { min-height: 32px; padding: 3px 9px !important; }
  .search-bar input { font-size: .74rem !important; }

  .menu-spacer { padding: 5px 6px !important; min-height: 44px !important; }
  .floating-nav { padding: 4px 6px !important; max-width: calc(100vw - 10px) !important; }
  .floating-nav .nav-item { width: 36px !important; min-width: 36px !important; height: 36px !important; font-size: .9rem !important; }

  .hero-title { font-size: 1.38rem !important; }
  .hero-content { padding: 20px 13px !important; }
  .hero-title-logo, .show-title-logo { max-width: 170px !important; }
  .show-hero { min-height: 335px !important; padding: 14px !important; }
  .section-title { font-size: 1rem !important; }
  .content-section { margin-bottom: 22px !important; }

  .ram3n-card-grid { gap: 9px !important; }
  .media-info { padding: 7px !important; }
  .media-title { font-size: .75rem !important; }
  .media-meta, .media-meta-tags { font-size: .61rem !important; }

  .sugerencias-grid { gap: 8px !important; }
  .sugerencias-grid .suggestion-card .media-title { font-size: .72rem !important; }
  .sugerencias-grid .suggestion-card .media-meta-tags { font-size: .60rem !important; }

  .ep-img { height: 84px !important; }
  .cast-avatar-wrapper { width: 58px !important; height: 58px !important; }
}

/* SAP Play 1.0.51 — Hero móvil 4:3 y controles simplificados */
@media (max-width: 600px){
  .hero-banner {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 18px !important;
  }
  .hero-banner .slider-controls { display: none !important; }
  .hero-banner .slider-dots { bottom: 12px !important; gap: 6px !important; }
  .hero-banner .slider-dots .dot { width: 7px !important; height: 7px !important; }
  .hero-banner .slider-dots .dot.active { width: 18px !important; border-radius: 8px !important; }
}
@media (max-width: 390px){
  .hero-banner .slider-dots { bottom: 10px !important; }
}
