/* =========================================
   1. HEADER ESPECÍFICO DEL PODCAST
   ========================================= */


/* =========================================
   TEXTURA DE FONDO (Importada del Index)
   ========================================= */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    /* La clave para que se vea bien en cualquier pantalla */
    object-fit: cover;

    /* CAPAS (Z-INDEX):
       -1 es tu SVG de colores (según tu css actual).
       -2 pondrá esta textura DETRÁS de los colores.
       Si quieres que la textura esté ENCIMA de los colores para dar efecto "granulado",
       cambia esto a -1 y agrega "mix-blend-mode: overlay;"
    */
    z-index: -2;

    /* Opcional: Ajusta la opacidad si la sientes muy fuerte */
    opacity: 0.2;
}

/* Fondo fijo específico para podcast */
.podcast-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Si tienes una imagen de fondo específica, iría aquí */
    background-color: transparent;
}

.podcast-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.podcast-header-logo {
    width: 100px;
    height: auto;
}

.header-platforms {
    display: flex;
    gap: 20px;
}

.platform-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.platform-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--color-accent-red));
}

/* =========================================
   2. CONTENEDOR PRINCIPAL
   ========================================= */
.podcast-container {
    margin-top: 20px;
    text-align: center;
    /* Hereda estilos base, pero centrado */
}

.podcast-main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-text-main);
    text-shadow: 0 0 10px var(--color-accent-red);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.podcast-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* =========================================
   3. GALERÍA DE EPISODIOS
   ========================================= */
.episodes-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Optimizado para móviles */
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* Reutilizamos .glass-card del global, pero ajustamos para episodios */
.episode-card {
    text-align: left;
    height: 100%;
    /* Para que todas tengan la misma altura */
    display: flex;
    flex-direction: column;
}

.episode-card h3 {
    color: var(--color-text-main);
    margin: 15px 0 8px 0;
    font-size: 1.2rem;
}

.episode-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    /* Empuja el contenido hacia abajo si añadimos botones */
}

/* =========================================
   4. COMPONENTES DE VIDEO / IFRAME
   ========================================= */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    /* Fondo negro mientras carga */
    margin-bottom: 15px;
}

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

/* =========================================
   5. BOTÓN DE VOLVER (HOME LINK)
   ========================================= */
.home-link {
    margin-top: 50px;
    margin-bottom: 30px;
    display: inline-block;
}

.home-link a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-link a::before {
    content: '←';
    /* Flechita decorativa */
    font-size: 1.2rem;
}

.home-link a:hover {
    color: var(--color-accent-cyan);
}

/* =========================================
   6. RESPONSIVE ESPECÍFICO
   ========================================= */
@media screen and (max-width: 767px) {
    .podcast-header {
        padding: 8px 0;
    }

    .podcast-header-logo {
        width: 80px;
    }

    .platform-icon {
        width: 24px;
        height: 24px;
    }

    .header-platforms {
        gap: 15px;
    }
}

@media screen and (max-width: 390px) {
    .podcast-header-logo {
        width: 70px;
    }

    .platform-icon {
        width: 22px;
        height: 22px;
    }

    .header-content {
        padding: 0 15px;
    }
}