/* ═══════════════════════════════════════════════════════════════
   Playloudr · page layer for the v3 chrome.
   Loads AFTER playloudr-v3.css; reuses its tokens.
   Covers Dashboard (stat grid · panels · lists) and Smart Link
   Analytics (metric strip · activity chart). Headings = --display,
   body = --ui, data = --mono. Accent + warm follow the live tweaks.
   ═══════════════════════════════════════════════════════════════ */

/* ───── Stat cards ───── */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-card);
  display: flex; flex-direction: column;
}
.stat-label {
  font-family: var(--ui);
  font-size: 11px; font-weight: 700; color: var(--gray-500);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.stat-value,
.stat-value-pct {
  font-family: var(--display);
  font-size: 40px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 18px; color: var(--ink);
}
.stat-desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0;
}
.stat-desc + .stat-desc { margin-top: 10px; }

/* ───── Panels ───── */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--sh-card);
}
.panel-head { margin-bottom: 18px; }
.panel-title {
  font-family: var(--display);
  font-size: 19px; font-weight: 700; letter-spacing: -0.018em; margin: 0 0 4px;
  color: var(--ink); line-height: 1.1;
}
.panel-sub {
  font-size: 13.5px; color: var(--gray-500); margin: 0; line-height: 1.5;
}
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ───── List rows ───── */
.list { display: flex; flex-direction: column; gap: 4px; }
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background .12s;
}
.list-row:hover { background: var(--gray-50); }
.list-row.highlight { background: var(--blue-soft); }
.list-row.highlight:hover { background: var(--blue-soft); }
.list-cover {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
}
.list-grow { flex: 1; min-width: 0; }
.list-title {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.list-meta {
  font-size: 12px; color: var(--gray-500); margin-top: 3px;
}
.list-end { text-align: right; flex-shrink: 0; }
.list-num {
  font-family: var(--ui);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.list-num-l { font-size: 11.5px; color: var(--gray-500); margin-top: 2px; }

/* Performer extra columns */
.perf-cols { display: flex; gap: 28px; }
.perf-col { text-align: right; }
.perf-v {
  font-family: var(--ui);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.perf-l {
  font-size: 11.5px; color: var(--gray-500); margin-top: 2px;
}

/* ───── Analytics · activity card ───── */
.activity-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; margin-bottom: 18px; box-shadow: var(--sh-card);
  position: relative;
}
.activity-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.activity-status {
  width: 26px; height: 26px; border-radius: var(--r-full);
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metric-row {
  display: flex; gap: 0; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.metric-cell {
  flex: 1; padding: 16px 22px;
  border-right: 1px solid var(--line);
}
.metric-cell:last-child { border-right: 0; }
.metric-cell.active { background: var(--blue-tint); }
.metric-cell.active .metric-label,
.metric-cell.active .metric-value { color: var(--blue-600); }
.metric-label {
  font-family: var(--ui);
  font-size: 10.5px; font-weight: 700; color: var(--gray-500);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.metric-value {
  font-family: var(--display);
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
  line-height: 1; color: var(--ink);
}
.metric-sub {
  font-size: 12px; color: var(--gray-500); margin-top: 6px;
}

.legend {
  display: flex; gap: 20px; margin-bottom: 14px;
  padding-left: 50px;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 500;
}
.legend-dash {
  width: 22px; height: 2.5px; border-radius: 2px;
}
.legend-visits { background: var(--blue-500); }
.legend-unique { background: var(--warm-2); }
.legend-clicks { background: var(--green); }

.chart { width: 100%; height: 320px; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-axis { font-family: var(--mono); font-size: 11px; fill: var(--gray-400); }
.chart-visits { fill: none; stroke: var(--blue-500); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart-unique { fill: none; stroke: var(--warm-2);  stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.chart-clicks { fill: none; stroke: var(--green);   stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ───── Cover art (distinct gradient per release) ───── */
.cover-synthwave {
  background:
    radial-gradient(circle at 30% 38%, #FFB1CC 0%, transparent 40%),
    linear-gradient(180deg, #FF6B3D 0%, #FF2D7A 55%, #8B3F66 100%);
}
.cover-secondera {
  background:
    radial-gradient(circle at 80% 22%, #7FA8FF 0%, transparent 30%),
    linear-gradient(180deg, #1F2937 0%, #0D1226 80%);
  position: relative;
}
.cover-secondera::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(45,127,230,0.45) 0%, transparent 20%);
  border-radius: inherit;
}
.cover-firstera {
  background:
    radial-gradient(circle at 50% 45%, #2D7FE6 0%, transparent 25%),
    linear-gradient(180deg, #14224A 0%, #1B2D5E 50%, #08122B 100%);
  position: relative;
}
.cover-firstera::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, transparent 0%, #08122B 100%);
  border-radius: inherit;
}
