body {
    background-color: #f8f9fa;
}

.container {
    margin-top: 30px;
}

/* Página de login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Header de usuario logueado */
.user-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #495057;
}

.user-header img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* KPI de resumen */
.kpi-row {
    margin-bottom: 25px;
}

.kpi-card {
    text-align: center;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kpi-card .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.kpi-card .kpi-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Tarjeta de video */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease-in-out;
}

.video-card:hover {
    transform: translateY(-3px);
}

.thumb-wrap {
    position: relative;
    display: block;
}

.thumb-wrap img {
    width: 100%;
    display: block;
}

.badge-categoria {
    position: absolute;
    top: 8px;
    left: 8px;
}

.badge-categoria.badge-estreno { background-color: #0d6efd; }
.badge-categoria.badge-compilado { background-color: #6f42c1; }
.badge-categoria.badge-short { background-color: #fd7e14; }
.badge-categoria.badge-desconocido { background-color: #6c757d; }

.badge-top-ctr {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ffc107;
    color: #212529;
}

.video-meta {
    padding: 10px;
}

.video-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #495057;
}

/* Mini barra de distribución por dispositivo (preview siempre visible) */
.device-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    background: #e9ecef;
}

.device-bar-segment {
    height: 100%;
}

.device-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #6c757d;
}

.device-bar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.device-bar-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Modal de detalle */
.video-detail-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.video-detail-header img {
    width: 180px;
    border-radius: 8px;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.date-availability-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin: 6px 0 0;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-status {
    font-weight: 600;
    color: #495057;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
