/**
 * TuTV CMS - CSS Principal Compartido
 * Variables y estilos base para todo el sitio
 */

/* =============================================
   VARIABLES CSS - Colores por defecto
   (Estos se sobrescriben dinámicamente desde PHP)
   ============================================= */
:root {
    --tutv-yellow: #FFD700;
    --tutv-magenta: #FF1493;
    --tutv-lime: #8FE51F;
    --tutv-dark: #1C1C3D;
    --tutv-darker: #0A0A1F;
    --tutv-white: #FFFFFF;
}

/* =============================================
   RESET Y ESTILOS BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--tutv-white);
    background-color: var(--tutv-darker);
}

/* =============================================
   CONTENEDOR PRINCIPAL DE LA APP
   ============================================= */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    background: linear-gradient(135deg, var(--tutv-dark) 0%, var(--tutv-darker) 100%);
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
    text-align: center;
    z-index: 5;
    border-bottom: 3px solid var(--tutv-magenta);
    flex-shrink: 0;
}

.logo img {
    height: 140px;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* =============================================
   ÁREA PRINCIPAL DE CONTENIDO
   ============================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(45deg, var(--tutv-dark), var(--tutv-magenta), var(--tutv-dark), var(--tutv-lime));
    background-size: 400% 400%;
    animation: tutvGradient 10s ease infinite;
    position: relative;
    /* CRÍTICO: Espacio para la navegación inferior */
    padding-bottom: 80px;
}

@keyframes tutvGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 25%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 0% 75%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =============================================
   VIDEO DE FONDO
   ============================================= */
.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* =============================================
   CONTENEDOR DEL REPRODUCTOR
   ============================================= */
.player-container {
    position: relative;
    padding: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#lunaradio {
    width: 98%;
    max-width: 1200px;
    /* CRÍTICO: Altura dinámica que se ajusta */
    height: auto;
    min-height: 300px;
    max-height: calc(100vh - 350px);
    background: linear-gradient(135deg, rgba(28, 28, 61, 0.9), rgba(255, 20, 147, 0.2));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 20, 147, 0.3),
        inset 0 0 30px rgba(143, 229, 31, 0.1);
    margin-bottom: 20px;
    border: 3px solid var(--tutv-yellow);
}

/* Contenedor para Embed Externo de Radio */
.radio-embed-container {
    width: 98%;
    max-width: 1200px;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(28, 28, 61, 0.9), rgba(255, 20, 147, 0.2));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 20, 147, 0.3),
        inset 0 0 30px rgba(143, 229, 31, 0.1);
    margin-bottom: 20px;
    border: 3px solid var(--tutv-yellow);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-embed-container iframe,
.radio-embed-container audio {
    max-width: 100%;
    border-radius: 10px;
}

/* Video Container - Mismo estilo que LunaRadio */
#video-container {
    width: 95%;
    max-width: 900px;
    height: auto;
    min-height: 220px;
    max-height: calc(100vh - 420px);
    background: linear-gradient(135deg, rgba(28, 28, 61, 0.9), rgba(255, 20, 147, 0.2));
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 20, 147, 0.3),
        inset 0 0 30px rgba(143, 229, 31, 0.1);
    margin-bottom: 20px;
    border: 3px solid var(--tutv-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

#video-container video {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 450px);
    object-fit: contain;
    border-radius: 15px;
    background: #000;
}

#video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: calc(100vh - 450px);
    border: none;
    border-radius: 15px;
}

.video-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.video-offline i {
    font-size: 4rem;
    color: var(--tutv-yellow);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.video-offline h3 {
    color: var(--tutv-yellow);
    margin-bottom: 10px;
}

.video-offline p {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* =============================================
   CONTADOR DE VISITAS
   ============================================= */
.visitor-counter {
    background: linear-gradient(45deg, var(--tutv-yellow), var(--tutv-lime), var(--tutv-yellow));
    background-size: 400% 400%;
    animation: tutvCounterGradient 4s ease infinite;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    color: var(--tutv-dark);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(143, 229, 31, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    border: 3px solid var(--tutv-dark);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: inline-block;
}

.visitor-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: counterShine 2s ease-in-out infinite;
}

@keyframes counterShine {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes tutvCounterGradient {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 50px rgba(143, 229, 31, 0.5);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 35px rgba(143, 229, 31, 0.9), 0 0 60px rgba(255, 215, 0, 0.6);
    }
}

.visitor-count-number {
    font-size: 18px;
    font-weight: 900;
    color: var(--tutv-dark);
    text-shadow: 2px 2px 0px var(--tutv-magenta), -1px -1px 0px var(--tutv-white);
    animation: numberBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes numberBounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.05) rotate(-2deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    75% {
        transform: scale(1.05) rotate(-1deg);
    }
}

.visitor-emoji {
    font-size: 14px;
    animation: emojiParty 2s ease-in-out infinite;
    display: inline-block;
    margin: 0 5px;
}

@keyframes emojiParty {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.2);
    }

    50% {
        transform: rotate(15deg) scale(1.3);
    }

    75% {
        transform: rotate(-5deg) scale(1.1);
    }
}

/* =============================================
   BOTONES DE ENLACE (TV/RADIO)
   ============================================= */
.tv-link-retro,
.radio-link-retro {
    background: linear-gradient(45deg, var(--tutv-magenta), var(--tutv-yellow), var(--tutv-lime), var(--tutv-magenta));
    background-size: 400% 400%;
    animation: tutvButtonGradient 3s ease infinite;
    padding: 18px 35px;
    border-radius: 35px;
    text-decoration: none;
    color: var(--tutv-dark);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(255, 20, 147, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    border: 4px solid var(--tutv-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.tv-link-retro::before,
.radio-link-retro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.tv-link-retro:hover::before,
.radio-link-retro:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes tutvButtonGradient {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
    }

    25% {
        background-position: 100% 25%;
        transform: scale(1.02);
    }

    50% {
        background-position: 100% 100%;
        transform: scale(1);
    }

    75% {
        background-position: 0% 75%;
        transform: scale(1.02);
    }

    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
}

.tv-link-retro:hover,
.radio-link-retro:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.9),
        0 0 80px rgba(143, 229, 31, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.tv-link-retro .emoji,
.radio-link-retro .emoji {
    font-size: 22px;
    animation: emojiSpin 2s ease-in-out infinite;
}

@keyframes emojiSpin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-10deg) scale(1.2);
    }

    50% {
        transform: rotate(10deg) scale(1.3);
    }

    75% {
        transform: rotate(-5deg) scale(1.1);
    }
}

/* =============================================
   NAVEGACIÓN INFERIOR (ESTILO APP)
   ============================================= */
.mobile-nav {
    background: linear-gradient(90deg, var(--tutv-dark) 0%, rgba(255, 20, 147, 0.2) 50%, var(--tutv-dark) 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow:
        0 -4px 20px rgba(255, 215, 0, 0.3),
        0 -2px 10px rgba(255, 20, 147, 0.2);
    z-index: 1000;
    border-top: 2px solid var(--tutv-yellow);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--tutv-white);
    text-decoration: none;
    font-size: 12px;
    padding: 5px 0;
    width: 25%;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--tutv-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.nav-item.active i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.nav-item:hover {
    color: var(--tutv-lime);
    transform: translateY(-2px);
}

.nav-item:hover i {
    transform: scale(1.3) rotate(-5deg);
}

/* =============================================
   MODALES
   ============================================= */
.social-modal,
.about-modal,
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 61, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--tutv-dark), rgba(255, 20, 147, 0.3));
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    padding: 25px;
    position: relative;
    box-shadow:
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 100px rgba(143, 229, 31, 0.3);
    border: 3px solid var(--tutv-yellow);
    overflow-y: auto;
}

.modal-title {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--tutv-yellow), var(--tutv-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tutv-magenta);
    border: none;
    color: var(--tutv-white);
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--tutv-yellow);
    color: var(--tutv-dark);
}

/* =============================================
   REDES SOCIALES (EN MODAL)
   ============================================= */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--tutv-white);
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 25px;
    background: linear-gradient(135deg, var(--tutv-yellow), var(--tutv-lime));
    color: var(--tutv-dark);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.social-link span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-link:hover i {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, var(--tutv-magenta), var(--tutv-yellow));
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
}

/* =============================================
   ABOUT CONTENT (EN MODAL)
   ============================================= */
.about-content {
    color: var(--tutv-white);
    line-height: 1.8;
}

.about-content h3 {
    color: var(--tutv-yellow);
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 15px;
}

/* =============================================
   CHAT WIDGET
   ============================================= */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tutv-yellow), var(--tutv-lime));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.chat-button i {
    font-size: 24px;
    color: var(--tutv-dark);
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(143, 229, 31, 0.7);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--tutv-magenta);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 400px;
    background: linear-gradient(135deg, var(--tutv-dark), var(--tutv-darker));
    border-radius: 20px;
    border: 2px solid var(--tutv-yellow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(90deg, var(--tutv-magenta), var(--tutv-yellow));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: var(--tutv-dark);
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
}

.chat-message.visitor {
    background: var(--tutv-yellow);
    color: var(--tutv-dark);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chat-message.admin {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tutv-white);
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tutv-yellow);
    border: none;
    cursor: pointer;
    color: var(--tutv-dark);
}

/* =============================================
   PWA BANNER
   ============================================= */
.pwa-banner {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--tutv-dark), rgba(255, 20, 147, 0.3), var(--tutv-dark));
    padding: 12px;
    box-shadow:
        0 -4px 20px rgba(255, 215, 0, 0.4),
        0 -2px 10px rgba(143, 229, 31, 0.3);
    z-index: 999;
    border-top: 2px solid var(--tutv-yellow);
    backdrop-filter: blur(10px);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

.pwa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.pwa-text {
    flex: 1;
}

.pwa-text h3 {
    margin: 0;
    font-size: 14px;
    background: linear-gradient(45deg, var(--tutv-yellow), var(--tutv-lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.pwa-install-btn {
    background: linear-gradient(135deg, var(--tutv-yellow), var(--tutv-lime));
    color: var(--tutv-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.pwa-install-btn:hover {
    transform: scale(1.1);
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tutv-dark), rgba(255, 20, 147, 0.5));
    color: var(--tutv-white);
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow:
        0 4px 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(143, 229, 31, 0.3);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 2px solid var(--tutv-yellow);
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    animation: toastPop 0.5s ease;
}

@keyframes toastPop {
    0% {
        transform: translateX(-50%) scale(0.8) translateY(-20px);
    }

    50% {
        transform: translateX(-50%) scale(1.1) translateY(0);
    }

    100% {
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

/* =============================================
   SEO CONTENT (OCULTO)
   ============================================= */
.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =============================================
   PARTÍCULAS DE FONDO
   ============================================= */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--tutv-yellow);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 10s infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(100px);
    }
}

/* =============================================
   RESPONSIVE - PANTALLAS PEQUEÑAS (CRÍTICO)
   ============================================= */

/* Laptops pequeñas y tablets landscape */
@media (max-height: 800px) {
    .logo img {
        height: 100px;
    }

    #lunaradio {
        max-height: calc(100vh - 300px);
        min-height: 280px;
    }

    .tv-link-retro,
    .radio-link-retro {
        font-size: 14px;
        padding: 14px 28px;
    }

    .visitor-counter {
        font-size: 11px;
        padding: 8px 16px;
    }

    .player-container {
        padding: 10px;
    }
}

/* Pantallas más pequeñas */
@media (max-height: 700px) {
    .logo img {
        height: 70px;
    }

    .header {
        padding: 3px 0;
    }

    #lunaradio {
        max-height: calc(100vh - 250px);
        min-height: 250px;
    }

    .tv-link-retro,
    .radio-link-retro {
        font-size: 12px;
        padding: 12px 24px;
    }

    .visitor-counter {
        font-size: 10px;
        padding: 6px 14px;
        margin-bottom: 10px;
    }
}

/* Pantallas muy pequeñas */
@media (max-height: 600px) {
    .logo img {
        height: 50px;
    }

    #lunaradio {
        max-height: calc(100vh - 200px);
        min-height: 200px;
    }

    .player-container {
        padding: 5px;
    }

    .mobile-nav {
        padding: 8px 0;
    }

    .nav-item i {
        font-size: 18px;
    }

    .nav-item span {
        font-size: 10px;
    }
}

/* Pantallas extremadamente pequeñas */
@media (max-height: 500px) {
    .header {
        padding: 2px 0;
    }

    .logo img {
        height: 40px;
    }

    #lunaradio {
        max-height: calc(100vh - 180px);
        min-height: 150px;
    }

    .visitor-counter {
        display: none;
    }

    .tv-link-retro,
    .radio-link-retro {
        font-size: 11px;
        padding: 10px 20px;
    }
}

/* Ancho pequeño (móviles) */
@media (max-width: 480px) {

    .tv-link-retro,
    .radio-link-retro {
        font-size: 12px;
        padding: 12px 24px;
        letter-spacing: 1px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link i {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .chat-window {
        width: 280px;
        right: -10px;
    }
}

/* Modo landscape en móviles */
@media (max-height: 450px) and (orientation: landscape) {
    .header {
        display: none;
    }

    .main-content {
        padding-bottom: 60px;
    }

    #lunaradio {
        max-height: calc(100vh - 100px);
    }

    .mobile-nav {
        padding: 5px 0;
    }

    .nav-item span {
        display: none;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 0;
    }
}