/* ARQUIVO: 3colunas.css - Versão Final Ajustada com Precisão Matemática */
* { box-sizing: border-box; }

body { 
    background: #ffffff; 
    margin: 0; 
    padding: 0;
    color: #333; 
    font-family: sans-serif; 
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    overflow-x: hidden;
}

.ticker-container { 
    width: 100%; 
    height: 45px; 
    background: #f8f9fa; 
    border-bottom: 2px solid #ff4500;
    flex-shrink: 0;
}

.container { 
    display: flex; 
    gap: 15px; 
    padding: 15px; 
    flex-grow: 1; 
    align-items: flex-start; /* Ancorado no topo */
    justify-content: space-between;
}

.col-logo { flex: 0 0 200px; display: flex; flex-direction: column; gap: 10px; }
.col-logo img { width: 90% !important; height: auto; display: block; margin: 0 auto; }

.col-manchetes {
    flex: 1;
    min-width: 200px;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px; 
    /* Força a coluna a ter o mesmo tamanho do player vizinho */
    min-height: 9.5cm; 
}

.box-destaque { 
    height: 5cm; /* Fixa superior */
    flex-shrink: 0; 
    width: 100% !important;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-top: 3px solid #007bff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.box-manchete { 
    /* O cálculo subtrai a altura da superior e o gap para alinhar com o rodapé */
    min-height: calc(9.5cm - 5cm - 15px);
    flex-grow: 1; 
    width: 100% !important;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-top: 3px solid #ff4500;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
}

.col-player { flex: 1.5; }
.video-box { 
    position: relative; 
    width: 100%; 
    min-height: 9.5cm; 
    background: #000; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid #ddd; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

iframe { 
    width: 100%; 
    height: calc(100% - 40px); 
    border: none; 
    position: absolute; 
    top: 0; 
    left: 0;
}

.custom-controls { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 40px;
    background: rgba(255, 255, 255, 0.95); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 10px; 
    border-top: 1px solid #eee; 
    z-index: 25; 
}
.timer-text { font-size: 10px; font-weight: bold; color: #555; }
.timer-val { color: #ff4500; }
.btn-action { background: #eee; border: 1px solid #ccc; padding: 2px 6px; font-size: 9px; font-weight: bold; cursor: pointer; border-radius: 4px; text-transform: uppercase; }
.btn-skip { background: #ff4500; color: white; border-color: #e03e00; }