:root {
  --bg-base: #05070d;
  --bg-panel: rgba(15, 19, 35, 0.9);
  --bg-soft: rgba(255, 255, 255, 0.05);
  --gold-1: #f7d57a;
  --gold-2: #b88a24;
  --gold-ring: rgba(255, 221, 150, 0.42);
  --text-main: #f5f7ff;
  --text-muted: #b6c0db;
  --danger: #ff6178;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  --border: rgba(255, 222, 138, 0.24);
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  overflow: hidden;
}

body {
  padding: 0;
}

.player {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  /* visible so the vertical volume popover can rise above the mute button */
  overflow: visible;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.18), rgba(4, 6, 12, 0.58)),
    url("image.png") center center / cover no-repeat,
    var(--bg-base);
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(6, 8, 15, 0.18) 0%,
    rgba(6, 8, 15, 0.56) 32%,
    rgba(6, 8, 15, 0.78) 100%
  );
  pointer-events: none;
}

.player::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 122, 0.18),
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
}

.player__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  /* background: linear-gradient(
    180deg,
    rgba(11, 14, 27, 0.28),
    rgba(11, 14, 27, 0.56)
  ); */
}

.player__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.channel {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel__logo {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold-ring);
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(255, 215, 122, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.channel__name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.status {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.status--live {
  background: #e31b23;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.status--offair {
  background: #4b5563;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.player__middle {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.meta {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  flex: 0 0 auto;
}

.meta__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 227, 192, 0.82);
}

.meta__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.offline-message {
  display: none;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.controls {
  position: relative;
  z-index: 2;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.play-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #16110a;
  background: linear-gradient(145deg, #f7e4be, #efd2a2);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.play-btn:hover {
  transform: translateY(-1px);
}

.play-btn:active {
  transform: scale(0.98);
}

.play-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none;
}

.play-icon,
.pause-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.pause-icon::before,
.pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

.pause-icon::before {
  left: 1px;
}

.pause-icon::after {
  right: 1px;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.icon-circle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.icon-circle:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.icon-circle svg {
  width: 16px;
  height: 16px;
}

.volume-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.volume-control__slider {
  --volume-percent: 100%;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: 30px;
  height: 76px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.volume-control.is-open .volume-control__slider {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.volume-control__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--volume-percent);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: inherit;
  pointer-events: none;
  transition: height 0.08s linear;
}

.volume-control__range {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  cursor: ns-resize;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
}

.volume-control__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px;
  height: 18px;
  background: transparent;
  border: 0;
}

.volume-control__range::-moz-range-thumb {
  width: 34px;
  height: 18px;
  background: transparent;
  border: 0;
}

.volume-control__range::-webkit-slider-runnable-track {
  background: transparent;
}

.volume-control__range::-moz-range-track {
  background: transparent;
  border: 0;
}

.volume-control__range:focus-visible {
  outline: none;
}

.volume-control__mute {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #16110a;
  background: linear-gradient(145deg, #f7e4be, #efd2a2);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.volume-control__mute:hover {
  transform: translateY(-1px);
}

.volume-control__mute:active {
  transform: scale(0.98);
}

.volume-control__mute svg {
  width: 18px;
  height: 18px;
  display: none;
}

.volume-control__mute .volume-icon--on {
  display: block;
}

.volume-control__mute.is-muted .volume-icon--on {
  display: none;
}

.volume-control__mute.is-muted .volume-icon--off {
  display: block;
}
.player[data-mode="urdu"][data-state="live"] .meta,
.player[data-mode="khanqah"][data-state="live"] .meta {
  display: none;
}

.player[data-state="offair"] .status {
  background: #4b5563;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.player[data-state="offair"] .meta__label,
.player[data-state="offair"] .meta__title {
  display: none;
}

.player[data-state="offair"] .offline-message {
  display: block;
}

.player[data-state="offair"] .controls {
  display: none;
}

.native-audio {
  display: none;
}

@media (max-width: 390px) {
  .player__panel {
    padding: 8px;
  }

  .player__middle {
    min-height: 0;
  }

  .channel__logo {
    width: 28px;
    height: 28px;
  }

  .channel__name {
    font-size: 10px;
  }

  .meta__title {
    font-size: 12px;
  }

  .play-btn {
    width: 40px;
    height: 40px;
  }

  .icon-circle {
    width: 32px;
    height: 32px;
  }

  .volume-control__mute {
    width: 36px;
    height: 36px;
  }

  .volume-control__mute svg {
    width: 16px;
    height: 16px;
  }

  .volume-control__slider {
    width: 28px;
    height: 70px;
  }

  .controls {
    gap: 8px;
  }
}
