 
/* ==========================
   Event Page v2 (rebuilt)
   ========================== */

.eventv2{ max-width: 980px; margin: 0 auto; padding: 14px 14px 110px; }

.eventv2-hero{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  aspect-ratio: 16 / 9;
  max-height: 380px;
}
.eventv2-heroVideo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}
.eventv2-heroBadge{
  position:absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.eventv2-bubble{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Meta block moved below hero so video stays clean */
.eventv2-heroMeta{
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}
.eventv2-topMeta{ display:flex; align-items:center;
  flex-wrap: wrap; gap:10px; }
.eventv2-friendsPill{
  display:inline-flex; align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.eventv2-title{ margin:0; font-size: 32px; letter-spacing: -0.6px; }
.eventv2-sub{ margin:0; color: rgba(255,255,255,0.75); font-weight: 700; }

.eventv2-ctaRow{ display:flex; gap:10px; flex-wrap:wrap; }
.eventv2-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  text-decoration:none;
  min-width: 112px;
}
.eventv2-cta.secondary{ background: rgba(0,0,0,0.35); }
.eventv2-cta:active{ transform: translateY(1px); }

.eventv2-details, .eventv2-updates, .eventv2-feed, .eventv2-tickets{
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}

.eventv2-detailRow{ display:flex; justify-content:space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.eventv2-detailRow:last-of-type{ border-bottom: none; }
.eventv2-k{ color: rgba(255,255,255,0.55); font-weight: 900; letter-spacing: 0.16em; font-size: 12px; text-transform: uppercase; }
.eventv2-v{ color: rgba(255,255,255,0.92); font-weight: 900; text-align:right; }
.eventv2-desc{ margin: 12px 0 0; color: rgba(255,255,255,0.78); font-weight: 700; line-height: 1.35; }
.eventv2-tags{ margin-top: 12px; display:flex; gap: 8px; flex-wrap: wrap; }

.eventv2-sectionHead h2{ margin:0; font-size: 18px; letter-spacing: -0.2px; }
.eventv2-subhead{ margin-top: 6px; color: rgba(255,255,255,0.65); font-weight: 700; }

.eventv2-updateComposer{ margin-top: 12px; }
.eventv2-textarea{
  width: 100%;
  resize: none;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  padding: 12px;
  font-weight: 700;
  outline: none;
}
.eventv2-composerRow{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-top: 10px; }
.eventv2-hint{ color: rgba(255,255,255,0.55); font-weight: 700; font-size: 12px; }
.eventv2-btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}

.eventv2-updatesList{ margin-top: 12px; display:flex; flex-direction:column; gap: 10px; }
.eventv2-update{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.32);
  padding: 12px;
}
.eventv2-updateTop{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.eventv2-updateTag{ font-weight: 900; color: rgba(255,255,255,0.85); }
.eventv2-updateTime{ font-weight: 800; color: rgba(255,255,255,0.55); font-size: 12px; }
.eventv2-updateText{ margin-top: 8px; color: rgba(255,255,255,0.82); font-weight: 750; line-height: 1.35; }

.eventv2-feedViewport{ margin-top: 12px; display:flex; flex-direction:column; gap: 12px; }
.eventv2-post{ border-radius: 22px; overflow:hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.30); }
.eventv2-postMedia{ position:relative; }
.eventv2-postVideo, .eventv2-postImg{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display:block;
}
.eventv2-postGrad{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.82)); }
.eventv2-postOverlay{ position:absolute; left: 14px; right: 14px; bottom: 14px; display:flex; flex-direction:column; gap: 6px; }
.eventv2-pill{
  align-self:flex-start;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.40);
  font-weight: 900;
}
.eventv2-postTitle{ font-size: 22px; font-weight: 950; letter-spacing: -0.4px; }
.eventv2-postMeta{ color: rgba(255,255,255,0.70); font-weight: 800; }

.eventv2-ticketGrid{ margin-top: 12px; display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eventv2-ticket{ border-radius: 18px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.30); padding: 14px; }
.eventv2-ticket .n{ font-size: 26px; font-weight: 950; }
.eventv2-ticket .l{ color: rgba(255,255,255,0.68); font-weight: 800; margin-top: 2px; }

html{ -webkit-text-size-adjust: 100%; }

@media (max-width: 520px){
  .eventv2{ padding-left: 12px; padding-right: 12px; }
  .eventv2-title{ font-size: 30px; }
  .eventv2-cta{ flex: 1 1 auto; min-width: 0; }
  .eventv2-v{ max-width: 65%; }
  .eventv2-ticketGrid{ grid-template-columns: 1fr; }
}

/*
 * VIPnvite dark theme styling
 * Inspired by Apple.com but inverted for a sleek, all‑black interface.
 */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  /* Prevent iOS Safari from auto-inflating font sizes on "desktop-like" layouts */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}
nav a {
  margin-left: 24px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
nav a:hover {
  color: #fff;
}

/* Hero section */
.hero-section {
  padding: 60px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}
.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.hero-section p {
  font-size: 1.1rem;
  color: #888;
  max-width: 600px;
  margin: 0 auto;
}

/* Event strip */
.strip-section {
  padding: 32px 24px;
}
.strip-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-left: 4px solid #444;
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.strip-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding-bottom: 8px;
}
.event-card {
  flex: 0 0 auto;
  width: 240px;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.event-card .event-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.event-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.event-card p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #bbb;
}

/* Moments feed */
.feed-section {
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.feed-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-left: 4px solid #444;
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.moments-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.moment-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.moment-card img {
  width: 100%;
  height: auto;
  display: block;
}
.moment-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px;
  color: #ddd;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

/* Footer */
footer {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

/* Reels-style event ads (video cards, NOT full-screen) */
.reels-page {
  padding: 18px 14px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.reels-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 10px;
}
.reels-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
}
.reels-header p {
  margin: 0;
  color: #8e8e8e;
  font-size: 0.95rem;
}
.reels-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.chip {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 10px;
  border-radius: 999px;
  color: #d8d8d8;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.04);
}
.chip:hover { background: rgba(255,255,255,0.08); }
.chip.active { border-color: rgba(255,255,255,0.35); color: #fff; }

.reels-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) { .reels-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reels-feed { grid-template-columns: 1fr; } }

.reel-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  min-height: 520px; /* tall reels look without full-screen */
}
@media (max-width: 560px) { .reel-card { min-height: 560px; } }

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.25) 30%,
    rgba(0,0,0,0.70) 78%,
    rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}

.reel-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.badge {
  font-size: 0.78rem;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}
.reel-actions { display: flex; gap: 10px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-btn:active { transform: translateY(1px); }

.reel-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}
.reel-title {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.reel-meta {
  margin: 0 0 10px 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}
.reel-cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reel-cta {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}
.reel-cta:hover { background: rgba(255,255,255,0.16); }
.reel-subcta {
  text-decoration: none;
  color: #d0d0d0;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
}
.reel-subcta:hover { background: rgba(255,255,255,0.06); }
.reel-muted-hint {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  margin-top: 10px;
}


/* ===== App shell (mobile-first) ===== */
:root{
  --tabbar-h: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
.app-topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(0,0,0,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.app-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hamburger */
.hambtn{
  position:relative;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:inherit;
  border-radius:12px;
  padding:0;
  flex: 0 0 auto;
}
.hambtn svg{ width:20px; height:20px; }
.hambadge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:12px;
  line-height:18px;
  text-align:center;
  border:2px solid rgba(0,0,0,.75);
}

/* Drawer */
.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.42);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:120;
}
.drawer-backdrop.show{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed;
  top:0;
  left:0;
  height:100dvh;
  width:min(82vw, 330px);
  background:rgba(18,18,20,.96);
  backdrop-filter: blur(18px);
  border-right:1px solid rgba(255,255,255,.10);
  transform:translateX(-105%);
  transition:transform .22s ease;
  z-index:140;
  display:flex;
  flex-direction:column;
}
.drawer.show{ transform:translateX(0); }

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.drawer-brand{ font-weight:700; letter-spacing:.2px; }
.drawer-close{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:inherit;
  font-size:20px;
  line-height:0;
}

.drawer-nav{ padding:10px 10px 14px; display:flex; flex-direction:column; gap:4px; }
.drawer-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  color:inherit;
  text-decoration:none;
  border:1px solid transparent;
}

/* Per-item unread badges in the drawer */
.drawer-badge{
  margin-left:auto;
  min-width:22px;
  height:18px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  color:#fff;
  background:rgba(255,59,48,.95);
  box-shadow:0 10px 24px rgba(255,59,48,.22);
}
.drawer-link:hover{ border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.06); }
.drawer-sep{ height:1px; margin:8px 6px; background:rgba(255,255,255,.10); }

body.no-scroll{ overflow:hidden; }
.brand{
  font-weight: 700;
  letter-spacing: 0.6px;
  color:#fff;
  font-size: 1.05rem;
}
.top-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.pill{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color:#e6e6e6;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.pill:active{ transform: translateY(1px); }

main.app-main{
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

/* Bottom tab bar */
.tabbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(0,0,0,0.78);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  z-index: 30;
}
.tabbar-inner{
  height: var(--tabbar-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 10px;
}
.tab{
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  display:flex;
  flex-direction: column;
  gap: 6px;
  align-items:center;
  font-size: 0.78rem;
  padding: 8px 6px;
  border-radius: 14px;
  flex: 1;
  min-width: 0;
}
.tab .lbl{
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.74rem;
}
.tab .icon{
  width: 26px; height: 26px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.95rem;
}
.tab.active{
  color:#fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.tab.active .icon{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

/* Hide old header nav (kept for compatibility) */
.app-header{ display:none !important; }

/* ===== Home tabs (Upcoming / Recaps) ===== */
.home-hub{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.hub-title{
  margin: 14px 0 10px;
  font-size: 1.5rem;
}
.hub-sub{
  margin: 0 0 16px;
  color:#9a9a9a;
}
.segmented{
  display:flex;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
}
.seg-btn{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.70);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  font-size: 0.95rem;
}
.seg-btn.active{
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
}
.section-title{
  margin: 18px 0 12px;
  font-size: 1.05rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-left: 4px solid rgba(255,255,255,0.18);
  padding-left: 10px;
}
.hidden{ display:none !important; }

/* Video card grid (not full screen) */
.video-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 920px){
  .video-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.video-card{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:#0b0b0b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  aspect-ratio: 3 / 4; /* tall but not full-screen */
}
.video-card video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.video-card .overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.25) 30%,
    rgba(0,0,0,0.75) 80%,
    rgba(0,0,0,0.90) 100%);
}
.video-card .toprow{
  position:absolute; top: 10px; left:10px; right:10px;
  display:flex; justify-content:space-between; align-items:center;
  z-index:2;
}
.video-card .bottomrow{
  position:absolute; left: 10px; right:10px; bottom:10px;
  z-index:2;
}
.video-card .t{
  margin:0 0 6px;
  font-weight:800;
  font-size: 1.02rem;
}
.video-card .m{
  margin:0 0 10px;
  color:#d0d0d0;
  font-size:0.9rem;
}
.small-cta-row{ display:flex; gap: 10px; flex-wrap:wrap; }
.small-cta{
  text-decoration:none;
  color:#fff;
  font-weight:800;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
}
.small-cta:hover{ background: rgba(255,255,255,0.16); }


/* ===== Upcoming cards upgrades ===== */
.friends-row{
  display:flex;
  align-items:center;
  gap: 6px;
}
.friends-avatars{
  display:flex;
  align-items:center;
}
.friends-avatars .dot{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  margin-left: -6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.friends-avatars .dot.has-img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.friends-avatars .dot:first-child{ margin-left: 0; }
.avatars{
  display:flex;
  align-items:center;
}
.avatar{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  margin-left: -6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.avatar.has-img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.avatar:first-child{ margin-left: 0; }
.friends-text{
  color: rgba(255,255,255,0.80);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.badge.weekend{ border-color: rgba(255,255,255,0.22); }
.badge.tickets{ border-color: rgba(255,255,255,0.22); }
.badge.tickets::before{
  content: "●";
  margin-right: 6px;
  color: #33ff99;
  font-size: 0.75rem;
}
.badge.weekend::before{
  content: "●";
  margin-right: 6px;
  color: #7aa7ff;
  font-size: 0.75rem;
}

/* Active playing card affordance */
.video-card.is-playing{
  outline: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 46px rgba(0,0,0,0.60);
}


/* ===== Recaps feed upgrades ===== */
.badge.recap{
  border-color: rgba(255,255,255,0.22);
}
.badge.recap::before{
  content: "●";
  margin-right: 6px;
  color: #ffb84d; /* warm 'memory' tone */
  font-size: 0.75rem;
}
.friends-text.went{
  background: rgba(0,0,0,0.50);
  border-color: rgba(255,255,255,0.12);
}
.friends-text.went::before{
  content: "✓";
  margin-right: 6px;
  color: rgba(255,255,255,0.85);
}
.small-cta.secondary{
  background: rgba(0,0,0,0.38);
  border-color: rgba(255,255,255,0.10);
  color: #d8d8d8;
}
.small-cta.secondary:hover{
  background: rgba(255,255,255,0.07);
}


/* ===== Event page: status-based layouts ===== */
.event-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 40px;
}
.event-hero2{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0b0b0b;
  box-shadow: 0 16px 46px rgba(0,0,0,0.55);
}
.event-hero2 video,
.event-hero2 img{
  width: 100%;
  height: 44vh;
  min-height: 320px;
  object-fit: cover;
  display:block;
}
.event-hero2 .hero-grad{
  position:absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.85) 100%);
}
.event-hero2 .hero-content{
  position:absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
}
.event-hero2 .hero-title{
  margin:0 0 6px;
  font-size: 1.7rem;
  font-weight: 900;
}
.event-hero2 .hero-meta{
  margin:0 0 10px;
  color: rgba(255,255,255,0.80);
}

.event-status-bar{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
}
.event-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.status-toggle{
  display:flex;
  gap:10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
}
.status-btn{
  border:0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.status-btn.active{
  background: rgba(255,255,255,0.10);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.10);
}
.event-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
@media (max-width: 900px){
  .event-grid{ grid-template-columns: 1fr; }
}

/* Mobile-first event layout: remove the "desktop card" look */
@media (max-width: 680px){
  .event-shell{
    max-width: none;
    padding: 12px 12px calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  }

  /* Make hero feel like a mobile header, not a huge desktop panel */
  .event-hero2{
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  }
  .event-hero2 video,
  .event-hero2 img{
    height: 34vh;
    min-height: 240px;
  }
  .event-hero2 .hero-title{ font-size: 1.45rem; }

  /* Kill the big boxed panels on phones */
  .panel{
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .event-grid{ gap: 18px; }

  /* Section headers + subtle separators instead of heavy boxes */
  .panel h3{
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 1.02rem;
  }
  /* First section in each column should not have a top divider */
  .event-grid > .panel:first-child h3{ margin-top: 0; padding-top: 0; border-top: 0; }

  /* Key/Value: stacked, tighter */
  .kv{
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 12px 0;
  }
  .kv .k{ font-size: 0.85rem; letter-spacing: 1.6px; text-transform: uppercase; }
  .kv .v{ font-size: 1.12rem; line-height: 1.25; }

  /* Actions row: keep compact */
  .event-status-bar{
    align-items: flex-start;
    flex-direction: column;
  }
  .event-actions{
    width: 100%;
    justify-content: flex-start;
  }

  /* CTA: not sticky on mobile (feels like a desktop dock) */
  .sticky-cta{
    position: static;
    margin-top: 14px;
  }
  .big-cta{ width: 100%; flex: 1 1 auto; }

  /* Timeline reel should behave like a real carousel */
  .timeline-reel{
    touch-action: pan-x;
    scroll-padding-left: 6px;
  }
  .segment{ scroll-snap-align: start; }
}
.panel{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
}
.panel h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}
.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin: 10px 0;
  color: rgba(255,255,255,0.85);
}
.kv .k{ color: rgba(255,255,255,0.60); font-weight: 800; }
.kv .v{ color: rgba(255,255,255,0.90); font-weight: 700; }

.sticky-cta{
  position: sticky;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.big-cta{
  flex: 1 1 180px;
  text-align:center;
  text-decoration:none;
  color:#fff;
  font-weight: 900;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}
.big-cta:hover{ background: rgba(255,255,255,0.18); }
.big-cta.secondary{
  background: rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}
.big-cta.secondary:hover{ background: rgba(255,255,255,0.06); }

.highlights{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hl{
  flex: 1 1 160px;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
}
.hl .n{
  font-size: 1.4rem;
  font-weight: 900;
}
.hl .l{
  color: rgba(255,255,255,0.70);
  font-weight: 800;
}

.event-hidden{ display:none !important; }


/* ===== Timeline Reel UI ===== */
.timeline-wrap{
  margin-top: 14px;
}
.timeline-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline-head .sub{
  color: rgba(255,255,255,0.60);
  font-weight: 700;
  font-size: 0.9rem;
}
.timeline-reel{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 6px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Keep horizontal swipes contained in the carousel on mobile */
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.timeline-reel::-webkit-scrollbar{ height: 10px; }
.timeline-reel::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}
.segment{
  flex: 0 0 auto;
  width: 220px;
  border-radius: 16px;
  overflow:hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0b0b0b;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  scroll-snap-align: start;
}
@media (max-width: 560px){
  .segment{ width: 78vw; max-width: 320px; }
}
.segment video, .segment img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display:block;
  /* iOS Safari: let the parent carousel receive swipe gestures */
  pointer-events: none;
}
.segment .seg-grad{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.78) 100%);
  pointer-events:none;
}
.segment .seg-meta{
  position:absolute; left: 10px; right: 10px; bottom: 10px;
  z-index: 2;
}
.seg-kicker{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}
.seg-title{
  margin: 8px 0 0;
  font-weight: 900;
  font-size: 1.02rem;
}
.seg-time{
  margin: 4px 0 0;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Stitched look (Past) */
.stitch-grid{
  display:flex;
  gap: 6px;
  position:absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}
.stitch{
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.06);
}
.stitch img{
  width:100%; height:100%; object-fit: cover; display:block;
}
.stitch::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}


/* ===== Post flows (UI-only) ===== */
.post-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.post-head{
  margin-top: 8px;
}
.post-head h1{
  margin: 0 0 6px;
  font-size: 1.55rem;
}
.post-head p{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.post-tabs{
  display:flex;
  gap:10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
}
.post-tab{
  border:0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.post-tab.active{
  background: rgba(255,255,255,0.10);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.10);
}

.wizard{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .wizard{ grid-template-columns: 1fr; }
}

.wiz-steps{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
}
.step{
  display:flex;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,0.78);
  align-items: center;
}
.step .dot{
  width: 28px; height: 28px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
}
.step .lbl{
  font-weight: 900;
}
.step.active{
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
}
.step.active .dot{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.16);
}

.wiz-panel{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px){
  .form-grid{ grid-template-columns: 1fr; }
}
.field{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
label{
  font-size: 0.86rem;
  color: rgba(255,255,255,0.70);
  font-weight: 900;
  letter-spacing: 0.4px;
}
input, select, textarea{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  outline: none;
  font-weight: 650;
}
textarea{ min-height: 110px; resize: vertical; }

.helper{
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 600;
}

.wiz-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color:#fff;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,0.12); }
.btn.secondary{
  background: rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
}
.btn.secondary:hover{ background: rgba(255,255,255,0.06); }
.btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

/* Preview card (event) */
.preview-card{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0b0b0b;
  box-shadow: 0 16px 46px rgba(0,0,0,0.55);
}
.preview-media{
  position: relative;
  height: 240px;
  background: #101010;
}
.preview-media img{
  width:100%; height:100%; object-fit: cover; display:block;
}
.preview-media .pm-grad{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.88) 100%);
}
.preview-content{
  padding: 14px;
}
.preview-title{
  margin: 0 0 6px;
  font-weight: 950;
  font-size: 1.15rem;
}
.preview-meta{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.70);
  font-weight: 700;
}
.tag-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 0.82rem;
}
.tag.toggle{ cursor:pointer; }
.tag.toggle.active{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color:#fff;
}

/* Moment composer */
.moment-card2{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.moment-preview{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0b0b0b;
}
.moment-preview img, .moment-preview video{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
}


/* ===== Profile + Friends UI ===== */
.profile-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

/* ===== Simple Pages (Inbox / Notifications / Requests) ===== */
.page-shell{
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 14px 90px;
}
.page-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.page-title{
  margin: 0;
  font-weight: 950;
  font-size: 1.35rem;
}
.page-sub{
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}

.list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.list-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
  color: inherit;
}
.list-item.unread{
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}
.list-item.row{ text-decoration:none; }
.li-left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.li-meta{ min-width:0; }
.li-title{ font-weight: 950; margin:0; white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }
.li-sub{ margin:0; color: rgba(255,255,255,0.65); font-weight: 700; font-size: 0.92rem; white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }
.li-right{ display:flex; flex-direction: column; align-items:flex-end; gap: 4px; }
.li-time{ color: rgba(255,255,255,0.55); font-weight: 800; font-size: 0.8rem; }

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  box-shadow: 0 14px 28px rgba(0,0,0,0.40);
  flex: 0 0 auto;
}
.avatar img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.profile-avatar img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.60);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  flex: 0 0 auto;
}
.btnrow{ display:flex; gap: 8px; }

/* User/Host profile additions used by user.html/host.html */
.profile-hero{ display:flex; gap: 14px; align-items:flex-start; }
.profile-avatar{
  width: 78px;
  height: 78px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
  flex: 0 0 auto;
}
.profile-avatar.host{
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), rgba(0,0,0,0.15));
}
.profile-meta{ min-width: 0; flex: 1 1 auto; }
.profile-bio{ margin: 8px 0 0; color: rgba(255,255,255,0.75); font-weight: 650; }
.profile-stats{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-stats .stat{ flex: 1 1 100px; }

.section-title{
  margin: 16px 4px 10px;
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}
.mini-cards{ display:flex; gap: 10px; overflow-x:auto; padding-bottom: 6px; }
.mini-card{
  min-width: 210px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
  color: inherit;
}
.mc-title{ font-weight: 950; margin:0 0 4px; }
.mc-sub{ color: rgba(255,255,255,0.65); font-weight: 700; margin:0; }

.moments-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mom-thumb{ aspect-ratio: 1 / 1; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }

.soft-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 12px;
}
.soft-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.soft-row:last-child{ border-bottom:none; }

.thread-mini{
  color: rgba(255,255,255,0.80);
  text-decoration:none;
  font-weight: 850;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.profile-hero{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 46px rgba(0,0,0,0.55);
  padding: 14px;
}
.profile-top{
  display:flex;
  gap: 14px;
  align-items:center;
}
.pfp{
  width: 62px;
  height: 62px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.30), rgba(255,255,255,0.06));
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
}
.profile-name{
  font-weight: 950;
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.profile-handle{
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
}

/* Simplified profile header stats (Following / Followers) */
.profile-simple-stats{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ps-stat{
  display:flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
}
.ps-n{ font-weight: 950; font-size: 1.05rem; line-height: 1; }
.ps-l{ font-weight: 850; color: rgba(255,255,255,0.62); }
.profile-actions{
  margin-left: auto;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 520px){
  .profile-top{ flex-wrap: wrap; }
  .profile-actions{ width: 100%; margin-left: 0; }
  .profile-name{ font-size: 1.22rem; }
  .follow-btn{ flex: 1 1 0; justify-content: center; }
  .profile-top{ align-items: flex-start; }
}
.follow-btn{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color:#fff;
  font-weight: 950;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
}
.follow-btn.secondary{
  background: rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
}
.follow-btn:hover{ background: rgba(255,255,255,0.14); }
.follow-btn.secondary:hover{ background: rgba(255,255,255,0.06); }
.follow-btn.following{
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.90);
}
.stats{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  padding: 12px;
  text-align: center;
  min-height: 74px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}
.stat .n{
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.05;
}
.stat .l{
  color: rgba(255,255,255,0.65);
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.15;
}
.profile-tabs{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 6px;
  border-radius: 16px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-tab{
  border:0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 950;
  cursor:pointer;
}
.profile-tab.active{
  background: rgba(255,255,255,0.10);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.10);
}
.card-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 920px){
  .card-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Friends list UI */
.friends-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.friend-row{
  display:flex;
  align-items:center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 12px;
  margin-top: 10px;
}
.friend-row .pfp{ width: 46px; height: 46px; border-radius: 16px; }
.friend-row .meta{ flex: 1; }
.friend-row .meta .name{ font-weight: 950; margin:0; }
.friend-row .meta .sub{ margin:2px 0 0; color: rgba(255,255,255,0.62); font-weight:700; font-size: 0.9rem; }
.friend-row .mini-actions{ display:flex; gap: 10px; }
.mini-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.90);
  font-weight: 900;
  padding: 9px 12px;
  border-radius: 14px;
  cursor:pointer;
}
.mini-btn:hover{ background: rgba(255,255,255,0.06); }
.mini-btn.primary{ background: rgba(255,255,255,0.10); }

/* Activity feed cards */
.activity-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}
.activity-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  margin-top: 10px;
}
.activity-item .pfp{ width: 42px; height: 42px; border-radius: 16px; }
.activity-item p{ margin: 0; color: rgba(255,255,255,0.85); font-weight: 700; }
.activity-item .time{ margin-top: 6px; color: rgba(255,255,255,0.55); font-weight: 650; font-size: 0.85rem; }

/* Extra overlay pill for friends-going/went on reels cards */
.reel-friends-pill{
  margin-left: 10px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
}
.reel-friends-pill .avatars .avatar{ width: 18px; height: 18px; border-radius: 9px; }
.reel-friends-pill .friends-text{ font-size: 0.74rem; padding: 5px 8px; }


/* ===== Polish pass: motion, modals, skeletons, empty states ===== */
:root{
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-io: cubic-bezier(.4,0,.2,1);
  --shadow-1: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-2: 0 18px 46px rgba(0,0,0,0.60);
}

/* Smoother link/button interactions */
a, button{
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
a:active, button:active{ transform: translateY(1px); }

/* Card hover (desktop) */
@media (hover:hover){
  .video-card:hover, .reel-card:hover, .segment:hover, .event-card:hover, .moment-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
  }
}

/* Page fade-in */
.app-main{
  animation: pageIn 220ms var(--ease-out) both;
}
@keyframes pageIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  z-index: 60;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
  display:none;
  max-width: min(520px, calc(100vw - 24px));
}
.toast.show{
  display:block;
  animation: toastIn 220ms var(--ease-out) both;
}
@keyframes toastIn{
  from{ opacity: 0; transform: translateX(-50%) translateY(10px); }
  to{ opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Modal + sheet */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 70;
  display:none;
}
.modal-backdrop.show{ display:block; }
.sheet{
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(10,10,10,0.94);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(14px + var(--safe-bottom));
  box-shadow: var(--shadow-2);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
}
.sheet.show{
  pointer-events: auto;
  animation: sheetUp 240ms var(--ease-out) both;
}
@keyframes sheetUp{
  from{ transform: translateY(24px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}
.sheet-handle{
  width: 40px;
  height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  margin: 0 auto 12px;
}
.sheet-title{
  margin: 0 0 8px;
  font-weight: 950;
  font-size: 1.05rem;
}
.sheet-sub{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 650;
  font-size: 0.9rem;
}
.sheet-actions{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.sheet-btn{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}
.sheet-btn.secondary{
  background: rgba(0,0,0,0.50);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}
.sheet-btn:active{ transform: translateY(1px); }

/* Skeleton loaders */
.skeleton{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.skeleton::after{
  content:"";
  position:absolute;
  inset:-30% -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-20%);
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer{
  from{ transform: translateX(-30%); }
  to{ transform: translateX(30%); }
}
.sk-card{
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-1);
}
.sk-line{
  height: 14px;
  border-radius: 999px;
  margin-top: 10px;
}
.sk-line.short{ width: 55%; }
.sk-line.med{ width: 75%; }

/* Empty states */
.empty{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}
.empty h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 950;
}
.empty p{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 650;
}
.empty .row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Save animation */
@keyframes pop{
  0%{ transform: scale(1); }
  45%{ transform: scale(1.10); }
  100%{ transform: scale(1); }
}
.saved-pop{
  animation: pop 240ms var(--ease-out);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ===== FIX: bottom nav label overflow (iPhone) ===== */
.tab{
  min-width: 56px !important;
  padding: 8px 8px !important;
  font-size: 0.72rem !important;
}
.tab .lbl{
  max-width: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabbar-inner{ gap: 4px; padding: 0 6px; }

/* ===== FIX: video card overlays not blocking video ===== */
.video-card .bottomrow{
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.70) 55%, rgba(0,0,0,0.85) 100%);
  border-radius: 0 0 16px 16px;
  padding: 12px 10px 10px;
}
.video-card .friends-row{
  margin-bottom: 8px;
}
.video-card .friends-text{
  padding: 5px 9px;
  font-size: 0.74rem;
}
.video-card .badge{
  padding: 5px 9px;
  font-size: 0.74rem;
}
.video-card .t{ font-size: 1.0rem; margin-top: 6px; }
.video-card .m{ margin-bottom: 8px; }

/* Hide action buttons (share/save/mute) until user taps the card */
.video-card .toprow .icon-btn,
.video-card .toprow [data-open-share],
.video-card .toprow [data-save]{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.video-card.show-actions .toprow .icon-btn,
.video-card.show-actions .toprow [data-open-share],
.video-card.show-actions .toprow [data-save]{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Make CTAs smaller and keep only one primary CTA per card */
.video-card .small-cta-row .small-cta{
  padding: 9px 11px;
  border-radius: 14px;
}

/* ===== HOME MINIMAL OVERLAY + TABBAR 5-TAB FIT ===== */
.tabbar-inner{
  /* Fill the full width on small phones and remove "dead" spacing */
  max-width: 100% !important;
  justify-content: space-between !important;
  gap: 0 !important;
  padding: 0 2px !important;
}
.tab{
  /* Force 5 tabs to fit without clipping (Profile should be fully visible) */
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 6px 2px !important;
  border: 0 !important;
  background: transparent !important;
}
.tab .icon{
  width: 24px !important;
  height: 24px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.tab .icon svg{
  width: 18px;
  height: 18px;
  display:block;
}
.tab .lbl{
  font-size: 0.70rem !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Active state: glow without consuming layout space (no big pill background) */
.tab.active{
  background: transparent !important;
  border: 0 !important;
}
.tab.active .icon{
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 18px rgba(0,0,0,0.55),
    0 0 18px rgba(255,255,255,0.16) !important;
}
.tab.active .lbl{
  color: #fff !important;
}

/* Minimal overlays on Home cards: only badge + friends pill */
.video-card .bottomrow{
  background: none !important;
  padding: 10px !important;
}
.video-card .t, .video-card .m, .video-card .small-cta-row{ display:none !important; }
.video-card .friends-row{ margin: 0 !important; }
.video-card .friends-text{ background: rgba(0,0,0,0.45) !important; }

/* Make toprow cleaner */
.video-card .toprow{
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
}

/* ===== Event page: mobile-first refinements ===== */
@media (max-width: 520px){
  .event-shell{
    padding: 12px 12px 36px;
  }
  .event-hero2 video,
  .event-hero2 img{
    height: 36vh;
    min-height: 260px;
  }
  .event-hero2 .hero-content{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .event-hero2 .hero-title{
    font-size: 1.45rem;
  }
  .event-status-bar{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .event-actions{
    justify-content: space-between;
  }
  .status-toggle{
    width: 100%;
    justify-content: space-between;
  }
  .status-btn{
    flex: 1;
    text-align: center;
    padding: 10px 0;
  }
  .panel{
    padding: 12px;
  }
  .panel h3{
    font-size: 0.92rem;
  }
  /* Kill the desktop "two-column key/value table" look on phones */
  .kv{
    display:flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0 6px;
  }
  .kv .k{
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
  }
  .kv .v{
    font-size: 1.06rem;
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    margin-top: -6px;
  }
  .kv .k:not(:first-child){
    padding-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* Tighten the status row so it feels native-mobile */
  .status-toggle{ padding: 5px; border-radius: 14px; }
  .status-btn{ padding: 9px 0; border-radius: 12px; }
  .event-actions{ gap: 8px; }
  .event-actions .badge{ padding: 8px 10px; }
  .icon-btn{ width: 42px; height: 42px; border-radius: 14px; }

  /* Make highlight cards fit neatly */
  .hl{ flex: 1 1 140px; padding: 10px; }
  .hl .n{ font-size: 1.28rem; }
  /* On mobile, keep CTAs in-flow (no sticky overlay on content) */
  .sticky-cta{
    position: static;
    bottom: auto;
  }
  .timeline-head{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sticky-cta{
    gap: 10px;
  }
  .big-cta{
    padding: 14px 12px;
    border-radius: 18px;
  }
}

/* Extra-tight phones: reduce hero + typography so it doesn't feel "desktop" */
@media (max-width: 420px){
  .event-hero2 video,
  .event-hero2 img{
    height: 32vh;
    min-height: 230px;
  }
  .event-hero2 .hero-title{ font-size: 1.28rem; }
  .panel{ padding: 11px; }
  .kv{ gap: 10px; }
  .kv .k{ font-size: 0.74rem; }
  .kv .v{ font-size: 1.02rem; }
  .status-btn{ padding: 8px 0; }
}

/* Updates Hub (Notifications + Inbox) */
.hub-shell{
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
}
.hub-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.hub-title{ font-size: 1.5rem; letter-spacing: 0.02em; margin: 8px 0 0; }
.hub-sub{ color: rgba(255,255,255,0.66); margin: 6px 0 14px; }

.segmented{
  display:flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.seg-btn{
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.74);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.seg-btn.active{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.96);
}

.hub-panel{ margin-top: 12px; }
.hub-empty{ color: rgba(255,255,255,0.6); padding: 14px 6px; }

/* Notifications list */
.notif-list{ display:flex; flex-direction:column; gap: 10px; }
.notif-item{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration:none;
  color: rgba(255,255,255,0.92);
}
.notif-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(120,180,255,0.9);
  box-shadow: 0 0 18px rgba(120,180,255,0.35);
  flex: 0 0 auto;
}
.notif-main{ flex: 1 1 auto; min-width:0; }
.notif-text{ font-weight: 700; line-height: 1.25; }
.notif-time{ color: rgba(255,255,255,0.55); font-size: 0.86rem; margin-top: 6px; }

/* Inbox */
.inbox-list{ display:flex; flex-direction:column; gap: 10px; }
.thread-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  text-align:left;
}
.thread-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.thread-meta{ flex: 1 1 auto; min-width:0; }
.thread-name{ font-weight: 900; letter-spacing: 0.01em; }
.thread-preview{ color: rgba(255,255,255,0.64); font-size: 0.9rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-time{ color: rgba(255,255,255,0.55); font-size: 0.82rem; flex: 0 0 auto; }

.thread{
  position: relative;
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
}
.thread-top{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.thread-back{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 1.6rem;
  line-height: 1;
}
.thread-title{ font-weight: 900; letter-spacing: 0.01em; }
.thread-messages{
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 12px 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.msg{ display:flex; gap: 8px; }
.msg.me{ justify-content:flex-end; }
.msg.them{ justify-content:flex-start; }
.msg .meta{ display:flex; flex-direction:column; gap:4px; max-width: 86%; }
.msg-name{ font-size: 12px; font-weight: 900; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase; }
.msg-avatar{ width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); flex: 0 0 auto; overflow:hidden; }
.msg-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.25;
  font-weight: 700;
}
.bubble.them{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  align-self: flex-start;
}
.bubble.me{
  background: rgba(120,180,255,0.16);
  border: 1px solid rgba(120,180,255,0.22);
  align-self: flex-end;
}
.thread-compose{
  display:flex;
  gap: 10px;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.55);
  position: sticky;
  bottom: 0;
}
.thread-input{
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}
.thread-send{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  font-weight: 900;
}

@media (max-width: 480px){
  .hub-shell{ padding-left: 12px; padding-right: 12px; }
}

/* Prevent background scroll when drawer open */
body.drawer-open{ overflow:hidden; }


/* ===========================
   Home Rows (Featured/Weekend/Upcoming)
   Snap carousel + glass caption strip
   =========================== */

.home-rows .hub-sub{ margin-bottom: 12px; }

.home-row{ margin-top: 18px; }

.row-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.row-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.row-link{
  font-size: 13px;
  opacity: .85;
  text-decoration: none;
}

.row-track{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 14px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.row-track::-webkit-scrollbar{ display:none; }
.row-track{ scrollbar-width: none; }

.media-card{
  position: relative;
  flex: 0 0 76%;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0e14;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display:flex;
  flex-direction: column;
}

.track-featured .media-card,
.media-card.size-featured{ flex-basis: 86%; }

.media-card .media-wrap{
  position: relative;
  width:100%;
  aspect-ratio: 16/9;
  overflow:hidden;
}

.media-card video,
.media-card img{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  object-fit: cover;
}

.media-card .overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.10) 45%, rgba(0,0,0,.55));
}

.media-card .toprow{
  position:absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display:flex;
  justify-content: flex-start;
  pointer-events:none;
}

.media-card .card-meta{
  padding: 10px 12px 12px;
  background: rgba(11,14,20,.92);
  border-top: 1px solid rgba(255,255,255,.08);
}

.meta-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
  line-height: 1.1;
}

.meta-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.chip{
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.media-card .friends-row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
}

.media-card .friends-text{ font-size: 12px; opacity: .95; }

@media (max-width: 380px){
  .media-card{ flex-basis: 82%; }
  .track-featured .media-card,
  .media-card.size-featured{ flex-basis: 92%; }
}

/* --- Form helpers (Host Tools / misc) --- */
.field textarea{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  color:#fff;
  outline:none;
  resize: vertical;
}
.field select{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  color:#fff;
  outline:none;
}
.field-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 520px){ .field-grid{ grid-template-columns: 1fr; } }


/* ===========================
   Host tools list (Phase E)
   =========================== */
.list .row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.list .row:first-child{ border-top: 0; }
.row-main{ min-width: 0; }
.list .row-title{ font-size: 14px; font-weight: 800; }
.row-sub{ font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.row-actions{ display:flex; gap: 8px; flex-wrap: wrap; justify-content:flex-end; }




/* MMNTZ brand */
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.brand-logo{
  width:28px;
  height:28px;
  display:block;
}
.brand-name{
  line-height:1;
}
