/* PWA Styles for RTV SANTA MONICA */
:root {
    --primary-color: #b80000;
    --secondary-color: #240a0a;
    --text-color: #cdcbcb;
    --overlay-color: #f0f5ff;
}

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



.items {
  width: 45px !important;
  height: 45px !important;
  border: 2px solid var(--text-color)
}

body {
    font-family: Playfair Display;
    background: url("assets/imgs/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    height: 100vh;
}

.radio-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls button:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#sideMenu.show {
    transform: translateX(0) !important;
}

.volume-container input[type="range"] {
    background: transparent;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-container input[type="range"]::-moz-range-thumb {
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .album-cover {
        width: 150px !important;
        height: 150px !important;
    }
    
    .controls button {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .social-links a {
        width: 40px !important;
        height: 40px !important;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.controls button.playing {
    animation: pulse 2s infinite;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
    
// REEMPLAZAR toda la sección de estilos TV en generateCSSContent() por esto:

/* ==================== ESTILOS TV LANDSCAPE FORZADO ==================== */
/* ==================== ESTILOS TV COMPLETOS ==================== */
.tv-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.tv-player {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tv-loading, .tv-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 16px;
    z-index: 10;
}

.tv-loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

.tv-error {
    color: #ff6b6b;
}

/* ===== CONTROLES TV - ESQUINA SUPERIOR DERECHA ===== */
.tv-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 20;
    pointer-events: none; /* Permitir click solo en el botón */
}

.btn-tv-back {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: auto; /* Permitir click en el botón */
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-tv-back:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-tv-back:active {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.btn-tv-back .btn-text {
    margin-left: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tv-back i {
    transition: all 0.3s ease;
}

.btn-tv-back:hover i {
    transform: rotate(90deg);
}

.tv-info {
    display: none; /* Ocultar info ya que el botón está arriba */
}

/* ===== FORZAR LANDSCAPE AGRESIVO ===== */
.tv-landscape-mode {
    overflow: hidden !important;
}

.tv-landscape-mode .tv-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
}

/* ===== LANDSCAPE PARA MÓVIL (CUALQUIER TAMAÑO) ===== */
.tv-landscape-mode .tv-player video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: contain !important;
    background: #000;
}

/* ===== MÓVIL - VIDEO ROTADO (SOLO PANTALLAS PEQUEÑAS) ===== */
@media (max-width: 768px) and (max-height: 1024px) {
    .tv-landscape-mode .tv-player video {
        min-width: 100vh !important;
        min-height: 100vw !important;
        width: 100vh !important;
        height: 100vw !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
    }

    .tv-landscape-mode .tv-controls {
        position: fixed;
        top: 20px;
        right: 20px;
        left: auto;
        bottom: auto;
        transform: none;
        width: auto;
        z-index: 30;
    }
    
    .tv-landscape-mode .btn-tv-back {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 25px;
        opacity: 0.8;
    }
    
    .tv-landscape-mode .btn-tv-back:hover,
    .tv-landscape-mode .btn-tv-back:active {
        opacity: 1;
    }
}
    
javascript// AGREGAR también estos estilos en generateCSSContent():

.btn-tv-back .btn-text {
    margin-left: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tv-back i {
    transition: all 0.3s ease;
}

.btn-tv-back:hover i {
    transform: rotate(90deg);
}

/* ===== RESPONSIVE PARA EL TEXTO ===== */
@media (max-width: 500px) {
    .btn-tv-back .btn-text {
        display: none; /* Solo mostrar ícono en móvil */
    }
    
    .btn-tv-back {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-tv-back i {
        margin: 0;
        font-size: 16px;
    }
}

@media (min-width: 501px) {
    .btn-tv-back .btn-text {
        display: inline; /* Mostrar texto en desktop */
    }
}