:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --text: #0B162A;
  --text-muted: #4A5568;
  --text-light: #A0AEC0;
  --accent: #C83803;
  --accent-light: #FDE8E0;
  --blue: #0B162A;
  --blue-light: #E2E6EC;
  --green: #00B894;
  --border: #E2E6EC;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --radius: 10px;
  --font: 'DM Sans', -apple-system, sans-serif;
  --mono: 'Source Code Pro', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  padding-bottom: 72px; /* space for sticky bar */
  -webkit-font-smoothing: antialiased;
}

/* ═══ HEADER / NAVBAR ═══ */
.navbar {
  background: var(--blue);
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo {
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.navbar .logo span { color: var(--accent); }
.nav-links {
  display: none;
  margin-left: 24px;
  gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.search-btn:hover { background: rgba(255,255,255,0.2); }
.nav-auth {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  display: none;
}
.nav-auth:hover { color: #fff; }
.nav-register {
  background: var(--accent);
  color: #fff !important;
}
.nav-register:hover { background: #a52e02; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Mobile menu open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background: var(--blue);
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 99;
}
.nav-links.open .nav-link {
  padding: 10px 12px;
  font-size: 15px;
}

/* SEARCH BAR */
.search-bar {
  display: none;
  background: var(--blue);
  padding: 0 16px 12px;
}
.search-bar.open { display: block; }
.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}
.search-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-family: var(--font);
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { background: rgba(255,255,255,0.18); }
.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

/* Desktop navbar */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-auth { display: block; }
  .nav-hamburger { display: none; }
  .nav-links.open { position: static; flex-direction: row; padding: 0; border: none; box-shadow: none; }
}

/* ═══ SONG HEADER ═══ */
.song-header {
  padding: 24px 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.song-header .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.song-header .breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.song-header h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.song-header .artist {
  font-size: 17px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}
.song-credits {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.song-credits strong {
  color: var(--text);
  font-weight: 500;
}
.song-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.song-meta .tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}
.song-meta .tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.song-meta .difficulty {
  font-size: 13px;
  color: var(--text-muted);
}
.song-meta .difficulty .star { color: var(--accent); }
.song-meta .difficulty .star.off { color: var(--text-light); }
.share-buttons-inline {
  display: inline-flex;
  gap: 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.share-buttons-inline .btn-share {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  transition: all 0.15s;
}
.share-buttons-inline .btn-share:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══ TRANSPOSE BAR ═══ */
.controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.controls-row label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}
.controls-row .btn-ctrl {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s;
}
.controls-row .btn-ctrl:active { background: var(--border); }
.controls-row .ctrl-val {
  font-size: 14px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: var(--accent);
}
.controls-row .transpose-ton {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-left: 4px;
  padding: 4px 10px;
  background: var(--blue-light);
  border-radius: 6px;
}
.controls-row .ctrl-val.fs {
  color: var(--text);
  font-size: 13px;
}

/* ═══ SONG BODY ═══ */
.song-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
.song-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

.riga {
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
}
/* Gruppo di blocchi che formano una parola — non si spezzano */
.cw-group {
  display: inline-flex;
  white-space: nowrap;
}
/* Chord-word: blocco inline con accordo sopra e testo sotto */
.cw {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
}
.cw-acc {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
  min-height: 18px;
  cursor: pointer;
  white-space: pre;
}
.cw-acc:hover {
  color: var(--blue);
  text-decoration: underline;
}
.cw-txt {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre;
}
.riga-sezione {
  color: var(--blue);
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 6px;
  padding: 4px 0;
  border-bottom: 2px solid var(--blue-light);
}
.riga-vuota { height: 16px; }

/* ═══ CHORDS DIAGRAMS SECTION ═══ */
.chords-section {
  margin-bottom: 24px;
}
.chords-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.chords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.chord-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.chord-card .chord-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ═══ CHORD POPUP ═══ */
.chord-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 200;
  text-align: center;
  min-width: 160px;
}
.chord-popup.visible { display: block; }
.chord-popup .chord-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}
.chord-popup .chord-diagram {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.chord-popup .close-popup {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

/* ═══ YOUTUBE ═══ */
.video-section {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 16px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ═══ STICKY CONTROL BAR ═══ */
.control-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.control-bar .btn-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.control-bar .btn-play.active {
  background: var(--accent);
  color: #fff;
}
.control-bar .speed-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.control-bar .speed-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.control-bar .speed-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  outline: none;
}
.control-bar .speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  background: transparent;
  cursor: pointer;
}
.control-bar .speed-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  cursor: pointer;
  border: none;
}
.control-bar .speed-val {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.control-bar .btn-speed {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.control-bar .btn-speed:active {
  background: rgba(255,255,255,0.15);
}

/* ═══ FOOTER ═══ */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
}
.site-footer a { color: var(--text-muted); }

/* ═══ PAGE LAYOUT (content + sidebar) ═══ */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  justify-content: center;
}
/* Quando la sidebar non c'è, il main usa tutta la larghezza */
.page-layout:not(:has(.page-sidebar)) {
  justify-content: center;
}
.page-layout:not(:has(.page-sidebar)) .page-main {
  max-width: 1200px;
  margin: 0 auto;
}
.page-main {
  flex: 1;
  min-width: 0;
  max-width: none;
}
.page-main .song-header { padding: 24px 0 16px; }
.page-main .controls-row { padding: 0; }
.page-main .song-body { padding: 0 0 32px; }
.page-main .video-section { padding: 0; margin-bottom: 24px; }

/* ═══ SIDEBAR ═══ */
.page-sidebar {
  width: 300px;
  flex-shrink: 0;
  padding-top: 24px;
  display: none; /* hidden on mobile */
}
.banner-slot {
  margin-bottom: 16px;
}
.banner-placeholder {
  width: 300px;
  height: 250px;
  background: var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  border: 1px dashed var(--text-light);
}
.banner-placeholder.tall {
  height: 600px;
}
.sticky-banner {
  position: sticky;
  top: 60px;
}

/* ═══ BANNER MOBILE ═══ */
.banner-mobile {
  display: block;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.banner-mobile .banner-placeholder {
  width: 100%;
  height: 100px;
  max-width: 320px;
  margin: 0 auto;
}

/* ═══ RESPONSIVE ═══ */
@media (min-width: 1024px) {
  .page-sidebar { display: block; }
  .banner-mobile { display: none; }
}
@media (min-width: 768px) {
  .song-text { padding: 28px 24px; }
  .cw-acc { font-size: 15px; }
  .cw-txt { font-size: 16px; }
  .song-header h1 { font-size: 32px; }
}

/* ═══ SONG ACTIONS (views + share + print) ═══ */
.song-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.views-count {
  font-size: 12px;
  color: var(--text-light);
}
.share-buttons {
  display: flex;
  gap: 6px;
}
.btn-share {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}
.btn-share:hover { color: var(--text); background: var(--border); }

/* ═══ RELATED SONGS ═══ */
.related-section {
  margin-bottom: 24px;
}
.related-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.related-list {
  display: flex;
  flex-direction: column;
}
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.related-item:hover { background: var(--bg); }
.related-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.related-item:hover .related-name { color: var(--blue); }
.related-diff {
  font-size: 12px;
  color: var(--text-light);
}
.related-diff .star { color: var(--accent); }
.related-views {
  font-size: 12px;
  color: var(--text-light);
}
.related-all {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.related-all:hover { text-decoration: underline; }

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ═══ PRINT ═══ */
@media print {
  .navbar, .control-bar, .page-sidebar, .banner-mobile,
  .video-section, .share-buttons, .song-actions,
  .controls-row, .chord-popup, .toast, .related-section { display: none !important; }
  .page-layout { display: block; }
  .page-main { max-width: 100%; }
  .song-text { border: none; box-shadow: none; padding: 0; }
  .cw-acc { color: #000 !important; }
  body { padding-bottom: 0; background: #fff; }
  .chords-section { page-break-before: auto; }
}

/* ═══ GLOBAL EXTRAS ═══ */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #a52e02; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg); }

/* ═══ ERROR PAGE ═══ */
.error-page {
  text-align: center;
  padding: 80px 16px;
}
.error-page .error-icon { font-size: 64px; margin-bottom: 16px; }
.error-page h1 { font-size: 64px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.error-page p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.error-page a { margin: 0 6px; }

/* ═══ FOOTER FULL ═══ */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-light);
}

/* ═══ HOMEPAGE ═══ */
.hero {
  background: var(--blue);
  padding: 48px 16px 40px;
  text-align: center;
}
.hero .hero-logo {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.hero .hero-logo span { color: var(--accent); }
.hero .hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.hero .hero-search {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.hero .hero-search input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-family: var(--font);
  outline: none;
}
.hero .hero-search button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.section-more {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 8px;
}

/* Song card grid */
.songs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 500px) { .songs-grid { grid-template-columns: 1fr 1fr; } }

.song-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.song-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.song-card .sc-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.song-card .sc-artist { font-size: 13px; color: var(--accent); }
.song-card .sc-meta { font-size: 12px; color: var(--text-light); margin-top: 6px; display: flex; gap: 12px; }
.song-card .sc-meta .star { color: var(--accent); }
.song-card .sc-meta .star.off { color: var(--text-light); }

/* Numbered list (popolari) */
.songs-numbered { counter-reset: song-counter; }
.songs-numbered .song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  transition: background 0.1s;
}
.songs-numbered .song-row:hover { background: var(--bg); }
.songs-numbered .song-row::before {
  counter-increment: song-counter;
  content: counter(song-counter);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  min-width: 28px;
  text-align: center;
}
.songs-numbered .sr-info { flex: 1; }
.songs-numbered .sr-title { font-size: 14px; font-weight: 500; color: var(--text); }
.songs-numbered .sr-artist { font-size: 13px; color: var(--text-muted); }
.songs-numbered .sr-views { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* A-Z index */
.az-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}
.az-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all 0.15s;
}
.az-index a:hover, .az-index a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Artists list */
.artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
@media (min-width: 600px) { .artists-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* Artists list with avatar (homepage) */
.artists-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
/* Artists multi-column layout (ordine verticale per colonna) */
.artists-columns {
  display: flex;
  gap: 8px;
}
.artists-col {
  flex: 1;
  min-width: 0;
}
@media (max-width: 599px) {
  .artists-columns { flex-direction: column; }
}
.artist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.artist-card:hover {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.artist-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-initial {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  pointer-events: none;
}
.artist-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.artist-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-card:hover .artist-name { color: var(--accent); }
.artist-count {
  font-size: 12px;
  color: var(--text-light);
}
.artist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.1s;
}
.artist-item:hover { background: var(--bg); }
.artist-item .ai-name { font-size: 14px; color: var(--text); font-weight: 500; }
.artist-item .ai-count { font-size: 12px; color: var(--text-light); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all 0.15s;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══ ARTISTA PAGE ═══ */
.artista-header {
  padding: 24px 0 16px;
}
.artista-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.artista-header .artista-naz {
  font-size: 13px;
  color: var(--text-muted);
}
.artista-header .artista-bio {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.sort-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.sort-bar a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
}
.sort-bar a:hover { color: var(--text); }
.sort-bar a.active { color: var(--accent); font-weight: 600; }

/* Banner ADV label */
.banner-adv {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}
.banner-link { position: relative; display: block; }

/* ═══ HOMEPAGE SECTIONS SPACING ═══ */
.home-section {
  padding: 24px 0;
}
