:root {
    --bg-app: #13141c;      
    --accent-blue: #2c5df5; 
    --text-main: #ffffff;
    --text-muted: #a0a0a9;
    --nav-bottom: #1a1b26;
}

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

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 70px; 
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Control de Pestañas (Para que sea instantáneo) */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* CABECERA */
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 18px; font-weight: 700; color: #fff;}
.logo .highlight { font-size: 24px; font-style: italic; }
.logo .logo-tv { font-size: 10px; font-weight: normal; color: var(--text-muted); }
.header-icons i { font-size: 20px; margin-left: 20px; color: var(--text-main); cursor: pointer; }

/* NAVEGACIÓN SUPERIOR */
.text-nav { display: flex; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px; }
.nav-btn { background: transparent; border: none; color: var(--text-muted); font-size: 15px; font-weight: 600; padding-bottom: 12px; cursor: pointer; position: relative; transition: 0.3s ease; }
.nav-btn.active { color: var(--accent-blue); }
.nav-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 10%; width: 80%; height: 3px; background-color: var(--accent-blue); border-radius: 3px 3px 0 0; }

/* CONTENEDOR PRINCIPAL */
main { padding: 0 20px; }

/* HERO BANNER */
.hero-banner { width: 100%; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); cursor: pointer; }
.hero-banner-img { width: 100%; padding-top: 56.25%; background: #222; position: relative; }
.hero-banner-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; opacity: 0; }
.hero-banner-img img.loaded { opacity: 1; }
.hero-dots { position: absolute; bottom: 10px; width: 100%; display: flex; justify-content: center; gap: 5px; }
.dot { width: 6px; height: 6px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.dot.active { background: #fff; width: 15px; border-radius: 10px; }

/* CARRUSELES HORIZONTALES */
.row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.row-title { font-size: 18px; font-weight: bold; }
.row-more { font-size: 20px; color: var(--text-muted); font-weight: bold; letter-spacing: 2px;}

.horizontal-scroll { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; margin-bottom: 15px; scrollbar-width: none; }
.horizontal-scroll::-webkit-scrollbar { display: none; }

.card-hz { flex: 0 0 160px; scroll-snap-align: start; cursor: pointer; }
.card-hz-img { width: 100%; padding-top: 56.25%; background: #1a1b26; border-radius: 8px; overflow: hidden; position: relative; margin-bottom: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.card-hz-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; opacity: 0; }
.card-hz-img img.loaded { opacity: 1; }
.card-title { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;}

/* MENÚ INFERIOR */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--nav-bottom); display: flex; justify-content: space-around; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.05); z-index: 1000; }
.bottom-nav a { color: var(--text-muted); font-size: 20px; text-decoration: none; transition: 0.3s; }
.bottom-nav a.active { color: var(--accent-blue); }

/* REPRODUCTOR */
.player-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 9999; }
.player-modal iframe { width: 100%; height: 100%; border: none; }
