/* TV Esporte Vaquejada | estilos do app */
*, *::before, *::after { box-sizing: border-box; }

  :root {
    --ink:        #06170f;
    --surface:    #0c2418;
    --surface-2:  #123020;
    --line:       #1d4630;
    --text:       #f0f4ec;
    --text-dim:   #9bab9b;
    --text-mute:  #64735f;
    --gold:       #f2c230;
    --gold-deep:  #c98f1d;
    --green:      #59b432;
    --green-2:    #8cc63f;
    --live:       #e02020;
    --ring:       linear-gradient(135deg, var(--gold) 0%, var(--green-2) 55%, var(--green) 100%);
    --safe-top:   env(safe-area-inset-top, 0px);
    --safe-bot:   env(safe-area-inset-bottom, 0px);
    --shell:      760px;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto 0;
    height: 320px;
    background: radial-gradient(120% 100% at 50% 0%, rgba(89,180,50,0.16) 0%, rgba(6,23,15,0) 70%);
    pointer-events: none;
    z-index: 0;
  }

  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

  .shell { position: relative; z-index: 1; max-width: var(--shell); margin: 0 auto; }

  /* ---------- CABECALHO ---------- */
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + var(--safe-top)) 16px 12px;
    -webkit-user-select: none; user-select: none;
  }
  .brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .brand img {
    width: 40px; height: 40px; display: block; flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(89,180,50,0.35));
  }
  .brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 17px;
    letter-spacing: 0.09em; text-transform: uppercase;
    line-height: 1.05; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brand-text b { font-weight: 700; }
  .brand-text span {
    display: block; font-size: 10px; font-weight: 500;
    letter-spacing: 0.22em; color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
  }

  .status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
    padding: 5px 10px 5px 8px; border-radius: 3px;
    text-transform: uppercase; flex-shrink: 0;
    transition: background .2s ease, color .2s ease;
  }
  .status-pill::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
  }
  .status-pill.live { background: var(--live); color: #fff; }
  .status-pill.live::before { background: #fff; animation: pulse 1.6s ease-in-out infinite; }
  .status-pill.off {
    background: var(--surface-2); color: var(--text-mute);
    border: 1px solid var(--line); padding: 4px 10px 4px 8px;
  }
  .status-pill.off::before { background: var(--text-mute); }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
  }

  /* ---------- SELETOR DE CANAIS (elemento assinatura) ---------- */
  .channels {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    -webkit-user-select: none; user-select: none;
  }
  .channels::after {
    content: '';
    position: absolute; left: 0; bottom: -1px;
    width: 50%; height: 3px;
    background: var(--ring);
    transform: translateX(var(--tab-x, 0%));
    transition: transform .32s cubic-bezier(.4,0,.2,1);
  }
  .chan {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    color: var(--text-mute);
    transition: color .2s ease, background .2s ease;
    min-width: 0;
  }
  .chan + .chan { border-left: 1px solid var(--line); }
  .chan:active { background: var(--surface-2); }
  .chan[aria-selected="true"] { color: var(--text); background: var(--surface-2); }
  .chan-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-mute); flex-shrink: 0;
    transition: background .2s ease, box-shadow .2s ease;
  }
  .chan.live .chan-dot {
    background: var(--live);
    box-shadow: 0 0 0 3px rgba(224,32,32,.18);
    animation: pulse 1.8s ease-in-out infinite;
  }
  .chan-label { min-width: 0; text-align: left; }
  .chan-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 15px;
    letter-spacing: 0.08em; text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .chan-sub {
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-mute); margin-top: 2px;
  }
  .chan[aria-selected="true"] .chan-sub { color: var(--gold); }

  /* ---------- PLAYER ---------- */
  .player-frame {
    position: relative; width: 100%; padding-top: 56.25%;
    background: #000; overflow: hidden;
  }
  .player-frame iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; display: block; z-index: 2;
  }
  .player-load {
    position: absolute; inset: 0; z-index: 1;
    display: grid; place-items: center; gap: 10px;
    background: #000; color: var(--text-mute);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  }
  .spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(240,244,236,.12);
    border-top-color: var(--gold);
    animation: spin .8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .player-load .stack { display: grid; justify-items: center; gap: 12px; }

  /* ---------- CONTEUDO ---------- */
  .content { padding: 0 16px calc(28px + var(--safe-bot)); }

  .now-playing { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin: 0 0 8px;
  }
  .eyebrow::before {
    content: ''; width: 18px; height: 2px; background: var(--ring); border-radius: 2px;
  }
  h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px; font-weight: 800; letter-spacing: 0.01em;
    line-height: 1.08; margin: 0 0 8px; text-transform: uppercase;
  }
  .lede { color: var(--text-dim); font-size: 14px; margin: 0; }

  section.block { padding: 24px 0; border-bottom: 1px solid var(--line); }
  section.block:last-of-type { border-bottom: 0; }

  h2 {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; margin: 0 0 14px; color: var(--text);
  }
  h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

  p.body { color: var(--text-dim); margin: 0 0 12px; font-size: 14px; }
  p.body:last-child { margin-bottom: 0; }

  .social-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px;
  }
  .social-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 14px;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
  }
  .social-card:active { transform: scale(.98); background: var(--surface-2); }
  .social-card svg { width: 22px; height: 22px; flex-shrink: 0; }
  .social-card .label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.1; }
  .social-card .handle { font-size: 11px; color: var(--text-mute); line-height: 1.2; margin-top: 2px; }
  .icon-wa { color: #25d366; }
  .icon-ig { color: #e1306c; }
  .icon-yt { color: #ff0000; }

  footer {
    padding: 22px 16px calc(22px + var(--safe-bot));
    text-align: center; color: var(--text-mute); font-size: 12px;
    border-top: 1px solid var(--line); background: var(--surface);
  }
  footer .tag {
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold); font-size: 11px; margin-bottom: 8px;
  }
  footer a { color: var(--text-dim); }
  footer .divider { color: var(--text-mute); margin: 0 8px; }

  :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

  @media (min-width: 760px) {
    .player-frame, .channels { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  }
  @media (prefers-reduced-motion: reduce) {
    .status-pill.live::before, .chan.live .chan-dot, .spinner { animation: none; }
    .channels::after, .social-card { transition: none; }
  }
