:root{
  --bg: #3A2712;
  --bg-deep: #1D1203;
  --surface: #4E3717;
  --surface-raised: #604423;
  --gold: #F2B705;
  --gold-dim: #C99A1F;
  --gold-bright: #FFE066;
  --pink: #FF5DA2;
  --pink-bright: #FF85B8; /* pink text on cards (4.9:1 on --surface) */
  --cream: #F5F0E6;
  --muted: #D9BC8A;
  --line: rgba(255,214,130,0.16);
  --field-border: #B0956A; /* form field outline, >=3:1 on every surface */
  --good: #6FE3A8;
  --bad: #FF6B6B;
}
*{box-sizing:border-box;}
html{
  color-scheme: dark; /* native date/time picker and select follow the dark theme */
  /* The sticky header is ~77px tall: keep a focused or anchored element
     from ending up hidden underneath it (WCAG 2.4.11 Focus Not Obscured). */
  scroll-padding-top: 96px;
  /* Always reserve the scrollbar's space so it never shifts the content
     between a short page and a tall one (e.g. Live Position vs. Events),
     but keep it visible — some people rely on it to see where they are and
     to scroll. Thin and themed so it doesn't fight the design. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--bg-deep);
}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 50% -10%, #8A5E22 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  min-height:100vh;
  /* Sticky footer: body is a full-height column (header, then .wrap) so
     .wrap's own column layout below can push a short page's footer down to
     the bottom of the viewport instead of leaving it floating under the
     content. */
  display:flex;
  flex-direction:column;
}
a{ color: inherit; }

/* ACCESSIBILITY HELPERS */
.visually-hidden{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link{
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: var(--gold);
  color: #241A00;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus{ top: 12px; }
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.leaflet-container:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Programmatic focus targets (page heading after navigation, skip-link
   target) — focus lands there for screen readers, no ring needed. */
#app:focus, #app h1:focus{ outline: none; }

/* HEADER / NAV */
.site-header{
  position: sticky;
  top: 0;
  /* Leaflet's own zoom-control container sits at z-index:1000 (its highest
     layer) — without this being higher, the live map's controls painted
     over the sticky header instead of scrolling underneath it. */
  z-index: 1001;
  flex-shrink: 0;
  background: rgba(29,18,3,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.brand img{
  height: 48px;
  width: 48px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(242,183,5,0.35));
}
.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  cursor:pointer;
}
.main-nav{
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
  margin-left: auto;
}
.lang-switch{
  display:inline-flex;
  align-items:center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.lang-switch:hover{ border-color: var(--gold); color: var(--gold); }
.main-nav a{
  text-decoration:none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--cream); }
.main-nav a.active{ color: var(--gold); border-color: var(--gold); }

@media (max-width: 620px){
  .nav-toggle{ display:block; margin-left: auto; }
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 20px 16px;
    display: none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ width:100%; padding: 10px 0; }
}

.wrap{
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 80px;
  flex: 1;
  display:flex;
  flex-direction:column;
}
#app{ flex: 1; }

/* PAGE HEAD (Events / Media / Booking / Login) */
.page-head{ margin: 4px 0 26px; }
.page-title{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: clamp(28px, 6vw, 40px);
  margin: 0 0 6px;
  background: linear-gradient(100deg, var(--gold-dim) 0%, var(--gold) 22%, var(--gold-bright) 50%, var(--gold) 78%, var(--gold-dim) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* One pass only: never-ending motion would need a pause control (WCAG 2.2.2). */
  animation: shimmer 5s linear 1;
}
.page-sub{ color: var(--muted); font-size: 15px; margin:0; }

/* HERO */
.hero{
  text-align:center;
  padding: 12px 0 28px;
  position:relative;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.dot{ width:8px; height:8px; border-radius:50%; background: var(--bad); flex-shrink:0; transition: background .3s; }
/* Pulses three times to draw the eye when we go live, then stays steady (WCAG 2.2.2). */
.dot.on{ background: var(--good); box-shadow: 0 0 0 0 rgba(111,227,168,.5); animation: pulse 1.8s ease-out 3; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(111,227,168,.55); }
  70%{ box-shadow: 0 0 0 9px rgba(111,227,168,0); }
  100%{ box-shadow: 0 0 0 0 rgba(111,227,168,0); }
}
h1{
  font-family:'Anton', sans-serif;
  font-weight:400;
  letter-spacing: 0.5px;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 0.98;
  margin: 0 0 6px;
  text-shadow: 0 0 28px rgba(242,183,5,0.25);
  background: linear-gradient(100deg, var(--gold-dim) 0%, var(--gold) 22%, var(--gold-bright) 50%, var(--gold) 78%, var(--gold-dim) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* One pass only: never-ending motion would need a pause control (WCAG 2.2.2). */
  animation: shimmer 5s linear 1;
}
@keyframes shimmer{
  0%{ background-position: 0% center; }
  100%{ background-position: -220% center; }
}
.sub{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--pink);
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.tag{
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* STATUS LINE ABOVE MAP */
.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 30px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.status-text{ font-size: 14px; color: var(--muted); }
.status-text b{ color: var(--cream); font-weight:600; }
.place-line{ margin: -4px 0 12px; font-size: 14px; color: var(--cream); }
.place-line:empty{ display:none; }
.place-line a{ color: var(--gold); font-weight: 700; }

/* MAP */
.map-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
#map{
  width:100%;
  height: 380px;
  background: #1d1203;
}
.leaflet-container{ font-family:'Space Grotesk', sans-serif; background: #1d1203; }
/* Recolor plain OpenStreetMap raster tiles (free, no API key) to match the
   site's dark theme instead of relying on a hosted "dark" tile style. */
.leaflet-tile-pane .dark-tiles{
  filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(0.85) saturate(0.85);
}

.empty-map-note{
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display:flex;
  align-items:center;
  gap:8px;
}

/* OFFLINE / EVENTS TEASER (home) */
.offline-block{ margin-top: 20px; }
.offline-badge{
  display:inline-block;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ffb3b3;
  padding: 10px 18px;
  border-radius: 999px;
  font-family:'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.event-teaser-list{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.event-teaser-card{
  display:block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-teaser-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  border-color: var(--gold-dim);
}
.event-teaser-card img{
  width:100%;
  height: 120px;
  object-fit: cover;
  display:block;
}
.event-teaser-body{ padding: 12px 14px; }
.event-teaser-date{ font-size: 12px; color: var(--gold); font-weight:600; margin-bottom: 4px; }
.event-teaser-title{ font-size: 15px; font-weight:700; margin-bottom: 4px; }
.event-teaser-loc{ font-size: 13px; color: var(--muted); }
.teaser-empty, .empty-note-text{ color: var(--muted); font-size: 14px; }

/* LIVE GUIDE + KARAFUN (home, while broadcasting) */
.live-guide{
  margin-top: 30px;
  text-align: center;
}
.live-guide p{
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.karafun-card{
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.karafun-title{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 14px;
}
.karafun-now-playing{
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.karafun-now-song{ font-weight:700; font-size: 15px; color: var(--cream); }
.karafun-now-singer{ font-size: 13px; color: var(--muted); margin-top: 2px; }
.karafun-subtitle{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 14px;
  color: var(--cream);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.karafun-queue{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.karafun-queue li{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.karafun-queue-n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #241A00;
  font-weight:700;
  font-size: 12px;
  flex-shrink:0;
}
#liveEventsTeaser{ margin-top: 30px; }

/* EVENT CARDS (Events page) */
.events-list{
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-bottom: 12px;
}
.event-card{
  display:flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  border-color: var(--gold-dim);
}
.event-card-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.event-card-body{ padding: 18px; }
.event-card-date{ font-size: 12px; color: var(--gold); font-weight:700; letter-spacing: 0.3px; margin-bottom:6px; }
.event-card-title{ font-family:'Anton', sans-serif; font-weight:400; font-size: 19px; margin: 0 0 6px; color: var(--cream); }
.event-card-desc{ font-size: 14px; color: var(--muted); line-height:1.5; margin: 0 0 8px; word-break: break-word; }
.desc-link{ color: var(--gold); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-dim); }
.desc-link:hover{ color: var(--gold-bright); }
.event-card-loc{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ics-btn{ font-weight: 700; }

.event-card-actions{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.event-action-btn{
  background:none;
  border:none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor:pointer;
  padding: 0 4px;
  min-height: 44px;
  min-width: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 5px;
}
.event-action-btn:hover{ color: var(--cream); }
.like-btn.active{ color: var(--pink-bright); }
.like-icon{ font-size: 15px; }

.event-card-highlight{
  animation: card-pulse 2.2s ease;
}
@keyframes card-pulse{
  0%{ box-shadow: 0 0 0 3px var(--gold); }
  100%{ box-shadow: 0 0 0 0 rgba(242,183,5,0); }
}

/* Fade only the image — fading the whole card dropped its text to ~3:1. */
.event-card-past{ background: var(--bg); }
.event-card-past .event-card-img{ opacity: 0.55; filter: grayscale(0.6); }
@media (max-width: 500px){
  .event-card-img{ height: 160px; }
  .event-card-body{ padding: 14px 16px; }
}

/* Past events: 3-up grid with square cover images (desktop), 1-up on mobile */
.events-list-past{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 620px){
  .events-list-past{ grid-template-columns: 1fr; }
}
.events-list-past .event-card-img{
  height: auto;
  aspect-ratio: 1 / 1;
}

.past-heading{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 22px;
  color: var(--cream);
  margin: 36px 0 6px;
}
.past-year{
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 10px;
}

/* MEDIA PAGE */
.media-page{ display:flex; flex-direction:column; gap: 34px; }
.media-section-title{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 14px;
}
.media-note{ font-size: 14px; color: var(--muted); }
.media-note a{ color: var(--pink-bright); font-weight:600; }

/* Follow cards: big, thumb-friendly buttons with the live follower count */
.follow-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.follow-card{
  display:flex;
  align-items:center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration:none;
  transition: border-color .15s ease, background .15s ease;
}
.follow-card:hover{ border-color: var(--gold-dim); background: var(--surface-raised); }
.follow-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--gold);
  flex-shrink:0;
}
.follow-icon svg{ width: 20px; height: 20px; fill: currentColor; }
.follow-text{ display:flex; flex-direction:column; min-width:0; flex:1; }
.follow-platform{ font-weight:700; font-size: 15px; color: var(--cream); }
.follow-count{ font-size: 13px; color: var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.follow-count b{ color: var(--gold); }
.follow-cta{
  flex-shrink:0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #241A00;
  font-weight:700;
  font-size: 13px;
}
.follow-card:hover .follow-cta{ background: #ffd23f; }

/* Featured clip: poster that turns into the real player on tap */
.featured-card{
  display:grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 22px;
  align-items:center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.featured-stage{
  position:relative;
  width:100%;
  border-radius: 12px;
  overflow:hidden;
  background:#000;
  aspect-ratio: 9 / 16;
  max-height: 560px;
}
.featured-stage.featured-youtube{ aspect-ratio: 16 / 9; }
.featured-play{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}
.featured-play img{ width:100%; height:100%; object-fit:cover; display:block; }
.play-icon{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius:50%;
  background: rgba(29,18,3,0.78);
  border: 2px solid var(--gold);
  color: var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
  padding-left: 4px;
}
.featured-play:hover .play-icon{ background: var(--gold); color:#241A00; }
.featured-media{ position:absolute; inset:0; width:100%; height:100%; border:0; background:#000; }
.featured-meta{ display:flex; flex-direction:column; gap: 14px; }
.featured-caption{
  margin:0;
  font-size: 15px;
  line-height:1.55;
  color: var(--cream);
  display:-webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.featured-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color: var(--pink-bright);
  font-weight:700;
  text-decoration:none;
}
.featured-link:hover{ text-decoration:underline; }

/* One combined feed with filter chips */
.media-filters{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip{
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--field-border);
  background: transparent;
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  font-weight:600;
  cursor:pointer;
}
.filter-chip:hover{ border-color: var(--gold); }
.filter-chip[aria-pressed="true"]{ background: var(--gold); border-color: var(--gold); color:#241A00; }
.media-feed{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.media-more{ display:flex; flex-direction:column; align-items:center; gap: 12px; margin-top: 18px; }
.media-count{ margin:0; font-size: 13px; color: var(--muted); }
.more-btn{
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--gold);
  font-family: inherit;
  font-size: 15px;
  font-weight:700;
  cursor:pointer;
}
.more-btn:hover{ background: var(--surface-raised); }

.social-post{
  position:relative;
  display:block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow:hidden;
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-post:hover{
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  z-index: 1;
}
.social-post img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.social-post-badge{
  position:absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: var(--cream);
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;
}
.tile-platform{
  position:absolute;
  left: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tile-platform svg{ width: 14px; height: 14px; fill: currentColor; }
.social-post-preview{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  object-fit: cover;
  border: none;
  background: #000;
}

@media (max-width: 700px){
  .follow-grid{ grid-template-columns: 1fr; }
  .featured-card{ grid-template-columns: 1fr; padding: 12px; }
  .featured-stage{ max-width: 360px; margin: 0 auto; max-height: 70vh; }
  .featured-stage.featured-youtube{ max-width: none; }
  .media-feed{ grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .media-page{ gap: 28px; }
}

/* Admin: anonymous link-click counters */
.clicks-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.clicks-list li{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.clicks-list b{ color: var(--gold); }

/* FORMS (shared: booking + login + event editor) */
.card-form{
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
}
.card-form h2, .card-form h3{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--gold);
}
.card-form .desc{ font-size:13px; color:var(--muted); margin:0 0 18px; line-height:1.5; }

.field-label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.field-label.small{ flex:1; }
.event-editor-row{ display:flex; gap: 12px; }
@media (max-width: 500px){
  .event-editor-row{ flex-direction: column; gap:0; }
}

.text-input{
  width:100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--field-border);
  background: var(--bg-deep);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.text-input:focus{ outline: 2px solid var(--gold); outline-offset: 1px; }
select.text-input{ min-height: 46px; }
input[type="datetime-local"].text-input{ min-height: 46px; }
.text-input::placeholder{ color: var(--muted); }
.textarea{ min-height: 90px; resize: vertical; }

.broadcast-btn{
  width:100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.5px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease;
  margin-top: 6px;
}
.broadcast-btn:disabled{ opacity: 0.6; cursor: not-allowed; }
.broadcast-btn:active{ transform: scale(0.98); }
.broadcast-btn.start{
  background: var(--gold);
  color: #241A00;
}
.broadcast-btn.start:hover{ background: #ffd23f; }
.broadcast-btn.stop{
  background: var(--bad);
  color: #2b0000;
}
.broadcast-btn.stop:hover{ background: #ff8a8a; }

.link-btn{
  background:none;
  border:none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
  cursor:pointer;
  font-family: inherit;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.link-btn:hover{ color: var(--cream); }
.link-btn.see-all{ margin-top: 4px; }

.gps-line{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  min-height: 18px;
}

.error-box{
  margin-top: 14px;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ffb3b3;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height:1.5;
  display:none;
}
.error-box.show{ display:block; }

.success-box{
  margin-top: 14px;
  background: rgba(111,227,168,0.12);
  border: 1px solid rgba(111,227,168,0.35);
  color: var(--good);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height:1.5;
  display:none;
}
.success-box.show{ display:block; }

/* LOCATION AUTOCOMPLETE + MINI MAPS */
.location-field-wrap{ position: relative; }
.g-recaptcha{ margin: 4px 0 16px; max-width: 100%; overflow: hidden; }
.location-suggestions{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2px;
}
.location-suggestions:empty{ display:none; }
.location-suggestion{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 14px;
  cursor:pointer;
  border-bottom: 1px solid var(--line);
}
.location-suggestion:last-child{ border-bottom: none; }
.location-suggestion:hover,
.location-suggestion[aria-selected="true"]{ background: var(--surface); color: var(--gold); }

.event-editor-map, .event-card-map{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  height: 160px;
  margin: 10px 0;
  background: #1d1203;
}

/* ADMIN EVENT EDITOR + LIST */
.event-editor{ margin-top: 4px; }
.admin-events-list h2{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 14px;
}
.admin-event-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.admin-event-title{ font-weight:700; font-size: 14px; margin-bottom: 2px; }
.admin-event-date{ font-size: 12px; color: var(--muted); }
.admin-event-actions{ display:flex; gap: 14px; flex-shrink:0; }

.admin-feeds-row{
  display:flex;
  gap: 12px;
}
.admin-feed-action{
  flex:1;
  min-width: 0;
}
.feed-update-btn{
  width:100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--cream);
  font-family: inherit;
  font-weight:600;
  font-size: 13px;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.feed-update-btn:hover{ border-color: var(--gold-dim); color: var(--gold); }
.feed-update-btn:disabled{ opacity: .6; cursor: not-allowed; }
@media (max-width: 420px){
  .admin-feeds-row{ flex-direction: column; }
}

footer{
  text-align:center;
  margin-top: 50px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
.footer-columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 20px;
}
.footer-divider{
  width: 240px;
  max-width: 60%;
  height: 1px;
  background: var(--line);
  margin: 0 auto 20px;
}
.footer-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 0 20px;
}
@media (max-width: 600px){
  .footer-columns{ grid-template-columns: 1fr; gap: 24px; }
  .footer-col:first-child{
    padding-bottom: 24px;
  }
}
.footer-newsletter p{
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.newsletter-form{
  display:flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.newsletter-form input{
  flex:1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--bg-deep);
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
}
.newsletter-form input::placeholder{ color: var(--muted); }
.newsletter-form input:focus{ outline: 2px solid var(--gold); outline-offset: 1px; }
.newsletter-form button{
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: #241A00;
  font-family: inherit;
  font-weight:700;
  font-size: 13px;
  cursor:pointer;
  white-space:nowrap;
  transition: background .15s ease;
}
.newsletter-form button:hover{ background: #ffd23f; }
.newsletter-form button:disabled{ opacity: .6; cursor: not-allowed; }
@media (max-width: 420px){
  .newsletter-form{ flex-direction: column; }
}
.newsletter-msg{
  margin-top: 10px;
  font-size: 12px;
  display:none;
}
.newsletter-msg.show{ display:block; }
.newsletter-msg.success{ color: var(--good); }
.newsletter-msg.error{ color: var(--bad); }
.footer-social{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer-social-link:hover{ color: var(--gold); border-color: var(--gold-dim); background: var(--surface); }
.footer-social-link svg{ width: 18px; height: 18px; fill: currentColor; }
.footer-contact{ margin-bottom: 18px; }
.footer-contact a{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  color: var(--muted);
  text-decoration:none;
  font-size: 13px;
}
.footer-contact a:hover{ color: var(--gold); }
.footer-contact svg{ width: 15px; height: 15px; flex-shrink:0; }
.footer-links{
  margin-top: 8px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
}
.footer-links a{
  color: var(--muted);
  text-decoration:none;
}
.footer-links a:hover{ color: var(--cream); text-decoration:underline; }

/* LEGAL PAGES (Privacy / Terms) */
.legal-content{ max-width: 680px; }
.about-content p, .about-content ul{ font-size: 16px; }
.legal-content p{ color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.legal-content ul{ color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 16px; padding-left: 20px; }
.legal-content li{ margin-bottom: 8px; }
.legal-content b{ color: var(--cream); }
.legal-content a{ color: var(--pink); font-weight: 600; }
.legal-content h2{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  color: var(--gold);
  margin: 28px 0 10px;
}

/* REDUCED MOTION — honour the OS setting: no shimmer, pulse, lift or smooth
   scrolling for people who get dizzy or distracted by movement. */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .event-card:hover, .event-teaser-card:hover, .social-post:hover{ transform: none; }
}
