/* ── Variables ────────────────────────────────────────────────── */
:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e6e3;
  --text-muted: #888;
  --text-faint: #555;
  --accent: #e8c87a;
  --accent-dim: rgba(232, 200, 122, 0.12);
  --red: #e05c5c;
  --green: #5ce07a;
  --radius: 6px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.nav-link--muted { color: var(--text-faint); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #0e0e0e;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text); border-color: var(--text-faint); }

/* ── Main & Footer ────────────────────────────────────────────── */
.main { flex: 1; padding: 0 2.5rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-faint); }
.footer-links a:hover { color: var(--text-muted); }

/* ── Flash messages ───────────────────────────────────────────── */
.flash-container { padding: 1rem 0; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.flash--success { background: rgba(92,224,122,0.1); color: var(--green); }
.flash--error { background: rgba(224,92,92,0.1); color: var(--red); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  max-width: 640px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 2.5rem 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ── Grids ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid--ratings { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--search { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── Rating Card ──────────────────────────────────────────────── */
.rating-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.rating-card:hover { border-color: var(--text-faint); transform: translateY(-2px); }
.rating-card__thumb { position: relative; aspect-ratio: 16/9; }
.rating-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rating-card__score {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.rating-card__info { padding: 0.85rem; flex: 1; }
.rating-card__title { font-size: 0.875rem; font-weight: 400; margin-bottom: 0.3rem; line-height: 1.4; }
.rating-card__meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.rating-card__user { color: var(--accent); }
.rating-card__review { font-size: 0.78rem; color: var(--text-muted); font-style: italic; line-height: 1.4; }

/* ── Video Card (search) ──────────────────────────────────────── */
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.video-card:hover { border-color: var(--text-faint); transform: translateY(-2px); }
.video-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-card__thumb img { transform: scale(1.03); }
.video-card__info { padding: 0.85rem; }
.video-card__title { font-size: 0.875rem; font-weight: 400; line-height: 1.4; margin-bottom: 0.3rem; }
.video-card__channel { font-size: 0.75rem; color: var(--accent); margin-bottom: 0.2rem; }
.video-card__date { font-size: 0.72rem; color: var(--text-faint); }

/* ── Video Page ───────────────────────────────────────────────── */
.video-page { padding: 2.5rem 0; }
.video-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .video-hero { grid-template-columns: 1fr; } }
.video-hero__thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.video-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-hero__thumb:hover .video-hero__play { opacity: 1; }
.video-hero__channel { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.video-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.video-hero__date { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1.5rem; }

.video-stats { margin-bottom: 1.5rem; }
.video-stats__avg { display: flex; align-items: baseline; gap: 0.75rem; }
.video-stats__score { font-family: var(--font-serif); font-size: 2.5rem; color: var(--accent); }
.video-stats__label { font-size: 0.8rem; color: var(--text-muted); }
.video-stats__none { font-size: 0.875rem; color: var(--text-muted); }

/* ── Star Rating Widget ───────────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}
.star-half {
  color: var(--border);
  transition: color 0.1s;
  padding: 0;
  margin: 0;
  display: inline-block;
  width: 1.8rem;
  text-align: center;
}
.star-half.active { color: var(--accent); }
.rate-widget { margin-top: 1rem; }
.rate-widget__label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.star-half.hover { color: var(--accent); opacity: 0.7; }

.review-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.75rem;
  resize: vertical;
  min-height: 90px;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.review-input:focus { outline: none; border-color: var(--accent); }
.login-prompt { font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; }
.login-prompt a { color: var(--accent); }

/* ── Reviews ──────────────────────────────────────────────────── */
.reviews-section { border-top: 1px solid var(--border); padding-top: 2rem; }
.reviews-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.review-item__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.review-item__user { color: var(--accent); font-size: 0.875rem; font-weight: 500; }
.review-item__score { font-size: 0.8rem; color: var(--text-muted); }
.review-item__date { font-size: 0.75rem; color: var(--text-faint); margin-left: auto; }
.review-item__text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Profile ──────────────────────────────────────────────────── */
.profile-page { padding: 2.5rem 0; }
.profile-header { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 3rem; }
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  flex-shrink: 0;
}
.profile-username {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.profile-username { display: inline; }
.profile-bio { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.profile-stats { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }
.profile-stats strong { color: var(--text); }

/* ── Auth ─────────────────────────────────────────────────────── */
.auth-page { display: flex; justify-content: center; padding: 5rem 0; }
.auth-card { width: 100%; max-width: 380px; }
.auth-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.auth-switch { font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.auth-switch a { color: var(--accent); }

/* ── Search Bar ───────────────────────────────────────────────── */
.search-bar-wrap { padding: 2.5rem 0 2rem; }
.search-form { display: flex; gap: 0.75rem; max-width: 600px; }
.search-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.7rem 1rem;
  transition: border-color 0.15s;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.results-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.results-count strong { color: var(--text); }
.empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 2rem 0; }
.search-placeholder { color: var(--text-faint); font-size: 0.9rem; padding: 4rem 0; text-align: center; }

.badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.6rem; }
.badge { font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.55rem; border-radius: 20px; }
.badge--founder { background: rgba(240,192,96,0.15); color: var(--accent); border: 1px solid rgba(240,192,96,0.4); }
.badge--vip     { background: rgba(167,139,250,0.15); color: var(--purple); border: 1px solid rgba(167,139,250,0.4); }
.badge--beta    { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }

.profile-username-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.3rem; }
.profile-username-row .profile-username { margin-bottom: 0; }
.profile-username-row .badge-row { margin-bottom: 0; }

/* ── Feed layout ───────────────────────────────────────────────── */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0;
}
@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* ── Timeline item ─────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-radius: var(--radius);
}
.tl-item:first-child { padding-top: 0; }
.tl-item:hover { background: var(--surface); padding-left: 0.5rem; padding-right: 0.5rem; }

.tl-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  align-self: start;
  flex-shrink: 0;
}
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tl-score-badge {
  position: absolute;
  bottom: 5px; right: 6px;
  background: rgba(0,0,0,0.82);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.tl-body { display: flex; flex-direction: column; gap: 0.3rem; }

.tl-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.tl-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tl-user { color: var(--accent); font-weight: 500; }

.tl-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
}
.stars { display: flex; gap: 1px; align-items: center; line-height: 1; }
.star { width: 12px; height: 12px; display: inline-flex; align-items: center; }
.tl-score-text { font-size: 0.7rem; font-weight: 700; color: var(--accent); line-height: 1; }
.star svg { width: 100%; height: 100%; }
.tl-review {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.widget-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.widget-thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: block;
}
.widget-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.widget-thumb:hover img { opacity: 0.7; }
.widget-thumb .ws {
  position: absolute;
  bottom: 3px; right: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,0,0,0.8);
  padding: 1px 4px;
  border-radius: 2px;
}

.widget-list { display: flex; flex-direction: column; gap: 0.65rem; }
.widget-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.widget-item-thumb {
  width: 54px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
}
.widget-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-item-title {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.15rem;
}
.widget-item:hover .widget-item-title { color: var(--accent); }
.widget-item-score { font-size: 0.68rem; font-weight: 700; color: var(--accent); }
.widget-item-user { font-size: 0.68rem; color: var(--text-faint); margin-left: 0.3rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.stat-label { color: var(--text-muted); }
.stat-value { font-weight: 600; color: var(--text); }
.stat-value.gold { color: var(--accent); }

/* ── Notification bell ─────────────────────────────────────────── */
.notif-bell { position: relative; }

.notif-bell__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.15s;
}
.notif-bell__btn:hover { color: var(--text); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #0e0e0e;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
}

.notif-dropdown__header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.notif-dropdown__list { max-height: 360px; overflow-y: auto; }

.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.notif-item:last-child { border-bottom: none; }
.notif-item--unread { background: var(--accent-dim); color: var(--text); }
.notif-item a { color: var(--accent); }
.notif-item__time { font-size: 0.7rem; color: var(--text-faint); flex-shrink: 0; }

.notif-empty, .notif-loading {
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}

/* ── Charts ───────────────────────────────────────────────────── */
.charts-page {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.charts-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.charts-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.charts-tab:hover { color: var(--text); }

.charts-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.charts-header { margin-bottom: 1.5rem; }

.charts-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.charts-sub {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0;
}

.chart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.chart-item:hover { background: var(--surface); }

.chart-rank {
  font-size: 1rem;
  color: var(--text-faint);
  font-weight: 500;
  width: 2rem;
  text-align: right;
  flex-shrink: 0;
}

.chart-item:nth-child(1) .chart-rank { color: var(--accent); font-size: 1.1rem; }
.chart-item:nth-child(2) .chart-rank { color: #aaa; }
.chart-item:nth-child(3) .chart-rank { color: #a0714f; }

.chart-thumb {
  flex-shrink: 0;
  width: 100px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
}

.chart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chart-body {
  flex: 1;
  min-width: 0;
}

.chart-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.chart-title:hover { color: var(--accent); }

.chart-channel {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.chart-count {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.chart-score-big {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  width: 3rem;
  text-align: center;
  color: var(--accent);
}

.footer-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  opacity: 0.6;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.footer-flag:hover {
  opacity: 1;
}

/* ── Hamburger ────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14,14,14,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 100;
  }
  .nav-links.open { display: flex; }

  .nav-link,
  .nav-links .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0;
  }
  .nav-links .btn {
    margin: 0.5rem 1.25rem;
    width: calc(100% - 2.5rem);
    justify-content: center;
  }

  .notif-bell { width: 100%; }
  .notif-bell__btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    justify-content: flex-start;
    font-size: 0.95rem;
    gap: 0.5rem;
  }
  .notif-bell__btn::before { content: 'Notifications'; color: var(--text-muted); }
  .notif-dropdown { position: fixed; top: auto; left: 1rem; right: 1rem; width: auto; }

  .main { padding: 0 1.25rem; }
  .footer { padding: 1.5rem 1.25rem; flex-direction: column; gap: 1rem; text-align: center; }
}