/* ============================================
   Home Page — Mobile-first (viewer/mom UX)
   ============================================ */

/* Cabeçalho fixo no topo */
.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 10;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

/* Área principal de conteúdo */
.home-main {
    padding: 1.5rem 1rem 3rem;
    max-width: 680px;
    margin: 0 auto;
}

.home-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Lista vertical de cards */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Card de vídeo */
.video-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Thumbnail em proporção 16:9 */
.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--bg-darker);
}

/* Rodapé do card: título + botão */
.video-info {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

/* Botão "Assistir" grande e visível */
.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.btn-watch:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
}

.btn-watch:active {
    transform: scale(0.98);
}

/* Estados de loading e vazio */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.loading-state i,
.empty-state i {
    font-size: 2.5rem;
}

/* Botão de tema (reutilizado de styles.css) */
.btn-icon {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-icon:hover {
    background: var(--glass-border);
}

/* Desktop: dois cards lado a lado */
@media (min-width: 620px) {
    .video-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .loading-state,
    .empty-state {
        grid-column: 1 / -1;
    }
}