/* Explicit button surfaces; no platform-dependent arrow glyphs. */
.back-link,.event-ticket>a,.slot-watch-link,#current-slot-link,.relay-ending a,footer>a:last-child,.next-action {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:9px 15px; border:1px solid #8dc5ef85; border-radius:6px;
  background:linear-gradient(180deg,#283d5a,#17263f); color:#eef9ff;
  font-weight:700; line-height:1.5; text-align:center;
  box-shadow:inset 0 1px 0 #ffffff16,0 3px 0 #070f21,0 4px 12px #0003;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;
}
.back-link:hover,.event-ticket>a:hover,.slot-watch-link:hover,#current-slot-link:hover,.relay-ending a:hover,footer>a:last-child:hover,.next-link:hover .next-action {
  color:white; background:#334f71; border-color:#b7edff;
  box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #070f21,0 0 18px #65d7ff30;
}
.back-link:active,.event-ticket>a:active,.slot-watch-link:active,#current-slot-link:active,.relay-ending a:active,footer>a:last-child:active,.next-link:active .next-action,.watch-button:active {
  transform:translateY(2px); box-shadow:inset 0 1px 3px #0004;
}
.event-ticket>a { width:100%; }
.watch-button { flex-shrink:0; box-shadow:inset 0 1px 0 #fff8,0 4px 0 #354976,0 0 24px #7bdfff23; }
.watch-button>span:last-child { margin-left:0; }
.slot-watch-link { flex-shrink:0; font-size:14px; }
.status-live .slot-watch-link { background:linear-gradient(180deg,#a43c72,#752451); border-color:#f5a4d2; }
.next-link { border-radius:6px; }
.next-action { font-size:14px; margin-left:4px; }
.next-link:focus-visible .next-action { border-color:#b7edff; }
.relay-ending a { position:relative; z-index:1; }
footer>a:last-child { flex-shrink:0; }

/* Keep the audience separate from the 17 stage performers and the timetable. */
.audience-guests { position:absolute; z-index:8; left:50%; bottom:40px; transform:translateX(-50%); display:flex; justify-content:center; gap:24px; }
.audience-fan { position:relative; display:flex; flex-direction:column; align-items:center; width:168px; color:#fff; }
.audience-label { position:relative; z-index:2; padding:2px 12px; border:1px solid #ffdb9c66; border-radius:30px; background:#2a2440ed; color:#ffe3b0; font-size:12px; font-weight:700; letter-spacing:.15em; }
.audience-cheer { position:relative; display:flex; align-items:flex-end; justify-content:center; width:160px; height:87px; margin-top:1px; }
.audience-cheer::after { content:''; position:absolute; width:96px; height:11px; bottom:-6px; border-radius:50%; background:#060b20a8; filter:blur(3px); z-index:-1; }
.audience-cheer>.avatar { width:64px; height:64px; border:3px solid #fff2d7; box-shadow:0 0 0 3px #302742,0 0 17px #ffc66d38; animation:fan-bounce .7s ease-in-out infinite; transform-origin:50% 90%; }
.fan-penlight { position:absolute; bottom:17px; width:9px; height:52px; border:1px solid #fff8; border-radius:6px 6px 3px 3px; background:linear-gradient(90deg,#ffaa67,#fff3c2 55%,#ffbf73); box-shadow:0 0 7px #ffb363,0 0 19px #ffb36390; transform-origin:50% calc(100% + 13px); animation:fan-wave-left .7s ease-in-out infinite; }
.fan-penlight::after { content:''; position:absolute; left:-1px; top:100%; width:9px; height:18px; border:1px solid #b5a9c9; border-radius:0 0 4px 4px; background:linear-gradient(90deg,#392d4c,#c2b7d2,#3e3150); box-shadow:0 4px 7px #0005; }
.fan-penlight-left { left:24px; }
.fan-penlight-right { right:24px; background:linear-gradient(90deg,#be97ff,#fff1ff 55%,#dbb5ff); box-shadow:0 0 7px #b899ff,0 0 19px #b899ff90; animation-name:fan-wave-right; }
.audience-name { position:relative; margin-top:7px; padding:3px 12px; background:#111b35f5; border:1px solid #ffdfa24d; border-radius:5px; font-size:15px; line-height:1.5; }
.audience-post-action { margin-top:6px; padding:5px 12px; border:1px solid #e6c68e; border-radius:5px; background:#47374e; font-size:13px; font-weight:700; }
/* Keep the icon and name on one centered column, with or without an action label. */
.audience-fan.is-linked { display:grid; width:226px; grid-template-columns:1fr; justify-items:center; align-items:start; justify-content:center; text-align:center; }
.audience-fan.is-linked .audience-label,.audience-fan.is-linked .audience-cheer { grid-column:1/-1; }
.audience-fan.is-linked .audience-post-action { margin-top:7px; padding:3px 8px; }
.audience-fan.is-linked:hover .audience-name { border-color:#ffe6b6; background:#322d4e; }
.audience-fan.is-linked:focus-visible { outline-offset:8px; border-radius:8px; }
@keyframes fan-bounce {
  0%,100% { transform:translateY(0) rotate(-9deg); }
  25% { transform:translateY(-8px) rotate(-5deg); }
  50% { transform:translateY(-2px) rotate(9deg); }
  75% { transform:translateY(-8px) rotate(5deg); }
}
@keyframes fan-wave-left {
  0%,100% { transform:rotate(-39deg) translateY(4px); }
  50% { transform:rotate(22deg) translateY(-18px); }
}
@keyframes fan-wave-right {
  0%,100% { transform:rotate(-22deg) translateY(-18px); }
  50% { transform:rotate(39deg) translateY(4px); }
}

/* Step left, step right, hop, then turn. Keep the performer's name still. */
.spotlight-performer { --dance-step:23px; --dance-jump:32px; }
.spotlight-performer:is(.is-live,.is-celebrating) .spotlight-avatar { animation:idol-step 6.4s ease-in-out infinite; transform-origin:50% 100%; }
.spotlight-performer:is(.is-live,.is-celebrating) .spotlight-avatar>.avatar { animation:idol-turn 6.4s ease-in-out infinite; }
.spotlight-performer:is(.is-live,.is-celebrating):hover .spotlight-avatar,.spotlight-performer:is(.is-live,.is-celebrating):hover .spotlight-avatar>.avatar,
.spotlight-performer:is(.is-live,.is-celebrating):focus-within .spotlight-avatar,.spotlight-performer:is(.is-live,.is-celebrating):focus-within .spotlight-avatar>.avatar { animation-play-state:paused; }
.lineup-motion { display:block; transform-origin:50% 100%; }
.lineup-avatar.is-celebrating { --dance-step:7px; --dance-jump:14px; }
.lineup-avatar.is-celebrating .lineup-motion { animation:idol-step 6.4s ease-in-out infinite; animation-delay:calc(var(--index)*-.22s); }
.lineup-avatar.is-celebrating .avatar { animation:idol-turn 6.4s ease-in-out infinite; animation-delay:calc(var(--index)*-.22s); border-color:#ffe0f1; box-shadow:0 0 0 2px #bd6faf88,0 0 18px #ff8cc65c; }
.lineup-avatar.is-celebrating:hover .lineup-motion,.lineup-avatar.is-celebrating:focus-within .lineup-motion,
.lineup-avatar.is-celebrating:hover .avatar,.lineup-avatar.is-celebrating:focus-within .avatar { animation-play-state:paused; }
.spotlight-performer.is-celebrating .spotlight-avatar>.avatar { box-shadow:0 0 0 5px #492640c9,0 0 0 6px #ff9fcbb0,0 12px 36px #0008,0 0 44px #fc6eaa55; }
.multiple-performers .spotlight-performer { --dance-step:7px; --dance-jump:22px; }
.multiple-performers .spotlight-performer:nth-child(2) .spotlight-avatar,.multiple-performers .spotlight-performer:nth-child(2) .spotlight-avatar>.avatar { animation-delay:-.8s; }
.multiple-performers .spotlight-performer:nth-child(3) .spotlight-avatar,.multiple-performers .spotlight-performer:nth-child(3) .spotlight-avatar>.avatar { animation-delay:-1.6s; }
@keyframes idol-step {
  0%,32%,64%,100% { transform:translate(0,0) rotate(0); }
  8% { transform:translate(calc(var(--dance-step)*-.5),-12px) rotate(-6deg); }
  16% { transform:translate(calc(var(--dance-step)*-1),0) rotate(-3deg); }
  24% { transform:translate(calc(var(--dance-step)*-.5),-12px) rotate(3deg); }
  40% { transform:translate(calc(var(--dance-step)*.5),-12px) rotate(6deg); }
  48% { transform:translate(var(--dance-step),0) rotate(3deg); }
  56% { transform:translate(calc(var(--dance-step)*.5),-12px) rotate(-3deg); }
  68% { transform:translateY(4px) scale(1.04,.95); }
  74% { transform:translateY(calc(var(--dance-jump)*-1)) scale(.97,1.03); }
  80% { transform:translateY(2px) scale(1.04,.96); }
  84%,96% { transform:translateY(0) scale(1); }
  90% { transform:translateY(-9px) scale(1); }
}
@keyframes idol-turn {
  0%,82% { transform:perspective(650px) rotateY(0deg); }
  96%,100% { transform:perspective(650px) rotateY(360deg); }
}
@media (min-width:1101px) { .concert-stage { min-height:660px; } }
@media (max-width:1100px) {
  .concert-stage { height:1030px; }
  .venue-background { height:640px; bottom:auto; }
  .concert-stage::before { height:440px; }
  .stage-wordmark { top:117px; }
  .spotlight-area { top:216px; }.multiple-performers { top:225px; }
  .audience-guests { top:443px; bottom:auto; }
  .stage-lineup { top:635px; }
}
@media (max-width:600px) {
  .concert-stage { height:1290px; }
  .concert-stage::before { height:710px; }
  .stage-wordmark { top:216px; }
  .spotlight-area { top:308px; }.multiple-performers { top:331px; }
  .spotlight-performer { --dance-step:15px; --dance-jump:27px; }
  .audience-guests { top:535px; }
  .stage-lineup { top:710px; }
  .event-ticket>a { max-width:none; padding:10px 14px; }
  .next-link { width:100%; gap:8px; }
  .next-action { margin-left:auto; padding:9px 12px; font-size:13px; }
  .back-link { padding:8px 10px; }
  .slot-watch-link { padding:9px 12px; }
  .card-bottom { flex-wrap:wrap; }
  .slot-role { flex:1; min-width:90px; }
}

/* Keep the complete encore cast inside the venue, with the audience below them. */
@media (max-width:1100px) {
  .concert-stage[data-mode="encore"] { height:1040px; }
  .concert-stage[data-mode="encore"] .venue-background { height:100%; bottom:0; }
  .concert-stage[data-mode="encore"]::before { height:100%; background:linear-gradient(0deg,#07112b9c,transparent 40%); }
  .concert-stage[data-mode="encore"] .stage-wordmark { top:70px; }
  .concert-stage[data-mode="encore"] .spotlight-area { top:160px; }
  .concert-stage[data-mode="encore"] .stage-lineup { top:440px; }
  .concert-stage[data-mode="encore"] .audience-guests { top:auto; bottom:64px; }
}
@media (max-width:600px) {
  .concert-stage[data-mode="encore"] { height:1140px; }
  .concert-stage[data-mode="encore"] .stage-wordmark { top:90px; }
  .concert-stage[data-mode="encore"] .spotlight-area { top:188px; }
  .concert-stage[data-mode="encore"] .audience-guests { bottom:55px; }
}

.lineup-avatar[aria-disabled="true"], .spotlight-avatar[aria-disabled="true"], .card-channel-link[aria-disabled="true"] { cursor: default; }

