/* RaveSpots Rave Roulette v1.0.3
   Matches Front Lister styling and uses a fixed-height reel during spin
   to prevent layout jumping.
*/

.rsrr-wrap{
  max-width:1100px !important;
  margin:0 auto 12px !important;
  padding:0 16px !important;
  font-family:Inter,Arial,Helvetica,sans-serif !important;
  color:#fff !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:0 !important;
  box-sizing:border-box !important;
}
.rsrr-wrap *, .rsrr-wrap *::before, .rsrr-wrap *::after{box-sizing:border-box}
.rsrr-wrap [hidden]{display:none !important}
.rsrr-config{display:none !important}

.rsrr-topbar{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 12px;padding:0}
.rsrr-location{display:flex;align-items:center;min-width:0;color:#fff;font-size:22px;line-height:1.1;font-weight:800;white-space:nowrap;overflow:hidden}
.rsrr-location-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rsrr-pin{position:relative;width:9px;height:9px;margin:0 13px 0 7px;border-radius:50%;background:#e33b49;flex:0 0 auto}
.rsrr-pin::after{content:"";position:absolute;left:4px;top:8px;width:1px;height:10px;background:#c8c8c8;transform:rotate(-5deg);transform-origin:top}

.rsrr-city-select-wrap{position:relative;margin-left:auto;width:100%;max-width:520px;min-width:0}
.rsrr-city-select{width:100%!important;height:42px!important;margin:0!important;padding:8px 38px 8px 12px!important;appearance:none;-webkit-appearance:none;background:#181818!important;color:#fff!important;border:1px solid #303030!important;border-radius:6px!important;box-shadow:none!important;outline:none!important;font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:15px!important;font-weight:500!important;cursor:pointer}
.rsrr-select-arrow{position:absolute;top:50%;right:12px;transform:translateY(-52%);color:#bbb;font-size:16px;pointer-events:none}

.rsrr-reel{position:relative;width:100%;overflow:hidden}
.rsrr-reel-card{width:100%;margin:8px 0 0;padding:12px;background:#1f1f1f;border:0;border-radius:6px;box-shadow:none}
.rsrr-reel-card-muted{height:70px;min-height:70px;opacity:.34;overflow:hidden}
.rsrr-result-card{position:relative;min-height:89px;overflow:hidden}
.rsrr-result-card.rsrr-has-pick{box-shadow:inset 0 0 0 1px rgba(229,9,20,.72)}
.rsrr-pick-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;margin:0 0 9px;padding:7px 9px;background:#e50914;color:#fff;border-radius:6px;font-size:11px;line-height:1;font-weight:900}

.rsrr-event-row,.rsrr-mini-row{display:flex;gap:12px;align-items:flex-start}
.rsrr-thumb,.rsrr-mini-thumb{width:65px;height:65px;flex:0 0 65px;object-fit:cover;border-radius:4px;background:#151515}
.rsrr-thumb-placeholder{
  background:#151515;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rsrr-thumb-placeholder::before{
  content:"?";
  color:#777;
  font-family:Inter,Arial,Helvetica,sans-serif;
  font-size:26px;
  line-height:1;
  font-weight:900;
}
.rsrr-mini-thumb.rsrr-thumb-placeholder::before{
  font-size:20px;
}
.rsrr-event-body,.rsrr-mini-body{flex:1;min-width:0}
.rsrr-event-title,.rsrr-mini-title{margin:0;color:#fff;font-size:14px;line-height:1.25;font-weight:900;overflow-wrap:anywhere}
.rsrr-event-detail,.rsrr-mini-detail{margin-top:6px;color:#ccc;font-size:14px;line-height:1.3}
/* Genre sits on its own understated row, only when the source has a genre. */
.rsrr-event-genre:not(:empty){
  margin-top:7px;
  padding-top:6px;
  border-top:1px solid #303030;
  color:#aaa;
  font-size:12px;
  line-height:1.25;
}
.rsrr-reel-card-muted{padding:9px 12px}
.rsrr-reel-card-muted .rsrr-mini-row{align-items:center}
.rsrr-reel-card-muted .rsrr-mini-thumb{width:48px;height:48px;flex-basis:48px}
.rsrr-reel-card-muted .rsrr-mini-title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rsrr-reel-card-muted .rsrr-mini-detail{margin-top:4px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* No vertical translate during spin: opacity-only keeps the reel visually stable. */
.rsrr-wrap.rsrr-spinning .rsrr-compact-result{animation:rsrrFadeTick .12s linear infinite}
.rsrr-wrap.rsrr-spinning .rsrr-result-card{min-height:89px}
@keyframes rsrrFadeTick{0%{opacity:.56}50%{opacity:1}100%{opacity:.56}}

/* Expanded winner, modeled after Front Lister's expanded card/flyer area. */
.rsrr-expanded-result{
  overflow:hidden;
  opacity:0;
  max-height:0;
  transition:max-height .34s ease, opacity .22s ease, padding-top .34s ease;
  padding-top:0;
}
.rsrr-result-card.rsrr-expanded .rsrr-compact-result{display:none}
.rsrr-result-card.rsrr-expanded .rsrr-expanded-result{
  display:block !important;
  opacity:1;
  max-height:900px;
  padding-top:0;
}
.rsrr-expanded-date{
  color:#fff;
  font-weight:800;
  font-size:18px;
  line-height:1.25;
  padding:2px 0 8px;
  margin:0 0 10px;
  border-bottom:1px solid rgba(255,255,255,.14);
  text-align:center;
  width:100%;
}
.rsrr-expanded-flyer-wrap{
  width:min(100%,360px);
  height:430px;
  max-height:58vh;
  margin:2px auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
}
.rsrr-expanded-flyer,
.rsrr-expanded-flyer-placeholder{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  object-position:center center;
  border:0;
  border-radius:4px;
  background:#151515;
  box-shadow:0 3px 12px rgba(0,0,0,.18);
}
.rsrr-expanded-flyer-placeholder{width:100%;height:100%;box-shadow:none}
.rsrr-expanded-title{
  color:#fff;
  font-size:17px;
  line-height:1.25;
  font-weight:900;
  margin:0 auto 6px;
  text-align:center;
  width:100%;
  max-width:760px;
}
.rsrr-expanded-meta{
  color:#ccc;
  font-size:13px;
  line-height:1.45;
  margin:0 auto 8px;
  text-align:center;
  width:100%;
  max-width:760px;
}
/* Expanded winner: subtle divider between the event details and genre. */
.rsrr-expanded-genre:not([hidden]){
  margin:0 auto 12px;
  padding-top:8px;
  border-top:1px solid #303030;
  color:#aaa;
  text-align:center;
  font-size:12px;
  line-height:1.3;
  width:100%;
  max-width:760px;
}
.rsrr-expanded-genre[hidden]{display:none!important}
.rsrr-expanded-actions{display:grid;grid-template-columns:1fr;gap:8px}
.rsrr-expanded-btn{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:8px 12px;
  border:0!important;
  border-radius:6px!important;
  background:#e50914!important;
  color:#fff!important;
  text-decoration:none!important;
  font-family:Inter,Arial,Helvetica,sans-serif!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
}
.rsrr-expanded-btn:hover,.rsrr-expanded-btn:focus-visible{background:#c90b15!important;color:#fff!important}
.rsrr-expanded-btn.is-disabled{opacity:.42;pointer-events:none}

.rsrr-spin-btn{
  display:flex;width:100%;min-height:42px!important;align-items:center;justify-content:center;
  margin:12px 0 0!important;padding:8px 12px!important;border:0!important;border-radius:6px!important;
  background:#e50914!important;color:#fff!important;box-shadow:none!important;
  font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:13px!important;font-weight:900!important;line-height:1!important;
  cursor:pointer
}
.rsrr-spin-btn:hover,.rsrr-spin-btn:focus-visible{background:#c90b15!important}
.rsrr-spin-btn:disabled{opacity:.7;cursor:wait}

.rsrr-empty{width:100%;margin:8px 0 0;padding:12px;background:#1f1f1f;border-radius:6px;color:#ccc;font-size:14px}

@media(max-width:700px){
  .rsrr-wrap{padding:0 12px!important}
  .rsrr-topbar{display:block}
  .rsrr-location{margin-bottom:10px;font-size:20px}
  .rsrr-city-select-wrap{max-width:none;margin-left:0}
  .rsrr-city-select{font-size:14px!important}
  .rsrr-reel-card{padding:10px}
  .rsrr-event-row{gap:10px}
  .rsrr-thumb{width:60px;height:60px;flex-basis:60px}
  .rsrr-event-title{font-size:14px}
  .rsrr-event-detail{font-size:12.5px}
  .rsrr-expanded-flyer-wrap{width:min(100%,330px);height:390px;max-height:52vh;margin-bottom:10px}
  .rsrr-expanded-date{font-size:16px}
}
@media(max-width:380px){
  .rsrr-expanded-flyer-wrap{width:100%;height:350px}
}
@media(prefers-reduced-motion:reduce){
  .rsrr-wrap.rsrr-spinning .rsrr-compact-result{animation:none}
  .rsrr-expanded-result{transition:none}
}

/* v1.0.4 alignment refinements */
.rsrr-result-card.rsrr-expanded .rsrr-event-body{
  text-align:center;
}


/* v1.0.6 mobile viewport stability */
.rsrr-wrap,
.rsrr-reel,
.rsrr-result-card,
.rsrr-spin-btn{
  overflow-anchor:none;
}

@media(max-width:700px){
  .rsrr-wrap,
  .rsrr-result-card{
    scroll-margin-top:84px;
  }
}


/* v1.0.7 mobile focus/scroll fix */
@media(max-width:700px){
  html:has(.rsrr-wrap.rsrr-mobile-scroll-lock){
    scroll-behavior:auto !important;
  }

  .rsrr-wrap.rsrr-mobile-scroll-lock,
  .rsrr-wrap.rsrr-mobile-scroll-lock *{
    overflow-anchor:none !important;
  }
}


/* v1.0.8: predictable spin and winner alignment on mobile and desktop */
.rsrr-wrap,
.rsrr-wrap .rsrr-reel,
.rsrr-wrap .rsrr-result-card,
.rsrr-wrap .rsrr-expanded-result {overflow-anchor:none !important}
html:has(.rsrr-wrap.rsrr-scroll-stabilizing){scroll-behavior:auto !important}

/* Front Lister owns city selection. Remove duplicate title/dropdown even on mobile. */
#emcRouletteCard .rsrr-wrap .rsrr-topbar { display:none !important; }
#emcRouletteCard .rsrr-wrap { padding:0 !important; margin:0 !important; max-width:100% !important; }
#emcRouletteCard .rsrr-reel { width:100%; }
@media(max-width:700px){
  #emcRouletteCard .rsrr-wrap {padding:0 !important;}
  #emcRouletteCard .rsrr-reel-card {max-width:100%;}
  #emcRouletteCard .rsrr-expanded-result {max-width:100%;}
}
