/*
Theme Name: Futbol Libre Biz
Theme URI: https://futbol-libres.biz/
Author: Futbol Libre
Description: Cartelera deportiva y páginas de transmisión para futbol-libres.biz.
Version: 2.0.0
Text Domain: futbolibre-biz
*/

:root {
  color-scheme: dark;
  --bg: #08121c;
  --panel: #0f1c29;
  --panel-raised: #142735;
  --line: rgba(164, 199, 202, .14);
  --teal: #71ded7;
  --amber: #ffd17b;
  --text: #edf6f5;
  --muted: #a5bec3;
  --soft: #728c93;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 15% 0%, rgba(20,105,119,.24), transparent 34%),
    linear-gradient(155deg, #08121c 0%, #0a1624 48%, #10222e 100%);
  font: 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button { font: inherit; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(111,224,216,.3);
  background: rgba(6,15,24,.94);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand span { color: var(--teal); }
.brand-mark {
  margin-left: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255,195,106,.42);
  border-radius: 999px;
  color: var(--amber);
  font-size: .6rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .15em;
}
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-link, .menu-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #c8d9dc;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.header-link:hover, .menu-toggle:hover { color: var(--amber); }
.menu-toggle { display: none; padding: 0 4px; }
.mobile-menu { display: none; }
.mobile-menu:not([hidden]) {
  position: fixed;
  z-index: 19;
  top: 58px;
  right: 0;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 10px 14px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(6,15,24,.98);
  box-shadow: 0 18px 30px rgba(0,0,0,.28);
}
.mobile-menu a { min-height: 46px; display: flex; align-items: center; padding: 0 12px; color: var(--text); font-weight: 750; text-decoration: none; }
.mobile-menu a:hover { color: var(--amber); }
.site-main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 30px auto 18px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(111,224,216,.28);
  border-radius: 26px;
  background: linear-gradient(115deg,#123744 0%,#122b39 52%,#20263a 100%);
  box-shadow: 0 24px 55px rgba(0,0,0,.32);
}
.hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 7%;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,195,106,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(111,224,216,.06), 0 0 0 58px rgba(255,195,106,.04);
  content: "";
  transform: translateY(-50%);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 14ch;
  margin: 0 0 12px;
  color: var(--amber);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1.02;
}
.hero p {
  max-width: 58ch;
  margin: 0;
  color: #c4d9db;
  font-size: 1rem;
  line-height: 1.65;
}
.hero strong { color: var(--teal); }
.agenda-panel {
  overflow: hidden;
  margin: 20px 0 34px;
  border: 1px solid rgba(111,224,216,.22);
  border-radius: 22px;
  background: #0d1c28;
  box-shadow: 0 22px 52px rgba(0,0,0,.3);
}
.agenda-heading {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(111,224,216,.3);
  background: linear-gradient(90deg,#112e3b,#16263a);
}
.agenda-heading h2 {
  margin: 0;
  color: #79e2dc;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.event-list { margin: 0; padding: 0; list-style: none; }
.event-row { border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-toggle {
  display: grid;
  grid-template-columns: 54px 32px minmax(0,1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.event-toggle:hover, .event-row.is-open .event-toggle { background: #142735; }
.event-time { color: #d6e7e7; font-size: .9rem; font-weight: 800; text-align: center; }
.event-flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #19333d; }
.event-name { font-size: .91rem; font-weight: 750; line-height: 1.32; white-space: pre-line; }
.event-chevron { color: var(--teal); font-size: 1.25rem; transition: transform .2s ease; }
.event-row.is-open .event-chevron { transform: rotate(90deg); }
.event-sources { display: none; gap: 8px; padding: 0 16px 14px 112px; }
.event-row.is-open .event-sources { display: grid; }
.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17,46,59,.6);
  color: #dff4f1;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.source-link:hover { border-color: var(--teal); color: var(--amber); }
.empty-state { padding: 24px; color: var(--muted); text-align: center; }
.discord-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 14px 0 30px;
  padding: 10px 16px;
  border: 1px solid rgba(113,222,215,.2);
  border-radius: 14px;
  background: linear-gradient(110deg,#195767,#1a3e55);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.discord-cta:hover { filter: brightness(1.12); }
.discord-cta:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.discord-cta img { display: block; flex: 0 0 22px; }
.embed-page .discord-cta {
  margin: 10px 0 14px;
  border-color: transparent;
  border-radius: 10px;
  background: #5865f2;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 38px 0 16px;
  color: #f4c271;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-title::before {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(113,222,215,.45);
  content: "";
}
.section-lede { margin: -7px 0 18px; color: var(--muted); }
.channel-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 44px; }
.channel-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(113,222,215,.16);
  border-radius: 18px;
  background: linear-gradient(155deg,#112331,#0c1925);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  transition: transform .2s ease, border-color .2s ease;
}
.channel-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.channel-logo {
  display: grid;
  min-height: 105px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg,rgba(113,222,215,.12),rgba(255,195,106,.08));
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: center;
}
.channel-card:nth-child(3n) .channel-logo { color: var(--amber); }
.channel-card-body { display: grid; flex: 1; gap: 7px; padding: 15px; }
.channel-tag { color: var(--teal); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.channel-card h3 { margin: 0; font-size: 1rem; }
.channel-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--amber);
  color: #16232b;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
}
.watch-link:hover { background: #ffe0a0; }
.info-panel {
  margin: 14px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15,28,41,.86);
}
.info-panel h2 { margin: 0 0 9px; color: var(--amber); font-size: 1rem; letter-spacing: .04em; }
.info-panel p, .info-panel li { color: #c4d3d6; font-size: .91rem; line-height: 1.65; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel ul { margin: 10px 0 0; padding-left: 20px; }
.faq-item { padding: 13px 0; border-top: 1px solid var(--line); }
.faq-item summary { color: var(--amber); cursor: pointer; font-weight: 750; }
.faq-item p { margin: 9px 0 2px; }
.site-footer { margin-top: 40px; padding: 26px 16px; border-top: 1px solid var(--line); background: rgba(5,10,16,.78); text-align: center; }
.footer-brand { color: var(--text); font-size: 1.05rem; font-weight: 900; text-decoration: none; }
.footer-copy, .footer-note { color: var(--soft); font-size: .84rem; }
.footer-copy { margin: 8px 0 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-nav a { min-height: 40px; display: inline-flex; align-items: center; color: #c8d9dc; font-size: .82rem; font-weight: 750; text-decoration: none; }
.footer-nav a:hover { color: var(--amber); }
.player-shell { max-width: 980px; margin: 30px auto; }
.player-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(113,222,215,.25); border-radius: 18px; background: #000; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player-toolbar { display: flex; justify-content: flex-end; margin: 10px 0; }
.player-toolbar button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #142735; color: var(--text); cursor: pointer; font-weight: 750; }
.player-toolbar button:hover { border-color: var(--teal); }
.channel-page .hero { margin-top: 24px; }
.channel-page .event-list { margin-bottom: 40px; }
.channel-back { display: inline-flex; min-width: 220px; padding: 0 18px; }

@media (max-width: 900px) {
  .channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .site-header { min-height: 58px; padding: 8px 15px; }
  .brand { font-size: 1rem; }
  .header-nav { display: none; }
  .header-link { font-size: .68rem; letter-spacing: .08em; }
  .menu-toggle { display: inline-flex; }
  .site-main { width: min(100% - 24px, var(--max)); }
  .hero { margin: 16px 0 14px; padding: 23px 19px; border-radius: 19px; }
  .hero::after { right: -38px; width: 125px; opacity: .55; }
  .hero h1 { max-width: 12ch; font-size: clamp(1.95rem,8vw,2.65rem); }
  .hero p { max-width: 45ch; font-size: .94rem; }
  .agenda-panel { margin: 14px 0 28px; border-radius: 16px; }
  .agenda-heading { padding: 13px 15px; }
  .agenda-heading h2 { font-size: .84rem; }
  .event-toggle { grid-template-columns: 46px 27px minmax(0,1fr) 17px; gap: 8px; min-height: 56px; padding: 9px 9px; }
  .event-time { font-size: .78rem; }
  .event-flag { width: 24px; height: 24px; }
  .event-name { font-size: .83rem; }
  .event-sources { padding: 0 10px 12px 88px; }
  .source-link { min-height: 44px; font-size: .8rem; }
  .section-title { margin: 28px 0 14px; font-size: .92rem; letter-spacing: .09em; }
  .channel-grid { grid-template-columns: 1fr; gap: 11px; margin-bottom: 30px; }
  .channel-card { min-height: 0; border-radius: 14px; }
  .channel-logo { min-height: 70px; font-size: 1.15rem; }
  .channel-card-body { gap: 6px; padding: 13px 15px; }
  .watch-link { min-height: 44px; }
  .info-panel { padding: 18px 16px; }
  .site-footer { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
