/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

:root {
  --bg: #0b0714;
  --bg-2: #120c22;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --text: #f5f3fa;
  --text-dim: #b7aecb;
  --accent: #b96bff;
  --accent-2: #ff5fa2;
  --accent-3: #5fd2ff;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(185,107,255,0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255,95,162,0.28), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(95,210,255,0.22), transparent 45%),
    var(--bg);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(28px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.avatar-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(185,107,255,0.35);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 22px;
  display: block;
  background: var(--bg-2);
}

.name {
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 4px 0 0;
  background: linear-gradient(90deg, #fff, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--accent-3);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.bio {
  display: inline-block;
  margin: 6px 0 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 320px;
}

.bio-mail {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}
.bio-mail:active { color: var(--accent-3); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 24px rgba(255,95,162,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(255,95,162,0.35);
}
.btn-primary .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { margin-top: 34px; }

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 0 0 14px;
  text-align: center;
}

/* ---------- Social grid ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  min-height: 76px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.social-item:active { transform: scale(0.94); background: rgba(255,255,255,0.12); }
.social-item .icon { width: 24px; height: 24px; }
.social-item span { line-height: 1.1; }

@media (max-width: 360px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- News / mixes ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card,
.playlist-card {
  display: block;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.news-card:active,
.playlist-card:active { transform: scale(0.98); }

.news-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.news-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb .icon { width: 24px; height: 24px; color: #fff; }

.news-text { flex: 1; min-width: 0; }

.news-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-tag {
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(185,107,255,0.2);
  color: var(--accent-3);
}

.news-embed {
  border-top: 1px solid var(--card-border);
}
.news-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 44px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,14,32,0.95);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
