/* Estilos sencillos de FAMILIA TV */
:root {
    color-scheme: dark;
    --bg: #0d1725;
    --panel: #17263a;
    --panel2: #20334b;
    --text: #edf3fa;
    --muted: #a9b8ca;
    --accent: #69a9ff;
    --border: #30445d;
}
* { box-sizing: border-box; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 15px max(20px, calc((100% - 1100px)/2));
    background: #14263d; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; letter-spacing: .06em; }
.topbar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a, .link-button { color: #d9e8fa; }
.user-name { color: var(--muted); font-size: .9rem; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; cursor: pointer; font: inherit; }
.container { width: min(1100px, calc(100% - 32px)); margin: 34px auto 60px; min-height: 65vh; }
.hero {
    padding: clamp(25px, 6vw, 58px); border-radius: 22px;
    background: linear-gradient(125deg, #1b3e60, #263653);
    border: 1px solid var(--border);
}
.hero h1 { margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 3.3rem); }
.hero p { color: #d0ddec; max-width: 650px; }
.eyebrow { color: #8fc1ff; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.tiles, .video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.tile, .video-card, .login-card, .empty-state {
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
}
.tile { padding: 24px; transition: transform .15s, border-color .15s; }
.tile:hover, .video-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile-icon { font-size: 2rem; color: var(--accent); }
.tile p, .video-card p, .page-heading p, .login-card p { color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
h1 { line-height: 1.2; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
input, select {
    width: 100%; padding: 12px 13px; color: var(--text);
    background: #0e1b2b; border: 1px solid var(--border); border-radius: 9px;
}
.filters input { flex: 2 1 240px; }
.filters select { flex: 1 1 190px; }
.button {
    display: inline-block; border: 0; border-radius: 9px; padding: 12px 18px;
    cursor: pointer; font-weight: 700;
}
.primary { background: #347fce; color: white; }
.full { width: 100%; margin-top: 20px; }
.login-card { width: min(440px, 100%); margin: 35px auto; padding: 28px; }
.login-card label { display: block; margin: 15px 0 7px; }
.video-card { overflow: hidden; display: block; border: 1px solid var(--border); transition: .15s; }
.video-placeholder, .live-placeholder {
    min-height: 145px; display: grid; place-items: center;
    background: linear-gradient(135deg, #213d5a, #111e30); color: #9fcaff; font-size: 2rem;
}
.live-placeholder span { color: #ff8585; font-size: .9rem; font-weight: 800; }
.video-card-body { padding: 16px; }
.video-card h2 { margin: 7px 0; font-size: 1.15rem; }
.video-card p { margin-bottom: 0; font-size: .92rem; }
.tag { color: #9fcaff; font-size: .75rem; }
.empty-state { padding: 28px; text-align: center; }
.notice { padding: 12px 15px; border-radius: 9px; margin: 15px 0; }
.error { background: #4a2028; border: 1px solid #9b4552; }
.player-wrap { width: 100%; max-width: 1000px; margin: 24px auto; }
.video-js { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.back-link { display: inline-block; color: #9fcaff; margin-bottom: 15px; }
.footer { text-align: center; color: var(--muted); border-top: 1px solid var(--border); padding: 22px; font-size: .85rem; }
@media (max-width: 600px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .topbar nav { gap: 12px; }
    .container { margin-top: 22px; }
}
