/* ============================================================
   SANREMO 2026 — TESTO E ACCORDI
   Foglio di stile dedicato alle pagine Sanremo
   Basato su stileletteraartista.css con aggiunta stili specifici
   Palette: navy #1a3d5c, amber #f5a623, bordeaux #7a1f2b
   Font: Playfair Display (display) + Inter (corpo)
   Versione: 2.0 - Aggiunto Cookie Consent unificato
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- TOKEN ---- */
:root {
  --primary:  #1a3d5c;
  --primary2: #112d44;
  --amber:    #f5a623;
  --amber2:   #e09310;
  --amber-tint: #fff3d6;
  --primary-tint: #eaf2f8;
  --sage:     #2d7d5e;
  --bordeaux: #7a1f2b;
  --bg:       #fafaf7;
  --surface:  #ffffff;
  --text:     #222222;
  --muted:    #4a5568;
  --border:   #e2e2dc;
  --radius:   10px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

html, body {
  transform: none !important;
}

/* ============================================================
   HEADER — Grid a 3 colonne: logo | centro | menu+hamburger.
   ============================================================ */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo center right";
  align-items: center;
  column-gap: 20px;
  height: 150px;
}
.site-brand {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-self: start;
}
.site-logo {
  height: 150px;
  width: auto;
  display: block;
}

/* ---- Colonna centrale: "Ricerca artista" ---- */
.header-center {
  grid-area: center;
  justify-self: center;
  display: flex;
  align-items: center;
}
.quickjump-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.quickjump-wrap::after {
  content: '\25BE';
  position: absolute;
  right: 16px;
  font-size: 11px;
  color: var(--primary);
  pointer-events: none;
  transition: color .2s;
}
.artist-quickjump {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Inter', Arial, sans-serif;
  padding: 11px 36px 11px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, var(--primary-tint));
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,61,92,.16);
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.artist-quickjump:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,61,92,.30);
}
.quickjump-wrap:hover::after,
.quickjump-wrap:focus-within::after {
  color: #ffffff;
}
.artist-quickjump:focus-visible {
  outline: 2px solid var(--primary2);
  outline-offset: 2px;
}
.artist-quickjump:active {
  background: var(--primary2);
  color: #ffffff;
  border-color: var(--primary2);
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(17,45,68,.35);
}

/* ---- Colonna destra: menu principale + hamburger ---- */
.header-right {
  grid-area: right;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
nav a {
  color: var(--primary);
  text-decoration: none;
  padding: 8px 13px;
  border: 1.5px solid var(--primary);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
nav a:hover {
  background: var(--primary);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 2;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MENU MOBILE
   ============================================================ */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 850;
  padding: 16px 20px 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .25s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s ease, transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 16px;
  font-weight: 500;
  transition: color .15s, padding-left .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--amber);
  padding-left: 4px;
}

/* ============================================================
   ADSENSE
   ============================================================ */
.banner {
  width: 100%;
  max-width: 728px;
  margin: 32px auto;
  padding: 0 16px;
  text-align: center;
  min-height: 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
  background: #fdfdfd;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner ins.adsbygoogle {
  display: block;
  width: 100% !important;
  height: auto !important;
}
@media (min-width: 600px) {
  .banner { min-height: 250px; }
}
@media (min-width: 992px) {
  .banner { min-height: 280px; }
}

/* ============================================================
   MAIN CONTENT — SANREMO
   ============================================================ */
.main-content-sanremo {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}
.main-content-sanremo h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--primary);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   GRIGLIA ANNI SANREMO (pagina indice)
   ============================================================ */
.sanremo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 25px 0;
}
.sanremo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.sanremo-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.sanremo-card .anno {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.sanremo-card .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   GRIGLIA ARTISTI (coerente con letteraA.html)
   ============================================================ */
.artists-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 25px 0;
}
.artists-buttons-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background-color: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 8px;
  text-align: center;
  transition: background-color .15s, color .15s;
}
.artists-buttons-grid a:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* ---- Podio grid variant ---- */
.sanremo-podium-grid a {
  padding: 16px;
  min-height: 90px;
}
.podium-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  display: inline-block;
}
.podium-badge.winner { background: var(--amber); color: #1a1a1a; }
.podium-badge.second { background: #c0c0c0; color: #333; }
.podium-badge.third { background: #cd7f32; color: #fff; }
.podium-badge.critica { background: var(--primary-tint); color: var(--primary); }
.podium-badge.testo { background: var(--amber-tint); color: var(--primary); }

.podium-artist {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
}
.podium-song {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   SEZIONI SANREMO
   ============================================================ */
.sanremo-section {
  margin: 30px 0;
}
.section-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   BOTTONE TORNA ALLA HOME / SANREMO
   ============================================================ */
.back-home {
  text-align: center;
  margin: 30px 0 20px;
}
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, transform .15s;
}
.btn-back:hover {
  background: var(--primary2);
  transform: translateY(-2px);
}

/* ============================================================
   HERO — ricerca Google
   ============================================================ */
.hero {
  background: var(--primary);
  padding: 52px 20px 28px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 17px,
    rgba(255,255,255,.06) 17px,
    rgba(255,255,255,.06) 18px
  );
  pointer-events: none;
}

/* ---- SEZIONE ALFABETO ---- */
.alphabet-band {
  background: var(--primary);
  padding: 4px 20px 44px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
}
.alphabet-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 17px,
    rgba(255,255,255,.06) 17px,
    rgba(255,255,255,.06) 18px
  );
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.hero h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 5vw, 46px);
  color: #ffffff;
  margin-bottom: 28px;
  line-height: 1.15;
}
.gcse-search {
  width: 90%;
  margin: 20px auto;
  display: block;
}
.search-wrapper {
  width: 90%;
  max-width: 600px;
  margin: 20px auto 40px auto;
  display: block;
  overflow: hidden;
}
.search-wrapper .gcse-search {
  width: 100% !important;
  margin: 0 !important;
}

/* ---- Alfabeto ---- */
.alphabet {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 760px;
  margin: 0 auto;
}
.alphabet a {
  background: rgba(245,166,35,.16);
  border: 1px solid rgba(245,166,35,.35);
  color: #ffe9c2;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
  letter-spacing: .02em;
  min-width: 38px;
  text-align: center;
}
.alphabet a:hover {
  background: var(--amber);
  color: #1a1a1a;
  border-color: var(--amber);
  transform: translateY(-2px);
}
.alphabet a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.alphabet a.active {
  background: var(--amber);
  color: #1a1a1a;
  border-color: var(--amber);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 32px 20px 24px;
  text-align: center;
  margin-top: 16px;
}
.site-footer p { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: var(--amber); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal-note {
  max-width: 860px;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   COOKIE CONSENT — banner + pannello preferenze (GDPR/ePrivacy)
   Versione unificata da stiletea.css
   ============================================================ */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,26,33,.45);
  z-index: 10000;
}

.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cc-banner.cc-visible { transform: translateY(0); }

.cc-banner-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 28px;
  align-items: center;
}
.cc-banner .cc-title { grid-column: 1; }
.cc-banner .cc-text { grid-column: 1; }
.cc-banner .cc-actions { grid-column: 2; grid-row: 1 / span 2; }

.cc-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 460px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 28px 26px;
  z-index: 10002;
}
.cc-panel[hidden], .cc-banner:not(.cc-visible) + .cc-panel[hidden] { display: none; }

.cc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  color: var(--primary);
  margin-bottom: 8px;
}
.cc-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 4px;
}
.cc-text a { color: var(--primary); text-decoration: underline; }

.cc-option {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.cc-option:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.cc-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-option-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.cc-option-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}
.cc-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.cc-option input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cc-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.cc-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  box-shadow: 0 4px 14px rgba(26,61,92,.28);
}
.cc-btn-primary:hover {
  background: var(--primary2);
  border-color: var(--primary2);
  box-shadow: 0 6px 18px rgba(26,61,92,.34);
  transform: translateY(-1px);
}
.cc-btn-primary:active { transform: translateY(0); }

.cc-btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.cc-btn-outline:hover { background: var(--primary-tint); }

.cc-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.cc-btn-ghost:hover { background: var(--bg); color: var(--text); }

.cc-btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.cc-manage-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.cc-manage-link:hover { color: var(--amber2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo right"
      "center center";
    height: auto;
    min-height: 90px;
    row-gap: 12px;
    padding: 14px 16px 16px;
  }
  .header-center {
    justify-self: stretch;
  }
  .quickjump-wrap {
    width: 100%;
    justify-content: center;
  }
  .artist-quickjump {
    width: 100%;
    max-width: 340px;
  }
  .header-right nav { display: none; }
  .hamburger { display: flex; }
  .site-logo { height: 80px; }
}

@media (max-width: 768px) {
  .hero { padding: 36px 16px 20px; }
  .alphabet-band { padding: 4px 16px 32px; }
  .hero h2 { font-size: 22px; }

  .sanremo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sanremo-card { padding: 22px 16px; }
  .sanremo-card .anno { font-size: 30px; }
  .sanremo-card .label { font-size: 12px; }
  .main-content-sanremo h2 { font-size: 22px; }
  .btn-back { padding: 10px 22px; font-size: 14px; }

  .artists-buttons-grid { grid-template-columns: repeat(2, 1fr); }
  .sanremo-podium-grid { grid-template-columns: 1fr; }
  .section-label { font-size: 18px; }
}

@media (max-width: 480px) {
  .site-logo { height: 70px; }
  .alphabet a { padding: 8px 12px; font-size: 13px; }
  .sanremo-grid { grid-template-columns: 1fr; }
  .artists-buttons-grid { grid-template-columns: 1fr; }
  .podium-artist { font-size: 14px; }
}

/* ============================================================
   ACCESSIBILITÀ — RIDUCE MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — COOKIE BANNER
   ============================================================ */
@media (max-width: 720px) {
  .cc-banner-inner {
    grid-template-columns: 1fr;
  }
  .cc-banner .cc-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
  }
  .cc-banner .cc-btn { flex: 1 1 auto; }
  .cc-panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
}

/* ============================================================
   RICERCA COMPATTA HEADER
   ============================================================ */

.header-search {
    position: relative;
}

.header-search .search-form-compact {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 2px 4px 2px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 360px;
}

.header-search .search-form-compact:focus-within {
    box-shadow: 0 2px 14px rgba(0,0,0,0.15);
}

.header-search .search-form-compact input[type="text"] {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    padding: 10px 8px 10px 0;
    min-width: 80px;
    background: transparent;
    color: #222;
}

.header-search .search-form-compact input[type="text"]::placeholder {
    color: #999;
}

.header-search .search-form-compact input[type="text"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.header-search .search-form-compact .search-btn-compact {
    background: var(--primary, #1a3d5c);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-search .search-form-compact .search-btn-compact:hover {
    opacity: 0.9;
}

.search-results-compact {
    position: fixed !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.20);
    max-height: 380px;
    overflow-y: auto;
    z-index: 999999 !important;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.search-results-compact.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text, #222);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--primary-tint, #eaf2f8);
}

.search-result-item .result-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary, #1a3d5c);
    line-height: 1.3;
}

.search-result-item .result-artist {
    display: block;
    font-size: 13px;
    color: var(--muted, #4a5568);
    font-weight: 500;
    margin-top: 2px;
}

.search-result-item .result-snippet {
    display: none;
}

.search-no-results {
    padding: 24px 20px;
    text-align: center;
    color: var(--muted, #4a5568);
}

.search-no-results span {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.search-no-results p {
    margin: 0 0 4px;
    font-weight: 600;
}

.search-no-results small {
    color: #999;
}

.search-results-compact::-webkit-scrollbar {
    width: 6px;
}

.search-results-compact::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-compact::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-results-compact::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.search-guide-text {
    display: block;
    text-align: center;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    padding: 48px 20px 40px;
    background: var(--primary, #1a3d5c);
}

@media (max-width: 768px) {
    .header-search .search-form-compact input[type="text"] {
        font-size: 16px;
        padding: 8px 8px 8px 0;
    }
    .header-search .search-form-compact .search-btn-compact {
        padding: 8px 16px;
        font-size: 13px;
    }
    .header-search .search-form-compact {
        padding: 2px 3px 2px 16px;
    }
    .search-results-compact {
        max-height: 300px;
    }
    .search-result-item {
        padding: 10px 16px;
    }
    .search-result-item .result-title {
        font-size: 14px;
    }
    .search-result-item .result-artist {
        font-size: 12px;
    }
    .search-guide-text {
        font-size: 22px;
        padding: 36px 16px 32px;
    }
}

@media (max-width: 480px) {
    .header-search .search-form-compact input[type="text"] {
        font-size: 16px;
        min-width: 50px;
        padding: 6px 6px 6px 0;
    }
    .header-search .search-form-compact .search-btn-compact {
        padding: 6px 12px;
        font-size: 12px;
    }
    .header-search .search-form-compact {
        padding: 2px 2px 2px 12px;
        border-radius: 40px;
    }
    .search-results-compact {
        max-height: 260px;
        min-width: 160px;
    }
    .search-result-item {
        padding: 8px 14px;
    }
    .search-result-item .result-title {
        font-size: 13px;
    }
    .search-result-item .result-artist {
        font-size: 11px;
    }
    .search-guide-text {
        font-size: 18px;
        padding: 28px 14px 26px;
    }
}