/* ==========================================================================
   TEMPLE RADIO — design system
   Black ground, hairline grid, zero radius, Inter only.
   ========================================================================== */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #8b8b8b;
  --muted-2: #767676;  /* 4.5:1 on black — was #5c5c5c at 3.1:1 */
  --line: #1f1f1f;
  --line-2: #333333;
  --accent: #ff3b14;
  --accent-2: #ffd400;

  --bar: 52px;          /* player bar height */
  --head: 60px;         /* masthead height */
  --gut: 20px;          /* page gutter */

  --f-display: 800;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* the whole point: nothing is rounded */
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "cv05" 1, "ss03" 1, "tnum" 1;
  padding-top: calc(var(--bar) + var(--head));
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #000; }

/* focus visible, square */
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* --- shared type ---------------------------------------------------------- */

.meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.display {
  font-weight: var(--f-display);
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: uppercase;
}

/* ==========================================================================
   PLAYER BAR
   ========================================================================== */

.player {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--bar);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  background: #000;
  border-bottom: 1px solid var(--line-2);
}

.player__main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
  min-width: 0;
}

.player__toggle {
  width: 52px;
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  flex: none;
}
.player__toggle:hover { background: var(--fg); color: #000; }
.player__toggle svg { width: 13px; height: 15px; fill: currentColor; }
.player__toggle .ico-pause { display: none; }
.player.is-playing .player__toggle .ico-pause { display: block; }
.player.is-playing .player__toggle .ico-play { display: none; }
.player.is-loading .player__toggle { color: var(--muted); }

.player__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.player__label .dot {
  width: 7px; height: 7px; flex: none;
  background: var(--accent);
  align-self: center;
  animation: blink 1.6s steps(1, end) infinite;
}
.player.is-offline .player__label .dot { background: var(--muted-2); animation: none; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }

.player__now {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__now b { color: var(--fg); font-weight: 600; }

/* level meter */
.player__meter { display: none; align-items: flex-end; gap: 2px; height: 14px; align-self: center; }
.player__meter i { width: 2px; background: var(--fg); height: 4px; display: block; }
.player.is-playing .player__meter,
.player.is-loading .player__meter { display: flex; }
.player.is-playing .player__meter i { animation: eq 0.9s ease-in-out infinite; }
.player__meter i:nth-child(2) { animation-delay: 0.15s; }
.player__meter i:nth-child(3) { animation-delay: 0.3s; }
.player__meter i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.player__vol {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-left: 1px solid var(--line-2);
}
.player__vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 3px;
  background: var(--line-2);
  cursor: pointer;
}
.player__vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px; height: 14px;
  background: var(--fg);
}
.player__vol input[type="range"]::-moz-range-thumb {
  border: 0; width: 4px; height: 14px; background: var(--fg);
}

.player__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-left: 1px solid var(--line-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.player__cta:hover { background: var(--accent); color: #000; }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */

.masthead {
  position: fixed;
  inset: var(--bar) 0 auto 0;
  z-index: 89;
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gut);
  background: #000;
  border-bottom: 1px solid var(--line);
}

.masthead__h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: 1; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 22px; height: 22px;
  border: 2px solid var(--fg);
  position: relative;
  flex: none;
}
.logo__mark::before,
.logo__mark::after {
  content: "";
  position: absolute;
  background: var(--fg);
}
.logo__mark::before { inset: 4px 4px auto 4px; height: 2px; }
.logo__mark::after { inset: auto 4px 4px 4px; height: 6px; }
.logo__type { font-size: 19px; font-weight: 800; letter-spacing: -0.045em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 11px;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.nav a:hover, .nav a[aria-current] { background: var(--fg); color: #000; }

.masthead__tools { display: flex; align-items: center; gap: 0; margin-left: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  margin-left: -1px;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.icon-btn:hover { background: var(--fg); color: #000; }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.burger { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  position: relative;
  background: #000;
  display: block;
  min-height: 62vh;
  overflow: hidden;
}
.feature__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.feature:hover .feature__img { transform: scale(1.035); filter: grayscale(0) contrast(1.1); }
.feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
}

.feature__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
}

.stamp {
  background: var(--fg);
  color: #000;
  padding: 4px 8px 3px;
}
.stamp--live { background: var(--accent); color: #000; }

.feature__title {
  font-size: clamp(26px, 3.1vw, 46px);
  margin: 0;
  max-width: 16ch;
}
.feature__title span {
  background: var(--fg);
  color: #000;
  padding: 2px 8px 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.feature__time { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  border: 1px solid var(--line-2);
  padding: 4px 8px 3px;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.feature .tag { border-color: rgba(255, 255, 255, 0.55); }
.tag:hover { background: var(--fg); border-color: var(--fg); color: #000; }

.feature__play {
  position: absolute;
  right: 20px; bottom: 20px;
  z-index: 3;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.feature__play:hover { background: var(--fg); color: #000; }
.feature__play svg { width: 14px; height: 16px; fill: currentColor; }

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #000;
  padding: 9px 0;
  display: flex;
  user-select: none;
}
.ticker__row { display: flex; gap: 0; flex: none; animation: slide 34s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker span { padding: 0 22px; color: var(--muted); white-space: nowrap; }
.ticker span b { color: var(--fg); font-weight: 600; }
.ticker em { color: var(--accent); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + var(--head)); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--gut) 18px;
}
.section__title { font-size: clamp(22px, 2.4vw, 34px); margin: 0; }
.section__link {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.section__link:hover { color: var(--fg); border-color: var(--fg); }

/* --- show grid ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.card {
  background: #000;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: background 0.18s var(--ease);
}
.card:hover { background: #0b0b0b; }

.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); filter: grayscale(0) contrast(1.1); }

.card__play {
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.card:hover .card__play { opacity: 1; transform: none; }
.card__play:hover { background: var(--fg); color: #000; }
.card__play svg { width: 12px; height: 13px; fill: currentColor; }

.card__badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #000;
  padding: 4px 7px 3px;
}

.card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}
.card__sub { color: var(--muted); }
.card .tags { margin-top: auto; padding-top: 4px; }

/* --- schedule ------------------------------------------------------------- */

.sched { border-top: 1px solid var(--line); }
.sched__row {
  display: grid;
  grid-template-columns: 120px 1fr 220px 92px;
  align-items: center;
  gap: 18px;
  padding: 14px var(--gut);
  border-bottom: 1px solid var(--line);
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.sched__row:last-child { border-bottom: 0; }
.sched__row:hover { background: var(--fg); color: #000; }
.sched__row:hover .sched__host, .sched__row:hover .sched__state { color: #000; }
.sched__time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sched__name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.sched__host { color: var(--muted); }
.sched__state { justify-self: end; color: var(--muted-2); }
.sched__row.is-live { background: #0d0d0d; }
.sched__row.is-live .sched__state { color: var(--accent); }
.sched__row.is-live:hover .sched__state { color: #000; }

/* --- editorial ------------------------------------------------------------ */

.editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.post {
  background: #000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.post:hover { background: var(--fg); color: #000; }
.post:hover .post__kicker { color: #000; }
.post:hover .post__excerpt { color: #222; }
.post__kicker { color: var(--accent); }
.post__title { font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; text-transform: uppercase; }
.post__excerpt { color: var(--muted); margin: 0; max-width: 46ch; }
.post__more { margin-top: auto; }

/* ==========================================================================
   SUBSCRIBE + FOOTER
   ========================================================================== */

.subscribe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.subscribe__copy, .subscribe__form { background: #000; padding: 34px var(--gut); }
.subscribe__title { font-size: clamp(24px, 2.6vw, 38px); margin: 0 0 8px; }
.subscribe__copy p { color: var(--muted); margin: 0; max-width: 40ch; }

.field { display: flex; border: 1px solid var(--line-2); margin-top: 22px; }
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 13px 14px;
  font: inherit;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; }
.field button {
  padding: 0 20px;
  border-left: 1px solid var(--line-2);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.field button:hover { background: var(--accent); color: #000; }
.field.is-done button { background: var(--fg); color: #000; }

.socials { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; }
.socials a {
  border: 1px solid var(--line-2);
  margin: 0 -1px -1px 0;
  padding: 11px 16px;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.socials a:hover { background: var(--fg); color: #000; }

.footer { padding: 30px var(--gut) 0; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.footer__col h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.footer__col a { display: block; padding: 6px 0; color: var(--muted); transition: color 0.13s var(--ease); }
.footer__col a:hover { color: var(--fg); }

.wordmark {
  display: block;
  width: 100%;
  margin: 26px 0 10px;
  overflow: visible;
}
.wordmark text {
  font-family: inherit;
  font-weight: 800;
  font-size: 100px;
  text-transform: uppercase;
  fill: #101010;
  transition: fill 0.45s var(--ease);
}
.wordmark:hover text { fill: #1d1d1d; }

.colophon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .editorial { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .sched__row { grid-template-columns: 96px 1fr 92px; }
  .sched__host { display: none; }
}

@media (max-width: 820px) {
  :root { --gut: 14px; }
  .nav { display: none; }
  .burger { display: grid; }
  .hero { grid-template-columns: 1fr; }
  .feature { min-height: 54vh; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .player__vol { display: none; }
  .player__cta span:first-child { display: none; }
  .player__cta { padding: 0 16px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
  .sched__row { grid-template-columns: 78px 1fr; gap: 12px; }
  .sched__state { display: none; }
  .player__now { display: none; }
}

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

/* mobile nav drawer */
.drawer {
  position: fixed;
  inset: calc(var(--bar) + var(--head)) 0 0 0;
  background: #000;
  z-index: 88;
  padding: var(--gut);
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.drawer.is-open { display: flex; }
.drawer a {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
