/*
Theme Name: Autónoma TV
Theme URI: https://www.autonoma.uy
Author: Autónoma TV
Description: Tema a medida para Autónoma Televisión (Paysandú). Estilo plataforma de streaming: en vivo, programación, programas, deportes motor, eventos y publicidad.
Version: 1.0.0
Requires PHP: 7.0
Text Domain: autonoma-tv
*/

:root {
	--atv-bg: #0B0B0C;
	--atv-card: #18181A;
	--atv-card-2: #222225;
	--atv-line: #262626;
	--atv-text: #F2F2F2;
	--atv-muted: #A8A8A8;
	--atv-muted-2: #9A9A9A;
	--atv-yellow: #FFD400;
	--atv-red: #E5262B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--atv-bg);
	color: var(--atv-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
a { color: var(--atv-yellow); text-decoration: none; }
a:hover { color: #FFE45C; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; }

.atv-wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .atv-wrap { padding-left: 18px; padding-right: 18px; } }
.atv-section { padding-top: 28px; padding-bottom: 28px; }
.atv-section--last { padding-bottom: 56px; }
.atv-row { display: flex; flex-wrap: wrap; gap: 16px; }
.atv-row > * { min-width: 0; }

/* ---------- Header ---------- */
.atv-header { border-bottom: 1px solid #222; background: var(--atv-bg); position: sticky; top: 0; z-index: 50; }
.admin-bar .atv-header { top: 32px; }
.atv-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.atv-logo img { height: 30px; width: auto; display: block; }
.atv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.atv-nav a { color: #BDBDBD; }
.atv-nav a:hover, .atv-nav .current-menu-item > a, .atv-nav .current_page_item > a, .atv-nav a.is-active { color: #fff; }
.atv-menu-toggle { display: none; background: none; border: 1px solid #333; color: #fff; border-radius: 8px; padding: 10px 14px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
	.atv-menu-toggle { display: inline-block; }
	.atv-nav { display: none; width: 100%; order: 3; }
	.atv-nav.is-open { display: block; }
	.atv-nav ul { flex-direction: column; gap: 14px; padding: 8px 0 4px; }
	.atv-header .atv-btn-live { order: 2; }
}

/* ---------- Buttons ---------- */
.atv-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; }
.atv-btn--yellow { background: var(--atv-yellow); color: var(--atv-bg); }
.atv-btn--yellow:hover { background: #FFE45C; color: var(--atv-bg); }
.atv-btn--dark { background: var(--atv-bg); color: #fff; }
.atv-btn--dark:hover { color: var(--atv-yellow); }
.atv-btn--outline { border: 1px solid var(--atv-yellow); color: var(--atv-yellow); background: transparent; font-weight: 600; }
.atv-btn--outline-dark { border: 2px solid var(--atv-bg); color: var(--atv-bg); background: transparent; }
.atv-btn-live { background: var(--atv-red); color: #fff; font-size: 14px; padding: 12px 18px; }
.atv-btn-live:hover { color: #fff; filter: brightness(1.1); }
.atv-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }

/* ---------- Common ---------- */
.atv-kicker { font-size: 12px; font-weight: 700; color: var(--atv-yellow); letter-spacing: 0.1em; text-transform: uppercase; }
.atv-kicker--muted { color: var(--atv-muted-2); }
.atv-card { background: var(--atv-card); border: 1px solid var(--atv-line); border-radius: 12px; }
.atv-card--lg { border-radius: 16px; padding: 32px; }
.atv-card--pad { padding: 22px; }
.atv-yellow-box { background: var(--atv-yellow); color: var(--atv-bg); border-radius: 16px; padding: 28px; }
.atv-yellow-box a:not(.atv-btn) { color: var(--atv-bg); }
.atv-muted { color: var(--atv-muted); }
.atv-small { font-size: 13px; color: var(--atv-muted-2); }
.atv-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.atv-section-head h2 { font-size: 24px; margin: 0; }
.atv-section-head a { font-size: 14px; }
.atv-page-hero { padding-top: 40px; padding-bottom: 8px; }
.atv-page-hero h1 { font-size: 44px; margin: 8px 0 10px; font-weight: 800; }
.atv-page-hero p { margin: 0; color: var(--atv-muted); font-size: 17px; max-width: 720px; }
@media (max-width: 640px) { .atv-page-hero h1 { font-size: 34px; } }
.atv-thumb { aspect-ratio: 16 / 9; background: var(--atv-card-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #8A8A8A; font-size: 12px; }
.atv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atv-thumb--1610 { aspect-ratio: 16 / 10; }
.atv-tile { flex: 1 1 260px; color: #fff; }
.atv-tile:hover { color: #fff; }
.atv-tile__title { font-weight: 700; margin-top: 10px; }
.atv-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.04em; }
.atv-badge--yellow { background: var(--atv-yellow); color: var(--atv-bg); }
.atv-badge--dark { background: var(--atv-bg); color: var(--atv-yellow); }
.atv-badge--line { border: 1px solid #333; color: var(--atv-muted-2); }
.atv-badge--outline { border: 1px solid var(--atv-yellow); color: var(--atv-yellow); }
.atv-badge--live { background: var(--atv-red); color: #fff; letter-spacing: 0.08em; }
.atv-empty { color: #8A8A8A; font-size: 14px; }

/* ---------- Home: hero ---------- */
.atv-hero { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.atv-hero__main { flex: 999 1 640px; min-width: 0; }
.atv-hero__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.atv-player { position: relative; aspect-ratio: 16 / 9; background: var(--atv-card); border: 1px solid var(--atv-line); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.atv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.atv-player__badge { position: absolute; top: 16px; left: 16px; z-index: 2; pointer-events: none; }
.atv-hero h1 { font-size: 40px; margin: 24px 0 8px; font-weight: 800; }
.atv-hero h1 span { color: var(--atv-yellow); }
.atv-hero__lead { margin: 0; color: var(--atv-muted); font-size: 17px; }
.atv-onair { padding: 20px; }
.atv-onair__title { font-size: 22px; font-weight: 700; margin-top: 8px; }
.atv-progress { height: 4px; background: #2A2A2A; border-radius: 4px; margin-top: 16px; }
.atv-progress span { display: block; height: 4px; background: var(--atv-yellow); border-radius: 4px; }
.atv-next-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 15px; }
.atv-next-row span:last-child { color: var(--atv-muted-2); white-space: nowrap; }
.atv-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.atv-channels span { background: var(--atv-bg); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Race cards ---------- */
.atv-race { flex: 1 1 340px; padding: 20px; }
.atv-race__title { font-weight: 700; font-size: 18px; margin-top: 8px; line-height: 1.25; }
.atv-race--featured { background: var(--atv-yellow); color: var(--atv-bg); border-color: var(--atv-yellow); }
.atv-race--featured .atv-race__head { color: var(--atv-bg); }
.atv-race__head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--atv-yellow); }
.atv-feature { background: var(--atv-yellow); color: var(--atv-bg); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.atv-feature h2 { font-size: 34px; margin: 12px 0 8px; font-weight: 800; }
.atv-feature p { margin: 0; font-size: 18px; font-weight: 600; }

/* calendar list */
.atv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.atv-filter { background: var(--atv-card); color: var(--atv-text); border: 1px solid #333; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.atv-filter.is-active { background: var(--atv-yellow); color: var(--atv-bg); border-color: var(--atv-yellow); font-weight: 700; }
.atv-cal { overflow: hidden; }
.atv-cal__row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--atv-line); }
.atv-cal__row:first-child { border-top: 0; }
.atv-cal__date { width: 64px; text-align: center; }
.atv-cal__day { font-size: 26px; font-weight: 800; color: var(--atv-yellow); line-height: 1; }
.atv-cal__month { font-size: 12px; color: var(--atv-muted-2); letter-spacing: 0.08em; text-transform: uppercase; }
.atv-cal__info { flex: 1 1 300px; }
.atv-cal__name { font-weight: 700; font-size: 17px; }

/* ---------- Schedule grid ---------- */
.atv-grid-box { overflow-x: auto; background: #121214; border: 1px solid var(--atv-line); border-radius: 16px; padding: 8px 16px 16px; }
.atv-grid { display: grid; grid-template-columns: 56px repeat(7, minmax(120px, 1fr)); grid-auto-rows: 26px; min-width: 900px; }
.atv-grid__dayhead { grid-row: 1; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: #BDBDBD; border-bottom: 1px solid #2A2A2A; display: flex; align-items: center; justify-content: center; }
.atv-grid__dayhead.is-today { color: var(--atv-yellow); }
.atv-grid__hour { grid-column: 1; font-size: 12px; color: #8A8A8A; padding: 4px 8px 0 0; text-align: right; border-top: 1px solid #222; }
.atv-grid__line { grid-column: 2 / 9; border-top: 1px solid #222; }
.atv-grid__prog { background: #232326; color: var(--atv-text); border-left: 3px solid var(--atv-yellow); border-radius: 8px; margin: 2px; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; font-size: 13px; z-index: 1; }
.atv-grid__prog:hover { color: #fff; background: #2C2C30; }
.atv-grid__prog strong { line-height: 1.2; }
.atv-grid__prog span { font-size: 12px; color: var(--atv-muted); }
.atv-grid__prog.is-live { background: var(--atv-yellow); color: var(--atv-bg); border-left: 0; }
.atv-grid__prog.is-live span { color: #3A3300; }
.atv-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--atv-muted-2); align-items: center; }
.atv-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.atv-day { flex: 1 1 260px; padding: 18px 20px; }
.atv-day h3 { font-size: 17px; margin: 0 0 6px; }
.atv-day__row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--atv-line); font-size: 15px; }
.atv-day__row b { color: var(--atv-yellow); font-weight: 600; width: 104px; flex: none; }

/* ---------- Programs ---------- */
.atv-prog { flex: 1 1 520px; overflow: hidden; display: flex; flex-wrap: wrap; }
.atv-prog__img { flex: 1 1 220px; min-height: 200px; background: var(--atv-card-2); display: flex; align-items: center; justify-content: center; color: #8A8A8A; font-size: 12px; }
.atv-prog__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atv-prog__body { flex: 1 1 260px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.atv-prog__body h2 { font-size: 24px; margin: 0; }
.atv-prog__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Features / steps ---------- */
.atv-feat { flex: 1 1 260px; padding: 22px; }
.atv-feat__bar { width: 36px; height: 4px; background: var(--atv-yellow); border-radius: 2px; }
.atv-feat h3 { font-size: 17px; margin: 14px 0 0; }
.atv-feat p { margin: 6px 0 0; color: var(--atv-muted); font-size: 15px; }
.atv-step { flex: 1 1 220px; display: flex; gap: 14px; }
.atv-step__n { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--atv-yellow); color: var(--atv-bg); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.atv-step p { margin: 4px 0 0; color: var(--atv-muted); font-size: 15px; }
.atv-chan { flex: 1 1 220px; background: var(--atv-bg); color: #fff; border-radius: 12px; padding: 18px 20px; }
.atv-chan b { font-size: 20px; display: block; }
.atv-chan span { font-size: 14px; color: #BDBDBD; }
.atv-sponsor-row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding: 16px 22px; border-top: 1px solid var(--atv-line); }
.atv-sponsor-row:first-child { border-top: 0; }
.atv-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.atv-logos__item { flex: 1 1 160px; height: 80px; background: var(--atv-card); border: 1px solid var(--atv-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.atv-logos__item img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------- Forms ---------- */
.atv-form { display: flex; flex-wrap: wrap; gap: 16px; }
.atv-form__field { flex: 1 1 240px; }
.atv-form__field--full { flex-basis: 100%; }
.atv-form label { font-size: 14px; color: #BDBDBD; }
.atv-form input, .atv-form textarea { width: 100%; background: var(--atv-bg); border: 1px solid #333; border-radius: 8px; color: var(--atv-text); padding: 12px 14px; font: inherit; font-size: 15px; margin-top: 6px; }
.atv-form input:focus, .atv-form textarea:focus { outline: 2px solid var(--atv-yellow); outline-offset: 1px; border-color: transparent; }
.atv-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.atv-form__actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 12px; }
.atv-notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.atv-notice--ok { background: #12351F; color: #8EF0B0; }
.atv-notice--err { background: #3A1416; color: #FFB3B5; }

/* ---------- Contact ---------- */
.atv-contact-item { padding: 16px 0; border-top: 1px solid var(--atv-line); }
.atv-contact-item:first-child { border-top: 0; }
.atv-contact-item div:last-child { font-size: 18px; font-weight: 600; margin-top: 6px; }
.atv-contact-item a { color: var(--atv-text); }
.atv-map { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--atv-card-2); }
.atv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Generic content ---------- */
.atv-content { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.atv-content h1 { font-size: 40px; }
.atv-content p, .atv-content li { color: #D6D6D6; }

/* ---------- Footer ---------- */
.atv-footer { border-top: 1px solid #222; }
.atv-footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--atv-muted-2); }
.atv-footer__inner a { color: var(--atv-muted-2); }
.atv-footer__inner a:hover { color: #fff; }
.atv-footer img { height: 22px; width: auto; display: block; }
.atv-wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.4); z-index: 60; }
.atv-wa-float:hover { filter: brightness(1.08); }
.screen-reader-text { position: absolute; left: -9999px; }
