/**
 * Frontend CSS - BT TV
 * Design moderno e totalmente responsivo
 */

:root {
    --bttv-primary: #009342;
    --bttv-secondary: #FFD700;
    --bttv-accent: #0050A0;
    --bttv-success: #46b450;
    --bttv-danger: #e74c3c;
    --bttv-dark: #1a1a1a;
    --bttv-gray: #657786;
    --bttv-light: #f8f9fa;
    --bttv-border: #e1e8ed;
}

/* Player Container */
.bttv-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Live Header */
.bttv-live-header {
    background: linear-gradient(135deg, var(--bttv-dark) 0%, #34495e 100%);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bttv-live-badge {
    background: var(--bttv-danger);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: live-glow 2s ease-in-out infinite;
}

@keyframes live-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(231, 76, 60, 0.7); }
}

.bttv-pulse {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

@keyframes pulse-beat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.bttv-current-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bttv-program-type-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bttv-program-title-small {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Player Wrapper */
.bttv-player-wrapper {
    position: relative;
    background: #000;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.bttv-player-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 58%; /* Aumentado para dar espaço aos controles */
    background: #000;
    border-radius: 0 0 12px 12px;
}

.bttv-player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

.bttv-player-aspect {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.bttv-player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s;
    border-radius: 0 0 12px 12px;
}

.bttv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.bttv-player-loading p {
    color: #fff;
    margin-top: 20px;
    font-size: 14px;
}

/* Tooltip de Controles */
.bttv-controls-tooltip {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--bttv-primary) 0%, var(--bttv-accent) 100%);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 147, 66, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 50;
    max-width: 90%;
    pointer-events: none;
}

.bttv-controls-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    animation: tooltip-bounce 0.6s ease;
}

@keyframes tooltip-bounce {
    0% { transform: translateX(-50%) translateY(20px); }
    50% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.bttv-tooltip-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.bttv-tooltip-icon {
    font-size: 24px;
    animation: point-down 1s ease-in-out infinite;
}

@keyframes point-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.bttv-tooltip-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Schedule Section */
.bttv-schedule-section {
    margin-top: 70px;
}

.bttv-schedule-grid {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.bttv-schedule-header {
    background: linear-gradient(135deg, var(--bttv-primary) 0%, var(--bttv-secondary) 100%);
    padding: 25px 30px;
    color: #fff;
}

.bttv-schedule-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bttv-schedule-list {
    padding: 0;
}

.bttv-schedule-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 25px;
    padding: 25px 30px;
    border-bottom: 2px solid var(--bttv-border);
    transition: all 0.3s;
}

.bttv-schedule-item:last-child {
    border-bottom: none;
}

.bttv-schedule-item:hover {
    background: var(--bttv-light);
}

.bttv-schedule-item.is-current {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left: 4px solid var(--bttv-primary);
}

.bttv-schedule-time {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bttv-time-display {
    background: var(--bttv-light);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--bttv-border);
}

.bttv-schedule-item.is-current .bttv-time-display {
    background: var(--bttv-primary);
    border-color: var(--bttv-primary);
}

.bttv-time-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--bttv-dark);
}

.bttv-schedule-item.is-current .bttv-time-value {
    color: #fff;
}

.bttv-time-label {
    display: block;
    font-size: 11px;
    color: var(--bttv-gray);
    margin-top: 4px;
    font-weight: 600;
}

.bttv-schedule-item.is-current .bttv-time-label {
    color: rgba(255,255,255,0.8);
}

.bttv-schedule-content {
    position: relative;
}

.bttv-schedule-type {
    display: inline-block;
    background: linear-gradient(135deg, var(--bttv-primary) 0%, var(--bttv-secondary) 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bttv-schedule-title {
    margin: 10px 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--bttv-dark);
}

.bttv-schedule-subtitle {
    margin: 0;
    color: var(--bttv-gray);
    font-size: 15px;
}

.bttv-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bttv-danger);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.bttv-pulse-small {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

/* CTA Section */
.bttv-cta-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.bttv-cta-content h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.bttv-cta-content p {
    margin: 0 0 30px 0;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bttv-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bttv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.bttv-btn-primary {
    background: #fff;
    color: var(--bttv-primary);
}

.bttv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.bttv-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.bttv-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.bttv-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.bttv-btn-secondary:hover {
    background: #fff;
    color: var(--bttv-primary);
}

/* Live Badge Inline */
.bttv-live-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bttv-danger);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Home CTA Shortcode */
.bttv-home-cta-wrapper {
    margin: 40px 0;
}

.bttv-home-cta-container {
    background: linear-gradient(135deg, var(--bttv-primary) 0%, var(--bttv-accent) 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 147, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.bttv-home-cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bttv-home-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    z-index: 1;
}

.bttv-pulse-home {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

.bttv-home-current-program {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 12px 24px;
    border-radius: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.bttv-home-program-type {
    background: var(--bttv-secondary);
    color: var(--bttv-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bttv-home-program-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.bttv-home-cta-title {
    margin: 0 0 15px 0;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.bttv-home-cta-description {
    margin: 0 0 35px 0;
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.bttv-home-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--bttv-primary);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.bttv-home-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    background: var(--bttv-secondary);
}

.bttv-home-cta-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bttv-player-container {
        padding: 15px;
    }
    
    .bttv-live-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .bttv-current-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .bttv-schedule-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .bttv-schedule-time {
        flex-direction: row;
        justify-content: center;
    }
    
    .bttv-time-display {
        flex: 1;
        max-width: 120px;
    }
    
    .bttv-schedule-header {
        padding: 20px;
    }
    
    .bttv-schedule-header h3 {
        font-size: 20px;
    }
    
    .bttv-schedule-title {
        font-size: 18px;
    }
    
    .bttv-cta-section {
        padding: 30px 20px;
    }
    
    .bttv-cta-content h3 {
        font-size: 22px;
    }
    
    .bttv-cta-buttons {
        flex-direction: column;
    }
    
    .bttv-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bttv-home-cta-container {
        padding: 40px 25px;
    }
    
    .bttv-home-cta-title {
        font-size: 28px;
    }
    
    .bttv-home-cta-description {
        font-size: 16px;
    }
    
    .bttv-home-current-program {
        flex-direction: column;
        gap: 8px;
    }
    
    .bttv-controls-tooltip {
        bottom: 50px;
        padding: 12px 20px;
        max-width: 85%;
    }
    
    .bttv-tooltip-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .bttv-tooltip-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bttv-player-container {
        padding: 10px;
    }
    
    .bttv-schedule-item {
        padding: 15px;
    }
    
    .bttv-time-value {
        font-size: 16px;
    }
    
    .bttv-schedule-title {
        font-size: 16px;
    }
    
    .bttv-schedule-subtitle {
        font-size: 13px;
    }
    
    .bttv-home-cta-container {
        padding: 30px 20px;
    }
    
    .bttv-home-cta-title {
        font-size: 24px;
    }
    
    .bttv-home-cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .bttv-controls-tooltip {
        bottom: 40px;
        padding: 10px 15px;
    }
    
    .bttv-tooltip-icon {
        font-size: 20px;
    }
    
    .bttv-tooltip-content p {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .bttv-player-wrapper,
    .bttv-cta-section,
    .bttv-live-badge {
        display: none !important;
    }
}

/* ============================================
   NOVO LAYOUT DE PROGRAMAÇÃO - MODERNO
   ============================================ */

.bttv-schedule-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 30px;
}

/* Header da Grade */
.bttv-schedule-header-new {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--bttv-primary);
}

.bttv-schedule-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bttv-schedule-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
}

.bttv-schedule-title-new {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.bttv-schedule-subtitle-new {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bttv-timezone-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bttv-current-time-display {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.bttv-time-icon {
    font-size: 20px;
    animation: rotate-clock 4s linear infinite;
}

@keyframes rotate-clock {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bttv-time-text {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Timeline */
.bttv-schedule-timeline {
    padding: 30px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Hour Marker */
.bttv-hour-marker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 20px 0;
    position: relative;
}

.bttv-hour-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--bttv-primary), transparent);
    border-radius: 2px;
}

.bttv-hour-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bttv-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    background: rgba(0, 147, 66, 0.1);
    border-radius: 20px;
    white-space: nowrap;
}

/* Program Card */
.bttv-program-card {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bttv-program-card:nth-child(1) { animation-delay: 0.1s; }
.bttv-program-card:nth-child(2) { animation-delay: 0.15s; }
.bttv-program-card:nth-child(3) { animation-delay: 0.2s; }
.bttv-program-card:nth-child(4) { animation-delay: 0.25s; }
.bttv-program-card:nth-child(5) { animation-delay: 0.3s; }

/* Timeline Marker */
.bttv-program-timeline-marker {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bttv-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.bttv-timeline-line {
    width: 3px;
    flex: 1;
    background: #e2e8f0;
    position: absolute;
    top: 16px;
    bottom: -20px;
}

/* Program Content */
.bttv-program-content {
    flex: 1;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.bttv-program-card:hover .bttv-program-content {
    border-color: var(--bttv-primary);
    box-shadow: 0 8px 24px rgba(0, 147, 66, 0.15);
    transform: translateX(5px);
}

.bttv-program-card:hover .bttv-timeline-dot {
    background: var(--bttv-primary);
    transform: scale(1.2);
}

/* Program Header */
.bttv-program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bttv-program-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bttv-program-time-badge svg {
    flex-shrink: 0;
}

.bttv-program-duration {
    padding: 4px 12px;
    background: #f0f4f8;
    color: #4a5568;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Category */
.bttv-program-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 147, 66, 0.1);
    color: var(--bttv-primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Title */
.bttv-program-title-card {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

/* Description */
.bttv-program-description {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* Thumbnail */
.bttv-program-thumbnail {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.bttv-program-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bttv-program-card:hover .bttv-program-thumbnail img {
    transform: scale(1.05);
}

/* Live Indicator */
.bttv-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: live-bounce 2s ease-in-out infinite;
}

@keyframes live-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.bttv-live-pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

/* Estados dos Cards */
.bttv-program-card.is-live .bttv-program-content {
    border-color: #ef4444;
    border-width: 3px;
    background: linear-gradient(to right, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.bttv-program-card.is-live .bttv-timeline-dot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1);
    }
}

.bttv-program-card.is-live .bttv-timeline-line {
    background: linear-gradient(to bottom, #ef4444, #e2e8f0);
}

.bttv-program-card.is-past {
    opacity: 0.6;
}

.bttv-program-card.is-past .bttv-program-content {
    background: #f8fafc;
}

.bttv-program-card.is-past .bttv-timeline-dot {
    background: #94a3b8;
}

.bttv-program-card.is-upcoming .bttv-timeline-dot {
    background: var(--bttv-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bttv-schedule-header-new {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .bttv-schedule-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .bttv-schedule-title-new {
        font-size: 22px;
    }
    
    .bttv-schedule-subtitle-new {
        flex-direction: column;
        gap: 5px;
    }
    
    .bttv-current-time-display {
        width: 100%;
        justify-content: center;
    }
    
    .bttv-schedule-timeline {
        padding: 20px 15px;
    }
    
    .bttv-program-card {
        gap: 15px;
    }
    
    .bttv-program-timeline-marker {
        width: 30px;
    }
    
    .bttv-timeline-dot {
        width: 12px;
        height: 12px;
    }
    
    .bttv-program-content {
        padding: 15px;
    }
    
    .bttv-program-title-card {
        font-size: 18px;
    }
    
    .bttv-program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bttv-hour-marker {
        margin: 25px 0 15px 0;
    }
    
    .bttv-hour-label {
        font-size: 12px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .bttv-schedule-header-icon {
        width: 48px;
        height: 48px;
    }
    
    .bttv-schedule-title-new {
        font-size: 20px;
    }
    
    .bttv-time-text {
        font-size: 18px;
    }
    
    .bttv-program-title-card {
        font-size: 16px;
    }
    
    .bttv-program-description {
        font-size: 13px;
    }
}

/* Dark Mode Support (opcional) */
@media (prefers-color-scheme: dark) {
    .bttv-schedule-modern {
        background: #1a202c;
    }
    
    .bttv-schedule-timeline {
        background: linear-gradient(to bottom, #2d3748 0%, #1a202c 100%);
    }
    
    .bttv-program-content {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .bttv-program-title-card {
        color: #f7fafc;
    }
    
    .bttv-program-description {
        color: #cbd5e0;
    }
    
    .bttv-program-card.is-past .bttv-program-content {
        background: #1a202c;
    }
}

/* ============================================
   GRID 2 COLUNAS - LAYOUT COMPACTO
   ============================================ */

.bttv-schedule-stats {
    padding: 15px 30px;
    background: linear-gradient(to right, rgba(0, 147, 66, 0.05), rgba(0, 80, 160, 0.05));
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4a5568;
}

.bttv-stat-item strong {
    color: var(--bttv-primary);
    font-weight: 700;
}

.bttv-stat-divider {
    color: #cbd5e0;
}

.bttv-schedule-grid-container {
    padding: 30px;
    background: #f8f9fa;
}

/* Grid 2 Colunas */
.bttv-schedule-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Compacto */
.bttv-program-card-compact {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

/* Lazy Loading States */
.bttv-lazy-item {
    opacity: 0;
    transform: translateY(20px);
}

.bttv-loaded-item {
    animation: fadeInUpCompact 0.4s ease forwards;
}

@keyframes fadeInUpCompact {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effect */
.bttv-program-card-compact:hover {
    border-color: var(--bttv-primary);
    box-shadow: 0 8px 24px rgba(0, 147, 66, 0.15);
    transform: translateY(-4px);
}

/* Card Header */
.bttv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bttv-time-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.bttv-time-badge-compact svg {
    flex-shrink: 0;
}

.bttv-time-value {
    letter-spacing: 0.5px;
}

.bttv-live-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: live-pulse-badge 2s ease-in-out infinite;
}

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

.bttv-pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

.bttv-duration-badge {
    padding: 4px 10px;
    background: #f0f4f8;
    color: #4a5568;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* Category */
.bttv-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 147, 66, 0.1);
    color: var(--bttv-primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Title */
.bttv-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.bttv-card-description {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thumbnail */
.bttv-card-thumbnail {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

.bttv-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bttv-program-card-compact:hover .bttv-card-thumbnail img {
    transform: scale(1.1);
}

/* Estados dos Cards Compactos */
.bttv-program-card-compact.is-live {
    border-color: #ef4444;
    border-width: 3px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

.bttv-program-card-compact.is-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #ef4444, #f97316, #ef4444);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.bttv-program-card-compact.is-past {
    opacity: 0.5;
}

.bttv-program-card-compact.is-past:hover {
    opacity: 0.8;
}

.bttv-program-card-compact.is-past .bttv-card-title,
.bttv-program-card-compact.is-past .bttv-card-description {
    color: #718096;
}

/* Loading Indicator */
.bttv-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
}

.bttv-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--bttv-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* End Message */
.bttv-end-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 147, 66, 0.05), rgba(0, 80, 160, 0.05));
    border-radius: 12px;
    color: var(--bttv-primary);
    font-size: 14px;
    font-weight: 600;
}

.bttv-end-message svg {
    color: var(--bttv-success);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .bttv-schedule-grid-2col {
        gap: 16px;
    }
    
    .bttv-program-card-compact {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .bttv-schedule-grid-container {
        padding: 20px 15px;
    }
    
    .bttv-schedule-grid-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bttv-program-card-compact {
        padding: 16px;
    }
    
    .bttv-card-title {
        font-size: 15px;
    }
    
    .bttv-card-description {
        font-size: 12px;
    }
    
    .bttv-card-thumbnail {
        height: 100px;
    }
    
    .bttv-schedule-stats {
        padding: 12px 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .bttv-schedule-grid-container {
        padding: 15px 10px;
    }
    
    .bttv-program-card-compact {
        padding: 14px;
    }
    
    .bttv-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bttv-time-badge-compact {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .bttv-card-title {
        font-size: 14px;
    }
    
    .bttv-card-thumbnail {
        height: 80px;
    }
}

/* Dark Mode - Grid Compacto */
@media (prefers-color-scheme: dark) {
    .bttv-schedule-grid-container {
        background: #1a202c;
    }
    
    .bttv-program-card-compact {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .bttv-card-title {
        color: #f7fafc;
    }
    
    .bttv-card-description {
        color: #cbd5e0;
    }
    
    .bttv-program-card-compact.is-past .bttv-card-title,
    .bttv-program-card-compact.is-past .bttv-card-description {
        color: #718096;
    }
    
    .bttv-schedule-stats {
        background: rgba(45, 55, 72, 0.5);
        border-color: #4a5568;
        color: #cbd5e0;
    }
    
    .bttv-end-message {
        background: rgba(45, 55, 72, 0.5);
    }
}

/* Transições suaves para lazy loading */
.bttv-schedule-grid-2col {
    position: relative;
}

/* Accessibility */
.bttv-program-card-compact:focus {
    outline: 3px solid var(--bttv-primary);
    outline-offset: 2px;
}

/* Print Friendly */
@media print {
    .bttv-schedule-grid-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .bttv-program-card-compact {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .bttv-loading-more,
    .bttv-end-message {
        display: none !important;
    }
}
/* ============================================
   LAYOUT PRO - GRID 3 COLUNAS + PAGINAÇÃO
   Cores Brazilian Times: Verde #009342 + Dourado #FFD700
   ============================================ */

.bttv-schedule-pro {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 30px 0;
}

/* Header Profissional */
.bttv-header-pro {
    background: linear-gradient(135deg, #009342 0%, #007a35 100%);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #FFD700;
}

.bttv-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bttv-icon-tv {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    backdrop-filter: blur(10px);
}

.bttv-title-pro {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.bttv-subtitle-pro {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bttv-date-badge {
    background: rgba(255,215,0,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #FFD700;
}

.bttv-divider {
    color: rgba(255,255,255,0.5);
}

.bttv-timezone {
    font-size: 13px;
    opacity: 0.85;
}

.bttv-clock-display {
    background: rgba(255,255,255,0.15);
    padding: 14px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.3);
}

.bttv-clock-display svg {
    color: #FFD700;
    animation: tick 1s step-end infinite;
}

@keyframes tick {
    50% { opacity: 0.7; }
}

.bttv-time-now {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
}

/* Stats Bar */
.bttv-stats-bar {
    padding: 16px 40px;
    background: linear-gradient(to right, rgba(0,147,66,0.05), rgba(255,215,0,0.05));
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #4a5568;
}

.bttv-stat strong {
    color: #009342;
    font-weight: 700;
}

.bttv-stat-sep {
    color: #cbd5e0;
    font-weight: 300;
}

.bttv-stat-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #009342;
    font-weight: 600;
}

.bttv-pulse-mini {
    width: 8px;
    height: 8px;
    background: #009342;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

/* Grid Wrapper */
.bttv-grid-wrapper {
    padding: 40px;
    background: #f8f9fa;
}

/* Grid 3 Colunas */
.bttv-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Card Profissional */
.bttv-card-pro {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.bttv-card-pro:hover {
    border-color: #009342;
    box-shadow: 0 8px 24px rgba(0,147,66,0.15);
    transform: translateY(-6px);
}

/* Live Ribbon */
.bttv-live-ribbon {
    position: absolute;
    top: 12px;
    right: -32px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.bttv-pulse-ribbon {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

/* Card Time */
.bttv-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #009342 0%, #007a35 100%);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    width: fit-content;
}

.bttv-card-time svg {
    flex-shrink: 0;
}

.bttv-time-text {
    letter-spacing: 0.5px;
}

.bttv-duration-text {
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
    opacity: 0.9;
}

/* Category */
.bttv-card-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0,147,66,0.1);
    color: #009342;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
    border: 1px solid rgba(0,147,66,0.2);
}

.bttv-emoji {
    font-size: 16px;
}

/* Title */
.bttv-card-title-pro {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Description */
.bttv-card-desc {
    margin: 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thumbnail */
.bttv-card-thumb {
    margin-top: auto;
    border-radius: 10px;
    overflow: hidden;
    height: 120px;
    background: #f0f4f8;
}

.bttv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bttv-card-pro:hover .bttv-card-thumb img {
    transform: scale(1.1);
}

/* Estados */
.bttv-card-pro.is-on-air {
    border-color: #ef4444;
    border-width: 3px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 8px 30px rgba(239,68,68,0.25);
}

.bttv-card-pro.is-past {
    opacity: 0.5;
    filter: grayscale(30%);
}

.bttv-card-pro.is-past:hover {
    opacity: 0.75;
}

/* Paginação */
.bttv-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid #e8e8e8;
}

.bttv-page-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #009342 0%, #007a35 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,147,66,0.25);
}

.bttv-page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00a84a 0%, #008a3e 100%);
    box-shadow: 0 6px 20px rgba(0,147,66,0.35);
    transform: translateY(-2px);
}

.bttv-page-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

.bttv-page-btn svg {
    flex-shrink: 0;
}

.bttv-page-info {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.bttv-page-info strong {
    color: #009342;
    font-weight: 700;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1400px) {
    .bttv-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .bttv-header-pro {
        flex-direction: column;
        gap: 20px;
        padding: 25px 30px;
    }
    
    .bttv-header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .bttv-clock-display {
        width: 100%;
        justify-content: center;
    }
    
    .bttv-stats-bar {
        flex-wrap: wrap;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .bttv-grid-wrapper {
        padding: 25px 20px;
    }
    
    .bttv-pagination {
        padding: 20px;
    }
    
    .bttv-page-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .bttv-page-info {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .bttv-grid-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bttv-title-pro {
        font-size: 24px;
    }
    
    .bttv-subtitle-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .bttv-grid-wrapper {
        padding: 20px 15px;
    }
    
    .bttv-card-pro {
        padding: 16px;
        min-height: 180px;
    }
    
    .bttv-card-title-pro {
        font-size: 16px;
    }
    
    .bttv-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .bttv-page-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bttv-header-pro {
        padding: 20px 15px;
    }
    
    .bttv-icon-tv {
        width: 50px;
        height: 50px;
    }
    
    .bttv-title-pro {
        font-size: 20px;
    }
    
    .bttv-time-now {
        font-size: 18px;
    }
    
    .bttv-stats-bar {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .bttv-card-thumb {
        height: 100px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .bttv-schedule-pro {
        background: #1a202c;
    }
    
    .bttv-grid-wrapper {
        background: #2d3748;
    }
    
    .bttv-card-pro {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .bttv-card-title-pro {
        color: #f7fafc;
    }
    
    .bttv-card-desc {
        color: #cbd5e0;
    }
    
    .bttv-pagination {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .bttv-page-info {
        color: #cbd5e0;
    }
}

/* Animações */
@keyframes pulse-beat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Accessibility */
.bttv-card-pro:focus {
    outline: 3px solid #009342;
    outline-offset: 3px;
}

.bttv-page-btn:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* Print */
@media print {
    .bttv-pagination,
    .bttv-clock-display {
        display: none !important;
    }
    
    .bttv-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .bttv-card-pro {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   GRID 4 COLUNAS - 16 PROGRAMAS
   ============================================ */

/* Grid 4 Colunas */
.bttv-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Animação Pulsante para Card NO AR */
.bttv-card-pro.animate-pulse {
    animation: card-pulse 2s ease-in-out infinite;
}

@keyframes card-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 40px rgba(239, 68, 68, 0.4);
    }
}

/* Ribbon Animado */
.bttv-ribbon-animated {
    animation: ribbon-glow 2s ease-in-out infinite;
}

@keyframes ribbon-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
    }
}

/* Borda Animada para Card NO AR */
.bttv-card-pro.is-on-air::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ef4444, #f97316, #eab308, #f97316, #ef4444);
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: gradient-rotate 3s ease infinite;
    opacity: 0.8;
}

@keyframes gradient-rotate {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Ajustes Responsive para 4 Colunas */
@media (max-width: 1600px) {
    .bttv-grid-4col {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1400px) {
    .bttv-grid-4col {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1100px) {
    .bttv-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .bttv-grid-4col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Card NO AR - Destaque Extra */
.bttv-card-pro.is-on-air {
    position: relative;
    z-index: 10;
}

.bttv-card-pro.is-on-air .bttv-card-title-pro {
    color: #dc2626;
    text-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.bttv-card-pro.is-on-air .bttv-card-time {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: time-pulse 1.5s ease-in-out infinite;
}

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

/* ══════════════════════════════════════════════════════════
   BTTV 5 PRO — CTA Section override (v5.2.1+)
   Sobrescreve estilos antigos que conflitam com o novo layout
══════════════════════════════════════════════════════════ */
.btv5 .btv5-cta,
.btv5-cta {
    background: linear-gradient(135deg, #0d1a0d 0%, #141414 45%, #160f1e 100%) !important;
    border-top: 1px solid rgba(0, 147, 66, .22) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 36px 28px !important;
    box-shadow: none !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
}
.btv5-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(0,147,66,.1) 0%, transparent 70%);
    pointer-events: none;
}
.btv5-cta::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(118,75,162,.09) 0%, transparent 70%);
    pointer-events: none;
}
.btv5-cta-inner {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    max-width: 960px;
    margin: 0 auto !important;
    flex-wrap: wrap;
}
.btv5-cta-text {
    flex: 1;
    min-width: 0;
}
.btv5-cta-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.3) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 10px !important;
}
.btv5-cta-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #009342;
    box-shadow: 0 0 6px #009342;
    flex-shrink: 0;
}
.btv5-cta-title {
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
    letter-spacing: -.3px;
}
.btv5-cta-desc {
    color: rgba(255,255,255,.52) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    max-width: none !important;
}
.btv5-cta-btns {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end !important;
}
/* Botões do CTA — classe própria btv5-cbtn para não conflitar com .bttv-btn */
.btv5-cbtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .22s ease !important;
    white-space: nowrap;
    line-height: 1 !important;
    border: none;
}
.btv5-cbtn-primary {
    background: #009342 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,147,66,.35);
}
.btv5-cbtn-primary:hover {
    background: #00a84a !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,147,66,.5);
    text-decoration: none !important;
}
.btv5-cbtn-wa {
    background: #25D366 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.btv5-cbtn-wa:hover {
    background: #22c55e !important;
    color: #fff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}
.btv5-cbtn-email {
    background: transparent !important;
    color: rgba(255,255,255,.65) !important;
    border: 1.5px solid rgba(255,255,255,.18) !important;
    box-shadow: none;
}
.btv5-cbtn-email:hover {
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.35) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}
/* Responsivo CTA */
@media (max-width: 700px) {
    .btv5-cta { padding: 26px 18px !important; }
    .btv5-cta-inner { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
    .btv5-cta-title { font-size: 20px !important; }
    .btv5-cta-btns { justify-content: flex-start !important; width: 100%; }
    .btv5-cbtn { flex: 1; justify-content: center !important; font-size: 13px !important; padding: 12px 14px !important; }
}
@media (max-width: 400px) {
    .btv5-cta-btns { flex-direction: column; }
    .btv5-cbtn { width: 100%; flex: none; }
}
