/* StreamTV Live - White Label Styles */
.streamtv-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.streamtv-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    overflow: hidden;
}

.streamtv-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 60px);
    border: none;
    margin-bottom: -60px;
}

/* LOGO VOLTT IN ALTO A SINISTRA */
.streamtv-logo-top {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    z-index: 103;
    pointer-events: none;
}

/* COPRI BANNER ROSSO ZAPPR (Rai/Mediaset) - OVERLAY COMPLETO */
.streamtv-zappr-banner-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    background: #000000;
    z-index: 99;
    pointer-events: none;
}

/* COPRI SOLO LA SCRITTA ZAPPR - rettangolo nero solo a sinistra */
.streamtv-zappr-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px;
    height: 60px;
    background: #000000;
    z-index: 100;
    pointer-events: none;
}

/* VOLTT al posto di Zappr */
.streamtv-voltt-brand {
    position: absolute;
    bottom: 18px;
    left: 20px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 101;
}

.streamtv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    display: none;
}

.streamtv-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.streamtv-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 102;
}

.streamtv-container:hover .streamtv-controls {
    opacity: 1;
}

.streamtv-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.streamtv-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Guida Canali - TITOLO VOLTT */
.streamtv-guide {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.streamtv-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.streamtv-guide-header h3 {
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255,68,68,0.5);
    margin: 0;
}

.streamtv-region-selector select {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.streamtv-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.streamtv-channel-card {
    background: #252525;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.streamtv-channel-card:hover {
    background: #333;
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.streamtv-channel-logo {
    width: 50px;
    height: 50px;
    background: #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.streamtv-placeholder-logo {
    font-weight: bold;
    color: #666;
    font-size: 1.2rem;
}

.streamtv-channel-meta {
    flex: 1;
    min-width: 0;
}

.streamtv-channel-meta h4 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamtv-channel-category {
    color: #888;
    font-size: 0.8rem;
}

.streamtv-play-btn {
    width: 40px;
    height: 40px;
    background: #00d4ff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.streamtv-play-btn:hover {
    transform: scale(1.1);
    background: #00b8e6;
}

/* Responsive */
@media (max-width: 768px) {
    .streamtv-channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .streamtv-guide-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}