:root {
  --panel: rgba(13, 15, 28, .86);
  --panel-strong: rgba(17, 19, 34, .94);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f7f7fb;
  --muted: #9da2b5;
  --pink: #ff2fa8;
  --purple: #913dff;
  --blue: #5068ff;
  --red: #ff4f68;
  --red-panel: rgba(255, 53, 85, .11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Assistant", Arial, sans-serif;
  background-color: #05070f;
  background-image:
    radial-gradient(circle at 50% 12%, rgba(114, 43, 255, .2), transparent 30%),
    linear-gradient(180deg, #020309, #070812 52%, #05060b);
}

button {
  font-family: inherit;
}

.aurora {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .13;
  pointer-events: none;
}

.aurora-one {
  top: 18%;
  right: -220px;
  background: var(--pink);
}

.aurora-two {
  bottom: 2%;
  left: -240px;
  background: var(--purple);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: #05070f;
  box-shadow: 0 0 0 100vmax #05070f;
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(18px);
}

.brand {
  position: absolute;
  top: calc(50% + 3px);
  right: 0;
  width: 150px;
  display: block;
  transform: translateY(-50%);
}

.brand .hero-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(145, 61, 255, .12));
}

.page-identification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  white-space: nowrap;
}

.playlist-word {
  width: max-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.05;
  text-align: center;
}

.page-kicker {
  width: max-content;
  direction: ltr;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.1;
  text-align: center;
}

.live-chip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 8px 13px;
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 47, 168, .36);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 47, 168, .06);
  font-size: 13px;
  white-space: nowrap;
}

.live-chip b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.live-chip.is-error {
  border-color: rgba(255, 79, 104, .42);
  color: #ffc5cd;
  background: rgba(255, 79, 104, .08);
}

.live-chip.is-error b {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  flex: 1 0 auto;
  padding: 36px 0 26px;
}

.current-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 19, 34, .91), rgba(9, 11, 22, .87));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .27),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.current-card {
  padding: 28px;
}

.history-card {
  margin-top: 22px;
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.12;
}

.section-heading h1 {
  font-size: clamp(24px, 3vw, 31px);
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 31px);
}

.last-update {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.current-content {
  margin-top: 27px;
}

.song-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid rgba(145, 61, 255, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(145, 61, 255, .085), rgba(255, 47, 168, .035));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}

.song-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(18.7px, 2.88vw, 30.2px);
  line-height: 1.12;
}

.song-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.44vw, 16.6px);
  line-height: 1.25;
}

.song-heading-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.copy-button {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.copy-button:hover {
  border-color: rgba(255, 47, 168, .5);
  background: rgba(255, 47, 168, .09);
}

.copy-button.is-copied {
  border-color: rgba(108, 235, 170, .45);
  color: #c9ffe3;
  background: rgba(108, 235, 170, .09);
}

.copy-button.is-copy-error {
  border-color: rgba(255, 79, 104, .5);
  color: #ffd2d8;
  background: rgba(255, 79, 104, .09);
}

.copy-button-small {
  padding: 5px 9px;
  font-size: 11px;
}

.song-label {
  color: inherit;
  font-size: 1em;
  font-weight: 700;
}

.repeat-alert {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(255, 79, 104, .5);
  border-radius: 999px;
  color: #ffd2d8;
  background: var(--red-panel);
  font-size: 13px;
  font-weight: 700;
}

.current-stats {
  margin: 13px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.current-stats div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.current-stats dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.current-stats dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.file-panel {
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 3, 9, .5);
}

.file-panel span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.file-path-line {
  min-width: 0;
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 10px;
}

.file-panel code {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  overflow-wrap: anywhere;
  color: #dddff0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.history-heading {
  align-items: center;
  margin-bottom: 20px;
}

.history-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.history-columns,
.history-row {
  display: grid;
  grid-template-columns: 142px minmax(185px, 1.05fr) 72px 76px minmax(270px, 1.45fr);
  gap: 12px;
  align-items: center;
}

.history-columns {
  padding: 0 15px 9px;
  color: #858a9d;
  font-size: 11px;
  font-weight: 700;
}

.history-columns span:nth-child(3),
.history-columns span:nth-child(4) {
  width: 100%;
  text-align: center;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .18s ease, background .18s ease;
}

.history-row:hover {
  border-color: rgba(145, 61, 255, .27);
  background: rgba(145, 61, 255, .035);
}

.history-row.is-repeat {
  border-color: rgba(255, 79, 104, .5);
  background: linear-gradient(90deg, rgba(255, 53, 85, .13), rgba(255, 53, 85, .055));
  box-shadow: inset -3px 0 0 var(--red);
}

.history-cell {
  min-width: 0;
}

.history-cell::before {
  content: attr(data-label);
  display: none;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.history-time {
  color: #c7cad6;
  font-size: 13px;
  line-height: 1.45;
}

.history-song strong,
.history-song span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-song strong {
  font-size: 15px;
}

.history-song span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.history-number {
  font-weight: 700;
  text-align: center;
}

.history-path {
  min-width: 0;
  color: #b4b8c8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

.history-path-line {
  min-width: 0;
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 8px;
}

.history-path-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-note {
  margin-top: 5px;
  color: #ff9cab;
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  margin-top: 22px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

footer {
  width: min(964px, calc(100% - 32px));
  min-height: 54px;
  margin: auto auto 0;
  padding: 10px 0;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: #777b8d;
  background: #05070f;
  box-shadow: 0 0 0 100vmax #05070f;
  clip-path: inset(0 -100vmax);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 900px) {
  .brand {
    width: 118px;
  }

  .current-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-columns {
    display: none;
  }

  .history-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    align-items: start;
  }

  .history-cell::before {
    display: block;
  }

  .history-song,
  .history-path {
    grid-column: 1 / -1;
  }

  .history-number {
    text-align: right;
  }

  .history-path {
    overflow: visible;
  }

  .history-path-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 22px, 1180px);
    min-height: 62px;
  }

  .brand {
    width: 96px;
  }

  .playlist-word {
    font-size: 14px;
  }

  .live-chip {
    padding: 6px 8px;
    gap: 5px;
    font-size: 10px;
  }

  .live-chip b {
    width: 7px;
    height: 7px;
    margin: 0;
  }

  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 22px;
  }

  .current-card,
  .history-card {
    border-radius: 19px;
  }

  .current-card,
  .history-card {
    padding: 19px;
  }

  .section-heading,
  .song-heading,
  .history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .last-update {
    text-align: right;
  }

  .song-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .repeat-alert {
    align-self: flex-start;
  }

  .current-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .file-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "label"
      "path";
    gap: 6px;
    direction: ltr;
  }

  .file-panel > span {
    grid-area: label;
    margin-bottom: 0;
    text-align: left;
  }

  .file-path-line {
    display: contents;
  }

  #currentCopyButton {
    grid-area: copy;
    justify-self: start;
  }

  .file-panel code {
    grid-area: path;
    width: 100%;
  }

  .history-actions {
    width: 100%;
    align-items: flex-start;
  }

  .history-row {
    grid-template-columns: 1fr 1fr;
    padding: 13px;
  }

  .history-path::before {
    display: none;
  }

  .history-path-line {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "button"
      "label"
      "path";
    gap: 6px;
    align-items: start;
  }

  .history-path-line::before {
    content: "נתיב הקובץ";
    grid-area: label;
    color: var(--muted);
    font-family: "Assistant", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
  }

  .history-path-line .copy-button {
    grid-area: button;
    justify-self: start;
  }

  .history-path-text {
    grid-area: path;
  }
}

.page-title-stack {
  user-select: none;
  -webkit-user-select: none;
}

.listener-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 3, 9, .72);
  backdrop-filter: blur(14px);
}

.listener-overlay[hidden] {
  display: none;
}

.listener-dialog {
  position: relative;
  width: min(340px, 100%);
  padding: 28px 26px 24px;
  direction: rtl;
  border: 1px solid rgba(255, 47, 168, .28);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(255, 47, 168, .12),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(17, 19, 34, .98),
      rgba(8, 10, 20, .98)
    );
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .035);
  text-align: center;
}

.listener-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 47, 168, .48);
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 47, 168, .2),
      rgba(145, 61, 255, .2)
    );
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.listener-close:hover {
  border-color: rgba(255, 47, 168, .78);
  background:
    linear-gradient(
      135deg,
      rgba(255, 47, 168, .36),
      rgba(145, 61, 255, .36)
    );
}

.listener-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.listener-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}

.listener-value {
  margin-top: 18px;
  direction: ltr;
  color: #fff;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(145, 61, 255, .24);
}

.listener-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.listener-status.is-error {
  color: #ffc5cd;
}

.listener-maximum-row {
  margin-top: 17px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  line-height: 1.35;
}

.listener-maximum-row strong {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.listener-maximum-reset {
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 47, 168, .32);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 47, 168, .055);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.listener-maximum-reset:hover {
  border-color: rgba(255, 47, 168, .58);
  color: #fff;
  background: rgba(255, 47, 168, .11);
}

.listener-maximum-reset:disabled {
  opacity: .45;
  cursor: default;
}

.listener-maximum-reset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.listener-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .listener-overlay {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .listener-dialog {
    width: min(310px, 100%);
    padding: 26px 22px 22px;
  }

  .listener-value {
    font-size: 52px;
  }

  .listener-maximum-row {
    gap: 7px;
    font-size: 10px;
  }
}

