/* ============================================================================
   KoraFlix — CSS da aba Canais (assistir/index.php?page=canais)
   Extraído de claude.css: estilos exclusivos da grade EPG de canais.
   .channel-epg-card (base) e .channel-epg-progress-fill continuam em claude.css
   por serem compartilhados com o carrossel "Canais ao Vivo" da Home.
   ============================================================================ */

.epg-preview-box {
    position: relative;
    width: 140px;
    height: 100px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epg-preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.epg-watermark-logo {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 24px;
    height: auto;
    opacity: 0.5;
    z-index: 2;
}

.epg-main-logo {
    position: relative;
    z-index: 2;
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
}

.epg-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding-right: 8px;
}

.epg-channel-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epg-channel-category {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.epg-current-program {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.epg-current-program .time {
    font-weight: 800;
    color: #fff;
    background-color: #d11313;
    padding: 3px 10px;
    border-radius: 14px;
    display: inline-block;
}

.epg-current-program .title {
    font-weight: 500;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epg-progress-track {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.epg-next-programs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epg-next-program {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.epg-next-program .time {
    font-weight: 700;
    color: #aaa;
}

.epg-next-program .title {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epg-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
}

.btn-abrir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #9b2c2c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.btn-abrir:hover {
    background-color: #b33838;
}

@media (max-width: 768px) {
    .epg-preview-box {
        width: 110px !important;
        height: 80px !important;
    }

    .epg-channel-name { font-size: 16px !important; }

    .epg-actions { display: none !important; }
}

.koraflix-canais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    justify-items: center;
}

@media (max-width: 1200px) {
    .koraflix-canais-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .koraflix-canais-grid { grid-template-columns: 1fr; }
}
