/* ═══════════════════════════════════════════════════════
   Nigerian Certified — main stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --surface2: rgba(152,39,29,.04);
  --surface3: rgba(152,39,29,.06);
  --border-hover: rgba(152,39,29,.18);
  --ng-green: #10a760;
  --ng-dark: #0f7e4a;
  --ng-light: #ffd075;
  --shadow-card: var(--shadow);
  --shadow-hover: var(--shadow-hover);
  --transition: .22s cubic-bezier(.2,.65,.3,1);
  --panel-fill: rgba(255,255,255,.98);
  --panel-fill-soft: rgba(255,255,255,.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

main {
  flex: 1;
  width: min(1280px, 100%);
  margin-inline: auto;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
  padding: 14px 18px;
  height: auto;
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(92,64,39,.09);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.3px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(84,144,114,.4), 0 3px 10px rgba(0,0,0,.3);
}
.nav-brand:hover { text-decoration: none; }

/* Mini Nigerian flag (3 vertical stripes) */
.ng-flag-mini {
  display: inline-flex;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}
.ng-flag-mini span { display: block; }
.ng-flag-mini span:nth-child(1),
.ng-flag-mini span:nth-child(3) { width: 10px; background: var(--ng-green); }
.ng-flag-mini span:nth-child(2) { width: 8px; background: #fff; }

.nav-links { display: flex; gap: 6px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav-link.active {
  background: rgba(152, 39, 29, .10);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(152,39,29,.16);
}

/* ── Page header ── */
.page-header {
  width: min(1280px, calc(100% - 32px));
  margin: 18px auto 0;
  background: var(--surface-strong);
  padding: 58px 28px 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  text-align: left;
  box-shadow: var(--shadow);
}
.page-header::after { display: none; }
.page-header.small { padding: 42px 28px 34px; }

.header-inner { position: relative; z-index: 1; }

/* Large Nigerian flag decoration */
.ng-flag-large {
  display: inline-flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
  margin-bottom: 18px;
  gap: 2px;
}
.ng-flag-large span { display: block; }
.nf-g { width: 28px; background: #10a760; }
.nf-w { width: 28px; background: #ffffff; }

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -.5px;
}

.subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 20px 24px;
  margin-top: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  min-width: 80px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.stat-num  { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .5px; margin-top: 3px; opacity: .85; }

.stat-chip.total         { background: rgba(244,181,68,.12); color: var(--heading); }
.stat-chip.diamond       { background: var(--c-diamond-bg); color: var(--c-diamond-fg); }
.stat-chip.multi-platinum{ background: var(--c-mplat-bg); color: var(--c-mplat-fg); }
.stat-chip.gold          { background: var(--c-gold-bg); color: var(--c-gold-fg); }
.stat-chip.silver        { background: var(--c-silver-bg); color: var(--c-silver-fg); }

/* ── Legend ── */
.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  margin-top: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: .8rem;
  color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.dot.diamond       { background: var(--c-diamond-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dot.multi-platinum{ background: var(--c-mplat-bg); }
.dot.platinum      { background: var(--c-plat-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dot.gold          { background: var(--c-gold-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.dot.silver        { background: var(--c-silver-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* ── Controls bar ── */
.controls-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  margin-top: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-wrap {
  position: relative;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
}
.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.clear-btn:hover { color: var(--text); }

.ctrl-input,
.ctrl-select {
  padding: 9px 14px;
  background: var(--panel-fill-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.ctrl-input:focus,
.ctrl-select:focus  {
  border-color: var(--ng-light);
  box-shadow: 0 0 0 3px rgba(152, 39, 29, .10);
  background: var(--surface-strong);
}
.ctrl-select        { cursor: pointer; }
.ctrl-select option { background: var(--surface2); }

/* Keep icon/clear button spacing for search fields despite generic ctrl-input padding */
.search-wrap .search-input {
  padding-left: 44px;
  padding-right: 36px;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-btn {
  display: grid;
  place-items: center;
  padding: 9px 12px;
  background: var(--panel-fill-soft);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.view-btn.active { background: rgba(152, 39, 29, .10); color: var(--accent-strong); }
.view-btn:hover:not(.active) { background: var(--surface3); color: var(--text); }

/* ── Results info ── */
.results-info {
  padding: 12px 4px 4px;
  font-size: .82rem;
  color: var(--text-dim);
}

/* ── Skeleton loading ── */
.skeleton-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 18px 0 10px;
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
}
.sk-title, .sk-row {
  border-radius: 6px;
  background: #f1f1f1;
  animation: shimmer 1.4s infinite ease-in-out alternate;
}
.sk-title { height: 18px; width: 70%; margin-bottom: 14px; }
.sk-row   { height: 14px; width: 90%; margin-bottom: 8px; }
.sk-row.short { width: 55%; }

/* ── Song grid ── */
.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  padding: 18px 0 48px;
}

.song-card {
  background: var(--panel-fill);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 20px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn .5s var(--transition) forwards;
}
.song-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.song-card:nth-child(1) { animation-delay: .03s; }
.song-card:nth-child(2) { animation-delay: .06s; }
.song-card:nth-child(3) { animation-delay: .09s; }
.song-card:nth-child(4) { animation-delay: .12s; }
.song-card:nth-child(5) { animation-delay: .15s; }
.song-card:nth-child(6) { animation-delay: .18s; }
.song-card:nth-child(7) { animation-delay: .21s; }
.song-card:nth-child(8) { animation-delay: .24s; }

.song-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.song-card-copy {
  min-width: 0;
}

.song-cover {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
  background: rgba(255,255,255,.04);
}

.song-cover-placeholder {
  background: rgba(255,255,255,.05);
}

.song-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

a.song-wiki-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(152,39,29,.24);
  text-underline-offset: 3px;
}
a.song-wiki-link:hover {
  color: var(--ng-light);
  text-decoration-color: var(--ng-light);
}

.song-artist {
  margin-top: -6px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Cert list (simple rows with dividers) ── */
.cert-list {
  display: flex;
  flex-direction: column;
}

.cert-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
}
.cert-row:last-child { border-bottom: none; }

.cert-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 132px;
  color: var(--text);
  font-weight: 600;
}
.cert-row-left .flag { display: inline-flex; align-items: center; }
.cert-row-left .country { font-weight: 700; }

.cert-row-right {
  display: inline-block;
  max-width: 100%;
  font-size: .78rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  flex: 0 1 auto;
  margin-left: auto;
  padding: 0 0 0 1rem;
  text-align: right;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cert-row-right.diamond,
.tbl-cert-text.diamond,
.cert-row-right.multi-platinum,
.tbl-cert-text.multi-platinum,
.cert-row-right.platinum,
.tbl-cert-text.platinum,
.cert-row-right.gold,
.tbl-cert-text.gold,
.cert-row-right.silver,
.tbl-cert-text.silver { color: var(--text); }


.cert-country-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.cert-country-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.flag-img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.flag-img.table {
  width: 14px;
  height: 10px;
  vertical-align: -1px;
}

/* ── Cert count footer ── */
.cert-count {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Song table ── */
.table-view {
  padding: 18px 0 48px;
  overflow-x: auto;
}

.songs-table {
  width: 100%;
  background: var(--panel-fill);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  border-collapse: collapse;
  font-size: .85rem;
}
.songs-table thead th {
  position: sticky;
  top: 0;
  background: rgba(16, 24, 36, .98);
  padding: 11px 14px;
  text-align: left;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.songs-table thead th .region-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.songs-table thead th .region-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.songs-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.songs-table tbody tr:hover { background: rgba(255,255,255,.03); }
.songs-table tbody tr {
  opacity: 0;
  transform: translateY(5px);
  animation: riseIn .42s ease forwards;
}
.songs-table tbody tr:nth-child(1) { animation-delay: .02s; }
.songs-table tbody tr:nth-child(2) { animation-delay: .04s; }
.songs-table tbody tr:nth-child(3) { animation-delay: .06s; }

/* Flat black refresh */
:root {
  --surface2: rgba(255,255,255,.05);
  --surface3: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.18);
  --ng-light: #ffffff;
  --panel-fill: #101010;
  --panel-fill-soft: #0d0d0d;
}

body {
  font-family: var(--font-body);
}

a:hover,
.cert-country-link:hover {
  text-decoration: none;
}

.navbar,
.page-header,
.stats-bar,
.legend-bar,
.controls-bar,
.songs-table,
.levels-note,
.song-card {
  box-shadow: none;
}

.navbar {
  margin: 0 auto;
  border: none;
  border-radius: 0;
  background: rgba(5,5,5,.98);
}

.page-header {
  padding: 36px 0 28px;
  border-radius: 0;
}

.page-header h1,
.song-title {
  font-family: var(--font-heading);
}

.stats-bar,
.legend-bar,
.songs-table {
  border-radius: 10px;
}

.controls-bar {
  background: var(--surface-strong);
}

.song-card {
  background: var(--panel-fill);
}

.song-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.song-cover {
  border-radius: 0;
  box-shadow: none;
  background: #161616;
}

a.song-wiki-link {
  text-decoration: none;
}

.song-artist {
  margin-top: 0;
}

.songs-table thead th {
  background: #0d0d0d;
}

.levels-note {
  background: #121212;
}

@media (max-width: 640px) {
  .song-meta {
    gap: 6px;
  }
}
.songs-table tbody tr:nth-child(4) { animation-delay: .08s; }
.songs-table tbody tr:nth-child(5) { animation-delay: .1s; }
.songs-table tbody tr:nth-child(6) { animation-delay: .12s; }
.songs-table tbody td { padding: 9px 14px; vertical-align: middle; }
.songs-table tbody td:first-child { font-weight: 600; color: #fff; min-width: 170px; }

.title-cell-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-cell-copy {
  min-width: 0;
}

.title-main {
  font-weight: 600;
  color: #fff;
}

.title-sub {
  margin-top: 2px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tbl-cert-text { line-height: 1.45; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state .icon { font-size: 2.8rem; margin-bottom: 12px; }
.empty-state p { font-size: .95rem; }

/* ── Cert Levels page ── */
.levels-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 0 56px;
}
.levels-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding: 13px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255,255,255,.12);
}

.levels-notes-list {
  margin-top: 28px;
}
.levels-notes-heading {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.levels-notes-ol {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.levels-notes-ol li {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.levels-table-shell {
  background: var(--panel-fill);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.levels-table-full {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .79rem;
}

.levels-table-full thead th {
  background: rgba(16, 24, 36, .98);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
}

.levels-table-full thead tr:first-child th {
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: .72rem;
}

.levels-table-full .group-head {
  color: var(--text);
}

.levels-table-full .country-col {
  width: 21%;
  min-width: 170px;
  text-align: left;
  padding-left: 12px;
}

.levels-table-full tbody td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.04);
  text-align: center;
  vertical-align: middle;
}

.levels-table-full tbody tr:hover td {
  background: rgba(255,255,255,.03);
}

.levels-table-full tbody tr {
  opacity: 0;
  transform: translateY(5px);
  animation: riseIn .42s ease forwards;
}

.levels-table-full tbody tr:nth-child(1) { animation-delay: .02s; }
.levels-table-full tbody tr:nth-child(2) { animation-delay: .04s; }
.levels-table-full tbody tr:nth-child(3) { animation-delay: .06s; }
.levels-table-full tbody tr:nth-child(4) { animation-delay: .08s; }
.levels-table-full tbody tr:nth-child(5) { animation-delay: .1s; }
.levels-table-full tbody tr:nth-child(6) { animation-delay: .12s; }

.country-cell {
  text-align: left !important;
  padding-left: 12px !important;
}

.level-flag   { font-size: 1.4rem; line-height: 1; }
.level-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.level-country{ font-weight: 700; color: #fff; flex: 1; font-size: .95rem; }
.level-country-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.level-country-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.th-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
}
.th-badge.diamond       { background: var(--c-diamond-bg);  color: var(--c-diamond-fg); }
.th-badge.platinum      { background: var(--c-plat-bg);     color: var(--c-plat-fg);    }
.th-badge.gold          { background: var(--c-gold-bg);     color: var(--c-gold-fg);    }
.th-badge.silver        { background: var(--c-silver-bg);   color: var(--c-silver-fg);  }

.lv-val {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: normal;
  color: var(--text-muted);
  line-height: 1.3;
}
.lv-val.diamond,
.lv-val.platinum,
.lv-val.gold,
.lv-val.silver {
  background: rgba(255,255,255,.05);
  color: var(--text);
}

/* ── Footer ── */
.footer {
  margin-top: 18px;
  padding: 20px 18px 26px;
  text-align: center;
  font-size: .78rem;
  color: #6e9d85;
  border-top: 1px solid rgba(86,145,114,.24);
  background: rgba(8,22,16,.86);
}

/* ── Card list — responsive ── */
@media (max-width: 640px) {
  .grid-view {
    grid-template-columns: 1fr;
  }
  .song-card { padding: 16px 14px; }
  .song-card-header { align-items: flex-start; }
  .song-cover {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .song-title {
    font-size: .95rem;
  }
  .cert-row {
    gap: .55rem;
  }
  .cert-row-right {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: flex-start;
    text-align: left;
  }
  .cert-row { font-size: .78rem; }
}

/* ── Utility ── */
.hidden { display: none !important; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --text: #111;
    --text-muted: #333;
    --text-dim: #444;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
  }

  .navbar,
  .controls-bar,
  .stats-bar,
  .legend-bar,
  .results-info,
  .footer,
  .skeleton-wrap,
  .page-header::after,
  .view-toggle,
  .clear-btn,
  .search-wrap,
  #btn-grid,
  #btn-table {
    display: none !important;
  }

  .page-header,
  .page-header.small {
    margin: 0 0 10pt 0;
    padding: 0;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    text-align: left;
  }

  .page-header h1 {
    color: #111 !important;
    text-shadow: none;
    font-size: 18pt;
  }

  .subtitle {
    color: #333 !important;
    max-width: none;
  }

  .levels-note {
    background: #fff !important;
    border: 1px solid #bbb;
    color: #222 !important;
  }

  .table-view,
  .grid-view,
  .levels-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  #song-container.grid-view {
    display: block;
  }

  .song-card {
    break-inside: avoid;
    border: 1px solid #bbb !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    margin-bottom: 8pt;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .card-title,
  .song-title,
  .level-country {
    color: #111 !important;
  }

  .cert-badge,
  .cert-row,
  .tbl-badge,
  .lv-val {
    color: #111 !important;
    background: #efefef !important;
    box-shadow: inset 0 0 0 1px #c7c7c7;
  }

  .songs-table,
  .levels-table-shell,
  .levels-table-full {
    width: 100% !important;
    border: 1px solid #888 !important;
    background: #fff !important;
    color: #111 !important;
    border-radius: 0;
    box-shadow: none;
  }

  .songs-table thead th,
  .levels-table-full thead th {
    background: #f1f1f1 !important;
    color: #111 !important;
    border-bottom: 1px solid #999 !important;
    border-right: 1px solid #bbb !important;
  }

  .songs-table tbody td,
  .levels-table-full tbody td {
    border-bottom: 1px solid #c8c8c8 !important;
    border-right: 1px solid #e0e0e0 !important;
    color: #111 !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .songs-table tbody tr,
  .levels-table-full tbody tr {
    break-inside: avoid;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  a,
  .region-link,
  .cert-country-link,
  .level-country-link {
    color: #111 !important;
    text-decoration: none;
  }

  @page {
    size: A4 landscape;
    margin: 10mm;
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .navbar {
    align-items: flex-start;
  }

  .navbar .nav-links {
    display: none !important;
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 300;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: none;
  }

  .navbar .nav-toggle[aria-expanded="true"] + .nav-links {
    display: flex !important;
  }

  .navbar .nav-link,
  .navbar .nav-link.section-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    pointer-events: auto;
    touch-action: manipulation;
  }
}

@media (max-width: 640px) {
  .navbar { padding: 0 14px; height: 58px; }
  .navbar .nav-links { top: 64px; left: 0; right: 0; }
  .page-header { padding: 36px 16px 28px; }
  .controls-bar { padding: 12px; top: 58px; }
  .grid-view, .table-view { padding-inline: 0; }
  .levels-container { padding-inline: 0; }
  .stats-bar { padding: 14px; }
  .legend-bar { padding: 10px 12px; }
  .stat-chip { padding: 8px 14px; min-width: 64px; }

  .levels-table-full {
    font-size: .7rem;
  }
  .levels-table-full .country-col {
    width: 27%;
  }
  .level-flag-img {
    width: 16px;
    height: 12px;
  }
  .level-country {
    font-size: .78rem;
  }
}
