:root{
  --bg-deep: #0a080a;
  --bg-velvet: #16090d;
  --bg-velvet-2: #200d12;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.12);
  --line: rgba(255,215,130,.18);
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.72);
  --gold: #f1c86b;
  --gold-soft: #f6dfaa;
  --accent: #b41f2f;
  --accent-bright: #e53947;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --radius: 18px;
  --stage-edge: rgba(241,200,107,.25);
  --paper: #f7f1e4;
  --ink: #2b1b1b;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color: var(--text);
  font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(241,200,107,.24), transparent 60%),
    radial-gradient(700px 300px at 20% 20%, rgba(229,57,71,.18), transparent 55%),
    radial-gradient(900px 450px at 80% 25%, rgba(72,20,30,.4), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-velvet));
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after{
  content:"";
  position: fixed;
  top: 0;
  width: 24vw;
  min-width: 180px;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(200px 80px at 50% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(220px 90px at 55% 65%, rgba(255,255,255,.06), transparent 65%),
    linear-gradient(180deg, #4d101a, #2a0b12 55%, #1a090c 100%);
  box-shadow: inset -10px 0 30px rgba(0,0,0,.45);
  opacity: .85;
}

body::before{ left: -6vw; transform: skewX(-2deg); }
body::after{ right: -6vw; transform: skewX(2deg) scaleX(-1); }

#container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 32px 0 64px;
  position: relative;
  z-index: 1;
}

.hero{
  padding: 28px 26px 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    radial-gradient(600px 220px at 10% 0%, rgba(229,57,71,.2), transparent 60%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: rise .7s ease-out both;
}

.hero::after{
  content:"";
  position:absolute;
  inset: auto -8% -30% -8%;
  height: 140px;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(241,200,107,.4), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45));
  opacity: .7;
}

.hero-badge{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.hero h1{
  position: relative;
  margin: 14px 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: .6px;
  font-size: clamp(30px, 4.2vw, 50px);
}

.hero .year{
  color: var(--gold);
}

.subtitle{
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Player */
.player-wrap{
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.player-wrap::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 2px dashed rgba(241,200,107,.35);
  opacity: .6;
  pointer-events: none;
}

.player-wrap::after{
  content:"";
  position:absolute;
  inset: -40% -10% auto -10%;
  height: 180px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(241,200,107,.35), transparent 70%);
  opacity: .7;
  pointer-events: none;
}

.player-dimensions{
  width: 100%;
  height: auto;
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

/* Video.js tweaks */
.video-js{
  border-radius: 14px;
}
.video-js .vjs-control-bar{
  background: rgba(10,10,16,.74);
  backdrop-filter: blur(10px);
}
.video-js .vjs-big-play-button{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.video-js:hover .vjs-big-play-button{
  background: rgba(255,255,255,.16);
}

.status{
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}

.status-text{
  margin:0;
  color: var(--muted);
  font-weight: 700;
}

.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
}
.dot--off{
  background: rgba(255,255,255,.35);
}

.live-pill{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229,57,71,.16);
  border: 1px solid rgba(229,57,71,.4);
  color: rgba(255,255,255,.95);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 11px;
}

.pulse{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(229,57,71,.6);
  animation: pulse 1.3s infinite;
}

@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(229,57,71,.6); }
  70%{ box-shadow: 0 0 0 10px rgba(229,57,71,0); }
  100%{ box-shadow: 0 0 0 0 rgba(229,57,71,0); }
}

@keyframes rise{
  from{ transform: translateY(12px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* Donation */
.donation-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(241,200,107,.14), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  position: relative;
}

.donation-card::after{
  content:"";
  position:absolute;
  right: 16px;
  top: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(241,200,107,.35);
  opacity: .6;
}

.donation-content h2{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: .4px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.donation-content p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.donate-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #261616;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 12px 30px rgba(241,200,107,.2);
  transition: transform .15s ease, filter .15s ease;
}

.donate-button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.small-note{
  margin-top: 10px !important;
  font-size: 13px;
  opacity: .9;
}

.heart{
  transform: translateY(1px);
}

/* Thank you */
.thank-you-message.hidden{ display:none; }
.thank-you-message{
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding: 16px;
}
.thank-you-content h3{
  margin: 6px 0 4px;
}
.thank-you-content p{
  margin: 0;
  color: var(--muted);
}
.thank-you-icon{ font-size: 22px; }

/* Programme */
.program{
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.program-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.program h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: .4px;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.program-note{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.program-note--replay{
  color: rgba(241,200,107,.85);
  font-weight: 600;
}

.approx{
  display:inline-block;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  font-weight: 800;
}

/* Table styled like playbill */
.program-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.program-table thead th{
  text-align: left;
  color: rgba(255,255,255,.8);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 10px;
}

.program-table tbody tr{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.program-table tbody td{
  padding: 12px 10px;
  vertical-align: middle;
}

.program-table tbody tr td:first-child{
  width: 110px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  position: relative;
}

.program-table tbody tr td:first-child::after{
  content:"";
  position:absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(241,200,107,.25);
}

.program-table tbody tr td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.show{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.show-main{
  display:flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.class-name{
  font-weight: 800;
  color: rgba(255,255,255,.92);
  letter-spacing: .4px;
}

.play-title{
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Replay button */
.replay-button{
  border: 1px solid rgba(241,200,107,.45);
  background: rgba(255,255,255,.04);
  color: var(--gold-soft);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .6px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
  display: none;
}
.replay-button.is-available{
  display: inline-flex;
}

.replay-button:hover{
  transform: translateY(-1px);
  background: rgba(241,200,107,.12);
  border-color: rgba(241,200,107,.7);
  color: #1b0c10;
}

/* Mobile */
@media (max-width: 720px){
  body::before,
  body::after{ display:none; }
  .show{
    flex-direction: column;
    align-items: stretch;
  }
  .replay-button{
    width: 100%;
  }
  .program-table tbody tr td:first-child{
    width: 92px;
  }
  .play-title{
    white-space: normal;
  }
}

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