/* ══════════════════════════════════════════
   RELAY — Base
   ══════════════════════════════════════════ */

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

html, body {
  height: 100%;
  background: var(--relay-bg);
  color: var(--relay-text);
  font-family: var(--relay-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--relay-surface-2);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--relay-cyan-dim);
}

/* ── Page header ── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--relay-border);
  padding: 12px 24px;
}

.page-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--relay-surface);
  border: 1px solid var(--relay-border);
  border-radius: var(--relay-radius-sm);
  padding: 8px 14px;
  transition: border-color var(--relay-transition);
}

.header-search:focus-within {
  border-color: var(--relay-border-active);
}

.header-search i {
  color: var(--relay-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--relay-text);
  font-size: 0.9rem;
}

.header-search input::placeholder {
  color: var(--relay-text-muted);
}

.header-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--relay-text-muted);
  font-size: 1.1rem;
  padding: 6px;
}

/* ── Content sections ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--relay-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Live dot ── */
.live-dot-sm {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--relay-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--relay-cyan-glow);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 var(--relay-cyan-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* ── Genre chips ── */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--relay-border);
  background: var(--relay-surface);
  color: var(--relay-text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--relay-transition);
}

.genre-chip:hover {
  border-color: var(--relay-border-active);
  color: var(--relay-cyan);
}

.genre-chip.active {
  background: var(--relay-cyan-dim);
  border-color: var(--relay-border-active);
  color: var(--relay-cyan);
  font-weight: 600;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--relay-text-muted);
  text-align: center;
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1rem;
  font-weight: 500;
}

.empty-state small {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── Skeletons ── */
.card-skeleton,
.chip-skeleton {
  background: linear-gradient(90deg, var(--relay-surface) 25%, var(--relay-surface-2) 50%, var(--relay-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--relay-radius);
}

.card-skeleton {
  height: 180px;
}

.chip-skeleton {
  width: 80px;
  height: 32px;
  border-radius: 99px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header {
    padding: 10px 16px;
  }

  .page-content {
    padding: 20px 16px 32px;
    gap: 28px;
  }

  .header-menu-btn {
    display: flex;
  }
}
