:root {
  --brand-blue: #0d00ff;
  --blue-muted: #5d6f9c;
  --blue-soft: #a3b5cc;
  --graphite: #545456;
  --ink: #101116;
  --night: #090b10;
  --paper: #f6f7f9;
  --white: #ffffff;
  --pink: #ff3359;
  --orange: #ff9900;
  --yellow: #ffd94f;
  --header-height: 82px;
  --container: 1240px;
  --radius: 6px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

#conteudo,
#ao-vivo,
#programacao {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

body.admin-bar #conteudo,
body.admin-bar #ao-vivo,
body.admin-bar #programacao {
  scroll-margin-top: calc(var(--header-height) + 48px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(16, 17, 22, 0.1);
  backdrop-filter: blur(12px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(calc(100% - 48px), var(--container));
  height: calc(100% - 4px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--graphite);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.brand img {
  display: block;
  width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  padding-left: 13px;
  border-left: 1px solid var(--blue-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: var(--graphite);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.broadcast-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.broadcast-status time {
  min-width: 44px;
  margin-left: 5px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 51, 89, 0.55);
  animation: live-pulse 1.8s infinite;
}

.brand-stripe {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  height: 4px;
}

.brand-stripe span:nth-child(1) { background: var(--orange); }
.brand-stripe span:nth-child(2) { background: var(--pink); }
.brand-stripe span:nth-child(3) { background: var(--yellow); }
.brand-stripe span:nth-child(4) { background: var(--brand-blue); }

.live-stage {
  position: relative;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
}

.live-stage::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 44%;
  background: var(--brand-blue);
}

.live-stage-inner {
  width: min(calc(100% - 48px), var(--container));
  min-height: min(700px, calc(100svh - var(--header-height) - 42px));
  margin: 0 auto;
  padding: 42px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.section-label,
.eyebrow,
.on-air-kicker {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-soft);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell video,
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-shell video {
  object-fit: contain;
  background: #000;
}

.video-poster {
  display: grid;
  place-items: center;
  background: #11131a;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.video-poster::before,
.video-poster::after {
  content: "";
  position: absolute;
}

.video-poster::before {
  top: 0;
  right: 0;
  width: 34%;
  height: 7px;
  background: var(--brand-blue);
}

.video-poster::after {
  right: 0;
  bottom: 0;
  width: 22%;
  height: 7px;
  background: var(--yellow);
}

.video-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-poster img {
  width: min(58%, 520px);
  max-height: 42%;
  object-fit: contain;
  opacity: 0.96;
}

.video-poster p {
  position: absolute;
  bottom: 25px;
  left: 28px;
  margin: 0;
  color: var(--blue-soft);
  text-transform: uppercase;
  font-size: 0.67rem;
  font-weight: 700;
}

.play-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: var(--white);
  background: var(--brand-blue);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.play-button:hover {
  background: var(--pink);
  transform: scale(1.06);
}

.play-button[hidden] {
  display: none;
}

.play-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.video-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(5, 6, 8, 0.88);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-shell:hover .video-controls,
.video-shell:focus-within .video-controls,
.video-shell.is-playing .video-controls {
  opacity: 1;
  transform: translateY(0);
}

.video-controls button,
.next-heading button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.video-controls button:hover,
.next-heading button:hover {
  color: var(--yellow);
}

.video-controls svg,
.next-heading svg {
  width: 18px;
  height: 18px;
}

.video-controls button:last-child {
  margin-left: auto;
}

.control-live {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 7px;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
}

.control-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

.station-line {
  margin: 13px 0 0;
  color: var(--blue-soft);
  font-size: 0.75rem;
}

.on-air-panel {
  align-self: stretch;
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.on-air-kicker {
  color: var(--pink);
}

.on-air-panel h1 {
  max-width: 500px;
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 700;
}

.program-summary {
  max-width: 500px;
  margin: 20px 0 0;
  color: #c8ccd6;
  font-size: 0.96rem;
  line-height: 1.65;
}

.program-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
}

.origin-tag {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.61rem;
  font-weight: 700;
}

.origin-tag.is-local {
  color: var(--white);
  background: var(--pink);
}

.progress-track {
  width: 100%;
  height: 3px;
  margin-top: 17px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-blue);
  transition: width 600ms ease;
}

.next-block {
  margin-top: 38px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.next-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue-soft);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.next-program {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.next-program time {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  font-size: 0.73rem;
  font-weight: 700;
}

.next-program strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.next-program small {
  color: var(--blue-soft);
  font-size: 0.62rem;
}

.schedule-section {
  background: var(--paper);
}

.schedule-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 82px 0 100px;
}

.schedule-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.schedule-header .eyebrow {
  margin-bottom: 10px;
  color: var(--brand-blue);
}

.schedule-header h2 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 4.4rem;
  line-height: 1;
}

.schedule-header > p {
  max-width: 360px;
  margin: 0;
  color: var(--graphite);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: right;
}

.day-tabs {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #d9dce3;
  border-bottom: 1px solid #d9dce3;
}

.day-tab {
  position: relative;
  min-height: 72px;
  padding: 10px 8px;
  color: var(--graphite);
  background: transparent;
  border: 0;
  border-right: 1px solid #d9dce3;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.day-tab:last-child {
  border-right: 0;
}

.day-tab strong,
.day-tab span {
  display: block;
}

.day-tab strong {
  color: inherit;
  font-size: 0.8rem;
}

.day-tab span {
  margin-top: 5px;
  font-size: 0.64rem;
}

.day-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.day-tab:hover,
.day-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
}

.day-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.schedule-list {
  margin-top: 18px;
}

.schedule-empty,
.schedule-loading {
  margin: 0;
  padding: 38px 0;
  color: var(--graphite);
  border-bottom: 1px solid #d9dce3;
  font-size: 0.88rem;
  line-height: 1.6;
}

.next-programs .schedule-empty {
  padding: 14px 0 0;
  color: var(--blue-soft);
  border: 0;
  font-size: 0.75rem;
}

.schedule-row {
  position: relative;
  min-height: 92px;
  padding: 22px 16px 22px 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 130px 24px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #d9dce3;
  transition: padding 180ms ease, background 180ms ease;
}

.schedule-row:hover {
  padding-left: 16px;
  background: var(--white);
}

.schedule-row.is-current {
  padding-left: 16px;
  background: var(--white);
}

.schedule-row.is-current::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--pink);
}

.schedule-time {
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
  font-size: 0.94rem;
  font-weight: 700;
}

.schedule-title strong {
  display: block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
}

.schedule-title span {
  display: block;
  margin-top: 6px;
  color: var(--graphite);
  font-size: 0.74rem;
  line-height: 1.45;
}

.schedule-origin {
  justify-self: start;
  padding: 5px 8px;
  color: var(--graphite);
  background: #e7eaf0;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.61rem;
  font-weight: 700;
}

.schedule-origin.is-local {
  color: var(--white);
  background: var(--pink);
}

.schedule-row > svg {
  width: 18px;
  color: var(--blue-muted);
  transition: transform 180ms ease;
}

.schedule-row:hover > svg {
  transform: translateX(4px);
}

.site-footer {
  color: var(--white);
  background: var(--ink);
  border-top: 5px solid var(--brand-blue);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--container));
  min-height: 156px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 36px;
}

.footer-inner img {
  width: 190px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.footer-inner p {
  color: var(--blue-soft);
  font-size: 0.78rem;
}

.footer-inner a {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 16px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 89, 0.52); }
  70% { box-shadow: 0 0 0 8px rgba(255, 51, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 89, 0); }
}

@media (max-width: 980px) {
  :root { --header-height: 74px; }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .live-stage-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .on-air-panel {
    padding: 0 0 10px;
  }

  .on-air-panel h1 {
    font-size: 3.4rem;
  }

  .next-programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .schedule-row {
    grid-template-columns: 80px minmax(0, 1fr) 110px 20px;
    gap: 14px;
  }
}

@media (max-width: 700px) {
  :root { --header-height: 68px; }

  .header-inner,
  .live-stage-inner,
  .schedule-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand img {
    width: 145px;
    height: 40px;
  }

  .brand span {
    display: none;
  }

  .broadcast-status > span:nth-child(2) {
    display: none;
  }

  .live-stage-inner {
    padding: 22px 0 24px;
    gap: 22px;
  }

  .section-label {
    margin-bottom: 11px;
  }

  .video-shell {
    width: calc(100% + 32px);
    margin-left: -16px;
  }

  .play-button {
    width: 58px;
    height: 58px;
  }

  .video-poster p {
    bottom: 18px;
    left: 18px;
  }

  .station-line {
    font-size: 0.68rem;
  }

  .program-summary {
    margin-top: 10px;
    font-size: 0.87rem;
  }

  .on-air-panel h1 {
    font-size: 2.1rem;
  }

  .schedule-header h2 {
    font-size: 2.75rem;
  }

  .program-meta {
    margin-top: 17px;
  }

  .next-block {
    margin-top: 20px;
    padding-top: 16px;
  }

  .next-programs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .next-program {
    padding: 10px 0;
  }

  .schedule-inner {
    padding: 34px 0 74px;
  }

  .schedule-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .schedule-header > p {
    text-align: left;
  }

  .day-tabs {
    margin-top: 30px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    min-width: 84px;
  }

  .schedule-row,
  .schedule-row:hover,
  .schedule-row.is-current {
    min-height: 106px;
    padding: 18px 4px;
    grid-template-columns: 58px minmax(0, 1fr) 78px;
    align-items: start;
    gap: 10px;
  }

  .schedule-row.is-current,
  .schedule-row.is-current:hover {
    padding-left: 12px;
  }

  .schedule-row > svg {
    display: none;
  }

  .schedule-title strong {
    font-size: 0.92rem;
  }

  .schedule-title span {
    font-size: 0.68rem;
  }

  .schedule-origin {
    justify-self: end;
    padding: 4px 6px;
    font-size: 0.55rem;
  }

  .footer-inner {
    padding: 32px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner img {
    width: 180px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
