/* ==========================================================
   RSTV Dance — FULL PAGE STYLESHEET
   Scoped to body.rstv-dance
   ========================================================== */

body.rstv-dance{
  --bg:#070614;
  --bg2:#0b0820;
  --text:#f6f4ff;
  --muted: rgba(255,255,255,.68);
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.45);

  --live:#22d3ee;
  --now:#0cdc8c;
  --next:#a855f7;

  --r: 22px;

  margin:0;
  min-height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(239,68,68,.26), transparent 60%),
    radial-gradient(900px 560px at 90% 10%, rgba(168,85,247,.20), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(34,211,238,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body.rstv-dance *{box-sizing:border-box}
body.rstv-dance a{color:inherit}
body.rstv-dance .wrap{max-width:1180px;margin:0 auto;padding:0 18px}
body.rstv-dance .page{padding:26px 0 60px}

/* ===========================
   Topbar
   =========================== */
body.rstv-dance .topbar{
  position:sticky;top:0;z-index:20;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.rstv-dance .topbar__inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}

body.rstv-dance .brand{text-decoration:none}
body.rstv-dance .brand__pill{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.06);
}
body.rstv-dance .brand__dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--live);
  box-shadow: 0 0 0 6px rgba(34,211,238,.18);
}
body.rstv-dance .brand__name{font-weight:900;letter-spacing:.01em}

body.rstv-dance .topnav{display:flex;gap:10px;align-items:center}

/* Buttons / chips */
body.rstv-dance .btn{
  appearance:none;border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:10px 14px;border-radius:999px;
  font-weight:800;cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.05);
}
body.rstv-dance .btn:hover{background: rgba(255,255,255,.09)}
body.rstv-dance .btn--ghost{background: rgba(0,0,0,.20)}
body.rstv-dance .btn--primary{
  background: rgba(34,211,238,.14);
  border-color: rgba(34,211,238,.25);
}
body.rstv-dance .btn--primary:hover{background: rgba(34,211,238,.18)}

body.rstv-dance .chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 12px;border-radius:999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  font-size:13px;font-weight:900;
}
body.rstv-dance .chip--live{border-color: rgba(34,211,238,.25);background: rgba(34,211,238,.10)}
body.rstv-dance .chip--time{opacity:.9}
body.rstv-dance .dot{
  width:9px;height:9px;border-radius:999px;background: var(--live);
  box-shadow: 0 0 0 6px rgba(34,211,238,.18);
}

/* Cards */
body.rstv-dance .card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
body.rstv-dance .card__head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.rstv-dance .card__title{font-weight:900;font-size:18px}
body.rstv-dance .card__meta{font-size:13px;color:var(--muted)}

/* ===========================
   Layout + spacing
   =========================== */
body.rstv-dance .grid{
  display:grid;
  grid-template-columns: 1.8fr .9fr;
  gap:16px;
}

/* Equal gaps between sections */
body.rstv-dance .section-gap{margin-top:60px}

/* ===========================
   Live block
   =========================== */
body.rstv-dance .live{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:18px;
  padding:18px;
}
body.rstv-dance .live__art{
  width:240px;height:240px;border-radius:24px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow:hidden;
}
body.rstv-dance .live__art img{
  width:100%;height:100%;
  object-fit: contain;          /* no cropping */
  display:block;
  background: rgba(0,0,0,.25);
}
body.rstv-dance .live__chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}

body.rstv-dance .np__title{
  font-size:36px;
  font-weight:1000;
  letter-spacing:-.02em;
  margin:6px 0 2px;
  line-height:1.05;
}
body.rstv-dance .np__artist{
  font-size:16px;
  color:var(--muted);
  margin:0 0 14px;
}
body.rstv-dance .controls{display:flex;align-items:center;gap:10px;margin-bottom:16px}

/* Live “current show only” panel */
body.rstv-dance .liveShow{
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
body.rstv-dance .liveShow__label{
  font-weight:1000;
  font-size:13px;
  color: rgba(255,255,255,.82);
  letter-spacing:.10em;
  text-transform:uppercase;
  margin-bottom:10px;
}
body.rstv-dance .liveShow__row{
  display:flex;gap:14px;align-items:center;
  padding:12px 12px;border-radius:18px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
}
body.rstv-dance .liveShow__art{
  width:56px;height:56px;border-radius:16px;
  overflow:hidden;background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}
body.rstv-dance .liveShow__art img{
  width:100%;height:100%;object-fit:contain;display:block;
  background: rgba(0,0,0,.25);
}
body.rstv-dance .liveShow__text{min-width:0}
body.rstv-dance .liveShow__time{font-weight:1000;font-size:13px;opacity:.9}
body.rstv-dance .liveShow__title{
  font-weight:1000;
  font-size:18px;
  margin-top:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.rstv-dance .liveShow__desc{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
  line-height:1.35;
}

/* ===========================
   Sidebar
   =========================== */
body.rstv-dance .side{padding:18px;display:flex;flex-direction:column;gap:12px}
body.rstv-dance .side__item{
  display:block;
  text-decoration:none;
  padding:14px 14px;border-radius:18px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
}
body.rstv-dance .side__item:hover{background: rgba(0,0,0,.18)}
body.rstv-dance .side__item--plain{cursor:default}
body.rstv-dance .side__k{font-weight:1000}
body.rstv-dance .side__v{color:var(--muted);margin-top:4px}

/* ===========================
   Last played
   =========================== */
body.rstv-dance .lastplayed{
  padding:14px 14px 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.rstv-dance .lp-empty{padding:14px;color:var(--muted)}

body.rstv-dance .lpRow{
  display:flex;align-items:center;gap:12px;
  padding:12px;border-radius:18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
body.rstv-dance .lpArt{
  width:56px;height:56px;border-radius:14px;
  overflow:hidden;background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}
body.rstv-dance .lpArt img{
  width:100%;height:100%;
  object-fit: contain;         /* no cropping */
  display:block;
  background: rgba(0,0,0,.25);
}
body.rstv-dance .lpText{min-width:0}
body.rstv-dance .lpTitle{font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.rstv-dance .lpArtist{color:var(--muted);margin-top:3px;font-size:13px}

/* ===========================
   Weekly schedule (site-like)
   =========================== */
body.rstv-dance .scheduleShell{
  padding:0;
  overflow:hidden;
  border-radius:24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
}

body.rstv-dance .scheduleStatus{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding: 18px 22px;
  font-weight: 1000;
  font-size: 18px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

body.rstv-dance .scheduleHint{
  padding: 0 22px 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Day rows */
body.rstv-dance details.schedule-day{border-top: 1px solid rgba(255,255,255,.08);margin:0}
body.rstv-dance details.schedule-day:first-child{border-top:0}

body.rstv-dance details.schedule-day summary{
  list-style:none;
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 22px;
  cursor:pointer;user-select:none;
  font-weight:1000;font-size:22px;
  color: rgba(255,255,255,.96);
}
body.rstv-dance details.schedule-day summary::-webkit-details-marker{display:none}
body.rstv-dance details.schedule-day summary::after{
  content:"▾";
  opacity:.75;
  font-size:16px;
  transition: transform .18s ease, opacity .18s ease;
}
body.rstv-dance details.schedule-day[open] summary::after{
  transform: rotate(180deg);
  opacity:.95;
}

/* Expanded shows */
body.rstv-dance ul.schedule-items{
  list-style:none;
  margin:0;
  padding: 12px 18px 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

body.rstv-dance li.schedule-item{
  position: relative;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:18px;

  padding: 18px;
  border-radius: 20px;

  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  transition: all .20s ease;
}

body.rstv-dance .schedule-main{min-width:0;flex:1}

body.rstv-dance .schedule-time{
  display:inline-flex;align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

body.rstv-dance .schedule-title{
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.15;
}
body.rstv-dance .schedule-desc{color:var(--muted);margin-top:8px;line-height:1.35}

/* Badges */
body.rstv-dance .schedule-badge{
  display:inline-flex;align-items:center;
  margin-left: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ON NOW = green */
@keyframes rstvDotPulse{0%{transform:scale(.86);opacity:.65}50%{transform:scale(1.12);opacity:1}100%{transform:scale(.86);opacity:.65}}
body.rstv-dance li.schedule-item.is-now{
  border: 2px solid rgba(12,220,140,.55);
  box-shadow:
    0 0 0 1px rgba(12,220,140,.20),
    0 0 28px rgba(12,220,140,.18);
}
body.rstv-dance .schedule-badge.is-now{
  background: rgba(12,220,140,.16);
  border: 1px solid rgba(12,220,140,.34);
}
body.rstv-dance .schedule-badge.is-now::before{
  content:"";
  width:9px;height:9px;border-radius:999px;
  background: rgba(12,220,140,1);
  box-shadow: 0 0 0 5px rgba(12,220,140,.18);
  margin-right:8px;
  animation: rstvDotPulse 1.35s ease-in-out infinite;
}

/* UP NEXT = purple (base) */
body.rstv-dance li.schedule-item.is-next{
  border: 2px solid rgba(168,85,247,.60);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.22),
    0 0 30px rgba(168,85,247,.22);
}
body.rstv-dance .schedule-badge.is-next{
  background: rgba(168,85,247,.14);
  border: 1px solid rgba(168,85,247,.55);
}

/* Schedule artwork tile (bigger, no crop) */
body.rstv-dance .schedule-art{
  width: 132px;
  height: 132px;
  border-radius: 22px;
  padding: 6px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
  display:flex;align-items:center;justify-content:center;
  flex: 0 0 auto;
  overflow:hidden;
}
body.rstv-dance img.schedule-icon{
  width:100%;
  height:100%;
  object-fit: contain;      /* key: no cropping */
  object-position:center;
  border-radius: 18px;
  display:block;
  background: rgba(0,0,0,.20);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px){
  body.rstv-dance .grid{grid-template-columns: 1fr}
  body.rstv-dance .live{grid-template-columns: 1fr}
  body.rstv-dance .live__art{width:100%;height:240px}
  body.rstv-dance .lastplayed{grid-template-columns: 1fr}

  body.rstv-dance details.schedule-day summary{font-size:20px;padding:18px 16px}
  body.rstv-dance ul.schedule-items{padding:10px 12px 16px}
  body.rstv-dance .schedule-title{font-size:20px}
  body.rstv-dance .schedule-art{width:110px;height:110px;border-radius:20px}
  body.rstv-dance img.schedule-icon{border-radius:16px}
}

/* ==========================================================
   ADD-ON: UP NEXT = purple glow ring (stronger, like site)
   (placed LAST so it overrides the base is-next styles above)
   ========================================================== */

body.rstv-dance li.schedule-item.is-next{
  border: 2px solid rgba(168,85,247,.70);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.28),
    0 0 36px rgba(168,85,247,.28),
    0 0 70px rgba(168,85,247,.12);
}

body.rstv-dance .schedule-badge.is-next{
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.60);
}
