:root {
    --bg-color: #050505;
    --card-bg: #111;
    --text: #fff;
    --accent: #ff0055; /* ROSADO NEÓN */
    --gray: #222;
    --border-radius: 8px;
}

/* --- RESET BÁSICO --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg-color); 
    color: var(--text); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 60px; /* Espacio para que el header no tape nada */
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* --- HEADER FIJO (Siempre visible) --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #000; border-bottom: 1px solid #222; 
    z-index: 10000; display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

.nav-list { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; }

.nav-link { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75em; font-weight: bold; padding: 5px 10px;
}
/* Iconos Rosados */
.nav-link i { 
    font-size: 1.4rem; margin-bottom: 2px;
    color: var(--accent) !important; 
    filter: drop-shadow(0 0 5px rgba(255, 0, 85, 0.5));
}

/* Buscador */
.search-form { 
    display: flex; align-items: center; background: #1a1a1a; border: 1px solid #333; 
    border-radius: 50px; padding: 4px 12px; height: 35px;
}
.search-form input { 
    background: transparent; border: none; color: white; width: 100px; outline: none; font-size: 0.9em; 
}
.search-form button { background: transparent; border: none; cursor: pointer; }
.search-form button i { color: var(--accent); font-size: 1rem; }

/* --- CARRUSEL (SLIDER) --- */
.carousel-container {
    position: relative; width: 100%; height: 180px; 
    margin-top: 10px; margin-bottom: 20px;
    border-radius: 8px; overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .carousel-container { height: 350px; } }

.carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.carousel-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

.carousel-caption { 
    position: absolute; bottom: 15px; left: 15px; z-index: 2; width: 90%; 
}
.carousel-caption h2 { 
    margin: 0 0 5px; color: white; font-size: 1.1rem; text-transform: uppercase; 
    text-shadow: 1px 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-play { 
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--accent); color: white; padding: 5px 15px; 
    border-radius: 4px; font-weight: bold; font-size: 0.8rem; 
}

/* Flechas Carrusel */
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; width: 30px; height: 30px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; border: 1px solid rgba(255,255,255,0.3);
}
.carousel-arrow:hover { background: var(--accent); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* --- REPRODUCTOR DE VIDEO --- */
.video-wrapper {
    position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 20px;
    border: 1px solid #333; box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
/* El iframe ocupará todo el espacio */
.video-wrapper iframe { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; 
}

/* Portada "Click to Load" */
.player-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer; z-index: 10;
}
.player-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; opacity: 0.4; 
}
.big-play-btn { 
    position: relative; z-index: 2; font-size: 4em; color: var(--accent); 
    filter: drop-shadow(0 0 15px var(--accent)); transition: transform 0.2s;
}
.player-placeholder:hover .big-play-btn { transform: scale(1.1); color: #fff; }

/* --- CAJA DE INFORMACIÓN (Solid Box) --- */
.video-info-box {
    background: #161616; /* Fondo Sólido para que no se mezcle */
    padding: 20px; border-radius: 8px; border: 1px solid #222;
    margin-bottom: 30px; margin-top: 20px;
}
.video-title { font-size: 1.3rem; margin-bottom: 10px; color: white; line-height: 1.3; }
.video-stats { 
    color: #888; font-size: 0.9em; margin-bottom: 15px; 
    border-bottom: 1px solid #333; padding-bottom: 15px; 
}

/* Botones Servidores */
.server-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.btn-server { 
    background: #222; color: #ddd; border: 1px solid #333; 
    padding: 10px 20px; border-radius: 50px; cursor: pointer; 
    font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.btn-server:hover, .btn-server.active { 
    background: var(--accent); border-color: var(--accent); color: white; 
}
.btn-download { 
    display: inline-block; background: #111; border: 1px solid #333; 
    padding: 10px 25px; border-radius: 50px; color: #aaa; margin-top: 20px; font-size: 0.9em; 
}

/* --- CATEGORÍAS (Burbujas en Inicio) --- */
.cat-scroll { 
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; 
    scrollbar-width: none;
}
.cat-pill {
    flex: 0 0 auto; background: #222; padding: 6px 15px; 
    border-radius: 50px; border: 1px solid #333; font-size: 0.8rem; 
    font-weight: bold; display: flex; align-items: center; gap: 5px;
}
.cat-pill img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* --- CATEGORÍAS (Grilla en página Buscar) --- */
.cat-grid { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; 
    margin-bottom: 40px; margin-top: 20px;
}
.cat-card { 
    position: relative; height: 100px; border-radius: 8px; 
    overflow: hidden; display: block; border: 1px solid #333; 
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.cat-card span { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    color: white; font-weight: bold; text-transform: uppercase; 
    width: 100%; text-align: center; text-shadow: 0 2px 4px #000;
}

/* --- GRID DE VIDEOS --- */
.section-header {
    display: flex; align-items: center; gap: 10px;
    margin: 25px 0 15px; border-left: 3px solid var(--accent); padding-left: 10px;
}
.section-header h2, .main-title { font-size: 1.1rem; text-transform: uppercase; color: #eee; margin:0; }

.video-grid { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; 
}
.video-item { 
    background: var(--card-bg); border-radius: 6px; overflow: hidden; 
    position: relative; border: 1px solid #222; 
}
.image-container { position: relative; height: 100px; background: #000; }
.image-container img { width: 100%; height: 100%; object-fit: cover; }
.duration-badge { 
    position: absolute; bottom: 4px; right: 4px; 
    background: rgba(0,0,0,0.8); color: white; padding: 1px 4px; 
    font-size: 0.7em; border-radius: 3px; 
}
.video-data { padding: 8px; }
.video-data h3 { 
    font-size: 0.85rem; margin-bottom: 4px; color: #ddd; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; line-height: 1.2;
}
.video-meta { font-size: 0.7rem; color: #777; }

/* MEDIA QUERIES (PC) */
@media (min-width: 768px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .image-container { height: 140px; }
    .nav-link { flex-direction: row; gap: 8px; font-size: 0.9rem; }
}