@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://hotdanceradio.nl/wp-content/fonts/fredoka/X7nP4b87HvSqjb_WIi2yDCRwoQ_k7367_B-i2yQag0-mac3OLyX8EemK.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #ffffff;
  --muted: #b9b9b9;
  --line: rgba(255, 255, 255, 0.13);
  --red: #ff1720;
  --red-hover: #fd4a4d;
  --yellow: #ffd84a;
  --green: #45d483;
  --radius: 8px;
  --max: 1180px;
  font-family: Fredoka, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 23, 32, 0.14), transparent 330px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px),
    var(--bg);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}

a { color: inherit; }
.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2));
  background: #fff;
  color: #111;
  border-bottom: 4px solid var(--red);
}
.topbar-brand {
  color: var(--red);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 1.05rem;
}
.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.topbar-user {
  min-width: 0;
  max-width: min(48vw, 360px);
  overflow: hidden;
  color: #111;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #111;
  text-decoration: none;
  font-size: 1rem;
}
.topbar-icon:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.button,
button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
  font: inherit;
}
button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}
.button.primary,
.primary {
  border-color: transparent;
  background: linear-gradient(45deg, var(--red), var(--red-hover));
  box-shadow: 0 12px 32px rgba(255, 23, 32, 0.28);
}
.secondary {
  border-color: rgba(255, 216, 74, 0.7);
  background: rgba(255, 216, 74, 0.12);
  color: var(--yellow);
}
.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
  gap: 24px;
  align-items: center;
  padding: 36px 0 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.88;
  text-transform: lowercase;
}
.hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #e8e8e8;
  font-size: 1.08rem;
  line-height: 1.45;
}
.hero img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}
.panel-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.78rem;
  text-transform: lowercase;
}
.workspace {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0 52px;
}
.controls-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: lowercase;
}
label {
  display: block;
  color: #fff;
  text-transform: lowercase;
}
input[type="search"],
input[type="date"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 14px;
  background: #050505;
  color: #fff;
  font: inherit;
}
.recording-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.recording-meta strong {
  color: var(--muted);
  font-size: 0.9rem;
}
.recording-list {
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}
.recording-item {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
  border-left: 4px solid transparent;
  padding: 12px;
  text-align: left;
  text-transform: none;
}
.recording-item:hover,
.recording-item.active {
  border-color: var(--red);
  background: rgba(255, 23, 32, 0.12);
}
.recording-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
}
.recording-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.calendar-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.calendar-day {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.calendar-day.today {
  border-color: rgba(255, 216, 74, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 74, 0.1);
}
.calendar-day.empty {
  opacity: 0.52;
}
.calendar-day-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}
.calendar-day-head span {
  color: #fff;
  font-size: 0.93rem;
  text-transform: lowercase;
}
.calendar-day-head strong {
  color: var(--red);
  font-size: 0.78rem;
}
.calendar-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  padding: 10px;
}
.calendar-slot {
  min-width: 0;
  min-height: 52px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 8px;
  border-left: 3px solid transparent;
  text-align: center;
  text-transform: none;
}
.calendar-slot:hover,
.calendar-slot.active {
  border-color: var(--red);
  background: rgba(255, 23, 32, 0.15);
}
.calendar-slot span {
  color: #fff;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.empty-day {
  grid-column: 1 / -1;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: lowercase;
}
.hour-picker {
  display: grid;
  gap: 12px;
}
.hour-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 1.2rem;
  text-transform: lowercase;
}
.hour-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.hour-button {
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}
.hour-button span {
  color: #fff;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hour-button:hover:not(:disabled),
.hour-button.active {
  border-color: var(--red);
  background: rgba(255, 23, 32, 0.18);
}
.hour-button:disabled {
  opacity: 0.28;
}
.preview-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.preview-header span {
  font-size: 1.35rem;
  text-transform: lowercase;
}
.preview-header strong {
  color: var(--red);
  font-size: 0.85rem;
}
.player-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}
.selected-recording h2 {
  overflow-wrap: anywhere;
}
.selected-recording p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.wave-shell {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255, 23, 32, 0.12), transparent),
    rgba(0, 0, 0, 0.26);
  overflow: hidden;
}
.waveform {
  position: relative;
  min-height: 220px;
  height: 220px;
  cursor: pointer;
}
.custom-wave-canvas {
  display: block;
  width: 100%;
  height: 220px;
}
.wave-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(8px);
}
.wave-zoom button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-color: rgba(255, 216, 74, 0.56);
  background: rgba(255, 216, 74, 0.12);
  color: var(--yellow);
  font-size: 1.15rem;
  line-height: 1;
}
.wave-zoom button:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(255, 23, 32, 0.18);
  color: #fff;
}
.wave-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.52);
}
.wave-loading[hidden] { display: none; }
.wave-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: lowercase;
}
.wave-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wave-legend i {
  width: 18px;
  height: 6px;
  display: inline-block;
  border-radius: 999px;
}
.wave-normal {
  background: rgba(255, 255, 255, 0.42);
}
.wave-speech {
  background: var(--yellow);
}
.vinyl-loader {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f7f2e9 0 20%, #101010 21% 28%, transparent 29%),
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.12), transparent 22%),
    repeating-radial-gradient(circle at center, #080808 0 7px, #171717 8px 9px, #0a0a0a 10px 15px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 32px rgba(255, 255, 255, 0.05),
    0 22px 44px rgba(0, 0, 0, 0.46);
  animation: vinyl-spin 0.85s linear infinite;
}
.vinyl-loader::before {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
}
.vinyl-loader::after {
  content: "";
  position: absolute;
  inset: 8% 53% 53% 8%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-34deg);
}
.vinyl-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #222;
  z-index: 1;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
.inline-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
  text-transform: lowercase;
}
.inline-loader p {
  margin: 0;
}
.wave-loader-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--yellow);
}
.wave-loader-content .vinyl-loader {
  width: 46px;
  height: 46px;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}
.loading-overlay[hidden] {
  display: none;
}
.loading-overlay-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.overlay-record {
  width: min(58vw, 340px);
  height: min(58vw, 340px);
}
.overlay-record span {
  width: 10px;
  height: 10px;
}
.loading-overlay-text {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  text-align: center;
  text-transform: lowercase;
}
.is-loading-overlay {
  overflow: hidden;
}
.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.transport {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 110px)) minmax(150px, 1fr);
  gap: 10px;
}
.play-button {
  min-width: 110px;
}
.download-button {
  border-color: rgba(69, 212, 131, 0.7);
  background: rgba(69, 212, 131, 0.14);
  color: var(--green);
}
#fallback-audio {
  width: 100%;
}
.preview-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.notice {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid rgba(255, 216, 74, 0.35);
  border-radius: 3px;
  padding: 12px 14px;
  background: rgba(255, 216, 74, 0.1);
  color: var(--yellow);
}
.error-notice {
  border-color: rgba(255, 23, 32, 0.45);
  background: rgba(255, 23, 32, 0.11);
  color: #fff;
}
.footer {
  padding: 26px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-transform: lowercase;
}
@media (max-width: 900px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }
  .hero img {
    max-width: 180px;
  }
  .recording-list {
    max-height: 420px;
  }
  .transport {
    grid-template-columns: repeat(3, 1fr);
  }
  .hour-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .download-button {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .topbar {
    padding-inline: 16px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .transport {
    grid-template-columns: 1fr;
  }
  .hour-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calendar-list {
    grid-template-columns: 1fr;
  }
}
