@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./fonts/ibm-plex-sans-arabic-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./fonts/ibm-plex-sans-arabic-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("./fonts/ibm-plex-sans-arabic-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Formula1 Arabic";
  src: url("./fonts/formula1-arabic-display-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --navy: #1b2c5d;
  --navy-deep: #0b1735;
  --coral: #ff4e46;
  --coral-soft: #ffebe9;
  --flash: #f3f4ff;
  --page: #f3f4f9;
  --stage: #f7f8fc;
  --panel: #ffffff;
  --panel-row: #f8f8fc;
  --panel-active: #fff1f0;
  --text: #17234a;
  --muted: #7a8299;
  --faint: #a9afbe;
  --line: rgba(27, 44, 93, 0.11);
  --line-strong: rgba(27, 44, 93, 0.18);
  --control: #ffffff;
  --control-line: rgba(27, 44, 93, 0.12);
  --side-dim: 0.28;
  --cover-shadow: 0 34px 70px rgba(20, 34, 72, 0.19);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #071020;
  --stage: #070f20;
  --panel: #0d1830;
  --panel-row: #0a152b;
  --panel-active: #182745;
  --text: #f8f9ff;
  --muted: #99a2b9;
  --faint: #68738e;
  --line: rgba(243, 244, 255, 0.09);
  --line-strong: rgba(243, 244, 255, 0.16);
  --control: #111d37;
  --control-line: rgba(255, 255, 255, 0.1);
  --side-dim: 0.2;
  --cover-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 78, 70, 0.48);
  outline-offset: 4px;
}

.number-text {
  font-family: "Poppins", sans-serif;
  font-variant-numeric: tabular-nums;
}

.broadcast-page {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--page);
}

/* شريط التحديثات */
.breaking-bar {
  position: relative;
  z-index: 20;
  display: grid;
  height: 44px;
  overflow: hidden;
  color: #ffffff;
  background: #222d50;
  grid-template-columns: 124px minmax(0, 1fr) 190px;
}

.breaking-label,
.ticker-station {
  display: flex;
  align-items: center;
  justify-content: center;
}

.breaking-label {
  position: relative;
  gap: 10px;
  margin: 0;
  padding-inline: 14px;
  background: var(--coral);
  font-size: 0.9rem;
  font-weight: 700;
}

.breaking-label::before {
  width: 10px;
  height: 10px;
  flex: none;
  content: "";
  background: url("./assets/dot-white.svg") center / contain no-repeat;
}

.ticker-window {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  align-items: center;
  animation: ticker-rtl 34s linear infinite;
}

.ticker-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding-inline: 38px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  white-space: nowrap;
}

.ticker-item img {
  width: 8px;
  height: 8px;
}

.ticker-station {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
}

@keyframes ticker-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes ticker-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

:root[dir="ltr"] .ticker-track {
  animation-name: ticker-ltr;
}

/* تكوين الشاشة الواحدة */
.broadcast-layout {
  display: flex;
  height: calc(100dvh - 44px);
  min-height: 0;
  direction: rtl;
}

:root[dir="ltr"] .broadcast-layout {
  direction: ltr;
}

.schedule-panel {
  position: relative;
  z-index: 5;
  display: flex;
  width: clamp(430px, 42vw, 820px);
  min-width: 430px;
  min-height: 0;
  flex: 0 0 clamp(430px, 42vw, 820px);
  flex-direction: column;
  border-inline-end: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -24px 0 70px rgba(5, 13, 31, 0.05);
}

:root[dir="ltr"] .schedule-panel {
  box-shadow: 24px 0 70px rgba(5, 13, 31, 0.05);
}

.schedule-head {
  display: flex;
  min-height: 106px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 30px 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-head > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.schedule-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.3rem, 1.7vw, 1.72rem);
  font-weight: 700;
  font-family: "Formula1 Arabic", "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: -0.025em;
}

.live-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding-inline: 10px;
  border-radius: 10px 10px 3px 10px;
  color: #ffffff;
  background: var(--coral);
  font-size: 0.74rem;
  font-weight: 700;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: live-pulse 1.7s ease-in-out infinite;
}

.station-time {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.station-time time {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.station-time span {
  color: var(--faint);
  font-size: 0.7rem;
}

.schedule-days {
  display: flex;
  min-height: 60px;
  flex: none;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-row);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.schedule-day-button {
  position: relative;
  display: inline-flex;
  min-width: 72px;
  min-height: 36px;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 12px;
  color: var(--muted);
  background: var(--panel);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.schedule-day-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.schedule-day-button:focus-visible {
  outline: 3px solid rgba(255, 78, 70, 0.2);
  outline-offset: 2px;
}

.schedule-day-button.is-selected {
  border-color: var(--coral);
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(255, 78, 70, 0.2);
}

.schedule-day-button.is-today:not(.is-selected)::after {
  position: absolute;
  inset-inline-start: 8px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--coral);
}

.schedule-list {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.schedule-row {
  position: relative;
  display: grid;
  min-height: 96px;
  align-items: start;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  transition: background 160ms ease;
}

.schedule-slot {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  min-width: max-content;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
}

.schedule-row time {
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.program-type {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
}

.schedule-program {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.schedule-row h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(0.96rem, 1.18vw, 1.12rem);
  font-weight: 600;
  line-height: 1.35;
}

.program-details {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.65;
}

.program-details.is-empty {
  color: var(--faint);
}

.track-meta h1 {
  font-family: "Formula1 Arabic", "IBM Plex Sans Arabic", sans-serif;
}

.schedule-row.is-current {
  min-height: 108px;
  background: var(--panel-active);
}

.schedule-row.is-current::before,
.schedule-row.is-current::after {
  position: absolute;
  inset-inline-start: 0;
  content: "";
  background: var(--coral);
}

.schedule-row.is-current::before {
  top: 0;
  width: 100%;
  height: 2px;
  box-shadow: 0 0 14px rgba(255, 78, 70, 0.42);
}

.schedule-row.is-current::after {
  top: 0;
  bottom: 0;
  width: 4px;
}

.now-label {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 700;
}

.schedule-foot {
  display: flex;
  min-height: 50px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-row);
  font-size: 0.76rem;
}

.schedule-foot svg {
  color: var(--coral);
}

/* مساحة المشغّل */
.player-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 75%, rgba(255, 78, 70, 0.1), transparent 25rem),
    radial-gradient(circle at 78% 22%, rgba(76, 102, 172, 0.12), transparent 23rem),
    var(--stage);
  grid-template-rows: 88px minmax(0, 1fr) 62px;
}

:root[data-theme="dark"] .player-stage {
  background:
    radial-gradient(circle at 17% 76%, rgba(255, 78, 70, 0.09), transparent 24rem),
    radial-gradient(circle at 76% 24%, rgba(57, 84, 151, 0.13), transparent 28rem),
    linear-gradient(145deg, #081126, #050b17 66%, #071020);
}

.player-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.27;
  background-image: radial-gradient(rgba(27, 44, 93, 0.2) 0.65px, transparent 0.65px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

:root[data-theme="dark"] .player-stage::after {
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.65px, transparent 0.65px);
}

.stage-dot {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.stage-dot--one {
  left: -72px;
  bottom: -86px;
  width: clamp(220px, 25vw, 430px);
  opacity: 0.055;
  transform: rotate(-10deg);
}

.stage-dot--two {
  top: 18%;
  right: -40px;
  width: 150px;
  opacity: 0.045;
  transform: rotate(16deg);
}

.stage-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 4vw, 66px);
  direction: inherit;
}

.station-brand {
  display: inline-flex;
  align-items: center;
}

.station-brand img {
  display: block;
  width: clamp(125px, 10vw, 166px);
  height: auto;
}

.logo-dark,
.moon-icon {
  display: none !important;
}

:root[data-theme="dark"] .logo-light,
:root[data-theme="dark"] .sun-icon {
  display: none !important;
}

:root[data-theme="dark"] .logo-dark,
:root[data-theme="dark"] .moon-icon {
  display: block !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker {
  position: relative;
}

.theme-toggle,
.language-toggle {
  display: grid;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--control-line);
  border-radius: 15px 15px 4px 15px;
  color: var(--text);
  background: var(--control);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.theme-toggle {
  width: 42px;
}

.language-toggle {
  display: flex;
  min-width: 78px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 11px;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.theme-toggle:hover,
.language-toggle:hover,
.language-picker.is-open .language-toggle {
  border-color: rgba(255, 78, 70, 0.4);
  transform: translateY(-2px);
}

.language-toggle > svg:first-child {
  color: var(--coral);
}

.language-chevron {
  color: var(--muted);
  transition: transform 180ms ease;
}

.language-picker.is-open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 208px;
  padding: 7px;
  border: 1px solid var(--control-line);
  border-radius: 20px 20px 6px 20px;
  background: color-mix(in srgb, var(--control) 96%, transparent);
  box-shadow: 0 22px 55px rgba(7, 15, 32, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-7px) scale(0.97);
  transform-origin: top right;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  backdrop-filter: blur(16px);
}

:root[dir="rtl"] .language-menu {
  transform-origin: top left;
}

.language-picker.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  border: 0;
  border-radius: 13px 13px 4px 13px;
  color: var(--text);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  color: var(--coral);
  background: var(--panel-active);
  transform: translateX(-2px);
}

:root[dir="ltr"] .language-menu button:hover,
:root[dir="ltr"] .language-menu button:focus-visible {
  transform: translateX(2px);
}

.language-menu button span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.language-menu b {
  font-size: 0.82rem;
  font-weight: 600;
}

.language-menu small {
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
}

.language-menu i {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--coral);
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 150ms ease, transform 150ms ease;
}

.language-menu button[aria-checked="true"] i {
  opacity: 1;
  transform: scale(1);
}

.sun-icon { color: #df8d15; }
.moon-icon { color: #ffd79a; }

:root:not([lang="ar"]) .schedule-head h2,
:root:not([lang="ar"]) .track-meta h1 {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: -0.02em;
}

.player-center {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 28px 10px;
  text-align: center;
}

.on-air-line {
  display: inline-flex;
  min-height: 28px;
  flex: none;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 11px 11px 4px 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--control) 82%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.online-dot.is-online {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 78, 70, 0.11);
}

.cover-stage {
  position: relative;
  width: min(100%, 720px);
  height: clamp(280px, 42vh, 410px);
  flex: 0 1 auto;
}

.main-cover,
.side-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  background: var(--navy-deep);
}

.main-cover {
  z-index: 3;
  width: clamp(215px, 19vw, 302px);
  height: clamp(290px, 41vh, 410px);
  border: 1px solid rgba(255, 78, 70, 0.78);
  border-radius: 34px 34px 9px 34px;
  box-shadow: var(--cover-shadow), 0 0 0 7px rgba(255, 78, 70, 0.035);
  transform: translate(-50%, -50%);
}

.main-cover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 32%;
  content: "";
  background: linear-gradient(to top, rgba(4, 10, 25, 0.42), transparent);
  pointer-events: none;
}

.main-cover > img,
.side-cover > img,
.main-cover > .cover-fallback,
.side-cover > .cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-cover > img {
  background: #0e1b3d;
  object-fit: contain;
}

.cover-fallback {
  position: relative;
  display: grid !important;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 78, 70, 0.26), transparent 34%),
    linear-gradient(145deg, #263f79, #101d42 68%);
  place-items: center;
}

.cover-fallback > img:first-child {
  position: relative;
  z-index: 2;
  width: 74%;
  height: auto;
}

.cover-fallback .fallback-dot {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 128px;
  opacity: 0.24;
  transform: rotate(8deg);
}

.side-cover {
  z-index: 1;
  width: clamp(180px, 16vw, 252px);
  height: clamp(235px, 33vh, 330px);
  border: 1px solid var(--line-strong);
  border-radius: 27px 27px 8px 27px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  filter: saturate(0.75);
  opacity: var(--side-dim);
}

.side-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(7, 15, 32, 0.52);
}

.side-cover--right {
  transform: translate(19%, -48%) rotate(4deg);
}

.side-cover--left {
  transform: translate(-119%, -48%) rotate(-4deg);
}

.cover-wave {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 13px;
  display: flex;
  height: 26px;
  align-items: flex-end;
  gap: 5px;
  transform: translateX(50%);
}

.cover-wave i {
  width: 5px;
  height: calc(8px + (var(--bar) % 3) * 6px);
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 78, 70, 0.42);
}

.is-playing .cover-wave i {
  animation: sound-bars 0.75s ease-in-out infinite alternate;
  animation-delay: calc(var(--bar) * -90ms);
}

.track-meta {
  width: min(100%, 620px);
  min-height: 82px;
  flex: none;
  margin-top: 12px;
}

.track-meta > span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 600;
}

.track-meta h1 {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.42rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  align-items: center;
  flex: none;
  flex-direction: column;
  margin-top: 10px;
}

.play-button {
  display: grid;
  width: 70px;
  height: 70px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 25px 25px 7px 25px;
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 17px 34px rgba(255, 78, 70, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.play-button:hover {
  background: #ff625b;
  transform: translateY(-2px);
}

.play-icon { transform: translateX(-2px); }
.loading-icon { animation: spin 0.8s linear infinite; }

.volume-row {
  display: flex;
  width: 210px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  direction: ltr;
}

.volume-row button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.volume-row input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(to right, var(--coral) 0 var(--volume), var(--line-strong) var(--volume) 100%);
  cursor: pointer;
}

.volume-row input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  appearance: none;
  border: 3px solid var(--stage);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(255, 78, 70, 0.4);
}

.volume-row input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid var(--stage);
  border-radius: 50%;
  background: var(--coral);
}

.player-message {
  margin-top: 5px;
  color: var(--faint);
  font-size: 0.69rem;
}

.stage-frequency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px clamp(18px, 3vw, 46px);
  color: var(--faint);
  font-family: "Poppins", sans-serif;
  font-size: 0.59rem;
  letter-spacing: 0.12em;
}

.fm-frequency {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.fm-frequency strong {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.reception-divider {
  width: 1px;
  height: 22px;
  flex: none;
  background: var(--line-strong);
}

.satellite-frequency {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 78, 70, 0.25);
  border-radius: 13px 13px 4px 13px;
  color: var(--text);
  background: rgba(255, 78, 70, 0.075);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.satellite-frequency svg {
  flex: none;
  color: var(--coral);
}

.satellite-frequency strong {
  flex: none;
  color: var(--coral);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

:root[data-theme="dark"] .satellite-frequency {
  border-color: rgba(255, 98, 91, 0.3);
  background: rgba(255, 78, 70, 0.1);
}

@keyframes live-pulse {
  50% { opacity: 0.42; }
}

@keyframes sound-bars {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.12); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-height: 790px) and (min-width: 901px) {
  .player-stage { grid-template-rows: 72px minmax(0, 1fr) 52px; }
  .cover-stage { height: clamp(250px, 37vh, 320px); }
  .main-cover { height: clamp(250px, 36vh, 320px); width: clamp(188px, 16vw, 238px); }
  .side-cover { height: clamp(210px, 29vh, 265px); width: clamp(160px, 13vw, 205px); }
  .on-air-line { margin-bottom: 8px; }
  .track-meta { min-height: 67px; margin-top: 8px; }
  .player-controls { margin-top: 4px; }
  .play-button { width: 58px; height: 58px; border-radius: 21px 21px 6px 21px; }
  .volume-row { margin-top: 11px; }
  .schedule-head { min-height: 86px; }
  .schedule-days { min-height: 52px; padding-block: 7px; }
  .schedule-day-button { min-height: 32px; padding-block: 6px; }
  .schedule-row { min-height: 84px; padding-block: 12px; }
  .schedule-row.is-current { min-height: 96px; }
  .schedule-foot { min-height: 42px; }
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .broadcast-page { overflow: visible; }
  .ticker-station { display: none; }
  .breaking-bar { grid-template-columns: 112px minmax(0, 1fr); }
  .broadcast-layout {
    height: auto;
    min-height: calc(100dvh - 44px);
    flex-direction: column;
  }
  .player-stage {
    width: 100%;
    min-height: 760px;
    flex: none;
    order: 1;
    grid-template-rows: 82px minmax(0, 1fr) 62px;
  }
  .schedule-panel {
    width: 100%;
    min-width: 0;
    min-height: 650px;
    flex: none;
    order: 2;
    border-top: 1px solid var(--line);
  }
  .schedule-list { overflow: visible; }
  .schedule-panel { min-height: auto; }
}

@media (max-width: 560px) {
  .breaking-bar { height: 40px; grid-template-columns: 100px minmax(0, 1fr); }
  .breaking-label { font-size: 0.75rem; }
  .breaking-label::before { width: 8px; height: 8px; }
  .ticker-item { padding-inline: 24px; font-size: 0.72rem; }
  .broadcast-layout { min-height: calc(100dvh - 40px); }
  .player-stage {
    min-height: 700px;
    grid-template-rows: 76px minmax(0, 1fr) 86px;
  }
  .stage-topbar { padding-inline: 20px; }
  .station-brand img { width: 126px; }
  .theme-toggle { width: 40px; height: 40px; }
  .language-toggle { min-width: 70px; height: 40px; padding-inline: 9px; }
  .topbar-actions { gap: 7px; }
  .language-menu { width: 196px; }
  .player-center { padding-inline: 14px; }
  .cover-stage { width: 100%; height: 300px; }
  .main-cover { width: 206px; height: 292px; border-radius: 28px 28px 8px 28px; }
  .side-cover { width: 162px; height: 232px; }
  .side-cover--right { transform: translate(4%, -48%) rotate(4deg); }
  .side-cover--left { transform: translate(-104%, -48%) rotate(-4deg); }
  .track-meta { min-height: 76px; margin-top: 9px; padding-inline: 12px; }
  .track-meta h1 { font-size: 1.35rem; }
  .play-button { width: 62px; height: 62px; border-radius: 22px 22px 6px 22px; }
  .volume-row { width: 190px; margin-top: 13px; }
  .stage-frequency { flex-direction: column; gap: 5px; padding: 7px 12px; }
  .reception-divider { display: none; }
  .satellite-frequency { min-height: 36px; padding: 6px 10px; font-size: 0.67rem; text-align: center; }
  .satellite-frequency strong { font-size: 0.68rem; }
  .fm-frequency { font-size: 0.53rem; }
  .schedule-head { min-height: 92px; padding-inline: 20px; }
  .schedule-head > div:first-child { gap: 10px; }
  .schedule-head h2 { font-size: 1.22rem; }
  .live-badge { min-height: 25px; padding-inline: 8px; }
  .schedule-days { min-height: 56px; padding-inline: 14px; }
  .schedule-day-button { min-width: 66px; min-height: 34px; padding-inline: 10px; }
  .schedule-row { min-height: 92px; padding-inline: 20px; gap: 14px; }
  .schedule-row.is-current { min-height: 104px; }
  .schedule-row h3 { font-size: 0.92rem; }
  .program-type,
  .program-details { font-size: 0.66rem; }
  .station-time span { display: none; }
}

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