/* ==========================================================================
   ExiledRadio page — dark broadcast look, ported from a concept build.
   Everything here is scoped under .radio-page / radio- prefixed classes so
   it can't collide with the shared style.css loaded on every other page.
   Reuses the site's existing --red/--bg/--bg-card/--line/--text tokens
   (already close to the concept's own palette) instead of a parallel set.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&display=swap");

.radio-page { --rf: "Barlow Condensed", var(--display), sans-serif; position: relative; }
.radio-page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .15; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.radio-page > * { position: relative; z-index: 1; }

.radio-wrap { max-width: 1500px; margin: 0 auto; padding: 0 1.5rem; }
.radio-kicker {
  margin: 0 0 .5rem; color: var(--red-bright); text-transform: uppercase;
  letter-spacing: 1.5px; font: 800 .8rem var(--rf);
}
.radio-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; border: 1px solid var(--line); padding: 0 1.3rem; border-radius: 4px;
  cursor: pointer; color: #fff; background: var(--bg-raise); text-transform: uppercase;
  font: 800 1rem var(--rf); letter-spacing: .5px; transition: .18s;
}
.radio-btn:hover { transform: translateY(-1px); filter: brightness(1.15); text-decoration: none; }
.radio-btn.red { background: linear-gradient(var(--red-bright), var(--red)); border-color: var(--red-bright); box-shadow: 0 0 20px rgba(232,17,31,.25); }
.radio-btn.dark { background: #0a0b0c; }
.radio-btn.wide { width: 100%; margin-top: 1.2rem; }

/* ---- hero -------------------------------------------------------------- */
.radio-hero {
  min-height: 500px; position: relative; display: flex; align-items: center; overflow: hidden;
  background: #0a0b0c center/cover no-repeat;
}
.radio-hero.has-bg { background-image: var(--radio-hero-bg); }
.radio-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 38%, rgba(0,0,0,.4) 75%, rgba(0,0,0,.4) 100%),
    linear-gradient(0deg, rgba(4,5,6,.75), transparent 42%);
}
.radio-hero-content { position: relative; z-index: 2; padding: 3.5rem 1.5rem; }
.radio-hero h1 {
  margin: .8rem 0 1.6rem; font: 900 clamp(2.4rem, 6vw, 5rem)/1 var(--rf);
  letter-spacing: -1px; text-transform: uppercase; white-space: nowrap;
}
.radio-hero h1 span { color: var(--red-bright); text-shadow: 0 0 26px rgba(232,17,31,.25); }
.radio-hero-text { max-width: 620px; color: #d4d4d4; line-height: 1.65; font-size: 1.05rem; }
.radio-hero-buttons { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---- panels -------------------------------------------------------------- */
.radio-panel {
  position: relative; background: linear-gradient(180deg, rgba(19,19,22,.98), rgba(11,11,13,.98));
  border: 1px solid var(--line); box-shadow: 0 12px 38px rgba(0,0,0,.4);
}
.radio-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent); opacity: .5;
}

.radio-listen-layout { margin-top: 2.4rem; position: relative; z-index: 5; }
.radio-player-panel { display: grid; grid-template-columns: 280px 1fr; padding: 1.5rem; gap: 1.8rem; }
.radio-player-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.radio-player-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.radio-player-body h2 { font: 800 2.6rem/1 var(--rf); margin: .2rem 0; overflow-wrap: anywhere; }
.radio-player-body h3 { font: 800 1.4rem var(--rf); color: var(--red-bright); margin: 0; }
.radio-now-show { color: var(--text-dim); margin: .4rem 0 0; }
.radio-stream-line { display: flex; align-items: center; gap: .6rem; color: var(--text-dim); margin: 1.2rem 0 1rem; flex-wrap: wrap; }
.radio-live-label {
  display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 0 .6rem;
  border-radius: 3px; background: var(--red-bright); font: 800 .8rem var(--rf); letter-spacing: .5px; color: #fff;
}
.radio-online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); display: inline-block; }
.radio-wave { display: flex; align-items: center; gap: 4px; height: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 0; margin-bottom: 1rem; }
.radio-wave span { display: block; width: 4px; height: 12px; background: var(--red-bright); animation: radio-wave .8s ease-in-out infinite alternate; }
.radio-wave span:nth-child(2n) { animation-delay: .2s; } .radio-wave span:nth-child(3n) { animation-delay: .4s; }
@keyframes radio-wave { from { height: 4px; opacity: .5; } to { height: 26px; opacity: 1; } }
.radio-player-controls { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .9rem; }
.radio-icon-btn, .radio-play-button { border: 1px solid var(--line); background: #0a0b0c; color: #fff; cursor: pointer; }
.radio-icon-btn { width: 42px; height: 42px; border-radius: 50%; font-size: 1rem; }
.radio-play-button { width: 68px; height: 68px; border-radius: 50%; font-size: 1.4rem; border-color: var(--red-bright); box-shadow: 0 0 22px rgba(232,17,31,.3); }
.radio-volume { width: 100%; accent-color: var(--red-bright); }
.radio-eq { display: flex; align-items: end; gap: 3px; width: 30px; height: 28px; }
.radio-eq i { display: block; width: 4px; background: var(--red-bright); animation: radio-wave .7s infinite alternate; }
.radio-eq i:nth-child(2) { animation-delay: .1s; } .radio-eq i:nth-child(3) { animation-delay: .25s; } .radio-eq i:nth-child(4) { animation-delay: .35s; }
.radio-page:not(.is-playing) .radio-eq,
.radio-page:not(.is-playing) .radio-wave { opacity: .35; animation-play-state: paused; }
.radio-page:not(.is-playing) .radio-eq i,
.radio-page:not(.is-playing) .radio-wave span { animation-play-state: paused; }

/* ---- sections ------------------------------------------------------------ */
.radio-section { padding: 3.6rem 0; }
.radio-section-title { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.radio-section-title h2, .radio-panel-title { font: 900 2.6rem/1 var(--rf); margin: 0; text-transform: uppercase; }
.radio-section-title > p { color: var(--text-dim); margin: 0; }

.radio-dj-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .8rem; }
.radio-dj-card { overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); position: relative; }
.radio-dj-photo {
  height: 220px;
  background: radial-gradient(circle at 50% 48%, rgba(232,17,31,.17), transparent 48%), linear-gradient(var(--bg-raise), var(--bg));
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.radio-dj-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.radio-dj-info { padding: .9rem; border-top: 1px solid rgba(232,17,31,.22); }
.radio-dj-info h3 { font: 800 1.5rem var(--rf); margin: 0; }
.radio-dj-info p { color: var(--text-dim); font-size: .8rem; margin: .25rem 0 0; }
.radio-dj-card::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--red-bright); opacity: .35; }

.radio-schedule-feature { display: grid; grid-template-columns: 1.03fr .97fr; gap: 1.3rem; }
.radio-schedule-panel { padding: 1.4rem; }
.radio-schedule-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.radio-schedule-tab {
  border: 1px solid var(--line); background: var(--bg-raise); color: var(--text-dim); cursor: pointer;
  padding: .45rem .8rem; border-radius: 3px; font: 800 .8rem var(--rf); letter-spacing: .5px; text-transform: uppercase;
}
.radio-schedule-tab:hover { color: #fff; border-color: var(--red-bright); }
.radio-schedule-tab.today { color: var(--red-bright); }
.radio-schedule-tab.active { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.radio-schedule-table { margin-top: 1rem; border: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.radio-schedule-row { display: grid; grid-template-columns: 110px minmax(160px,1fr); gap: .6rem; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.radio-schedule-row:last-child { border-bottom: 0; }
.radio-schedule-row.head {
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font: 700 .7rem var(--rf); background: var(--bg-raise);
  position: sticky; top: 0;
}
.radio-schedule-row .time { color: var(--red-bright); font-weight: 700; }
.radio-right-col { display: flex; flex-direction: column; gap: 1.3rem; }
.radio-featured { display: grid; grid-template-columns: 180px 1fr; gap: 1.3rem; padding: 1.2rem; }
.radio-featured img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.radio-featured h2 { font: 900 2.2rem/1 var(--rf); text-transform: uppercase; margin: .3rem 0; }
.radio-featured h3 { font: 700 1.2rem var(--rf); margin: 0; } .radio-featured h3 span { color: var(--red-bright); }
.radio-featured > div > p:not(.radio-kicker) { color: var(--text-dim); line-height: 1.55; }
.radio-show-meta { display: flex; gap: 1.2rem; margin: 1rem 0; color: #ddd; font-size: .85rem; flex-wrap: wrap; }
.radio-community { padding: 1.3rem; } .radio-community > p:not(.radio-kicker) { color: var(--text-dim); }
.radio-community-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-top: 1rem; }
.radio-community-card {
  min-height: 90px; border: 1px solid var(--line); background: var(--bg-raise); color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: .9rem; cursor: pointer; text-align: left; font: inherit;
}
.radio-community-card:hover { border-color: var(--red-bright); text-decoration: none; }
.radio-community-card b { font: 800 1.3rem var(--rf); color: #fff; }
.radio-community-card small { color: var(--text-dim); margin-top: .3rem; }

.radio-mix-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .8rem; }
.radio-mix-card { background: var(--bg-card); border: 1px solid var(--line); padding-bottom: .9rem; }
.radio-mix-card.has-link { cursor: pointer; }
.radio-mix-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-raise); }
.radio-mix-image img { width: 100%; height: 100%; object-fit: cover; }
.radio-mix-image span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.72); border: 2px solid #fff; font-size: 1.2rem; color: #fff;
}
.radio-mix-card h3 { font: 800 1.4rem/1.05 var(--rf); margin: .9rem .9rem 0; }
.radio-mix-card p { color: var(--text-dim); margin: .35rem .9rem 0; font-size: .8rem; }

.radio-stats { padding: 1rem 0 3.6rem; display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.radio-stats article { padding: 1.6rem; text-align: center; background: var(--bg-card); border: 1px solid var(--line); }
.radio-stats strong { display: block; font: 900 3rem var(--rf); color: var(--red-bright); }
.radio-stats b { display: block; font: 800 1.05rem var(--rf); color: #fff; }
.radio-stats small { display: block; color: var(--text-dim); margin-top: .25rem; }

@media (min-width: 1700px) {
  .radio-dj-grid, .radio-mix-grid { grid-template-columns: repeat(6,1fr); }
}
@media (max-width: 1020px) {
  .radio-dj-grid { grid-template-columns: repeat(3,1fr); }
  .radio-schedule-feature { grid-template-columns: 1fr; }
  .radio-mix-grid { grid-template-columns: repeat(3,1fr); }
  .radio-stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 420px) {
  .radio-hero h1 { white-space: normal; }
}
@media (max-width: 700px) {
  .radio-hero { min-height: 420px; }
  .radio-hero-buttons { flex-direction: column; align-items: flex-start; }
  .radio-listen-layout { margin-top: 1.5rem; }
  .radio-player-panel { grid-template-columns: 1fr; }
  .radio-player-art { max-width: 300px; margin: auto; }
  .radio-player-body h2 { font-size: 2rem; }
  .radio-player-controls { grid-template-columns: auto 1fr auto; }
  .radio-eq { display: none; }
  .radio-dj-grid, .radio-mix-grid { grid-template-columns: repeat(2,1fr); }
  .radio-stats { grid-template-columns: 1fr; }
  .radio-featured { grid-template-columns: 1fr; }
  .radio-community-buttons { grid-template-columns: 1fr; }
  .radio-section-title { display: block; } .radio-section-title > p { margin-top: .6rem; }
}
