
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05070a;
    color: #f4f4f4;
}

a {
    color: #ffd54f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    background: #000;
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 40px;
    border-radius: 8px;
}

.site-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.95rem;
}

.user-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hero video */
.hero-video-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw); /* full width sin márgenes */
    height: 70vh;
    background: #000;
    overflow: hidden;
}

.hero-video-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Cintillo anuncios */
.ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #ffd54f;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-move 25s linear infinite;
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Sección bajo hero */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
}

.channel-logos-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-card-logo {
    background: #111;
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card-logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.channel-card-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

/* Grilla programación */
.grid-programacion {
    background: #111;
    border-radius: 0.75rem;
    padding: 0.75rem;
    overflow-x: auto;
    position: relative;
}

.grid-header-time {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.grid-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.grid-cell-time {
    min-width: 80px;
    color: #bbb;
}

.grid-cell-title {
    min-width: 200px;
}

/* Línea amarilla "ahora" */
.grid-now-line {
    position: absolute;
    top: 1.6rem; /* debajo del header tiempos */
    left: 0;
    width: 2px;
    height: calc(100% - 1.6rem);
    background: #ffeb3b;
    transform-origin: top;
}

/* Tarjetas genéricas */
.card {
    background: #111;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card h2 {
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    background: #000;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }
}
