/* ==========================================================================
   Freedom Worship Global TV — player.css
   Broadcast-room aesthetic: near-black canvas, warm gold light, cream type.
   Deliberately consistent with the main site's palette and typography so the
   channel reads as part of the same house.
   ========================================================================== */

:root {
  --ink-900: #06070b;
  --ink-850: #0a0c12;
  --ink-800: #0e1117;
  --ink-750: #141821;
  --ink-700: #1b202b;
  --ink-600: #262c39;
  --cream: #f6f1e7;
  --cream-soft: #cfc7b8;
  --cream-dim: #8e8878;
  --gold: #bf9b3f;
  --gold-2: #e7cd86;
  --gold-3: #f4e6bd;
  --gold-soft: rgba(191, 155, 63, 0.14);
  --onair: #d8453a;
  --line: rgba(246, 241, 231, 0.1);
  --line-2: rgba(246, 241, 231, 0.18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 30px 70px -34px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Warm light bleeding from the top of the stage, plus a fixed grain layer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 62% at 50% -14%, rgba(191, 155, 63, 0.2), transparent 62%),
    radial-gradient(90% 50% at 12% 8%, rgba(216, 69, 58, 0.07), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.012em;
}
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.4rem);
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---- Top bar ----------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(6, 7, 11, 0.94), rgba(6, 7, 11, 0.72));
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--ink-750);
  border: 1px solid var(--line-2);
}
.brand__txt { min-width: 0; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.topbar__spacer { flex: 1; }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn:active { transform: translateY(0); }
.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-2), var(--gold));
  --btn-fg: #16130b;
  --btn-bd: transparent;
}
.btn--gold:hover { --btn-bg: linear-gradient(135deg, var(--gold-3), var(--gold-2)); }
.btn--ghost { --btn-bd: var(--line); color: var(--cream-soft); }
.btn--sm { padding: 0.42rem 0.85rem; font-size: 0.78rem; }
.btn .ico { width: 17px; height: 17px; }
.btn[hidden] { display: none; }

/* ---- Announcement ticker ---------------------------------------------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(191, 155, 63, 0.16), rgba(191, 155, 63, 0.04));
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.ticker[hidden] { display: none; }
.ticker__in { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0; }
.ticker__tag {
  flex: none;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-3);
  border: 1px solid rgba(231, 205, 134, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}
.ticker__track { overflow: hidden; flex: 1; }
.ticker__msgs {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: slide 42s linear infinite;
  font-size: 0.92rem;
  color: var(--cream-soft);
}
.ticker__msgs a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__msgs { animation: none; white-space: normal; }
}

/* ---- Stage ------------------------------------------------------------- */
.stage { padding: clamp(1.4rem, 3.4vw, 2.6rem) 0 clamp(1.6rem, 4vw, 3rem); }
.stage__grid {
  display: grid;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1080px) {
  .stage__grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
}

.stage__head { margin-bottom: 1rem; }
.stage__head h1 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  margin-top: 0.35rem;
}
.stage__head p { color: var(--cream-soft); margin-top: 0.5rem; max-width: 60ch; font-size: 0.98rem; }

/* ---- The player -------------------------------------------------------- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000 radial-gradient(70% 70% at 50% 40%, #14161d, #000 75%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}
.player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player.is-idle .player__video { opacity: 0; }

/* Poster / cover shown before playback starts */
.cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 4, 6, 0.88) 4%, rgba(3, 4, 6, 0.34) 46%, rgba(3, 4, 6, 0.6));
}
.player.is-playing .cover,
.player.is-started .cover { opacity: 0; visibility: hidden; }

.cover__play {
  position: relative;
  z-index: 2;
  width: clamp(76px, 12vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(231, 205, 134, 0.55);
  background: rgba(10, 12, 18, 0.5);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.cover__play::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(231, 205, 134, 0.22);
  animation: halo 3.4s var(--ease) infinite;
}
@keyframes halo {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
.cover__play:hover { transform: scale(1.05); background: rgba(191, 155, 63, 0.25); }
.cover__play .ico { width: 34%; height: 34%; margin-left: 6%; fill: var(--gold-3); }
@media (prefers-reduced-motion: reduce) { .cover__play::before { animation: none; } }

/* Channel identity inside the player */
.player__ident {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: clamp(0.7rem, 1.6vw, 1.1rem);
  background: linear-gradient(to bottom, rgba(4, 5, 8, 0.8), transparent);
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.player__ident img {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(246, 241, 231, 0.25);
  background: rgba(0, 0, 0, 0.4);
}
.player__identtxt { min-width: 0; }
.player__channel {
  font-family: var(--serif);
  font-size: clamp(0.92rem, 0.8rem + 0.5vw, 1.1rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.player__now {
  font-size: 0.72rem;
  color: var(--cream-soft);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}

.badge-live {
  margin-left: auto;
  flex: none;
  display: none;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(216, 69, 58, 0.92);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px -8px rgba(216, 69, 58, 0.9);
}
.player.is-live .badge-live { display: inline-flex; }
.badge-live__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .badge-live__dot { animation: none; } }

.player__mark {
  position: absolute;
  right: clamp(0.7rem, 1.6vw, 1.1rem);
  bottom: 4.6rem;
  z-index: 5;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.42);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

/* Spinner + notices */
.player__spin {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  place-items: center;
  background: rgba(4, 5, 8, 0.45);
}
.player.is-buffering .player__spin { display: grid; }
.spin {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(246, 241, 231, 0.18);
  border-top-color: var(--gold-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player__notice {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  place-items: center;
  text-align: center;
  padding: clamp(1.4rem, 5vw, 3rem);
  background: linear-gradient(160deg, rgba(8, 9, 13, 0.96), rgba(14, 17, 23, 0.98));
}
.player__notice.is-on { display: grid; }
.player__notice img { width: 62px; margin: 0 auto 1.1rem; opacity: 0.9; border-radius: 14px; }
.player__notice h3 { font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem); margin-bottom: 0.55rem; }
.player__notice p { color: var(--cream-soft); max-width: 46ch; margin-inline: auto; font-size: 0.95rem; }
.player__notice .btn { margin-top: 1.1rem; }

/* Tap-to-unmute nudge */
.unmute {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 5.2rem;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(231, 205, 134, 0.4);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.player.is-muted-hint .unmute { display: inline-flex; animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---- Controls ---------------------------------------------------------- */
.ctrl {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: 2.6rem clamp(0.6rem, 1.4vw, 1rem) clamp(0.55rem, 1.2vw, 0.85rem);
  background: linear-gradient(to top, rgba(3, 4, 6, 0.94) 12%, rgba(3, 4, 6, 0.55) 58%, transparent);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.player.is-hidden-ui .ctrl,
.player.is-hidden-ui .player__ident,
.player.is-hidden-ui .player__mark { opacity: 0; pointer-events: none; }
.player.is-hidden-ui { cursor: none; }

/* While the channel is live the corner mark becomes the broadcast ON AIR tag. */
.player.is-live .player__mark { color: rgba(216, 69, 58, 0.88); letter-spacing: 0.3em; }

.bar {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.bar__track {
  position: relative;
  height: 4px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, 0.2);
  overflow: hidden;
  transition: height 0.2s var(--ease);
}
.bar:hover .bar__track, .bar:focus-visible .bar__track { height: 7px; }
.bar__buf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(246, 241, 231, 0.28);
}
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.bar__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold-3);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s var(--ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.bar:hover .bar__knob, .bar:focus-visible .bar__knob, .bar.is-drag .bar__knob { transform: translate(-50%, -50%) scale(1); }
.player.is-live-mode .bar { pointer-events: none; }
.player.is-live-mode .bar__fill { width: 100% !important; background: linear-gradient(90deg, var(--onair), #ef7c6f); }
.player.is-live-mode .bar__knob { display: none; }

.ctrl__row {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.8vw, 0.5rem);
  margin-top: 0.15rem;
}
.iconbtn {
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
  flex: none;
}
.iconbtn:hover { background: rgba(246, 241, 231, 0.12); transform: translateY(-1px); }
.iconbtn .ico { width: 21px; height: 21px; fill: currentColor; }
.iconbtn--lg .ico { width: 25px; height: 25px; }
.iconbtn[hidden] { display: none; }

.vol { display: flex; align-items: center; gap: 0.25rem; }
.vol__range {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  opacity: 0;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, 0.24);
  transition: width 0.28s var(--ease), opacity 0.28s var(--ease);
  cursor: pointer;
}
.vol:hover .vol__range,
.vol:focus-within .vol__range { width: 86px; opacity: 1; }
.vol__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-3);
  border: 0;
  cursor: pointer;
}
.vol__range::-moz-range-thumb {
  width: 12px; height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-3);
  cursor: pointer;
}
@media (max-width: 640px) {
  .vol__range { width: 62px; opacity: 1; }
}

.time {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--cream-soft);
  letter-spacing: 0.02em;
  padding-inline: 0.3rem;
  white-space: nowrap;
}
.time b { color: var(--cream); font-weight: 600; }
.ctrl__gap { flex: 1; }

.rate {
  position: relative;
}
.rate__btn {
  min-width: 46px;
  height: 40px;
  padding-inline: 0.55rem;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.rate__btn:hover { border-color: var(--gold); background: rgba(191, 155, 63, 0.16); }
.rate__menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  min-width: 96px;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 3;
}
.rate.is-open .rate__menu { display: block; }
.rate__menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}
.rate__menu button:hover { background: rgba(246, 241, 231, 0.1); }
.rate__menu button[aria-checked="true"] { color: var(--gold-2); font-weight: 600; }

/* Under-player meta */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.9rem 1.4rem;
  padding: 1.1rem 0 0;
}
.meta__txt { flex: 1 1 320px; min-width: 0; }
.meta__title { font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem); }
.meta__desc { color: var(--cream-soft); font-size: 0.95rem; margin-top: 0.4rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.socials__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-right: 0.2rem;
}
.social {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.social:hover { transform: translateY(-2px); border-color: var(--gold); background: var(--gold-soft); }
.social .ico { width: 18px; height: 18px; fill: var(--cream); }

/* ---- Side rail --------------------------------------------------------- */
.rail { display: grid; gap: 1rem; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(20, 24, 33, 0.92), rgba(10, 12, 18, 0.88));
  padding: clamp(1rem, 2vw, 1.35rem);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.card__head h3 { font-size: 1.06rem; }

.onnext { display: grid; gap: 0.55rem; }
.onnext__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.62rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(246, 241, 231, 0.035);
  align-items: start;
}
.onnext__row.is-now {
  border-color: rgba(191, 155, 63, 0.5);
  background: var(--gold-soft);
}
.onnext__time {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  white-space: nowrap;
}
.onnext__t { font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.onnext__d { font-size: 0.78rem; color: var(--cream-dim); }
.tag-now {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #16130b;
  background: var(--gold-2);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: 2px;
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding: clamp(2.2rem, 5vw, 4rem) 0; position: relative; z-index: 2; }
.section--line { border-top: 1px solid var(--line); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.8rem);
}
.section__head h2 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.15rem); margin-top: 0.3rem; }
.section__head p { color: var(--cream-soft); font-size: 0.95rem; margin-top: 0.45rem; max-width: 56ch; }

/* Clip rail */
.clips {
  display: grid;
  gap: clamp(0.8rem, 1.8vw, 1.3rem);
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.clip {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(20, 24, 33, 0.6);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.clip:hover { transform: translateY(-4px); border-color: rgba(191, 155, 63, 0.55); background: rgba(28, 33, 44, 0.75); }
.clip.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(191, 155, 63, 0.5) inset; }
.clip__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-750) center/cover no-repeat;
}
.clip__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 8, 0.72), transparent 62%);
}
.clip__pill {
  position: absolute;
  z-index: 2;
  top: 0.55rem; left: 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 7, 11, 0.8);
  border: 1px solid var(--line-2);
  color: var(--cream-soft);
}
.clip__pill--main { background: var(--gold-2); color: #16130b; border-color: transparent; }
.clip__play {
  position: absolute;
  z-index: 2;
  right: 0.6rem; bottom: 0.6rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(6, 7, 11, 0.72);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}
.clip:hover .clip__play { background: var(--gold); }
.clip__play .ico { width: 13px; height: 13px; fill: var(--cream); margin-left: 2px; }
.clip:hover .clip__play .ico { fill: #16130b; }
.clip__body { padding: 0.8rem 0.9rem 1rem; }
.clip__t { font-size: 0.96rem; font-weight: 600; line-height: 1.3; }
.clip__d {
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Schedule grid */
.sched { display: grid; gap: clamp(0.7rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
  background: linear-gradient(170deg, rgba(20, 24, 33, 0.8), rgba(10, 12, 18, 0.66));
}
.day.is-today { border-color: rgba(191, 155, 63, 0.5); background: linear-gradient(170deg, rgba(45, 37, 18, 0.7), rgba(12, 14, 20, 0.7)); }
.day__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.7rem;
}
.slot { display: grid; grid-template-columns: 78px 1fr; gap: 0.6rem; padding: 0.42rem 0; }
.slot + .slot { border-top: 1px dashed rgba(246, 241, 231, 0.08); }
.slot__time { font-size: 0.78rem; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.slot__t { font-size: 0.92rem; font-weight: 600; }
.slot__d { font-size: 0.78rem; color: var(--cream-dim); }
.slot__host {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.45rem;
  margin-top: 0.25rem;
}

/* News */
.news { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(20, 24, 33, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post:hover { transform: translateY(-3px); border-color: rgba(191, 155, 63, 0.45); }
.post__img { aspect-ratio: 16 / 10; background: var(--ink-750) center/cover no-repeat; }
.post__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.post__date { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.post__t { font-size: 1.05rem; }
.post__b { font-size: 0.9rem; color: var(--cream-soft); white-space: pre-line; }
.post__link { margin-top: auto; font-size: 0.84rem; font-weight: 600; color: var(--gold-2); display: inline-flex; align-items: center; gap: 0.35rem; }

/* Empty states */
.empty {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.94rem;
}

/* Skeletons */
.skel { border-radius: var(--radius); background: linear-gradient(100deg, rgba(246,241,231,0.05) 30%, rgba(246,241,231,0.12) 50%, rgba(246,241,231,0.05) 70%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }
.skel--line { height: 12px; margin-bottom: 0.6rem; }
.skel--card { height: 190px; }

/* ---- Form -------------------------------------------------------------- */
.formwrap {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24, 28, 38, 0.85), rgba(9, 11, 16, 0.85));
  padding: clamp(1.2rem, 3vw, 2.2rem);
}
@media (min-width: 900px) { .formwrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.field { display: block; margin-bottom: 0.9rem; }
.field > span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(6, 7, 11, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--gold); background: rgba(6, 7, 11, 0.85); }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 560px) { .field--2 { grid-template-columns: 1fr; } }
.formnote { font-size: 0.84rem; color: var(--cream-dim); margin-top: 0.7rem; }
.formmsg { font-size: 0.9rem; margin-top: 0.8rem; display: none; }
.formmsg.is-ok { display: block; color: #8fd6a6; }
.formmsg.is-err { display: block; color: #f0a49b; }

/* ---- App promo --------------------------------------------------------- */
.promo {
  display: grid;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  align-items: center;
  border: 1px solid rgba(191, 155, 63, 0.32);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3.4vw, 2.4rem);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(191, 155, 63, 0.2), transparent 58%),
    linear-gradient(155deg, rgba(24, 28, 38, 0.9), rgba(9, 11, 16, 0.9));
}
@media (min-width: 820px) { .promo { grid-template-columns: 1.4fr auto; } }
.promo h2 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.9rem); }
.promo p { color: var(--cream-soft); margin-top: 0.55rem; max-width: 52ch; font-size: 0.96rem; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---- Footer ------------------------------------------------------------ */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  position: relative;
  z-index: 2;
}
.foot__in { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: space-between; }
.foot p { font-size: 0.84rem; color: var(--cream-dim); }
.foot a { font-size: 0.84rem; color: var(--cream-soft); }
.foot a:hover { color: var(--gold-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ---- Install sheet ----------------------------------------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 1.2rem;
  background: rgba(3, 4, 6, 0.76);
  backdrop-filter: blur(6px);
}
.sheet.is-open { display: grid; }
.sheet__box {
  width: min(520px, 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(165deg, #171b24, #0a0c12);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-lift);
  animation: pop 0.35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet__box h3 { font-size: 1.3rem; }
.sheet__box ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--cream-soft); font-size: 0.94rem; }
.sheet__box ol li { margin-bottom: 0.5rem; }
.sheet__box p { color: var(--cream-soft); font-size: 0.94rem; margin-top: 0.6rem; }
.sheet__close { border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.sheet__close:hover { background: rgba(246, 241, 231, 0.1); }
.sheet__close .ico { width: 18px; height: 18px; fill: var(--cream); }

/* ---- Fullscreen tweaks ------------------------------------------------- */
.player:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; height: 100%; width: 100%; }
.player:-webkit-full-screen { border-radius: 0; border: 0; }

/* ---- hidden wins ------------------------------------------------------- */
/* The script toggles `hidden` on flex/grid blocks (socials row, form fields,
   whole sections). An author `display` rule would beat the UA `[hidden]`
   default, so make it explicit and final. */
[hidden] { display: none !important; }

/* The floating admin button's styles live in adm.css — adm.js is loaded on the
   homepage too, which does not (and should not) pull in this whole stylesheet. */
