/* ============================
   HEADER (logo + brand)
   ============================ */
.site-header .nav-row{
  display:flex; align-items:center; gap:18px; padding:14px 24px;
}
.site-header .brand{
  display:flex; align-items:center; gap:10px;
  margin-right:auto;
  min-width:fit-content;
  white-space:nowrap;
}
.site-header .brand img{
  width:32px; height:32px; object-fit:contain; display:block;
}
.site-header .brand span{
  font-weight:700; font-size:1.25rem; line-height:1;
}

/* ============================
   PAGE CONTAINER (FULL-BLEED + BUFFER)
   This guarantees edge-to-edge rails even if a global .container exists.
   ============================ */
.home-container{
  box-sizing: border-box;
  width:100vw;                /* span viewport */
  max-width:100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* side buffer (~1.5cm) */
  padding-left:50px;
  padding-right:50px;
}

/* ============================
   TITLES
   ============================ */
.home-section-title,
.home-row-title{
  margin:30px 0 16px;
  font-size:1.8rem;
  font-weight:700;
  color:var(--accent);
}

/* ============================
   HOME ROWS (Option C)
   rail / track / card
   ============================ */
.home-wrap { padding:8px 0 40px; }
.home-row  { margin:28px 0 22px; }

/* Horizontal scroller with snap */
.rail{
  --gap:16px;
  --perView:6.1;                       /* 6 full cards + a peek of the 7th (desktop) */
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;

  /* small inner row buffer so cards don't glue to edges */
  padding-left:12px;
  padding-right:12px;
  padding-bottom:6px;
}
.rail::-webkit-scrollbar{ display:none; }

/* Grid-driven card width */
.track{
  display:grid;
  grid-auto-flow:column;
  gap:var(--gap);
  grid-auto-columns:calc(
    (100% - (var(--gap) * (var(--perView) - 1))) / var(--perView)
  );
}

/* Card (desktop/default) */
.card{
  scroll-snap-align:start;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;                   /* desktop radius */
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  overflow:hidden;                      /* clip rounded corners */
  transition:transform .08s ease, box-shadow .12s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.card img{
  display:block;                        /* remove inline-gap */
  width:100%;
  height:180px;                         /* desktop image height */
  object-fit:cover;                     /* fill + crop */
  border:0;                             /* remove lines */
  border-top-left-radius:inherit;
  border-top-right-radius:inherit;
}
.card h3{
  margin:0; padding:12px 14px;
  font-size:1.05rem; font-weight:800; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* --------- Tablet --------- */
@media (min-width:801px) and (max-width:1024px){
  .rail{ --perView:3.2; }              /* ~3 cards + peek */
  .card img{ height:200px; }
}

/* --------- Mobile / small tablets (app style) --------- */
@media (max-width:800px){
  .rail{ --perView:1.15; }             /* ~1 card + peek of next */
  .card{
    border-radius:22px;                /* larger mobile radius */
    box-shadow:0 12px 28px rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.08);
    background:#0f1529;
  }
  .card img{
    height:220px;                      /* taller hero image */
  }
  .card h3{
    padding:14px 16px;
    font-size:1.15rem;
    letter-spacing:.2px;
  }
}
/* ==== FORCE FULL-BLEED CARD IMAGE WITH ROUNDED CORNERS ==== */
/* Higher specificity to beat any earlier .card img rules */
.rail .track .card {
  border-radius: 22px;     /* 16px if you prefer on desktop */
  overflow: hidden;        /* clip the image to the card radius */
  padding: 0;              /* ensure no inner padding */
}

.rail .track .card > img {
  display: block;          /* removes inline-gap */
  width: 100%;
  height: 180px;           /* desktop image height (tune as needed) */
  object-fit: cover;       /* fill + crop neatly */
  margin: 0;
  border: 0;               /* absolutely no border line */
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Mobile: app-style taller image + same full-bleed rounding */
@media (max-width: 800px){
  .rail .track .card {
    border-radius: 22px;
  }
  .rail .track .card > img {
    height: 110px;         /* app hero height (tune if you want) */
  }
}
/* HERO card styles */
.card--hero{
  border-radius:24px;
  padding:48px 32px;
  background: linear-gradient(180deg, rgba(10,15,31,.95), rgba(10,15,31,.80));
  border:1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 32px rgba(36,226,242,.08);
  text-align:center;
}

/* Logo image in the hero */
.card--hero .logo-hero{
  display:block;
  width:200px;          /* adjust if you want bigger/smaller */
  height:auto;
  object-fit:contain;   /* do NOT crop */
  margin:0 auto 12px;
  border-radius:16px;   /* soft edges if your logo is square */
  box-shadow:
    0 12px 32px rgba(0,0,0,.35),
    0 0 22px rgba(255,77,184,.25),
    0 0 10px rgba(36,226,242,.25);
}

/* Optional: hero typography for consistency */
.hero-title{
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}
.hero-subtitle{
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 0 auto 12px;
  max-width: 48ch;
}
.btn-row{ display:inline-flex; gap:12px; justify-content:center; align-items:center; margin-top: 10px; }
.rail .track .card > img{
  display:block;
  width:100%;
  height:180px;
  object-fit:cover;
  margin:0;
  border:0;
  border-top-left-radius:inherit;
  border-top-right-radius:inherit;
}

/* === HERO box layout fix === */
.card--hero {
  width: 100%;
  max-width: 600px;         /* controls hero card width */
  margin: 0 auto 40px;      /* centers it and adds space below */
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 20, 35, 0.95), rgba(15, 20, 35, 0.85));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(36, 226, 242, 0.15);
}

/* keep logo square, not stretched like venue cards */
.card--hero .logo-hero {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(36, 226, 242, 0.25), 0 0 30px rgba(255, 77, 184, 0.15);
}

/* titles + buttons remain centered */
.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  color: #fff;
  margin: 10px 0 14px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--muted, #aaa);
  max-width: 600px;
  margin: 0 auto 18px;
}
.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==========================
   HERO SECTION (TheNightPages)
   ========================== */

.card--hero {
  width: 100%;
  max-width: 950px;             /* keeps it centered and balanced */
  margin: 0 auto 40px;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 20, 35, 0.95), rgba(15, 20, 35, 0.85));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45),
              0 0 25px rgba(36, 226, 242, 0.15);
}

/* --- Your preferred logo styling (confirmed working) --- */
.card--hero .logo-hero {
  width: 150px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 22px rgba(255, 77, 184, .25))
          drop-shadow(0 0 10px rgba(36, 226, 242, .25));
  border-radius: 16px; /* soft edges if the image is square */
}

/* --- Typography + layout --- */
.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  color: #fff;
  margin: 10px 0 14px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted, #aaa);
  max-width: 600px;
  margin: 0 auto 18px;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.card .venue-address {
  font-size: 0.9rem;
  font-weight: 400;
  color: #b5b5b5;
  margin: -4px 0 12px 14px;   /* tucks under the name nicely */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .card .venue-address {
    font-size: 0.85rem;
    margin-left: 12px;
  }
}



.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 8px 0 12px;
}
.see-more-btn {
  border: 1px solid rgba(0,0,0,.12);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  font-weight: 600;
}
.see-more-btn:hover { opacity: .8; }

/* --- See more button: BLUE --- */
.see-more-btn{
  background: #24e2f2;           /* blue */
  color:#1a2238;
  border:1px solid #24e2f2;
  padding:8px 12px;
  border-radius:10px;
  font-weight:700;
  letter-spacing:.2px;
  box-shadow:0 6px 16px rgba(46,107,255,.25);
}
.see-more-btn:hover{ filter:brightness(1.05); }
.see-more-btn:active{ transform:translateY(1px); }




/* ==========================
   COMPACT HERO OVERRIDE (TheNightPages)
   ========================== */

.card--hero {
  width: 100%;
  max-width: 900px;               /* narrower box */
  margin: 0 auto 30px;            /* centered, smaller spacing below */
  border-radius: 18px;
  padding: 24px 20px;             /* half of previous vertical padding */
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 20, 35, 0.95), rgba(15, 20, 35, 0.85));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45),
              0 0 18px rgba(36, 226, 242, 0.12);
}

/* logo inside the hero */
.card--hero .logo-hero {
  width: 150px;                    /* smaller logo */
  height: auto;
  margin: 0 auto 8px;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(255, 77, 184, .2))
          drop-shadow(0 0 6px rgba(36, 226, 242, .2));
}

/* text hierarchy */
.hero-title {
  font-size: clamp(26px, 4vw, 40px);   /* smaller headline */
  font-weight: 800;
  color: #fff;
  margin: 6px 0 10px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted, #b0b6c2);
  max-width: 480px;
  margin: 0 auto 12px;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}




/* === Reduce spacing between homepage rows === */
.home-row {
  margin: 10px 0 6px !important;   /* was ~28px/22px before */
}

.home-section-title,
.home-row-title {
  margin: 20px 0 10px !important;   /* tighter title spacing */
}

.home-wrap {
  padding-bottom: 24px !important;  /* smaller bottom buffer */
}

/* Optional: tighter spacing above the hero section */
.card--hero {
  margin-bottom: 0.5px !important;   /* less gap below hero */
}



.card .event-title{
  color:#dfe8ff; font-weight:700; font-size:.98rem;
  margin:-6px 14px 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card .event-title span{ font-weight:600; opacity:.9; }


/* === Wider layout just for "Today's Live Events" row === */
#row-live-track .card {
  width: 100%;                 /* ensures full width per column calculation */
  height: 300px;               /* same height for all cards */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Make event cards double width by reducing perView for this specific track */
#row-live-track {
  --perView: 3.1;              /* ~3 cards per screen instead of 6 */
  grid-auto-columns: calc(
    (100% - (var(--gap,16px) * (var(--perView) - 1))) / var(--perView)
  );
}

/* Consistent image height */
#row-live-track .card-img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.city-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.city-switcher label {
  color: #eaf3ff;
  opacity: 0.9;
}

.city-switcher select {
  background: #0a1728;
  border: 1px solid #304567;
  border-radius: 999px;
  padding: 4px 10px;
  color: #eaf3ff;
  font-size: 0.9rem;
}

.load-more-wrap {
  margin: 24px 0 8px;
  text-align: center;
}