  :root {
    --sky: #5ba3c9;
    --orange: #e8623a;
    --dark: #3a2e26;
    --cream: #fdf6ee;
    --light-sky: #d4eaf5;
    --warm-white: #fffdf9;
    --mid: #7a6a5a;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body { overflow-x: hidden; }

  body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background: var(--cream);
    color: var(--dark);
    min-height: 100vh;
  }

  /* HEADER */
  header {
    background: var(--dark);
    color: var(--cream);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  }

  .header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .logo-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }
  .logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

  .site-title {
    flex: 1;
  }
  .site-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cream);
    line-height: 1;
    letter-spacing: -0.5px;
  }
  .site-title .tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    color: var(--sky);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
  }
  .tagline-short { display: none; }

  nav { display: flex; gap: 4px; }
  nav button {
    background: none;
    border: 2px solid transparent;
    color: var(--cream);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 7px 14px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    opacity: 0.7;
  }
  nav button:hover { opacity: 1; border-color: var(--sky); color: var(--sky); }
  nav button.active { background: var(--orange); border-color: var(--orange); color: white; opacity: 1; }

  /* HERO */
  .hero {
    background: linear-gradient(135deg, var(--dark) 0%, #5a4030 50%, var(--sky) 100%);
    color: white;
    text-align: center;
    padding: 64px 32px 56px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .hero h2 span { color: var(--orange); }
  .hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto;
    font-style: italic;
  }

  /* TABS CONTENT */
  .tab-content { display: none; }
  .tab-content.active { display: block; }

  /* CONTROLS */
  .controls {
    background: var(--dark);
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }
  .controls label {
    color: var(--cream);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
  }
  .controls select, .controls input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    max-width: 160px;
  }
  .controls select option { background: var(--dark); }
  .controls .filter-group { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .controls select { width: auto; }
  .count-badge {
    background: var(--orange);
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
  }

  /* FAVORITES TOGGLE */
  .fav-toggle-btn {
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.6);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .fav-toggle-btn:hover { border-color: #e05080; color: #e05080; }
  .fav-toggle-btn.active { background: #e05080; border-color: #e05080; color: white; }

  /* BANDS GRID */
  .bands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 36px 32px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .band-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(58,46,38,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
  }
  .band-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(58,46,38,0.18);
    border-color: var(--orange);
  }
  .band-card.hidden { display: none; }

  /* FAV BUTTON in footer */
  .fav-btn {
    background: none;
    border: 1px solid #e05080;
    color: #e05080;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
    transition: all 0.15s;
    margin-left: auto;
  }
  .fav-btn:hover { background: #e05080; color: white; }
  .fav-btn.fav-active { background: #e05080; color: white; }

  .card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    display: block;
    background: linear-gradient(135deg, var(--sky), var(--dark));
  }
  .card-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--sky) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
  }

  .card-body { padding: 20px; }
  .card-genre-tag {
    display: inline-block;
    background: var(--light-sky);
    color: var(--dark);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
  }
  .card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }
  .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--mid);
  }
  .meta-item .icon { font-size: 0.8rem; }
  .card-bio {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #5a4a3a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: var(--cream);
    border-top: 1px solid rgba(58,46,38,0.08);
    flex-wrap: wrap;
    align-items: center;
  }
  .card-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sky);
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid var(--sky);
    border-radius: 3px;
    transition: all 0.15s;
  }
  .card-link:hover { background: var(--sky); color: white; }

  /* BAND DETAIL MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,20,15,0.85);
    z-index: 200;
    overflow-y: auto;
    backdrop-filter: blur(3px);
  }
  .modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; }
  .modal {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
  }
  @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .modal-header { position: relative; }
  .modal-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
  }
  .modal-photo-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--sky), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
  }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-body { padding: 32px; }
  .modal-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .modal-fav-btn {
    background: none;
    border: 2px solid #e05080;
    color: #e05080;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .modal-fav-btn:hover { background: #e05080; color: white; }
  .modal-fav-btn.fav-active { background: #e05080; color: white; }
  .modal-genre {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 14px;
    border-radius: 20px;
  }
  .modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
  }
  .modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    background: var(--cream);
    border-radius: 8px;
    padding: 16px;
  }
  .detail-item label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mid);
    display: block;
    margin-bottom: 3px;
  }
  .detail-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
  }
  .modal-bio {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #5a4a3a;
    margin-bottom: 24px;
    font-style: italic;
  }
  .modal-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
  }
  .modal-link:hover { background: var(--orange); }

  /* CALENDAR TAB */
  .calendar-container { padding: 36px 32px; max-width: 1400px; margin: 0 auto; }
  .calendar-controls {
    background: var(--dark);
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  .calendar-table-wrap { overflow-x: auto; margin-top: 0; }
  .calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(58,46,38,0.1);
  }
  .calendar-table th {
    background: var(--dark);
    color: var(--cream);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .calendar-table th:hover { background: var(--orange); }
  .calendar-table th .sort-arrow { margin-left: 6px; opacity: 0.4; }
  .calendar-table th.sort-asc .sort-arrow::after { content: '↑'; opacity: 1; }
  .calendar-table th.sort-desc .sort-arrow::after { content: '↓'; opacity: 1; }
  .calendar-table th .sort-arrow::after { content: '↕'; }
  .calendar-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(58,46,38,0.07);
    font-size: 0.88rem;
    vertical-align: middle;
  }
  .calendar-table tr:last-child td { border-bottom: none; }
  .calendar-table tr:hover td { background: #fdf0e8; }
  .calendar-table .band-name-cell {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: var(--dark);
  }
  .calendar-table .band-name-cell:hover { color: var(--orange); text-decoration: underline; }
  .location-pill {
    display: inline-block;
    background: var(--light-sky);
    color: var(--dark);
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }
  .genre-pill {
    display: inline-block;
    background: #fdeee7;
    color: var(--orange);
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    padding: 3px 10px;
    border-radius: 12px;
  }

  /* MAP TAB */
  #map-container {
    height: 520px;
    max-width: 1100px;
    margin: 0 auto 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  }
  .map-popup-name { font-family: 'Playfair Display', serif; font-size: 1.05em; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
  .map-popup-bands { font-size: 0.82em; color: var(--mid); line-height: 1.6; }
  .map-popup-bands span { display: block; }
  .leaflet-popup-content-wrapper { border-radius: 10px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important; }
  .leaflet-popup-content { margin: 14px 16px !important; min-width: 160px; }

  /* ABOUT TAB */
  .about-container { max-width: 860px; margin: 0 auto; padding: 56px 32px; }
  .about-logo-wrap {
    text-align: center;
    margin-bottom: 40px;
  }
  .about-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
  }
  .about-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark);
  }
  .about-sub {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 40px;
  }
  .about-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(58,46,38,0.08);
    border-left: 4px solid var(--orange);
  }
  .about-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--dark);
  }
  .about-section p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #5a4a3a;
    margin-bottom: 12px;
  }
  .about-section p:last-child { margin-bottom: 0; }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
  }
  .stat-box {
    background: var(--dark);
    color: var(--cream);
    padding: 24px;
    border-radius: 10px;
    text-align: center;
  }
  .stat-box .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--orange);
    display: block;
  }
  .stat-box .label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-top: 6px;
  }
  .about-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
  .about-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sky);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s;
  }
  .about-link-btn:hover { background: var(--orange); }
  .about-link-btn.orange { background: var(--orange); }
  .about-link-btn.orange:hover { background: #c94f28; }

  /* NO RESULTS */
  .no-results {
    text-align: center;
    padding: 60px 32px;
    grid-column: 1 / -1;
    color: var(--mid);
    font-style: italic;
  }

  @media (max-width: 600px) {
    /* Header: logo+title row 1, nav full-width row 2 */
    .header-inner {
      padding: 10px 16px 8px;
      gap: 10px;
      flex-wrap: wrap;
    }
    .logo-wrap { width: 38px; height: 38px; }
    .site-title h1 { font-size: 1.15rem; }
    .tagline-full { display: none; }
    .tagline-short { display: inline; }
    nav {
      width: 100%;
      display: flex;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 6px;
      gap: 4px;
    }
    nav button {
      flex: 1;
      padding: 8px 2px;
      font-size: 0.58rem;
      letter-spacing: 0.5px;
    }

    /* Hero */
    .hero { padding: 36px 20px 32px; }
    .hero h2 { font-size: 2.4rem; }
    .hero p { font-size: 0.92rem; }

    /* Controls */
    .controls { padding: 12px 16px; gap: 8px; }
    .controls select, .controls input { max-width: 130px; font-size: 0.68rem; }
    .count-badge { margin-left: 0; }

    /* Grid: single column */
    .bands-grid {
      padding: 16px;
      gap: 16px;
      grid-template-columns: 1fr;
    }

    /* Modal: bottom sheet */
    .modal-overlay.open {
      padding: 0;
      align-items: flex-end;
    }
    .modal {
      border-radius: 16px 16px 0 0;
      max-height: 92vh;
      overflow-y: auto;
    }
    .modal-photo, .modal-photo-placeholder { height: 220px; }
    .modal-body { padding: 20px; }
    .modal-name { font-size: 1.6rem; }
    .modal-details { grid-template-columns: 1fr; }

    /* About */
    .about-container { padding: 32px 16px; }
    .about-section { padding: 20px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-box { padding: 16px 8px; }
    .stat-box .num { font-size: 2rem; }

    /* Calendar */
    .calendar-container { padding: 20px 16px; }
    .calendar-controls { padding: 12px 16px; }

    /* Map */
    #map-container { border-radius: 0; margin: 0 0 32px; height: 420px; }
  }
