/* ==========================================================================
   PELIS.CLICK / STREAMIT THEME - PURE BLACK & NEON GLOW STYLES
   ========================================================================== */

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

:root {
    --bg-pure-black: #000000;
    --bg-surface: #0a0a0d;
    --bg-card: #111116;
    --bg-card-hover: #181820;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow-red: rgba(229, 9, 20, 0.4);
    --border-glow-blue: rgba(0, 210, 255, 0.4);

    --primary-red: #e50914;
    --primary-red-hover: #ff1e27;
    --primary-red-glow: 0 0 20px rgba(229, 9, 20, 0.6);

    --neon-blue: #00d2ff;
    --neon-blue-glow: 0 0 15px rgba(0, 210, 255, 0.5);

    --vip-gold: #ffbe1a;
    --vip-gold-dark: #b8860b;

    --text-white: #ffffff;
    --text-muted: #8c8c9e;
    --text-dim: #5c5c6d;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    
    --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

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

body {
    background-color: var(--bg-pure-black) !important;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

a:hover {
    color: var(--primary-red);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #25252f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Navbar */
.pelis-navbar {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 24px;
    transition: var(--transition);
}

.pelis-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.pelis-brand span.click {
    color: var(--primary-red);
}

.pelis-brand .play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e50914, #ff4d58);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    box-shadow: var(--primary-red-glow);
}

.btn-vip {
    background: linear-gradient(135deg, #ffbe1a, #f39c12);
    color: #000 !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(255, 190, 26, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    border: none;
}

.nav-link-custom {
    color: #b5b5c3 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #fff !important;
}

.nav-link-custom.active {
    color: var(--primary-red) !important;
    font-weight: 600;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary-red);
    box-shadow: var(--primary-red-glow);
    border-radius: 2px;
}

/* Buttons */
.btn-pelis-red {
    background: var(--primary-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.btn-pelis-red:hover {
    background: var(--primary-red-hover);
    color: #fff;
    box-shadow: var(--primary-red-glow);
    transform: translateY(-1px);
}

.btn-pelis-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    transition: var(--transition);
}

.btn-pelis-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-pelis-blue {
    background: linear-gradient(135deg, #00d2ff, #0072ff);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    box-shadow: var(--neon-blue-glow);
    transition: var(--transition);
}
.btn-pelis-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
    color: #fff;
}

/* Hero Section & Interactive Cinematic Slider */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 560px;
    height: 68vh;
    max-height: 650px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    overflow: hidden;
    transition: background-image 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 991px) {
    .hero-banner {
        min-height: 520px;
        height: auto;
        max-height: none;
        padding-top: 15px;
        padding-bottom: 25px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.96) 20%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.3) 100%),
                linear-gradient(to top, #000000 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 30px 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-badge-live {
    background: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    box-shadow: var(--primary-red-glow);
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-meta .rating-tag {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
}

.hero-meta .imdb-badge {
    background: #f5c518;
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.hero-stars {
    color: #ffbe1a;
    font-size: 12px;
}

.hero-title {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 14px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
}

.hero-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-tags {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.hero-tags span {
    color: #ff4d58;
}

/* Hero Carousel Right (matching home.png) */
.hero-right-thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin-left: auto;
}

.thumb-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.thumb-card:hover {
    border-color: rgba(229, 9, 20, 0.6);
    background: rgba(25, 25, 35, 0.85);
    transform: translateX(-4px);
}

.thumb-card.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4), inset 0 0 10px rgba(229, 9, 20, 0.2);
    background: rgba(30, 20, 25, 0.9);
    transform: translateX(-6px);
}

.thumb-card img {
    width: 50px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-card .thumb-info {
    flex-grow: 1;
    overflow: hidden;
}

.thumb-card .thumb-info h6 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.thumb-card.active .thumb-info h6 {
    color: #ff3b30;
}

.thumb-card .thumb-info small {
    color: #8e8e9f;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Slider Dots (for mobile & desktop) */
.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.hero-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--primary-red);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
    width: 40px;
}

/* Sections */
.section-wrapper {
    margin-bottom: 45px;
}

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

.section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-view-all {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.section-view-all:hover {
    color: #fff;
    text-decoration: underline;
}

/* Genre Cards (matching home.png) */
.genre-card {
    position: relative;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.genre-card .genre-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
}

.genre-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
    box-shadow: var(--primary-red-glow);
}

.genre-card:hover .genre-overlay {
    background: rgba(229, 9, 20, 0.5);
}

/* Top 10 Section (matching home.png) */
.top10-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d0d12;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.top10-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.top10-card .top10-number {
    position: absolute;
    bottom: -15px;
    right: 5px;
    font-family: var(--font-heading);
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    -webkit-text-stroke: 2px #222;
}

.top10-card:hover {
    transform: scale(1.04);
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), var(--primary-red-glow);
    z-index: 5;
}

.top10-card:hover .top10-number {
    color: var(--primary-red);
    -webkit-text-stroke: 2px #fff;
}

/* Movie Poster Grid (5 Columns matching Peliculs.png & home.png) */
.movies-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .movies-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .movies-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .movies-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.movie-poster-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #111116;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.movie-poster-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.movie-poster-card .card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: var(--transition);
}

.movie-poster-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: var(--primary-red-glow);
}

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

.card-hover-overlay .movie-hover-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.card-hover-overlay .movie-hover-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-hover-overlay .btn-hover-play {
    background: var(--primary-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    border: none;
    text-align: center;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-hover-overlay .btn-hover-play:hover {
    background: var(--primary-red-hover);
    box-shadow: var(--primary-red-glow);
}

.card-hover-overlay .btn-hover-fav {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    text-align: center;
    margin-top: 4px;
}

/* Spotlight Section (matching lower part of home.png) */
.spotlight-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    margin: 40px 0;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.3) 100%);
}

.spotlight-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 650px;
}

/* TV Channels Grid & Cards (matching TV-en-vivo.png) */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.channel-box-card {
    background: #0f1318;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.channel-box-card img {
    max-width: 80%;
    max-height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transition: var(--transition);
}

.channel-box-card .channel-name-fallback {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

.channel-box-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-blue);
    box-shadow: var(--neon-blue-glow);
    background: #141c24;
}

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

.channel-box-card .live-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Category Circle Cards (matching TV-en-vivo.png) */
.category-circle-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .category-circle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-icon-card {
    background: #0c0d12;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-icon-card .icon-wrap {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon-card span {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.category-icon-card:hover, .category-icon-card.active {
    border-color: var(--primary-red);
    background: #14141d;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.category-icon-card:hover span {
    color: #fff;
}

/* Filter Sidebar (matching Peliculs.png) */
.filter-sidebar {
    background: #09090c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.filter-sidebar h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8c8c9e;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
    padding: 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover {
    color: #fff;
}

.filter-checkbox, .filter-radio {
    accent-color: var(--primary-red);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.tag-badge {
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #bbb;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin: 3px 2px;
    cursor: pointer;
    transition: var(--transition);
}

.tag-badge:hover, .tag-badge.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

/* Video Player Modal & Container */
.player-container {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.player-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
}

.player-header {
    background: #0a0a0e;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.player-cast-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.player-cast-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: var(--neon-blue-glow);
}

/* Footer (matching home.png & TV-en-vivo.png) */
.pelis-footer {
    background: #040406;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-contact-title {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.footer-contact-val {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.app-badge-btn {
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.app-badge-btn:hover {
    background: #1c1c24;
    border-color: #fff;
    color: #fff;
}

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--primary-red-glow);
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-red-hover);
}

.accessibility-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: #1a56db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 999;
}

/* ==========================================================================
   MOBILE APP BOTTOM NAVIGATION BAR (PWA NATIVE STYLE)
   ========================================================================== */
.mobile-app-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    padding: 0 4px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.8);
}

.mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8e8e9f;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-bar-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.mobile-bar-btn:active {
    transform: scale(0.92);
}

.mobile-bar-btn.active {
    color: #fff;
}

.mobile-bar-btn.active i {
    color: var(--primary-red);
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.8));
    transform: translateY(-2px);
}

.mobile-bar-btn.active span {
    font-weight: 700;
    color: #fff;
}

.live-dot-wrap {
    position: relative;
    display: inline-block;
}

.live-pulse-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(229, 9, 20, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .mobile-app-bottom-bar {
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    .scroll-top-btn {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .accessibility-btn {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        left: 16px;
        width: 36px;
        height: 36px;
    }
}

/* Mobile Hero Nav Arrows */
.hero-mobile-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.hero-mobile-nav.prev {
    left: 10px;
}
.hero-mobile-nav.next {
    right: 10px;
}
.hero-mobile-nav:active {
    background: var(--primary-red);
    transform: translateY(-50%) scale(0.9);
}

/* PWA App Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    background: rgba(18, 18, 24, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow-red);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 1030;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 15px rgba(229,9,20,0.3);
    animation: slideUpToast 0.4s ease-out;
}
@keyframes slideUpToast {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pwa-install-banner img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}
.pwa-btn-install {
    background: var(--primary-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    box-shadow: var(--primary-red-glow);
}
.pwa-btn-close {
    background: transparent;
    border: none;
    color: #8e8e9f;
    font-size: 14px;
    padding: 4px;
}

/* Touch active ripples & ergonomics */
@media (hover: none) and (pointer: coarse) {
    .movie-poster-card:active,
    .btn-pelis-red:active,
    .mobile-bar-btn:active,
    .thumb-card:active,
    .btn-hover-play:active,
    .genre-card:active,
    .top10-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* ==========================================================================
   TOUCH SLIDER / CAROUSEL PARA ÚLTIMAS PELÍCULAS & EPISODIOS
   ========================================================================== */
.release-slider-wrapper {
    position: relative;
    margin-bottom: 40px;
    padding: 0 4px;
}

.release-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    touch-action: pan-y pinch-zoom;
    padding: 10px 4px 18px 4px;
}

.release-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.release-slider-track {
    display: flex;
    gap: 16px;
}

.release-slide-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f0f15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .release-slide-item {
        flex: 0 0 240px;
    }
}

@media (max-width: 480px) {
    .release-slide-item {
        flex: 0 0 210px;
    }
}

.release-slide-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), var(--primary-red-glow);
}

.release-slide-item:active {
    transform: scale(0.96);
}

.release-slide-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #181822;
}

.release-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.release-slide-item:hover .release-slide-media img {
    transform: scale(1.06);
}

.release-slide-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.release-slide-item:hover .release-slide-play-overlay {
    opacity: 1;
}

.play-circle-btn {
    width: 46px;
    height: 46px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--primary-red-glow);
    font-size: 16px;
    padding-left: 3px;
}

.release-slide-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.badge-new-ep {
    background: linear-gradient(135deg, #00d2ff, #0055ff);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.badge-new-movie {
    background: linear-gradient(135deg, #e50914, #ff3b30);
    color: #fff;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.badge-new-anime {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.release-slide-body {
    padding: 12px 14px 14px;
    background: #0f0f15;
}

.release-slide-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.release-slide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #8e8e9f;
}

.slider-ctrl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.slider-ctrl-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: var(--primary-red-glow);
    transform: translateY(-50%) scale(1.1);
}

.slider-ctrl-btn.prev {
    left: -12px;
}

.slider-ctrl-btn.next {
    right: -12px;
}

@media (max-width: 991px) {
    .slider-ctrl-btn {
        display: none !important; /* Hide arrows on mobile touch screens for a cleaner app feel */
    }
}

