html {
  font-size: clamp(12px, 1.2vw, 16px);
  overflow-x: hidden;
}

:root {
  --background: #09090d;
  --background-secondary: #111118;
  --accent: #ff3049;
  --accent-dim: #a31a31;
  --text-primary: #f6f6f9;
  --text-muted: #b5b5c7;
  --highlight: #ebff00;
  --panel-width: clamp(16.25rem, 20vw, 20rem);
  --content-max: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--background);
}

.page {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  background: linear-gradient(145deg, rgba(8, 8, 12, 0.95) 20%, rgba(18, 18, 26, 0.9) 70%, rgba(10, 10, 15, 0.96));
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: screen;
}

.main-content {
  flex: 1;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  z-index: 3;
}

.featured-show {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 0.0625rem solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(0.5rem);
  box-shadow: 0 1.875rem 3.75rem rgba(0, 0, 0, 0.35);
  cursor: pointer; /* indicate clickable background */
}

.show-art {
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 69, 108, 0.95), rgba(135, 28, 195, 0.85));
}

.host-photo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffddee 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0.6;
}

.show-meta h2 {
  font-family: "Unica One", "Archivo", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.controls {
  display: flex;
  gap: 0.75rem;
}

.controls button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.controls button.primary {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0.75rem 1.5rem rgba(255, 48, 73, 0.35);
}

.controls .loop-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.controls .loop-toggle[aria-pressed="true"] {
  background: rgba(255, 48, 73, 0.22);
  border-color: rgba(255, 48, 73, 0.38);
}

.controls .loop-toggle:hover,
.controls .loop-toggle:focus-visible {
  background: rgba(255, 48, 73, 0.3);
  border-color: rgba(255, 48, 73, 0.5);
  transform: translateY(-0.125rem);
}

.controls button:hover,
.controls button:focus-visible {
  transform: translateY(-0.125rem);
  background: rgba(255, 255, 255, 0.12);
}

.controls button.primary:hover,
.controls button.primary:focus-visible {
  background: #ff4459;
}

.icon {
  display: inline-block;
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
}

.icon-previous,
.icon-next::before,
.icon-next::after,
.icon-previous::before,
.icon-previous::after {
  content: "";
  position: absolute;
}

.icon-previous::before {
  top: 50%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 0.4375rem solid transparent;
  border-bottom: 0.4375rem solid transparent;
  border-right: 0.625rem solid currentColor;
}

.icon-previous::after {
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  width: 0.125rem;
  height: 0.75rem;
  background: currentColor;
  border-radius: 0.0625rem;
}

.icon-next::before {
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 0.4375rem solid transparent;
  border-bottom: 0.4375rem solid transparent;
  border-left: 0.625rem solid currentColor;
}

.icon-next::after {
  top: 50%;
  left: 78%;
  transform: translate(-50%, -50%);
  width: 0.125rem;
  height: 0.75rem;
  background: currentColor;
  border-radius: 0.0625rem;
}

.icon-play,
.icon-pause,
.icon-loop {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
}

.icon-play::before,
.icon-play::after,
.icon-pause::before,
.icon-pause::after,
.icon-loop::before,
.icon-loop::after {
  content: none;
}

.icon-play {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M7 4.5v15l12-7.5-12-7.5Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M7 4.5v15l12-7.5-12-7.5Z"/></svg>') center/contain no-repeat;
}

.icon-pause {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6 4h4v16H6zm8 0h4v16h-4z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M6 4h4v16H6zm8 0h4v16h-4z"/></svg>') center/contain no-repeat;
}

.icon-loop {
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>') center/contain no-repeat;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.live-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(255, 48, 73, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.mic-stage {
  position: relative;
  width: clamp(16.25rem, 50vw, 32.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mic-stage::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 48, 73, 0.85), rgba(255, 48, 73, 0.1) 60%, transparent 70%);
  filter: blur(0.875rem);
  opacity: 0.6;
}

.wordmark {
  position: absolute;
  inset: auto;
  font-family: "Unica One", "Archivo", sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  display: flex;
  gap: clamp(1rem, 5vw, 2.5rem);
  mix-blend-mode: screen;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.wordmark-main {
  color: rgba(255, 48, 73, 0.9);
  text-shadow: 0 0 1.75rem rgba(255, 48, 73, 0.6);
}

.wordmark-outline {
  -webkit-text-stroke: 0.125rem rgba(255, 48, 73, 0.65);
  color: transparent;
  text-shadow: 0 0 1.875rem rgba(255, 48, 73, 0.45);
}

.mic-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 1.125rem 2.375rem rgba(0,0,0,0.35));
  z-index: 2;
}

.tagline {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 75ch;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.timeline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.timeline .time {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 3.25ch;
  text-align: center;
}

.seek-bar {
  flex: 1;
  appearance: none;
  height: 0.375rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 62.44rem;
  outline: none;
  position: relative;
}

.seek-bar::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 0.125rem solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0.875rem rgba(255, 48, 73, 0.45);
  cursor: pointer;
}

.seek-bar::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 0.125rem solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0.875rem rgba(255, 48, 73, 0.45);
  cursor: pointer;
}

.seek-bar::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: 62.44rem;
  background: rgba(255, 255, 255, 0.12);
}

.seek-bar::-moz-range-track {
  height: 0.375rem;
  border-radius: 62.44rem;
  background: rgba(255, 255, 255, 0.12);
}

.timeline .seek-bar:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.95rem 1.8rem;
  border-radius: 62.44rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-0.125rem);
  background: rgba(255, 48, 73, 0.2);
  box-shadow: 0 1rem 1.875rem rgba(255, 48, 73, 0.25);
}

.icon-spotify {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1db954 0%, #0d4e1f 100%);
  position: relative;
}

.icon-spotify::before,
.icon-spotify::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  border-radius: 62.44rem;
  border: 0.125rem solid rgba(0, 0, 0, 0.85);
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

.icon-spotify::before {
  top: 34%;
}

.icon-spotify::after {
  top: 50%;
  border-width: 0.125rem;
  transform: scaleX(0.9);
}

.icon-external {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-external::before,
.icon-external::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-external::before {
  width: 0.75rem;
  height: 0.125rem;
  transform: translateY(0.375rem) rotate(-45deg);
}

.icon-external::after {
  width: 0.375rem;
  height: 0.375rem;
  border-top: 0.125rem solid currentColor;
  border-right: 0.125rem solid currentColor;
  top: 0;
  right: 0;
}

.nav-panel {
  width: var(--panel-width);
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.95), rgba(24, 24, 32, 0.94));
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.05);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  align-self: flex-start;
}

.logo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(circle at center, rgba(255, 48, 73, 0.92), rgba(75, 13, 24, 0.92));
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-family: "Unica One", "Archivo", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.18em;
  border: 0.1875rem solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 0.125rem solid rgba(255, 255, 255, 0.08);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: stretch;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.4rem 0.5rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text-primary);
}

nav a.active {
  color: var(--text-primary);
}

nav a .nav-pip {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.65rem;
  box-shadow: 0 0 0.625rem rgba(255, 48, 73, 0.6);
}

nav a.outline {
  border: 0.0625rem solid rgba(255, 48, 73, 0.6);
  border-radius: 62.44rem;
  padding: 0.55rem 1.4rem;
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

nav a.outline:hover,
nav a.outline:focus-visible {
  background: rgba(255, 48, 73, 0.18);
  box-shadow: 0 0.875rem 1.625rem rgba(255, 48, 73, 0.22);
}

/* Modal */
.modal-overlay[aria-hidden="true"] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.25rem);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal {
  width: min(42.5rem, 92vw);
  background: linear-gradient(180deg, rgba(16,16,24,0.98), rgba(24,24,34,0.98));
  border: 0.0625rem solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 2.5rem 5rem rgba(0,0,0,0.5);
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  cursor: pointer;
}

.modal-header {
  padding: 0.5rem 0.5rem 0.25rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,48,73,0.12);
  border: 0.0625rem solid rgba(255,48,73,0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 62.44rem;
}

.modal h3 {
  margin: 0.6rem 0 0.3rem;
  font-family: "Unica One", "Archivo", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.08em;
}

.modal-artist {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-body {
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 0.98rem;
  opacity: 0.92;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.625rem;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}

.btn.outline {
  border-color: rgba(255,48,73,0.5);
  color: var(--accent);
  background: rgba(255,48,73,0.12);
}

/* Schedule Event Modal refinements */
.event-modal { background: linear-gradient(180deg, rgba(20,20,28,0.97), rgba(28,28,36,0.97)); }
.event-modal-body { display: flex; flex-direction: row; gap: 1.25rem; align-items: flex-start; margin-top: 0.25rem; }
.event-modal-art-wrapper { width: 10rem; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: rgba(0,0,0,0.4); box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.5); flex-shrink: 0; }
.event-modal-art-wrapper img { width:100%; height:100%; object-fit: cover; display:block; }
.event-modal-text { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.event-meta-line { margin: 0.25rem 0 0; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.event-modal #event-modal-description { font-size: 0.95rem; line-height: 1.6; }

/* Color themed accents based on event color */
.event-modal[data-color="blue"] .modal-badge { color: #6aa7ff; background: rgba(64,132,255,0.12); border-color: rgba(64,132,255,0.5); }
.event-modal[data-color="tan"] .modal-badge { color: #e1b684; background: rgba(219,171,117,0.15); border-color: rgba(219,171,117,0.5); }
.event-modal[data-color="light"] .modal-badge { color: #ffffff; background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.event-modal[data-color="pink"] .modal-badge { color: #ff6c9a; background: rgba(255,86,126,0.18); border-color: rgba(255,86,126,0.55); }
.event-modal[data-color="green"] .modal-badge { color: #6edb91; background: rgba(86,214,137,0.18); border-color: rgba(86,214,137,0.55); }
.event-modal[data-color="yellow"] .modal-badge { color: #f1d25a; background: rgba(235,206,76,0.18); border-color: rgba(235,206,76,0.55); }

/* Video Alert Banner */
.video-alert {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, rgba(255,48,73,0.95), rgba(200,30,60,0.95));
  border: 0.0625rem solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0.5rem 2rem rgba(255,48,73,0.3), 0 0.25rem 1rem rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideIn 0.4s ease-out;
}

.video-alert:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0.75rem 2.5rem rgba(255,48,73,0.4), 0 0.5rem 1.5rem rgba(0,0,0,0.4);
}

.video-alert.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.video-alert-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 0.25rem rgba(255,255,255,0.3));
}

.video-alert-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.video-alert-dismiss {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: background 0.2s ease;
}

.video-alert-dismiss:hover {
  background: rgba(255,255,255,0.3);
}

/* Video Modal */
.video-modal-overlay[aria-hidden="true"] {
  display: none;
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(0.5rem);
  display: grid;
  place-items: center;
  z-index: 1100;
}

.video-modal {
  width: 75vw;
  height: 75vh;
  max-width: 100%;
  max-height: 100%;
  background: linear-gradient(180deg, rgba(16,16,24,0.98), rgba(24,24,34,0.98));
  border: 0.0625rem solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 2.5rem 5rem rgba(0,0,0,0.6);
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-modal-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.8);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255,48,73,0.6);
  transform: scale(1.1);
}

.video-modal video {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 0.5rem;
  background: #000;
  object-fit: contain;
}

/* Custom Video Controls */
.video-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  background: rgba(0,0,0,0.3);
  border-radius: 0.5rem;
}

.video-play-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: #ff4d6a;
}

.video-play-icon {
  margin-left: 2px;
}

.video-time-display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-current-time,
.video-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.video-progress-container {
  flex: 1;
  padding: 0.5rem 0;
  cursor: pointer;
}

.video-progress-bar {
  position: relative;
  height: 0.375rem;
  background: rgba(255,255,255,0.15);
  border-radius: 0.1875rem;
  pointer-events: none;
}

.video-progress-filled {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 0.1875rem;
  width: 0%;
  pointer-events: none;
}

.video-progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.5rem rgba(255,48,73,0.5);
  left: 0%;
  pointer-events: none;
}

.video-progress-container:hover .video-progress-bar {
  height: 0.5rem;
}

.video-progress-container:hover .video-progress-handle {
  width: 1rem;
  height: 1rem;
}

.video-volume-control {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.video-mute-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.video-mute-btn:hover {
  opacity: 1;
}

.video-volume-bar {
  width: 4rem;
  height: 0.25rem;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 0.125rem;
  cursor: pointer;
}

.video-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.video-volume-bar::-moz-range-thumb {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .video-alert {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
  
  .video-modal {
    width: 95vw;
    height: auto;
    max-height: 90vh;
  }
  
  .video-volume-bar {
    display: none;
  }
}

@media (max-width: 40rem) {
  .event-modal-body { flex-direction: column; }
  .event-modal-art-wrapper { width: 100%; max-width: 12.5rem; }
}

@media (max-width: 67.5rem) {
  .page {
    flex-direction: column;
  }

  .nav-panel {
    position: static;
    top: auto;
    height: auto;
    align-self: stretch;
    flex-shrink: 1;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-left: none;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
  }

  .podcasts-page .page {
    height: auto;
    overflow: visible;
  }

  .podcasts-page .main-content {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  nav a {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .logo {
    width: 5.625rem;
    height: 5.625rem;
    font-size: 2rem;
  }

  .main-content {
    padding-bottom: 3rem;
  }

  .cta {
    justify-content: center;
  }
}

@media (max-width: 45rem) {
  body {
    font-size: 0.9375rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-show {
    width: 100%;
  }

  .live-indicator {
    justify-content: center;
  }

  .mic-stage {
    width: clamp(12.5rem, 70vw, 20rem);
  }

  .wordmark {
    gap: 1rem;
  }

  .cta {
    justify-content: center;
  }
}

/* Desktop layout refinements: precise placement matching the brief */
@media (min-width: 67.5rem) {
  /* Sidebar nav: make items fill the panel, add spacing, avoid wrapping */
  .nav-panel nav,
  .nav-panel nav ul { width: 100%; }
  .nav-panel nav ul { gap: 2rem; }
  .nav-panel nav li { width: 100%; }
  .nav-panel nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }
  /* Lock desktop to the viewport height so no scrolling is needed */
  .page {
    height: 100vh;
    width: 100vw;      /* fill full width */
    max-width: none;   /* override global max */
    overflow: hidden;
  }

  /* Give space for absolute header and bottom elements */
  .main-content {
    height: 100vh;
    padding-top: 7rem; /* room for featured + LIVE bar */
    padding-bottom: 6rem; /* room for CTA/tagline */
  }

  /* Pin the featured show to the top-left of the content area */
  .top-bar {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .featured-show {
    max-width: 32.5rem;
    grid-column: 1;
    justify-self: start;
  }

  /* Move the live indicator to hover above the mic, centered */
  .live-indicator {
    position: static;
    grid-column: 2;
    justify-self: center;
    transform: none;
    z-index: 2;
  }

  /* Center hero visually; keep wordmark behind mic */
  .hero {
    align-content: center;
    padding: 0; /* remove extra vertical padding on desktop */
  }

  .wordmark {
    z-index: 1;
    gap: clamp(2rem, 6vw, 4.5rem); /* spread letters so mic reveals more */
    letter-spacing: 0.2em;
  }

  .mic-stage,
  .mic-image {
    z-index: 2;
  }

  /* Reveal more of the wordmark by shrinking and lifting the mic slightly */
  .mic-stage {
    transform: translateY(-7.5%);
  }

  .mic-image {
    transform: scale(1.00);
    transform-origin: center;
  }

  /* Tagline sits bottom-center of the content area */
  .tagline {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
  }

  /* CTA sits bottom-left */
  .cta {
    position: absolute;
    left: 2rem;
    bottom: 2.5rem;
    margin: 0;
  }
}

/* Schedule page layout */
.schedule-page .page {
  /* fit the entire schedule view into one screen */
  height: 100vh;
  width: 100vw;
  max-width: none;
  overflow: hidden;
}

.schedule-page .main-content {
  display: grid;
  grid-template-rows: auto 1fr; /* header then calendar */
  gap: 0.8rem;
  height: 100vh;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  overflow: hidden;
}

.schedule-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.schedule-title {
  font-family: "Unica One", "Archivo", sans-serif;
  letter-spacing: 0.1em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0.1rem 0 0.6rem;
}

.calendar {
  background: rgba(255, 255, 255, 0.04);
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: clamp(0.6rem, 1.2vw, 1rem);
  display: grid;
  grid-template-rows: auto 1fr; /* day names + grid */
  gap: 0.5rem;
  min-height: 0; /* allow child grid to size */
}

.calendar .day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
}

.calendar-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  grid-auto-rows: 1fr; /* make 5 rows share height */
  min-height: 0;
}

.calendar-grid .day {
  min-height: 0; /* allow compression to fit viewport */
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  border-radius: 0.8rem;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-grid .day.blank {
  background: transparent;
  border: 0.0625rem dashed rgba(255, 255, 255, 0.06);
}

.calendar-grid .day.out-month {
  opacity: 0.5;
}

.calendar-grid .day .date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calendar-grid .events {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: hidden;
}

.calendar-grid .event {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  border: 0.0625rem solid transparent;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-grid .event strong {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-grid .event .meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Event color tags */
.calendar-grid .event.blue {
  background: rgba(64, 132, 255, 0.2);
  border-color: rgba(64, 132, 255, 0.35);
}

.calendar-grid .event.tan {
  background: rgba(219, 171, 117, 0.22);
  border-color: rgba(219, 171, 117, 0.35);
}

.calendar-grid .event.light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.calendar-grid .event.pink {
  background: rgba(255, 86, 126, 0.22);
  border-color: rgba(255, 86, 126, 0.36);
}

.calendar-grid .event.green {
  background: rgba(86, 214, 137, 0.22);
  border-color: rgba(86, 214, 137, 0.36);
}

.calendar-grid .event.yellow {
  background: rgba(235, 206, 76, 0.22);
  border-color: rgba(235, 206, 76, 0.36);
}

/* On smaller screens, keep no-vertical-scroll by allowing content to compress */

/* Keep 7-column calendar on mobile for consistency with the design */

/* Podcasts page layout */
.podcasts-page .page {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  max-width: 100vw !important;
  margin: 0;
  overflow: hidden;
}

.podcasts-page .main-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem);
  gap: 1.5rem;
  scrollbar-gutter: stable both-edges;
  flex: 1;
  width: 100%;
}

/* Left Sidebar */
.left-sidebar {
  width: clamp(11.25rem, 15vw, 15rem);
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.98), rgba(16, 16, 22, 0.96));
  border-right: 0.0625rem solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2vh, 2rem) 0 clamp(1rem, 1.5vh, 1.5rem);
  z-index: 3;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.left-nav {
  padding: 0 clamp(0.75rem, 1.5vw, 1.5rem);
  flex-shrink: 0;
}

.left-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.8rem);
}

.left-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  position: relative;
}

.left-nav a:hover,
.left-nav a:focus-visible {
  color: var(--text-primary);
}

.left-nav a.active {
  color: var(--accent);
}

.left-nav a.active::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(0.75rem, 1.5vw, 1.5rem));
  top: 50%;
  transform: translateY(-50%);
  width: 0.1875rem;
  height: 100%;
  background: var(--accent);
  border-radius: 0 0.125rem 0.125rem 0;
}

.podcasts-page .main-content::-webkit-scrollbar { width: 0.625rem; }
.podcasts-page .main-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.podcasts-page .main-content::-webkit-scrollbar-thumb { background: rgba(255,48,73,0.4); border-radius: 0.375rem; }
.podcasts-page .main-content::-webkit-scrollbar-thumb:hover { background: rgba(255,48,73,0.6); }
.podcasts-page .main-content { scrollbar-width: thin; scrollbar-color: rgba(255,48,73,0.5) rgba(255,255,255,0.08); }

/* Mini Player */
.mini-player {
  padding: 0 clamp(0.75rem, 1.5vw, 1.5rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vh, 0.75rem);
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(1rem, 1.5vh, 1.5rem);
  flex-shrink: 0;
}

.mini-player-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.5);
}

.mini-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-player-title {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.mini-player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  padding: 0.25rem 0;
}

.mini-control-btn {
  width: clamp(1.875rem, 3vw, 2.25rem);
  height: clamp(1.875rem, 3vw, 2.25rem);
  border-radius: 50%;
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-control-btn.primary {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0.375rem 0.75rem rgba(255, 48, 73, 0.3);
  width: clamp(2.125rem, 3.5vw, 2.5rem);
  height: clamp(2.125rem, 3.5vw, 2.5rem);
}

.mini-control-btn:hover,
.mini-control-btn:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
}

.mini-control-btn.primary:hover,
.mini-control-btn.primary:focus-visible {
  background: #ff4459;
}

.mini-player-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1vw, 1rem);
  padding-top: clamp(0.25rem, 0.5vh, 0.5rem);
}

.user-profile-btn,
.settings-btn {
  width: clamp(1.875rem, 3vw, 2.25rem);
  height: clamp(1.875rem, 3vw, 2.25rem);
  border-radius: 50%;
  border: 0.0625rem solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.user-profile-btn:hover,
.settings-btn:hover,
.user-profile-btn:focus-visible,
.settings-btn:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.125rem);
}

/* Rewind icon (double left arrows) */
.icon-rewind, .icon-forward { position: relative; width: clamp(1.125rem,1.8vw,1.25rem); height: clamp(1.125rem,1.8vw,1.25rem); }

/* Rewind: two left facing triangles with slight gap */
.icon-rewind::before, .icon-rewind::after { content:""; position:absolute; top:50%; width:0; height:0; border-top:0.4375rem solid transparent; border-bottom:0.4375rem solid transparent; border-right:0.625rem solid currentColor; transform:translate(-50%,-50%); }
.icon-rewind::before { left:56%; }
.icon-rewind::after { left:36%; }

/* Forward icon (double right arrows) */
/* Forward: two right facing triangles with slight gap */
.icon-forward::before, .icon-forward::after { content:""; position:absolute; top:50%; width:0; height:0; border-top:0.4375rem solid transparent; border-bottom:0.4375rem solid transparent; border-left:0.625rem solid currentColor; transform:translate(-50%,-50%); }
.icon-forward::before { left:44%; }
.icon-forward::after { left:64%; }

/* Ensure mini player icon sizing consistency */
.mini-player-controls .icon, .mini-player-footer .icon { width: 1.125rem; height: 1.125rem; }

/* Adjust user icon centering */
.icon-user::before { top:0.125rem; }
.icon-user::after { top: calc(50% + 0.125rem); }


/* User icon */
.icon-user {
  position: relative;
  width: clamp(0.875rem, 1.75vw, 1.125rem);
  height: clamp(0.875rem, 1.75vw, 1.125rem);
  display: block;
}

.icon-user::before {
  content: "";
  display: block;
  width: clamp(0.5625rem, 1.2vw, 0.75rem);
  height: clamp(0.5625rem, 1.2vw, 0.75rem);
  border: 0.125rem solid currentColor;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.icon-user::after {
  content: "";
  display: block;
  width: clamp(1rem, 2vw, 1.25rem);
  height: clamp(0.5rem, 1vw, 0.625rem);
  border: 0.125rem solid currentColor;
  border-radius: 0.625rem 0.625rem 0 0;
  border-bottom: none;
  position: absolute;
  bottom: -0.0625rem;
  left: 50%;
  transform: translateX(-50%);
}


@media (max-width: 75rem) {
  .left-sidebar {
    width: 12.5rem;
  }
}

@media (max-width: 56.25rem) {
  .left-sidebar {
    width: 11.25rem;
  }
}

@media (max-width: 48rem) {
  .left-sidebar {
    display: none;
  }
}

.podcasts-title {
  font-family: "Unica One", "Archivo", sans-serif;
  letter-spacing: 0.1em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0.1rem 0 0.6rem;
}

.podcasts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 0.0625rem solid rgba(255,255,255,0.08);
  border-radius: 62.44rem;
  padding: 0.5rem 0.9rem;
}

.search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  min-width: 12.5rem;
}

.search-icon {
  width: 1rem;
  height: 1rem;
  border: 0.125rem solid var(--text-muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 0.5rem; height: 0.125rem;
  background: var(--text-muted);
  right: -0.375rem; bottom: -0.125rem;
  transform: rotate(45deg);
  border-radius: 0.0625rem;
}

.genres { display: inline-flex; gap: 0.5rem; align-items: center; }
.chip {
  padding: 0.45rem 0.8rem;
  border-radius: 62.44rem;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  cursor: pointer;
}
.chip.active { background: rgba(255,48,73,0.2); border-color: rgba(255,48,73,0.35); }
.chip.purple { background: rgba(134, 84, 255, 0.22); border-color: rgba(134,84,255,0.36); }
.chip.olive { background: rgba(123, 168, 92, 0.22); border-color: rgba(123,168,92,0.36); }
.chip.dark { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.12); }

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-y: auto;
  align-content: start;
  width: 100%;
}

@media (min-width: 1200px) {
  .podcast-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .podcast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .podcast-grid {
    grid-template-columns: 1fr;
  }
}


.podcast-card {
  background: rgba(255,255,255,0.04);
  border: 0.0625rem solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.podcast-card:hover {
  transform: translateY(-0.375rem);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 48, 73, 0.4);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 48, 73, 0.2), 
              0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.podcast-card:active {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(255, 48, 73, 0.15);
}

.podcast-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  position: relative;
}

.podcast-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.podcast-card:hover .thumb::after {
  opacity: 1;
}

.podcast-card .thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease;
}

.podcast-card:hover .thumb img {
  transform: scale(1.05);
}

.podcast-card .title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.podcast-card .meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.actions { display: flex; gap: 0.35rem; align-items: center; }
.icon-btn {
  width: 2.125rem; height: 2.125rem; border-radius: 50%;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 48, 73, 0.2);
  border-color: rgba(255, 48, 73, 0.4);
  transform: scale(1.1);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* Ensure all icons inherit a consistent size/color and alignment */
.icon-btn .icon { width: 1rem; height: 1rem; color: var(--text-primary); }
.icon::before, .icon::after { box-sizing: border-box; }

/* Normalize icon colors to white */
.icon, .icon::before, .icon::after { color: var(--text-primary); }

/* Ensure play triangle is white inside action buttons */
.icon-btn .icon-play { color: var(--text-primary); }

.icon-download::before {
  content: ""; display: block; width: 0.875rem; height: 0.875rem; position: relative;
  box-sizing: border-box; border-left: 0.125rem solid currentColor; border-bottom: 0.125rem solid currentColor;
  transform: rotate(-45deg) translateY(-0.0625rem);
}

.icon-menu { position: relative; width: 1.125rem; height: 0.875rem; }
.icon-menu::before, .icon-menu::after, .icon-menu span { content: ""; position: absolute; left: 0; right: 0; height: 0.125rem; background: currentColor; border-radius: 0.125rem; }
.icon-menu::before { top: 0; }
.icon-menu::after { bottom: 0; }
.icon-menu span { top: 50%; transform: translateY(-50%); }

/* If HTML doesn't include span, inject via pseudo for middle line fallback */
.icon-menu:not(:has(span)) { height: 1rem; }
.icon-menu:not(:has(span))::before { top: 0; box-shadow: 0 0.4375rem 0 currentColor, 0 0.875rem 0 currentColor; }
.icon-menu:not(:has(span))::after { display: none; }

/* Dropdown arrow (chevron) */
.icon-chevron { position: relative; width: 0.875rem; height: 0.875rem; }
.icon-chevron::before { content:""; position:absolute; top:50%; left:50%; width:0.5rem; height:0.5rem; border:0.125rem solid currentColor; border-top:0; border-left:0; transform: translate(-50%,-60%) rotate(45deg); }


/* Trending Page Styles */
.trending-page .trending-hero {
  display: grid;
  grid-template-columns: clamp(12.5rem, 26%, 20rem) 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255,48,73,0.12), rgba(134,84,255,0.08) 45%, rgba(0,0,0,0.3));
  border: 0.0625rem solid rgba(255,255,255,0.08);
  padding: clamp(1rem, 2vw, 1.75rem);
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.trending-page .trending-hero::before {
  content: "";
  position: absolute;
  width: 32.5rem;
  height: 32.5rem;
  background: radial-gradient(circle at 30% 40%, rgba(255,48,73,0.25), transparent 70%);
  top: -30%; left: -10%;
  filter: blur(1.875rem);
  opacity: 0.8;
  pointer-events: none;
}

.trending-page .trending-hero-art { position: relative; border-radius: 1rem; overflow: hidden; background: rgba(0,0,0,0.4); box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.5); }
.trending-page .trending-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.trending-page .trending-hero-meta { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.trending-page .hero-title { margin: 0; font-family: "Unica One", "Archivo", sans-serif; letter-spacing: 0.08em; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.trending-page .hero-tagline { margin: 0; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }
.trending-page .hero-actions { display: flex; gap: 0.5rem; }

.trending-page .trending-sections { display: grid; gap: 2rem; margin-top: 2rem; }
.trending-page .trending-group { background: rgba(255,255,255,0.04); border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 1rem; padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.trending-page .section-heading { margin: 0; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* Ranked list */
.ranked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; counter-reset: rank; }
.ranked-list li { display: grid; grid-template-columns: 1.75rem 1fr 2.625rem; align-items: center; gap: 0.75rem; padding: 0.55rem 0.65rem; background: rgba(255,255,255,0.02); }
.ranked-list li:nth-child(1) { background: linear-gradient(135deg, rgba(255,48,73,0.25), rgba(0,0,0,0.2)); }
.ranked-list li:nth-child(2) { background: linear-gradient(135deg, rgba(255,48,73,0.18), rgba(0,0,0,0.18)); }
.ranked-list li:nth-child(3) { background: linear-gradient(135deg, rgba(255,48,73,0.12), rgba(0,0,0,0.16)); }
.rank { font-weight: 600; font-size: 0.85rem; text-align: center; color: var(--text-primary); }
.r-title { font-weight: 500; }
.r-meta { text-align: right; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #53d769; }
.r-meta.down { color: #ff4459; }
.r-meta::before { content: ""; }

/* Trending #1 Animated Border Effect */
.trending-number-one {
  position: relative;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(-30deg, rgba(255, 48, 73, 0.3), transparent, rgba(255, 48, 73, 0.3)),
    linear-gradient(to bottom, var(--background-secondary), var(--background-secondary));
  overflow: visible;
}

.trending-number-one::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 0.125rem;
  background: linear-gradient(-30deg, rgba(255, 48, 73, 0.8), transparent 30%, transparent 70%, rgba(255, 48, 73, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  filter: url(#trending-glow);
  animation: trending-border-glow 3s ease-in-out infinite;
}

.trending-number-one::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at center, rgba(255, 48, 73, 0.25), transparent 60%);
  filter: blur(1.25rem);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
  animation: trending-glow-pulse 3s ease-in-out infinite;
}

@keyframes trending-border-glow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes trending-glow-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Mini grids */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.mini-card { background: rgba(255,255,255,0.04); border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 0.625rem; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mini-art { width: 100%; aspect-ratio: 1; border-radius: 0.5rem; overflow: hidden; background: rgba(0,0,0,0.4); }
.mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-title { font-size: 0.8rem; margin: 0; }
.mini-meta { font-size: 0.65rem; margin: 0; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

@media (max-width: 60rem) {
  .trending-page .trending-hero { grid-template-columns: 1fr; }
}

/* Genre Index */
.genre-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin-top: 1.5rem; }
.genre-tile { position: relative; aspect-ratio: 1; border-radius: 1rem; display: flex; align-items: flex-end; padding: 0.9rem 0.9rem 1rem; text-decoration: none; overflow: hidden; font-family: "Unica One", "Archivo", sans-serif; letter-spacing: 0.12em; font-size: 1rem; color: var(--text-primary); background: rgba(255,255,255,0.05); border: 0.0625rem solid rgba(255,255,255,0.08); transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.genre-tile span { position: relative; z-index: 2; }
.genre-tile { --tile-accent: rgba(255,48,73,0.35); }
.genre-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x, 25%) var(--pointer-y, 75%), var(--tile-accent), transparent 70%);
  opacity: 0.9;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, transform 0.35s ease;
  pointer-events: none;
}
.genre-tile:hover, .genre-tile:focus-visible { transform: translateY(-0.25rem); box-shadow: 0 0.875rem 1.875rem -0.375rem rgba(0,0,0,0.55); }
.genre-tile:hover::before, .genre-tile:focus-visible::before { opacity: 1; }

/* Genre color variants */
.genre-tile.rock { background: linear-gradient(145deg, rgba(255,48,73,0.3), rgba(40,0,10,0.85)); --tile-accent: rgba(255,48,73,0.55); }
.genre-tile.pop { background: linear-gradient(145deg, rgba(134,84,255,0.35), rgba(30,10,60,0.85)); --tile-accent: rgba(134,84,255,0.5); }
.genre-tile.jazz { background: linear-gradient(145deg, rgba(123,168,92,0.35), rgba(15,40,20,0.85)); --tile-accent: rgba(123,168,92,0.55); }
.genre-tile.drill { background: linear-gradient(145deg, rgba(0,0,0,0.6), rgba(30,30,30,0.9)); --tile-accent: rgba(255,255,255,0.25); }
.genre-tile.indie { background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(60,60,70,0.8)); --tile-accent: rgba(134,84,255,0.4); }

/* Chip links become inline-block anchors */
.genres .chip { text-decoration: none; display: inline-flex; align-items: center; }

/* Genre Index layout adjustments */
.genre-index-page .main-content { display: flex; flex-direction: column; }
.genre-index-page .genre-grid { width: 100%; grid-auto-rows: 1fr; }
@media (min-width: 40rem) { .genre-index-page .genre-grid { grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); } }
@media (min-width: 52.5rem) { .genre-index-page .genre-grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); } }
@media (min-width: 68.75rem) { .genre-index-page .genre-grid { grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr)); } }

/* About Page */
.about-page .about-title { font-family: "Unica One","Archivo",sans-serif; letter-spacing: 0.12em; margin: 0 0 0.5rem; font-size: clamp(1.8rem,3vw,2.6rem); }
.about-page .team-grid { margin-top: 1.5rem; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill,minmax(17.5rem,1fr)); align-content: start; max-height: none; }
.about-page .team-card { background: linear-gradient(135deg, rgba(255,48,73,0.18), rgba(40,0,10,0.9)); border: 0.0625rem solid rgba(255,255,255,0.08); border-radius: 1.1rem; padding: 1rem; display: flex; gap: 1rem; position: relative; overflow: hidden; min-height: 10rem; }
.about-page .team-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 85%, rgba(255,48,73,0.35), transparent 70%); mix-blend-mode: screen; opacity:.6; pointer-events:none; }
.about-page .team-photo { width: 6rem; flex-shrink:0; aspect-ratio:1; border-radius: 0.9rem; overflow:hidden; background: rgba(0,0,0,0.4); box-shadow: 0 0.5rem 1.125rem rgba(0,0,0,0.5); display:grid; place-items:center; }
.about-page .team-photo img { width: 100%; height:100%; object-fit: cover; }
.about-page .team-body { display:flex; flex-direction:column; gap:0.55rem; }
.about-page .team-name { margin:0; font-size:1.05rem; letter-spacing:0.05em; }
.about-page .team-bio { margin:0; font-size:0.78rem; line-height:1.45; color: var(--text-muted); }
.about-page .team-card .btn { align-self:flex-start; margin-top:auto; font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; padding:0.5rem 0.9rem; }
@media (min-width: 68.75rem) { .about-page .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:37.5rem){ .about-page .team-card { flex-direction:column; align-items:flex-start; } .about-page .team-photo { width:100%; max-width:10rem; } }

/* Allow scrolling for about page content while keeping sidebar fixed */
.about-page .page { max-width: none; width: 100%; }
.about-page .page { align-items: stretch; }
.about-page .nav-panel { position: sticky; top: 0; align-self: flex-start; height: 100vh; }
.about-page .main-content { overflow-y: auto; height: 100vh; }

/* Team modal refinements */
.team-modal .team-modal-photo-wrapper { width: 10rem; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: rgba(0,0,0,0.4); box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.5); margin: 0 0 1rem; }
.team-modal-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-modal #team-modal-desc { font-size: 0.95rem; line-height: 1.55; }
.team-card { cursor: pointer; }
.team-card:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.1875rem; }

/* Scrollbar styling (WebKit) */
.about-page .main-content::-webkit-scrollbar { width: 0.625rem; }
.about-page .main-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.about-page .main-content::-webkit-scrollbar-thumb { background: rgba(255,48,73,0.4); border-radius: 0.375rem; }
.about-page .main-content::-webkit-scrollbar-thumb:hover { background: rgba(255,48,73,0.6); }

/* Override: refined settings gear icon + spin animation */
.icon-settings { position: relative; width:1.125rem; height:1.125rem; display:block; }
.icon-settings::before { /* hub + teeth via shadows (refined uniform offsets) */
  content:""; position:absolute; top:50%; left:50%; width:0.25rem; height:0.25rem; background:currentColor; border-radius:50%; transform:translate(-50%,-50%);
  box-shadow:
    0 -0.375rem 0 0 currentColor,
    0 0.375rem 0 0 currentColor,
    0.375rem 0 0 0 currentColor,
    -0.375rem 0 0 0 currentColor,
    0.25rem 0.25rem 0 0 currentColor,
    -0.25rem -0.25rem 0 0 currentColor,
    0.25rem -0.25rem 0 0 currentColor,
    -0.25rem 0.25rem 0 0 currentColor;
}
.icon-settings::after { content:""; position:absolute; inset:0.1875rem; border:0.125rem solid currentColor; border-radius:50%; }

@keyframes settings-spin { to { transform: rotate(360deg); } }
/* Spin class applied via JS for progressive acceleration */
.icon-settings.spin { animation: settings-spin var(--gear-speed,0.8s) linear infinite; }
@media (prefers-reduced-motion: reduce) { .icon-settings.spin { animation: none !important; } }

/* Playlists Page (mirrors genre styles) */
.playlists-page .playlists-title { font-family:"Unica One","Archivo",sans-serif; letter-spacing:0.12em; margin:0 0 0.5rem; font-size:clamp(1.8rem,3vw,2.6rem); }
.playlists-page .playlists-header { margin-bottom:0.75rem; }
.playlists-page .playlists-toolbar { display:flex; flex-wrap:wrap; gap:0.9rem 1.2rem; align-items:center; margin-bottom:0.75rem; }
.playlists-page .playlist-search-input { min-width:15rem; }
.playlists-page .playlist-status { font-size:0.7rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); }
.playlists-page .playlist-grid { display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fill,minmax(10rem,1fr)); margin-top:0.75rem; }
.playlists-page .playlist-tile { position:relative; aspect-ratio:1; border-radius:1rem; display:flex; align-items:flex-end; padding:0.9rem 0.9rem 1rem; text-decoration:none; font-family:"Unica One","Archivo",sans-serif; letter-spacing:0.12em; font-size:1rem; color:var(--text-primary); background:rgba(255,255,255,0.05); border:0.0625rem solid rgba(255,255,255,0.08); overflow:hidden; transition:transform .3s ease, box-shadow .3s ease, background .3s ease; }
.playlists-page .playlist-tile span { position:relative; z-index:2; }
.playlists-page .playlist-tile { --tile-accent: rgba(255,48,73,0.35); }
.playlists-page .playlist-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x, 25%) var(--pointer-y, 75%), var(--tile-accent), transparent 70%);
  opacity: 0.85;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease, transform 0.35s ease;
  pointer-events: none;
}
.playlists-page .playlist-tile:hover, .playlists-page .playlist-tile:focus-visible { transform:translateY(-0.25rem); box-shadow:0 0.875rem 1.875rem -0.375rem rgba(0,0,0,0.55); }
.playlists-page .playlist-tile:hover::before, .playlists-page .playlist-tile:focus-visible::before { opacity:1; }

/* Playlist color variants */
.playlist-tile.mix { background:linear-gradient(145deg, rgba(255,48,73,0.3), rgba(40,0,10,0.85)); --tile-accent: rgba(255,48,73,0.55); }
.playlist-tile.study { background:linear-gradient(145deg, rgba(134,84,255,0.35), rgba(30,10,60,0.85)); --tile-accent: rgba(134,84,255,0.5); }
.playlist-tile.chill { background:linear-gradient(145deg, rgba(123,168,92,0.35), rgba(15,40,20,0.85)); --tile-accent: rgba(123,168,92,0.55); }
.playlist-tile.energy { background:linear-gradient(145deg, rgba(255,180,60,0.4), rgba(70,30,0,0.9)); --tile-accent: rgba(255,180,60,0.55); }
.playlist-tile.throwback { background:linear-gradient(145deg, rgba(0,0,0,0.6), rgba(30,30,30,0.9)); --tile-accent: rgba(255,255,255,0.3); }
.playlist-tile.drive { background:linear-gradient(145deg, rgba(255,255,255,0.1), rgba(60,60,70,0.8)); --tile-accent: rgba(134,84,255,0.45); }
.playlist-tile.gym { background:linear-gradient(145deg, rgba(255,86,126,0.35), rgba(65,0,15,0.85)); --tile-accent: rgba(255,86,126,0.55); }
.playlist-tile.calm { background:linear-gradient(145deg, rgba(64,132,255,0.35), rgba(10,25,55,0.85)); --tile-accent: rgba(64,132,255,0.55); }
.playlist-tile.coding { background:linear-gradient(145deg, rgba(86,214,137,0.35), rgba(10,55,35,0.85)); --tile-accent: rgba(86,214,137,0.55); }

.playlist-empty { font-size:0.85rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); margin-top:1.25rem; text-align:center; }
@media (min-width:40rem){ .playlists-page .playlist-grid { grid-template-columns:repeat(auto-fill,minmax(8.75rem,1fr)); } }
@media (min-width:52.5rem){ .playlists-page .playlist-grid { grid-template-columns:repeat(auto-fill,minmax(10rem,1fr)); } }
@media (min-width:68.75rem){ .playlists-page .playlist-grid { grid-template-columns:repeat(auto-fill,minmax(11.25rem,1fr)); } }

/* Scroll like About page */
.playlists-page .page { max-width:none; width:100%; }
.playlists-page .nav-panel { position:sticky; top:0; height:100vh; }
.playlists-page .main-content { overflow-y:auto; height:100vh; }

/* Playlist modal */
.playlist-modal-body { display:flex; flex-direction:row; gap:1.25rem; margin-top:0.5rem; }
.playlist-art-wrapper { width:11.25rem; aspect-ratio:1; border-radius:1rem; overflow:hidden; background:rgba(0,0,0,0.4); box-shadow:0 0.75rem 2rem rgba(0,0,0,0.5); flex-shrink:0; }
.playlist-art-wrapper img { width:100%; height:100%; object-fit:cover; display:block; }
.playlist-modal-content { flex:1; max-height:20rem; overflow:auto; padding-right:0.5rem; }
.playlist-tracks { margin:0; padding:0 0 0 1.25rem; display:flex; flex-direction:column; gap:0.35rem; font-size:0.85rem; }
.playlist-tracks li { line-height:1.35; display:flex; align-items:center; justify-content:space-between; gap:0.75rem; padding:0.45rem 0.6rem; border-radius:0.5rem; background:rgba(255,255,255,0.04); border:0.0625rem solid rgba(255,255,255,0.06); }
.playlist-tracks li span.track-title { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.playlist-tracks li span.track-time { color:var(--text-muted); font-size:0.7rem; letter-spacing:0.12em; }
.playlist-tracks li button.track-fav { background:rgba(255,255,255,0.05); border:0.0625rem solid rgba(255,255,255,0.1); width:1.875rem; height:1.875rem; border-radius:0.5rem; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); transition:background .25s ease, color .25s ease, border-color .25s ease; }
.playlist-tracks li button.track-fav .icon-heart { width:0.875rem; height:0.875rem; }
.playlist-tracks li button.track-fav[aria-pressed="true"] { background:rgba(255,48,73,0.25); border-color:rgba(255,48,73,0.6); color:var(--accent); }
.playlist-tracks li button.track-fav:focus-visible { outline:0.125rem solid var(--accent); outline-offset:0.125rem; }

/* Red scrollbar (same style concept as about page) */
.playlist-modal-content::-webkit-scrollbar { width:0.625rem; }
.playlist-modal-content::-webkit-scrollbar-track { background:rgba(255,255,255,0.04); }
.playlist-modal-content::-webkit-scrollbar-thumb { background:rgba(255,48,73,0.4); border-radius:0.375rem; }
.playlist-modal-content::-webkit-scrollbar-thumb:hover { background:rgba(255,48,73,0.6); }

/* Red scrollbar for playlists main scroll area (reusing accent) */
.playlists-page .main-content::-webkit-scrollbar { width:0.625rem; }
.playlists-page .main-content::-webkit-scrollbar-track { background:rgba(255,255,255,0.04); }
.playlists-page .main-content::-webkit-scrollbar-thumb { background:rgba(255,48,73,0.4); border-radius:0.375rem; }
.playlists-page .main-content::-webkit-scrollbar-thumb:hover { background:rgba(255,48,73,0.6); }

.playlist-actions .btn { display:inline-flex; align-items:center; gap:0.4rem; }

/* Heart / favourite icon */
.icon-heart { position:relative; width:1rem; height:1rem; display:inline-block; }
.icon-heart::before, .icon-heart::after { content:""; position:absolute; top:50%; left:50%; width:0.5625rem; height:0.5625rem; background:currentColor; border-radius:50%; transform:translate(-50%,-50%); }
.icon-heart::before { transform: translate(-75%,-50%); }
.icon-heart::after { transform: translate(-25%,-50%); }
.icon-heart { clip-path: polygon(50% 85%, 0 45%, 0 25%, 20% 10%, 35% 15%, 50% 30%, 65% 15%, 80% 10%, 100% 25%, 100% 45%); }
.playlist-actions [aria-pressed="true"] { background:rgba(255,48,73,0.25); border-color:rgba(255,48,73,0.6); color:var(--accent); }

@media (max-width:40rem){ .playlist-modal-body { flex-direction:column; } .playlist-art-wrapper { width:8.75rem; } }

/* ===================== */
/* Search Page Styles     */
/* ===================== */
.search-page .page { max-width: none; width: 100%; }
.search-page .nav-panel { position: sticky; top: 0; height: 100vh; }
.search-page .main-content { overflow-y: auto; height: 100vh; display: flex; flex-direction: column; gap: 1.75rem; }

.search-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.search-title { font-family: "Unica One","Archivo",sans-serif; letter-spacing: 0.12em; margin: 0 0 0.4rem; font-size: clamp(1.9rem,3.2vw,2.8rem); }

.search-suite { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; align-items: center; }
.search-filters { display: inline-flex; gap: 0.5rem; }
.search-status { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); flex: 1 1 100%; }

.search-results { display: flex; flex-direction: column; gap: 2.25rem; padding-bottom: 2rem; }
.search-group { display: flex; flex-direction: column; gap: 1rem; }
.group-heading { margin: 0; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

.results-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr)); }
@media (min-width: 40rem) { .results-grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); } }
@media (min-width: 52.5rem) { .results-grid { grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr)); } }
@media (min-width: 68.75rem) { .results-grid { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); } }

.result-card { position: relative; background: rgba(255,255,255,0.05); border: 0.0625rem solid rgba(255,255,255,0.08); border-radius: 0.875rem; padding: 0.85rem 0.9rem 0.9rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-primary); overflow: hidden; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; --card-accent: rgba(255,48,73,0.32); }
.result-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at var(--pointer-x, 25%) var(--pointer-y, 75%), var(--card-accent), transparent 70%); opacity:.85; mix-blend-mode:screen; pointer-events:none; transition: opacity .25s ease; }
.result-card:hover, .result-card:focus-visible { transform: translateY(-0.25rem); background: rgba(255,255,255,0.08); box-shadow: 0 0.875rem 1.875rem -0.375rem rgba(0,0,0,0.55); }
.result-card:hover::before, .result-card:focus-visible::before { opacity: 1; }
.result-card .r-title { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-card .r-meta { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

.result-card[data-type="playlist"] .r-meta { color: #ff8c3a; }
.result-card[data-type="podcast"] .r-meta { color: #53d769; }
.result-card[data-type="artist"] .r-meta { color: #6aa7ff; }
/* Per-type accent glow, similar to genre tiles */
.result-card[data-type="playlist"] { --card-accent: rgba(255,140,58,0.35); }
.result-card[data-type="podcast"] { --card-accent: rgba(83,215,105,0.35); }
.result-card[data-type="artist"] { --card-accent: rgba(106,167,255,0.35); }

.search-empty { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin: 1rem 0 0; }

/* Active chip style already exists (.chip.active); ensure pointer & focus style */
.search-filters .chip { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* Scrollbar styling (reuse accent similar to playlists/about) */
.search-page .main-content::-webkit-scrollbar { width: 0.625rem; }
.search-page .main-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.search-page .main-content::-webkit-scrollbar-thumb { background: rgba(255,48,73,0.4); border-radius: 0.375rem; }
.search-page .main-content::-webkit-scrollbar-thumb:hover { background: rgba(255,48,73,0.6); }

/* Reduce spacing slightly on smaller screens */
@media (max-width: 42.5rem) {
  .search-suite { flex-direction: column; align-items: stretch; }
  .search-status { order: 3; }
}

/* ===================== */
/* Contact Page Styles    */
/* ===================== */
.contact-page .page { max-width: none; width: 100%; }
.contact-page .nav-panel { position: sticky; top: 0; height: 100vh; }
.contact-page .main-content { overflow-y: auto; height: 100vh; display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 5vw, 3.5rem); }
.contact-page .main-content::-webkit-scrollbar { width: 0.625rem; }
.contact-page .main-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.contact-page .main-content::-webkit-scrollbar-thumb { background: rgba(255,48,73,0.4); border-radius: 0.375rem; }
.contact-page .main-content::-webkit-scrollbar-thumb:hover { background: rgba(255,48,73,0.6); }
.contact-header { display: flex; flex-direction: column; gap: clamp(0.75rem, 1.6vw, 1.25rem); padding: 0; }
.contact-eyebrow { margin: 0; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-size: 0.7rem; }
.contact-title { margin: 0; font-family: "Unica One","Archivo",sans-serif; letter-spacing: 0.12em; font-size: clamp(2.1rem, 4vw, 2.9rem); }
.contact-subtitle { margin: 0; max-width: 70ch; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.contact-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.2rem); padding: 0; list-style: none; }
.contact-stats div { background: rgba(255,255,255,0.04); border: 0.0625rem solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.contact-stats dt { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.contact-stats dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 22.5rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.4rem); }
.contact-card { background: rgba(255,255,255,0.04); border: 0.0625rem solid rgba(255,255,255,0.08); border-radius: 1.25rem; padding: clamp(1.2rem, 2.5vw, 1.6rem); display: flex; flex-direction: column; gap: 0.75rem; position: relative; overflow: hidden; }
.contact-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 25% 25%, rgba(255,48,73,0.18), transparent 75%); mix-blend-mode:screen; opacity:0.9; pointer-events:none; }
.contact-card h2 { margin: 0; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.contact-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; color: var(--text-primary); font-size: 0.82rem; }
.contact-card li { display: flex; align-items: center; gap: 0.5rem; letter-spacing: 0.04em; }
.contact-card span { font-size: 1rem; }
.contact-card .btn { align-self: flex-start; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; }

.contact-form-section { background: rgba(255,255,255,0.03); border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.contact-form-section::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 10%, rgba(134,84,255,0.28), transparent 70%); opacity:0.8; mix-blend-mode:screen; pointer-events:none; }
.contact-form-wrapper { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-wrapper h2 { margin: 0; font-size: 1.4rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-form-subtitle { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: inline-block; margin-bottom: 0.35rem; }
.field-group { display: flex; flex-direction: column; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select { background: rgba(255,255,255,0.05); border: 0.0625rem solid rgba(255,255,255,0.12); border-radius: 0.75rem; color: var(--text-primary); padding: 0.75rem 0.9rem; font-size: 0.92rem; font-family: "Archivo", system-ui, sans-serif; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form select:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.1875rem; }
.contact-form textarea { resize: vertical; min-height: 8.75rem; }
.field-inline { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-option { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; }
.checkbox-option input { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-option { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.chip-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-option span { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.9rem; border-radius: 62.44rem; border: 0.0625rem solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.62rem; color: var(--text-muted); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.chip-option input:focus-visible + span { outline: 0.125rem solid var(--accent); outline-offset: 0.1875rem; }
.chip-option input:checked + span { background: rgba(255,48,73,0.25); border-color: rgba(255,48,73,0.55); color: var(--accent); }
.contact-select { width: 100%; }
.contact-submit { align-self: flex-start; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; background: var(--accent); border-color: transparent; color: #0b0507; box-shadow: 0 1rem 2rem rgba(255,48,73,0.35); }
.contact-submit:hover,
.contact-submit:focus-visible { transform: translateY(-0.125rem); }
.contact-footnote { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 68.75rem) {
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 45rem) {
  .contact-page .main-content { padding: clamp(1.25rem, 6vw, 1.75rem); }
  .contact-header { padding: clamp(1.25rem, 6vw, 1.75rem); }
  .contact-form-section { padding: clamp(1.25rem, 6vw, 1.75rem); }
  .field-inline { gap: 0.8rem; }
}

/* ===================== */
/* Settings & Profile Modals */
/* ===================== */
.settings-overlay,
.profile-overlay { padding: clamp(2rem, 5vw, 3rem); align-items: flex-start; }

.settings-overlay.is-active .settings-modal,
.profile-overlay.is-active .profile-modal { transform: translateY(0) scale(1); opacity: 1; }

.settings-modal,
.profile-modal {
  width: min(32.5rem, 94vw);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.98), rgba(24, 24, 34, 0.96));
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 1.125rem;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
  transform: translateY(1rem) scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  outline: none;
  max-height: min(88vh, 45rem);
  padding: clamp(1.05rem, 2vw, 1.5rem);
  overflow: hidden;
}

.settings-scroll,
.profile-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  min-height: 0;
  padding-right: clamp(0.45rem, 0.9vw, 0.65rem);
  scrollbar-gutter: stable both-edges;
}

.settings-header { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.5rem; }
.settings-header h2 { margin: 0; font-family: "Unica One","Archivo",sans-serif; letter-spacing: 0.12em; font-size: clamp(1.6rem,3vw,2.4rem); }
.settings-eyebrow { margin: 0; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-size: 0.7rem; }
.settings-subtitle { margin: 0; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.06em; }

.settings-section,
.profile-section {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.settings-section h3,
.profile-section h3 { margin: 0; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.settings-section p,
.profile-section p { margin: 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.section-badge { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); background: rgba(255, 48, 73, 0.18); border: 0.0625rem solid rgba(255, 48, 73, 0.35); border-radius: 62.44rem; padding: 0.25rem 0.55rem; }

.profile-current { color: var(--text-primary); font-size: 0.88rem; }
.profile-role { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

.settings-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.settings-toggle-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.settings-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.toggle-copy { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.toggle-copy p { font-size: 0.75rem; letter-spacing: 0.04em; }

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.toggle-track {
  position: relative;
  width: 2.875rem;
  height: 1.625rem;
  border-radius: 62.44rem;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.24s ease;
}

.toggle-thumb {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  transition: transform 0.24s ease, background 0.24s ease;
}

.toggle-state { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.toggle-btn.is-on .toggle-track { background: rgba(255, 48, 73, 0.55); }
.toggle-btn.is-on .toggle-thumb { transform: translateX(1.25rem); background: #fff; }
.toggle-btn.is-on .toggle-state { color: var(--accent); }
.toggle-btn:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.25rem; border-radius: 62.44rem; }

.settings-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.settings-link {
  background: rgba(255, 255, 255, 0.05);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.settings-link:hover,
.settings-link:focus-visible {
  transform: translateY(-0.125rem);
  background: rgba(255, 48, 73, 0.18);
  border-color: rgba(255, 48, 73, 0.45);
}

.switch-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.profile-select {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: var(--text-primary);
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}
.profile-select:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.1875rem; }

.settings-footer {
  margin: 0.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-footnote { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

.btn.danger {
  background: var(--accent);
  border-color: transparent;
  color: #0b0507;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.danger:hover,
.btn.danger:focus-visible {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.875rem 1.875rem rgba(255, 48, 73, 0.45);
}

.settings-close { right: 0.75rem; top: 0.75rem; }
.settings-scroll::-webkit-scrollbar,
.profile-scroll::-webkit-scrollbar { width: 0.625rem; }
.settings-scroll::-webkit-scrollbar-track,
.profile-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.settings-scroll::-webkit-scrollbar-thumb,
.profile-scroll::-webkit-scrollbar-thumb { background: rgba(255,48,73,0.4); border-radius: 0.375rem; }
.settings-scroll::-webkit-scrollbar-thumb:hover,
.profile-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,48,73,0.6); }

.settings-scroll,
.profile-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,48,73,0.5) rgba(255,255,255,0.08); }

@media (max-width: 40rem) {
  .settings-overlay,
  .profile-overlay { padding: 1.5rem; }
  .settings-modal,
  .profile-modal { gap: 1rem; max-height: 92vh; }
  .settings-scroll,
  .profile-scroll { padding-right: 0.5rem; }
  .settings-toggle { align-items: flex-start; flex-direction: column; }
  .settings-actions { width: 100%; }
}

.profile-header { display: flex; flex-direction: column; gap: 0.4rem; padding: 0 0.5rem; }
.profile-eyebrow { margin: 0; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-size: 0.68rem; }
.profile-header h2 { margin: 0; font-family: "Unica One","Archivo",sans-serif; letter-spacing: 0.12em; font-size: clamp(1.7rem,3.2vw,2.5rem); }
.profile-subtitle { margin: 0; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.08em; }

.identity-card { display: flex; flex-direction: column; gap: 1.1rem; }
.identity-main { display: flex; gap: 1.25rem; align-items: stretch; flex-wrap: wrap; }
.profile-avatar { position: relative; width: 7.25rem; aspect-ratio: 1; border-radius: 1.125rem; overflow: hidden; background: linear-gradient(135deg, rgba(255, 48, 73, 0.65), rgba(135, 28, 195, 0.6)); display: grid; place-items: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0.8; }
.avatar-action { position: absolute; inset: auto 0 0 0; margin: 0 auto; width: 94%; transform: translateY(36%); background: rgba(9, 9, 13, 0.92); border: 0.0625rem solid rgba(255, 255, 255, 0.12); color: var(--text-primary); border-radius: 0.75rem; padding: 0.45rem 0.6rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.avatar-action:hover,
.avatar-action:focus-visible { transform: translateY(30%); background: rgba(255, 48, 73, 0.25); }

.identity-body { flex: 1; min-width: 12.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.identity-tagline { font-size: 0.82rem; line-height: 1.6; }
.identity-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.identity-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.identity-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.identity-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.875rem, 1fr)); gap: 0.65rem; margin: 0; }
.identity-stats div { background: rgba(255,255,255,0.04); border-radius: 0.75rem; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; border: 0.0625rem solid rgba(255,255,255,0.08); }
.identity-stats dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.identity-stats dd { margin: 0; font-size: 1.2rem; font-weight: 600; }

.activity-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.activity-timeline li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: rgba(255,255,255,0.03); border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 0.75rem; padding: 0.85rem 0.95rem; }
.activity-title { font-size: 0.85rem; font-weight: 600; }
.activity-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.timeline-cta { background: rgba(255,255,255,0.05); border: 0.0625rem solid rgba(255,255,255,0.16); border-radius: 0.75rem; padding: 0.55rem 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62rem; color: var(--text-primary); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.timeline-cta:hover,
.timeline-cta:focus-visible { transform: translateY(-0.125rem); background: rgba(255,48,73,0.18); border-color: rgba(255,48,73,0.35); }

.badge-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.badge-chip { padding: 0.45rem 0.75rem; border-radius: 62.44rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.58rem; background: rgba(255,48,73,0.14); border: 0.0625rem solid rgba(255,48,73,0.32); color: var(--accent); }

.access-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.access-grid article { display: flex; flex-direction: column; gap: 0.55rem; background: rgba(255,255,255,0.03); border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 0.75rem; padding: 0.85rem 0.95rem; }
.access-grid h4 { margin: 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); }
.access-grid ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.78rem; line-height: 1.55; }

.profile-footer { display: flex; flex-direction: column; gap: 0.75rem; padding: 0 0.5rem 0.25rem; }
.profile-footer-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.profile-footnote { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

.profile-schedule { background: var(--accent); border-color: transparent; color: #0b0507; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; box-shadow: 0 1rem 2.125rem rgba(255,48,73,0.4); }
.profile-schedule:hover,
.profile-schedule:focus-visible { transform: translateY(-0.125rem); }

@media (max-width: 45rem) {
  .activity-timeline li { align-items: flex-start; }
  .activity-timeline li > div { flex: 1 1 100%; }
  .timeline-cta { width: 100%; text-align: center; }
  .identity-main { flex-direction: column; }
  .profile-avatar { width: 8.75rem; }
}

/* Responsive scaling for different displays */
@media (max-width: 1400px) {
  html {
    font-size: clamp(10px, 1vw, 14px);
  }
}

@media (min-width: 1401px) and (max-width: 1920px) {
  html {
    font-size: clamp(14px, 1.1vw, 16px);
  }
}

@media (min-width: 1921px) {
  html {
    font-size: clamp(16px, 1.2vw, 20px);
  }
}

/* Prevent horizontal overflow */
body, .page, .main-content {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure left sidebar is always visible */
@media (max-width: 768px) {
  .left-sidebar {
    width: clamp(8rem, 12vw, 11.25rem);
  }
}

