/* ============================================================
   DRB CREATOR — Enhanced Public UI
   Design: Modern Minimalist · Editorial · White Space First
   Font: Inter (Google Fonts — as required by spec)
   Icons: Google Material Icons (no fill)
   Palette: Pure White / Near-black / Warm Grays
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,300&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* -------------------------------------------------------
   Design Tokens
   ------------------------------------------------------- */
:root {
  --white:          #ffffff;
  --off-white:      #fafaf9;
  --surface:        #f5f4f1;
  --surface-2:      #eceae5;
  --border:         #e8e7e2;
  --border-2:       #d8d7d1;
  --muted:          #a09f99;
  --text-secondary: #6b6a64;
  --text:           #1a1917;
  --black:          #0d0d0c;

  --accent-soft:    #f2f1ed;
  --danger:         #e8453c;
  --danger-soft:    #fef2f1;

  --font:       'Inter', sans-serif;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.12s var(--ease);
  --t-mid:  0.22s var(--ease);
  --t-slow: 0.4s var(--ease);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

/* -------------------------------------------------------
   Reset
   ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); }
ul { list-style: none; }
::selection { background: var(--text); color: var(--white); }

/* -------------------------------------------------------
   Animations
   ------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------------------------------------
   Layout
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}

/* -------------------------------------------------------
   HEADER
   ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--text);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  border-left: 1px solid var(--border-2);
  padding-left: 10px;
  margin-left: 2px;
}

.header-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  transition: all var(--t-fast);
}
.header-pill:hover { border-color: var(--text); color: var(--text); }
.header-pill .material-icons { font-size: 13px; }

/* -------------------------------------------------------
   BANNER AD
   ------------------------------------------------------- */
.banner-section {
  padding: 24px 0 0;
  animation: fadeIn 0.6s var(--ease) 0.1s both;
}

.banner-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  line-height: 0;
}

.banner-wrap a { display: block; }

.banner-wrap img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.banner-placeholder {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.banner-placeholder .material-icons { font-size: 15px; }

/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */
.hero-section {
  padding: 56px 0 40px;
  animation: fadeUp 0.55s var(--ease) 0.05s both;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.hero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-heading strong {
  font-weight: 700;
  display: block;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 380px;
  line-height: 1.7;
}

/* -------------------------------------------------------
   CONTROLS
   ------------------------------------------------------- */
.controls-section {
  padding-bottom: 0;
  margin-bottom: 28px;
  animation: fadeUp 0.55s var(--ease) 0.12s both;
}

.controls-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.search-box .material-icons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--muted);
  pointer-events: none;
  transition: color var(--t-fast);
}
.search-box:focus-within .material-icons { color: var(--text); }

.search-input {
  width: 100%;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0 16px 0 42px;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  background: var(--white);
  border-color: var(--border-2);
  box-shadow: 0 0 0 3px rgba(26,25,23,0.05);
}

.track-count {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Filter chips row */
.filter-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.filter-chips-row::-webkit-scrollbar { display: none; }

.chip {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}

/* -------------------------------------------------------
   MUSIC GRID
   ------------------------------------------------------- */
.music-section {
  padding-bottom: 80px;
  animation: fadeUp 0.55s var(--ease) 0.18s both;
}

.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.grid-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* -------------------------------------------------------
   MUSIC CARD
   ------------------------------------------------------- */
.music-card {
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast);
}
.music-card:hover { background: var(--off-white); }
.music-card:active { background: var(--surface); }

.card-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface);
}

.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.music-card:hover .card-cover { transform: scale(1.06); }

/* Play overlay */
.card-play-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-mid);
  background: rgba(250,250,249,0.18);
}
.music-card:hover .card-play-ring { opacity: 1; }

.ring-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transform: scale(0.88);
  transition: transform var(--t-mid);
}
.music-card:hover .ring-btn { transform: scale(1); }
.ring-btn .material-icons { font-size: 22px; color: var(--text); }

/* Badge */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.badge-hot    { background: rgba(255,255,255,0.96); color: #c0392b; }
.badge-new    { background: rgba(26,25,23,0.85); color: var(--white); }
.badge-free   { background: rgba(255,255,255,0.88); color: var(--text); }
.badge-tagged { background: rgba(255,255,255,0.9); color: var(--text-secondary); }
.badge-untagged { background: rgba(26,25,23,0.65); color: var(--white); }

/* Card body */
.card-body {
  padding: 14px 16px 12px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  line-height: 1.3;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-producer {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-type-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-stats-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--muted);
}
.mini-stat .material-icons { font-size: 12px; }

.card-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-dl {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--text);
  color: var(--white);
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-dl:hover { background: #2e2d2a; transform: translateY(-1px); }
.btn-dl:active { transform: none; }
.btn-dl .material-icons { font-size: 12px; }

.btn-heart {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--muted);
  transition: all var(--t-fast);
}
.btn-heart:hover,
.btn-heart.active {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}
.btn-heart .material-icons { font-size: 12px; }

/* -------------------------------------------------------
   SKELETON
   ------------------------------------------------------- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.skeleton-card { background: var(--white); }

.sk {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
}
.sk-cover { width: 100%; padding-top: 100%; border-radius: 0; }
.sk-line  { height: 10px; margin: 13px 16px 5px; }
.sk-line.w80 { width: 80%; }
.sk-line.w50 { width: 50%; }
.sk-line.w40 { width: 40%; margin-top: 10px; }

/* -------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------- */
.empty-state {
  grid-column: 1/-1;
  background: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.empty-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.empty-icon .material-icons { font-size: 22px; color: var(--muted); }
.empty-state h3 {
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 4px;
}
.empty-state p { font-size: 0.82rem; color: var(--muted); }

/* -------------------------------------------------------
   PLAYER SHEET
   ------------------------------------------------------- */
.player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,249,248,0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}
.player-overlay.active { opacity: 1; pointer-events: all; }

.player-sheet {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: var(--shadow-xl);
}
.player-overlay.active .player-sheet { transform: translateY(0); }
.player-sheet::-webkit-scrollbar { width: 0; }

/* Drag handle */
.drag-handle {
  display: flex;
  justify-content: center;
  padding: 14px 0 0;
}
.drag-handle-bar {
  width: 32px; height: 3px;
  background: var(--border-2);
  border-radius: var(--r-full);
}

/* Player track info */
.player-track-area {
  padding: 18px 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.player-art {
  width: 84px;
  height: 84px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.player-info-col {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.player-badge-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-bottom: 7px;
}

.player-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-credits-row {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.player-credits-row strong { color: var(--text-secondary); font-weight: 500; }

.player-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ps-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--muted);
}
.ps-stat .material-icons { font-size: 12px; }
.ps-stat .ps-val { color: var(--text); font-weight: 500; }

/* Close */
.btn-player-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.btn-player-close:hover { background: var(--surface-2); color: var(--text); }
.btn-player-close .material-icons { font-size: 15px; }

/* Audio controls */
.player-controls-area {
  padding: 22px 24px 18px;
}

/* Progress */
.progress-wrap {
  position: relative;
  height: 2px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  margin-bottom: 7px;
  cursor: pointer;
}
.progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--text); border-radius: var(--r-full);
  pointer-events: none; transition: width 0.1s linear;
}
.progress-thumb {
  position: absolute; top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text);
  box-shadow: var(--shadow-xs);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.progress-wrap:hover .progress-thumb { opacity: 1; }
.progress-input {
  position: absolute; inset: -10px 0;
  opacity: 0; cursor: pointer; width: 100%; height: auto;
}

.time-labels {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

/* Controls */
.controls-row {
  display: flex; align-items: center;
  justify-content: center; gap: 18px;
}

.btn-play-main {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--text); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast), background var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.btn-play-main:hover { transform: scale(1.06); }
.btn-play-main:active { transform: scale(0.96); }
.btn-play-main .material-icons { font-size: 26px; }

.btn-player-action {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.btn-player-action:hover { border-color: var(--text); color: var(--text); background: var(--surface); }
.btn-player-action.hearted { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.btn-player-action .material-icons { font-size: 17px; }

/* Separator */
.player-sep {
  height: 1px; background: var(--border);
  margin: 0 24px;
}

/* Comments */
.player-comments-area {
  padding: 18px 24px 28px;
}

.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

/* Compose area */
.compose-area {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 16px;
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.compose-area:focus-within {
  border-color: var(--border-2); background: var(--white);
}

.compose-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.compose-field {
  flex: 1;
  min-width: 80px;
  background: transparent;
  border: none; outline: none;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0;
}
.compose-field::placeholder { color: var(--muted); }

.compose-sep {
  width: 1px; background: var(--border);
  align-self: stretch;
}

.compose-bar {
  height: 1px; background: var(--border); margin-bottom: 10px;
}

.compose-actions {
  display: flex; align-items: center; justify-content: space-between;
}
.char-hint { font-size: 0.7rem; color: var(--muted); }

.btn-send {
  height: 28px; padding: 0 13px;
  border-radius: var(--r-full);
  background: var(--text); color: var(--white);
  font-size: 0.72rem; font-weight: 600;
  transition: background var(--t-fast), opacity var(--t-fast);
}
.btn-send:hover { background: #2e2d2a; }
.btn-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* Comment list */
.comment-list {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 220px; overflow-y: auto;
}
.comment-list::-webkit-scrollbar { width: 2px; }
.comment-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.c-item {
  display: flex; gap: 10px; align-items: flex-start;
}
.c-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem; font-weight: 700; color: var(--text-secondary);
}
.c-body { flex: 1; min-width: 0; }
.c-name {
  font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 1px;
}
.c-text {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
}
.c-time { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }

.no-comments-msg {
  text-align: center; padding: 20px 0;
  color: var(--muted); font-size: 0.82rem;
}

/* -------------------------------------------------------
   SNACKBAR
   ------------------------------------------------------- */
.snackbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--text);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-mid), transform var(--t-mid);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-md);
  letter-spacing: -0.01em;
}
.snackbar.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.72rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.72rem; color: var(--muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text); }

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 960px) {
  .music-grid, .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-section { padding: 40px 0 32px; }
  .hero-heading { font-size: 1.9rem; }
  .logo-tagline { display: none; }
  .controls-top { flex-wrap: wrap; }
  .search-box { max-width: 100%; width: 100%; }
  .music-grid, .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-track-area { padding: 16px 18px 0; gap: 14px; }
  .player-art { width: 68px; height: 68px; }
  .player-title { font-size: 0.95rem; }
  .player-controls-area { padding: 18px 18px 14px; }
  .player-sep { margin: 0 18px; }
  .player-comments-area { padding: 16px 18px 24px; }
}

@media (max-width: 390px) {
  .music-grid, .skeleton-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .card-body { padding: 10px 12px 10px; }
  .card-title { font-size: 0.78rem; }
}

/* -------------------------------------------------------
   Scrollbar
   ------------------------------------------------------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* -------------------------------------------------------
   FOOTER LINK BUTTONS (replace <a> tags)
   ------------------------------------------------------- */
.footer-link-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--t-fast);
  letter-spacing: -0.01em;
}
.footer-link-btn:hover { color: var(--text); }

/* -------------------------------------------------------
   INFO MODALS — Terms & Contact
   ------------------------------------------------------- */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 249, 248, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.info-modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 540px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.info-modal-overlay.active .info-modal-box {
  transform: translateY(0) scale(1);
}

/* Header row */
.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  flex-shrink: 0;
}

.info-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-modal-icon {
  font-size: 20px;
  color: var(--text-secondary);
}

.info-modal-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

/* Close button */
.info-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.info-modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: rotate(90deg);
}
.info-modal-close .material-icons { font-size: 16px; }

/* Divider */
.info-modal-divider {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scrollable body */
.info-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  letter-spacing: -0.005em;
}

/* Typography inside modal body */
.info-modal-body p {
  margin-bottom: 14px;
}
.info-modal-body p:last-child { margin-bottom: 0; }

.info-modal-body strong {
  color: var(--text);
  font-weight: 600;
}

.info-modal-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}
.info-modal-body h3:first-child { margin-top: 0; }

.info-modal-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.info-modal-body ul li {
  padding-left: 16px;
  position: relative;
  color: var(--text-secondary);
}

.info-modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.info-modal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-2);
  transition: text-decoration-color var(--t-fast);
}
.info-modal-body a:hover {
  text-decoration-color: var(--text);
}

/* Scrollbar inside modal */
.info-modal-body::-webkit-scrollbar { width: 4px; }
.info-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .info-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .info-modal-box {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 85vh;
    transform: translateY(100%);
  }
  .info-modal-overlay.active .info-modal-box {
    transform: translateY(0);
  }
}
