/* =========================
   RSTV DANCE • Studio Screen
   FINAL LAYOUT (full CSS)
   ========================= */

:root{
  --bg:#000;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --stroke: rgba(255,255,255,.70);
  --stroke2: rgba(255,255,255,.22);

  --cyan:#22d3ee;

  --r: 28px;         /* outer radius */
  --r2: 18px;        /* inner radius */
  --pad: 18px;       /* page padding */
  --gap: 18px;       /* inner gaps */
  --line: 3px;       /* divider thickness */
  --stripH: 120px;   /* bottom bar height */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow:hidden;
}

/* OUTER FRAME (white rounded border like your sketch) */
.frame{
  height: calc(100vh - (var(--pad) * 2));
  margin: var(--pad);
  border: var(--line) solid var(--stroke);
  border-radius: var(--r);
  overflow:hidden;
  display:grid;
  grid-template-rows: 1fr var(--stripH);
  background: #000;
}

/* MAIN GRID */
.main{
  display:grid;
  grid-template-columns: 36% 64%;
  height:100%;
  min-height:0;
}

/* LEFT (two stacked “Last Played” boxes) */
.left{
  border-right: var(--line) solid var(--stroke);
  display:grid;
  grid-template-rows: 1fr 1fr;
  min-height:0;
}

.left .box{
  position:relative;
  min-height:0;
  padding: 28px 26px;
  background: rgba(0,0,0,.85);
}

.left .box:first-child{
  border-bottom: var(--line) solid var(--stroke);
}

/* RIGHT (full artwork only) */
.right{
  position:relative;
  min-height:0;
}

.artBox{
  position:relative;
  height:100%;
  width:100%;
  overflow:hidden;
  background:#0a0a0a;
}

/* FULL BLEED ARTWORK CROPPING */
#artImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform: scale(1.01);
}

/* subtle broadcast vignette + bottom fade for readability */
.artBox::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 30% 15%, rgba(0,0,0,.08), transparent 60%),
    radial-gradient(1200px 900px at 50% 60%, rgba(0,0,0,.12), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.55) 100%);
}

/* FALLBACK OVER ARTWORK (only shown by JS on error) */
.artFallback{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing:.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-size: clamp(22px, 2.6vw, 44px);
  pointer-events:none;
  z-index: 2;
}

/* =========================
   TYPOGRAPHY / META BLOCKS
   ========================= */
.label{
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  margin-bottom: 16px;
}

/* LAST PLAYED ROW (fill like before) */
.row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items:center;
  min-height:0;
}

.thumb{
  width:100%;
  height:120px;        /* ✅ “fills” the panel visually */
  border-radius: 14px;
  object-fit:cover;
  object-position:center;
  display:block;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 34px rgba(0,0,0,.55);
}

.big{
  font-weight: 950;
  text-transform: uppercase;
  font-size: clamp(26px, 2.2vw, 44px);
  line-height: 1.03;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sub{
  margin-top: 10px;
  font-weight: 800;
  font-size: clamp(15px, 1.2vw, 20px);
  color: rgba(255,255,255,.66);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* =========================
   GLASS NOW PLAYING PANEL
   ========================= */
.artGlass{
  position:absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  z-index: 3;
}

.artGlass::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  pointer-events:none;
  background: radial-gradient(900px 200px at 20% 0%, rgba(255,255,255,.10), transparent 60%);
  opacity:.9;
}

.artGlass__label{
  position:relative;
  z-index:1;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}

.artGlass__title{
  position:relative;
  z-index:1;
  font-weight: 980;
  font-size: clamp(30px, 2.8vw, 54px);
  line-height: 1.05;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.artGlass__artist{
  position:relative;
  z-index:1;
  margin-top: 10px;
  font-weight: 820;
  font-size: clamp(16px, 1.4vw, 24px);
  color: rgba(255,255,255,.78);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow: 0 8px 30px rgba(0,0,0,.55);
}

/* =========================
   BOTTOM BROADCAST STRIP
   ========================= */
.strip{
  border-top: var(--line) solid var(--stroke);
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 260px;
  gap: 18px;
  align-items:center;
  padding: 18px 22px;
  background: rgba(0,0,0,.86);
}

.showRow{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width:0;
}

.pill{
  font-weight: 950;
  letter-spacing: .18em;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.86);
  flex: 0 0 auto;
}

.pill--now{
  border-color: var(--cyan);
  color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 7px rgba(34,211,238,.12);
}

.showLine{
  display:inline-flex;
  align-items:baseline;
  gap: 10px;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
}

.showTime{
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  color: rgba(255,255,255,.78);
}

.showSep{
  color: rgba(255,255,255,.38);
  font-weight: 900;
}

.showTitle{
  font-weight: 950;
  color: rgba(255,255,255,.92);
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 42ch;
}

#showNow.showLine .showSep{
  color: rgba(34,211,238,.75);
}

.clock{
  border-left: var(--line) solid var(--stroke);
  height: calc(var(--stripH) - 36px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-variant-numeric: tabular-nums;
  font-weight: 980;
  letter-spacing: .14em;
  font-size: 28px;
  color: rgba(255,255,255,.86);
}

/* =========================
   RESPONSIVE (optional)
   ========================= */
@media (max-width: 1100px){
  body{ overflow:auto; }
  .frame{ height:auto; margin:12px; }
  .main{ grid-template-columns: 1fr; }
  .left{ border-right:none; border-bottom: var(--line) solid var(--stroke); }
  .strip{
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .clock{
    border-left:none;
    border-top: var(--line) solid var(--stroke);
    width:100%;
    height:auto;
    padding: 14px 0;
  }
}
