/* OMT Canal do YouTube — Frontend CSS */

/* Grade da Categoria TV OMT (2/1 colunas) */
.omt-tv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.omt-tv-card {
    background: #fff;
    border: 1px solid var(--omt-gray-200, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omt-tv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.omt-tv-card__video {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
    background: #000;
}

.omt-tv-card__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.omt-tv-card__body {
    padding: 1rem;
}

.omt-tv-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--omt-gray-900, #111);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.omt-tv-card__date {
    font-size: 0.85rem;
    color: var(--omt-gray-500, #777);
}

.omt-tv-subscribe {
    margin-top: 3rem;
    text-align: center;
}

.omt-tv-subscribe__btn {
    display: inline-block;
    background: #cc0000; /* Cor oficial do YT */
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.omt-tv-subscribe__btn:hover {
    background: #a30000;
    transform: scale(1.02);
}

/* ========================================================
   SEÇÕES HORIZONTAIS DE 3 VÍDEOS (HOME, POST, BUSCA) 
   ======================================================== */

.omt-yt-section {
    width: 100%;
    padding: 1.2rem 0 1.5rem;
    background-color: #ffffff; /* Fundo branco puro conforme solicitado */
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--omt-gray-200, #e5e5e5); /* Mantida a borda para destacar do fundo do site */
}

.omt-yt-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.omt-yt-section__item {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 proportions */
    height: 0;
    background: #000;
    border-radius: 10px; /* Aumentado levemente para destacar */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Sombra mais sutil para o fundo claro */
}

.omt-yt-section__item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.omt-yt-section__action {
    display: flex;
    justify-content: center; /* Centralizado conforme solicitado */
    margin-top: 0;
    margin-bottom: 1rem;
}

.omt-yt-section__btn {
    display: inline-block;
    color: var(--omt-gray-600, #666) !important; /* Cor escura para fundo claro */
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.omt-yt-section__btn:hover {
    color: var(--omt-primary, #1C5426) !important; /* Verde do tema no hover */
    text-decoration: underline;
}

/* ========================================================
   ISOLAMENTO - NÃO AFETAR OUTROS WIDGETS (TIKTOK)
   ======================================================== */

/* Resetar para não afetar widgets no sidebar */
.omt-sidebar iframe:not(.omt-tt-slide iframe):not(.omt-yt-section__item iframe):not(.omt-tv-card__video iframe) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .omt-tv-grid {
        grid-template-columns: 1fr;
    }
    
    .omt-yt-section {
        padding: 2rem 0;
    }

    .omt-yt-section__grid {
        grid-template-columns: 1fr; /* 1 coluna mobile */
        gap: 1rem;
    }
}
