/* Softelv FM — public site. Black and white like the logo; red is kept for "on air" only. */

@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/plex-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/plex-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/plex-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/plex-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/plex-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --surface-3: #1d1d1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f2;
  --muted: #a3a3a0;
  --faint: #6c6c69;
  --live: #ff3b30;
  --live-soft: rgba(255, 59, 48, 0.16);
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
p, h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: var(--radius-sm); }

.i { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 10;
  padding: 8px 16px; background: var(--white); color: #000; border-radius: var(--radius-md); font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- header ---------- */
.top { position: absolute; inset-inline: 0; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; }
.brand img { height: 32px; width: auto; }
.brand-fm {
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.12em; line-height: 1;
  padding: 6px 8px 5px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text);
}
.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.lang:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 152px 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 55% at 50% 38%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.rings {
  position: absolute; z-index: -1; left: 50%; top: 42%; width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 63px, rgba(255, 255, 255, 0.045) 64px, transparent 65px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%);
  mask-image: radial-gradient(circle, #000 18%, transparent 62%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.5; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status[data-mode="auto"] .dot { background: var(--text); }
.status[data-mode="live"] { color: var(--text); border-color: rgba(255, 59, 48, 0.45); background: var(--live-soft); }
.status[data-mode="live"] .dot { background: var(--live); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

h1 {
  margin-top: 24px;
  font-size: clamp(2.75rem, 7.5vw, 5rem); font-weight: 700; line-height: 1.2; letter-spacing: 0;
}
html[lang="en"] h1 { letter-spacing: -0.025em; line-height: 1.05; }
.tagline { margin-top: 12px; font-size: 1.125rem; color: var(--muted); }

/* ---------- player ---------- */
.player {
  width: 100%; max-width: 640px; margin-top: 48px; padding: 24px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "play now count" "vol vol vol";
  align-items: center; gap: 20px 20px; text-align: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.player:focus { outline: none; }

.play {
  grid-area: play; width: 72px; height: 72px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--white); color: #000;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.play:hover { background: #e7e7e4; }
.play:active { transform: translateY(1px); }
.play .i { width: 28px; height: 28px; grid-area: 1 / 1; }
.play .i-play { fill: currentColor; margin-inline-start: 3px; }
[dir="rtl"] .play .i-play { margin-inline-start: 0; margin-inline-end: 3px; }
.play .i-pause { fill: currentColor; }
.play .i-pause, .play .i-load { visibility: hidden; }
.player[data-state="playing"] .i-play, .player[data-state="loading"] .i-play { visibility: hidden; }
.player[data-state="playing"] .i-pause { visibility: visible; }
.player[data-state="loading"] .i-load { visibility: visible; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.now { grid-area: now; min-width: 0; }
.now-label { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.now-title {
  margin-top: 2px; font-size: 1.25rem; font-weight: 600; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.now-sub { font-size: 0.875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-sub:empty { display: none; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; transition: opacity 200ms var(--ease); }
.eq i { width: 2px; height: 100%; background: var(--text); border-radius: 1px; transform-origin: bottom; transform: scaleY(0.3); }
.player[data-state="playing"] .eq { opacity: 1; }
.player[data-state="playing"] .eq i { animation: eq 1s var(--ease) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.4s !important; }
.eq i:nth-child(3) { animation-delay: -0.7s !important; }
.eq i:nth-child(4) { animation-delay: -0.2s !important; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

.count { grid-area: count; display: grid; justify-items: end; text-align: end; }
.count-n { font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; }
.count-l { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.count-l .i { width: 14px; height: 14px; }

.vol { grid-area: vol; display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.mute {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--muted);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.mute:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.mute .i { grid-area: 1 / 1; }
.mute .i-vol-off { visibility: hidden; }
.mute[aria-pressed="true"] .i-vol { visibility: hidden; }
.mute[aria-pressed="true"] .i-vol-off { visibility: visible; }

.range {
  --p: 90%;
  flex: 1; height: 20px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to var(--to, right), var(--text) var(--p), rgba(255, 255, 255, 0.16) var(--p));
}
[dir="rtl"] .range { --to: left; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35);
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--text); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 0; }

.err { grid-column: 1 / -1; font-size: 0.875rem; color: #ff8f86; }

/* ---------- about ---------- */
.about { padding-block: 96px 120px; border-top: 1px solid var(--line); }
.about-label { font-size: 0.8125rem; font-weight: 500; color: var(--faint); }
.intro {
  margin-top: 16px; max-width: 30ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.6;
}
html[lang="en"] .intro { max-width: 34ch; line-height: 1.35; letter-spacing: -0.01em; }
.feats { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feats li { padding-top: 24px; border-top: 1px solid var(--line-2); }
.ic {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2);
}
.feats h2 { margin-top: 20px; font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.feats p { margin-top: 4px; color: var(--muted); max-width: 32ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 32px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--muted); }
.foot-brand img { height: 20px; width: auto; }
.foot-copy { font-size: 0.875rem; color: var(--faint); }

/* ---------- 404 ---------- */
.nf { display: grid; place-items: center; text-align: center; padding: 24px; }
.nf-code { font-size: 0.875rem; color: var(--faint); letter-spacing: 0.2em; }
.nf h1 { margin-top: 8px; font-size: clamp(2rem, 5vw, 3rem); }
.btn {
  display: inline-flex; align-items: center; margin-top: 32px; min-height: 48px; padding: 0 24px;
  background: var(--white); color: #000; border-radius: var(--radius-full); font-weight: 600;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feats { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .feats li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding-block: 24px; }
  .feats li .ic { grid-row: span 2; }
  .feats h2 { margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top-in { height: 64px; }
  .brand img { height: 26px; }
  .hero { padding-block: 120px 64px; }
  .player {
    margin-top: 40px; padding: 20px; gap: 16px;
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play now" "count count" "vol vol";
  }
  .play { width: 64px; height: 64px; }
  .count {
    display: flex; align-items: baseline; justify-content: flex-start; gap: 8px;
    padding-top: 16px; border-top: 1px solid var(--line);
  }
  .count-n { font-size: 1.5rem; }
  .vol { padding-top: 16px; }
  .about { padding-block: 64px 80px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

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