.live-class-slide {
  isolation: isolate;
  padding-top: clamp(100px, 14svh, 126px);
  padding-bottom: 80px;
  align-items: flex-start;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(42, 180, 247, 0.58), transparent 31%),
    radial-gradient(circle at 12% 94%, rgba(32, 210, 190, 0.28), transparent 27%),
    linear-gradient(135deg, #071331 0%, #161a61 55%, #087da2 112%);
}

.live-class-ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.live-class-ambient__beam {
  position: absolute;
  top: -36%;
  left: 30%;
  width: 18%;
  height: 180%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(86, 224, 255, 0.28), transparent);
  filter: blur(12px);
  transform: translateX(-140%) rotate(-18deg);
}

.live-class-ambient__glow {
  position: absolute;
  border-radius: 50%;
}

.live-class-ambient__glow--one {
  top: -38%;
  right: -8%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(41, 182, 246, 0.56), rgba(41, 182, 246, 0) 68%);
}

.live-class-ambient__glow--two {
  bottom: -48%;
  left: -16%;
  width: min(48vw, 700px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(30, 223, 193, 0.3), rgba(30, 223, 193, 0) 68%);
}

.live-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: #56f4c7;
  box-shadow: 0 0 16px rgba(86, 244, 199, 0.9);
}

.live-particle--1 { top: 31%; left: 17%; --particle-delay: 0.4s; }
.live-particle--2 { top: 69%; left: 29%; --particle-delay: 1.2s; }
.live-particle--3 { top: 25%; left: 61%; --particle-delay: 1.8s; }
.live-particle--4 { top: 58%; left: 78%; --particle-delay: 0.9s; }
.live-particle--5 { top: 82%; left: 68%; --particle-delay: 2.4s; }
.live-particle--6 { top: 46%; left: 91%; --particle-delay: 1.5s; }

.live-class-layout {
  width: min(1380px, 100%);
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
}

.live-class-heading {
  position: relative;
  z-index: 8;
  text-align: center;
}

.live-class-eyebrow {
  margin: 0 0 12px;
  color: #63ddff;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-class-eyebrow i {
  width: 5px;
  height: 5px;
  margin-inline: 10px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  background: #4ef0c1;
}

.live-class-heading h2 {
  margin: 0;
  font-size: clamp(42px, 3.9vw, 60px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.live-class-heading h2 span {
  position: relative;
}

.live-class-heading h2 b {
  font: inherit;
}

.live-class-heading h2 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 5px;
  border-radius: 999px;
  opacity: 0.82;
  background: linear-gradient(90deg, #4ef0c1, #4dbbff);
  box-shadow: 0 0 18px rgba(78, 240, 193, 0.56);
  transform: scaleX(0);
  transform-origin: left;
}

.live-class-heading > div > p:last-child {
  margin: 16px 0 0;
  color: rgba(226, 240, 255, 0.82);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 650;
  line-height: 1.6;
}

.live-class-status {
  min-height: 46px;
  margin: 24px 2px 0 0;
  padding: 0 18px;
  border: 1px solid rgba(104, 226, 255, 0.28);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(4, 25, 60, 0.66);
  box-shadow: 0 12px 30px rgba(2, 14, 44, 0.2);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 750;
}

.live-class-status span {
  color: #fff;
  font-weight: 900;
}

.live-class-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #4ef0c1;
  box-shadow: 0 0 0 0 rgba(78, 240, 193, 0.62);
}

.live-class-stage {
  position: relative;
  width: min(80vw, 1380px, calc(212svh - 551px), 100%);
  min-height: 0;
  margin: clamp(22px, 3.3svh, 30px) auto 0;
  padding: clamp(6px, 0.9svh, 10px) 8px 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, auto));
  align-content: start;
  gap: clamp(9px, 1.3svh, 14px) clamp(16px, 1.7vw, 26px);
  perspective: 1200px;
}

.live-orbit {
  position: absolute;
  top: 49%;
  left: 50%;
  border: 1px solid rgba(92, 220, 255, 0.24);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.live-orbit::before,
.live-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ce6ff;
  box-shadow: 0 0 16px #5ce6ff;
}

.live-orbit::before { top: 14%; left: 11%; }
.live-orbit::after { right: 14%; bottom: 8%; background: #5df3c7; box-shadow: 0 0 16px #5df3c7; }
.live-orbit--outer { width: 92%; height: 82%; transform: translate(-50%, -50%) rotate(-2deg); }
.live-orbit--inner { width: 72%; height: 62%; border-color: rgba(110, 120, 255, 0.28); transform: translate(-50%, -50%) rotate(4deg); }

.live-class-card {
  --card-rotate: 0deg;
  --arrival-x: 0px;
  --arrival-y: 32px;
  --arrival-scale: 0.78;
  position: relative;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(129, 232, 255, 0.54);
  border-radius: clamp(12px, 1.35vw, 22px);
  opacity: 0;
  background: #071426;
  box-shadow: 0 22px 52px rgba(1, 10, 38, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translate3d(var(--arrival-x), var(--arrival-y), 0) rotate(var(--card-rotate)) scale(var(--arrival-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.live-class-card__scene {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.live-class-card__people {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  bottom: 6px;
  width: 24%;
  overflow: hidden;
  border: 2px solid rgba(72, 229, 255, 0.92);
  border-radius: clamp(9px, 1vw, 17px);
  background-image: var(--classroom-image);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 200%;
  box-shadow: 0 0 22px rgba(35, 205, 255, 0.54), 0 8px 24px rgba(0, 19, 48, 0.42);
}

.live-class-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.34) 48%, transparent 60%);
  transform: translateX(-150%);
}

.live-class-card--main {
  z-index: 6;
  grid-area: 1 / 2;
  --arrival-y: 70px;
  --arrival-scale: 0.62;
  transform-origin: center bottom;
}

.live-class-card--main .live-class-card__people { width: 25%; }

.live-class-card--main,
.live-class-card--left-top,
.live-class-card--right-top,
.live-class-card--middle-left,
.live-class-card--middle,
.live-class-card--middle-right,
.live-class-card--left-bottom,
.live-class-card--bottom,
.live-class-card--right-bottom {
  width: 100%;
  aspect-ratio: 2.22 / 1;
}

.live-class-card--left-top { grid-area: 1 / 1; --card-rotate: -2deg; --arrival-x: -180px; }
.live-class-card--right-top { grid-area: 1 / 3; --card-rotate: 2deg; --arrival-x: 180px; }
.live-class-card--middle-left { grid-area: 2 / 1; --card-rotate: 1.4deg; --arrival-x: -160px; }
.live-class-card--middle { grid-area: 2 / 2; --card-rotate: -1deg; --arrival-y: 85px; }
.live-class-card--middle-right { grid-area: 2 / 3; --card-rotate: -1.4deg; --arrival-x: 160px; }
.live-class-card--left-bottom { grid-area: 3 / 1; --card-rotate: 2deg; --arrival-x: -170px; --arrival-y: 80px; }
.live-class-card--bottom { grid-area: 3 / 2; --card-rotate: -1.2deg; --arrival-y: 130px; }
.live-class-card--right-bottom { grid-area: 3 / 3; --card-rotate: -2deg; --arrival-x: 170px; --arrival-y: 80px; }

.live-class-slide.is-live .live-class-heading h2 span::after { animation: live-underline 800ms 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.live-class-slide.is-live .live-class-status i { animation: live-pulse 1.8s ease-out infinite; }
.live-class-slide.is-live .live-class-ambient__beam { animation: live-beam 5.8s 1s ease-in-out infinite; }
.live-class-slide.is-live .live-particle { animation: live-particle-rise 4.8s var(--particle-delay) ease-in-out infinite; }
.live-class-slide.is-live .live-orbit--outer { animation: live-orbit-in 900ms 220ms ease-out both, live-orbit-drift 18s 1.1s linear infinite; }
.live-class-slide.is-live .live-orbit--inner { animation: live-orbit-in 900ms 360ms ease-out both, live-orbit-drift-reverse 14s 1.25s linear infinite; }

.live-class-slide.is-live .live-class-card {
  animation:
    live-card-arrive 880ms var(--card-delay, 0.25s) cubic-bezier(0.18, 0.84, 0.28, 1.12) both,
    live-card-float var(--float-duration, 5.6s) calc(var(--card-delay, 0.25s) + 900ms) ease-in-out infinite;
}

.live-class-slide.is-live .live-class-card::after { animation: live-card-shine 4.6s calc(var(--card-delay, 0.25s) + 1.2s) ease-in-out infinite; }
.live-class-slide.is-live .live-class-card__people { animation: live-people-focus 2.8s calc(var(--card-delay, 0.25s) + 900ms) ease-in-out infinite; }

.live-class-card--main { --card-delay: 0.12s; --float-duration: 6.4s; }
.live-class-card--left-top { --card-delay: 0.34s; --float-duration: 5.4s; }
.live-class-card--right-top { --card-delay: 0.48s; --float-duration: 5.9s; }
.live-class-card--middle-left { --card-delay: 0.56s; --float-duration: 6.1s; }
.live-class-card--middle { --card-delay: 0.64s; --float-duration: 5.8s; }
.live-class-card--middle-right { --card-delay: 0.72s; --float-duration: 5.6s; }
.live-class-card--left-bottom { --card-delay: 0.80s; --float-duration: 6.1s; }
.live-class-card--right-bottom { --card-delay: 0.88s; --float-duration: 5.7s; }
.live-class-card--bottom { --card-delay: 0.96s; --float-duration: 6.3s; }

@keyframes live-card-arrive {
  0% { opacity: 0; transform: translate3d(var(--arrival-x), var(--arrival-y), -160px) rotate(var(--card-rotate)) scale(var(--arrival-scale)); filter: blur(6px) saturate(0.7); }
  70% { opacity: 1; filter: blur(0) saturate(1.08); }
  100% { opacity: 1; transform: translate3d(-50%, 0, 0) rotate(var(--card-rotate)) scale(1); filter: none; }
}

@keyframes live-card-float {
  0%, 100% { opacity: 1; transform: translate3d(-50%, 0, 0) rotate(var(--card-rotate)) scale(1); }
  50% { opacity: 1; transform: translate3d(-50%, -9px, 18px) rotate(calc(var(--card-rotate) + 0.45deg)) scale(1.012); }
}

.live-class-card--left-top,
.live-class-card--middle-left,
.live-class-card--left-bottom { transform-origin: left center; }
.live-class-card--right-top,
.live-class-card--middle-right,
.live-class-card--right-bottom { transform-origin: right center; }

.live-class-slide.is-live .live-class-card { animation-name: live-satellite-arrive, live-satellite-float; }

@keyframes live-satellite-arrive {
  0% { opacity: 0; transform: translate3d(var(--arrival-x), var(--arrival-y), -120px) rotate(var(--card-rotate)) scale(var(--arrival-scale)); filter: blur(6px) saturate(0.6); }
  72% { opacity: 1; filter: blur(0) saturate(1.08); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--card-rotate)) scale(1); filter: none; }
}

@keyframes live-satellite-float {
  0%, 100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--card-rotate)) scale(1); }
  50% { opacity: 1; transform: translate3d(0, -8px, 16px) rotate(calc(var(--card-rotate) + 0.5deg)) scale(1.015); }
}

@keyframes live-people-focus {
  0%, 100% { box-shadow: 0 0 18px rgba(35, 205, 255, 0.42), 0 8px 24px rgba(0, 19, 48, 0.42); }
  50% { box-shadow: 0 0 32px rgba(54, 229, 255, 0.84), 0 10px 28px rgba(0, 19, 48, 0.52); }
}

@keyframes live-card-shine { 0%, 68% { transform: translateX(-150%); } 86%, 100% { transform: translateX(150%); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 240, 193, 0.65); } 70%, 100% { box-shadow: 0 0 0 9px rgba(78, 240, 193, 0); } }
@keyframes live-underline { to { transform: scaleX(1); } }
@keyframes live-orbit-in { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@keyframes live-orbit-drift { from { transform: translate(-50%, -50%) rotate(-2deg); } to { transform: translate(-50%, -50%) rotate(358deg); } }
@keyframes live-orbit-drift-reverse { from { transform: translate(-50%, -50%) rotate(364deg); } to { transform: translate(-50%, -50%) rotate(4deg); } }
@keyframes live-beam { 0%, 14% { opacity: 0; transform: translateX(-140%) rotate(-18deg); } 38%, 55% { opacity: 0.7; } 78%, 100% { opacity: 0; transform: translateX(560%) rotate(-18deg); } }
@keyframes live-particle-rise { 0%, 100% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.6); } 35%, 66% { opacity: 0.82; } 75% { opacity: 0; transform: translate3d(10px, -54px, 0) scale(1.25); } }

body.has-live-detail {
  overflow: hidden;
}

.live-detail {
  width: min(1480px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  color: #eaf3ff;
  background: transparent;
}

.live-detail::backdrop {
  background: rgba(2, 10, 31, 0.76);
  backdrop-filter: blur(12px) saturate(0.78);
}

.live-detail[open] {
  animation: live-detail-enter 260ms cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.live-detail__shell {
  position: relative;
  max-height: calc(100svh - 40px);
  overflow: hidden;
  border: 1px solid rgba(113, 218, 255, 0.25);
  border-radius: 28px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 93% 4%, rgba(50, 178, 247, 0.2), transparent 28%),
    radial-gradient(circle at 3% 100%, rgba(47, 224, 188, 0.11), transparent 29%),
    linear-gradient(145deg, #091a38 0%, #0b2447 48%, #08172f 100%);
  box-shadow: 0 42px 110px rgba(0, 5, 24, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.live-detail__header {
  min-height: 56px;
  padding: 12px 30px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.live-detail__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(165, 216, 243, 0.18);
  border-radius: 50%;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  cursor: pointer;
  color: rgba(235, 247, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.live-detail__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.live-detail__close:hover,
.live-detail__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: rotate(4deg);
}

.live-detail__tabs {
  margin: 0 30px;
  padding: 5px;
  border: 1px solid rgba(143, 211, 243, 0.14);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(2, 16, 43, 0.44);
}

.live-detail__tabs button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: rgba(211, 229, 245, 0.58);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  transition: color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.live-detail__tabs button span,
.live-detail__tabs button strong {
  white-space: nowrap;
}

.live-detail__tabs button strong {
  padding: 3px 8px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.live-detail__tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(115deg, rgba(44, 164, 211, 0.34), rgba(43, 211, 177, 0.19));
  box-shadow: 0 8px 24px rgba(0, 8, 28, 0.2), 0 0 0 1px rgba(96, 229, 255, 0.12) inset;
}

.live-detail__tabs button[aria-selected="true"] strong {
  color: #74f2d1;
  background: rgba(56, 223, 180, 0.13);
}

.live-detail__tabs button:focus-visible {
  outline: 2px solid #62e5ff;
  outline-offset: -3px;
}

.live-detail__body {
  min-height: 0;
  overflow: hidden;
}

.live-detail__panel {
  height: min(590px, calc(100svh - 210px));
  padding: 22px 30px 28px;
  overflow: auto;
  scrollbar-color: rgba(100, 216, 239, 0.34) transparent;
  scrollbar-width: thin;
}

.live-detail__panel[hidden] {
  display: none;
}

.live-detail__intro {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.live-detail__intro h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.2;
}

.live-detail__intro > p {
  margin: 0 0 2px;
  color: rgba(211, 230, 246, 0.58);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.live-detail__kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #58e8c2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.live-detail__kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

.live-detail__kicker--blue {
  color: #66dcff;
}

.live-detail__kicker--violet {
  color: #b8a3ff;
}

.teacher-wall {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

#live-teachers-panel {
  padding-top: 20px;
}

.teacher-wall li {
  min-width: 0;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(153, 213, 241, 0.12);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.teacher-wall li:hover {
  border-color: rgba(86, 226, 255, 0.3);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.teacher-wall strong {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  color: #f7fbff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-avatar {
  position: relative;
  width: clamp(58px, 4.4vw, 74px);
  flex: 0 0 clamp(58px, 4.4vw, 74px);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 230, 255, 0.3);
  border-radius: 12px;
  background-image: url("../../assets/generated/live-teacher-avatars-20260813.webp");
  background-position: var(--avatar-x) var(--avatar-y);
  background-repeat: no-repeat;
  background-size: 600% 400%;
  box-shadow: 0 8px 18px rgba(0, 8, 28, 0.28);
}

.teacher-medal {
  --medal-edge: #b8790b;
  --medal-light: #fff4a6;
  --medal-mid: #f4bd2f;
  --medal-dark: #bd7608;
  position: relative;
  z-index: 2;
  top: 0;
  right: 0;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 1px solid var(--medal-edge);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 29%, var(--medal-light) 0 14%, transparent 15%),
    linear-gradient(145deg, var(--medal-light), var(--medal-mid) 48%, var(--medal-dark));
  box-shadow: 0 3px 9px rgba(0, 5, 22, 0.4), 0 0 0 2px rgba(5, 22, 47, 0.72);
}

.teacher-medal::before {
  position: absolute;
  z-index: -1;
  left: 4px;
  bottom: -9px;
  width: 15px;
  height: 12px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 50% 72%, 18% 100%);
  content: "";
  background: linear-gradient(90deg, var(--medal-dark), var(--medal-mid) 50%, var(--medal-dark));
}

.teacher-medal::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "★";
  color: rgba(109, 63, 0, 0.78);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.32);
}

.teacher-medal--silver {
  --medal-edge: #7e91a6;
  --medal-light: #f7fbff;
  --medal-mid: #b9c8d7;
  --medal-dark: #71859b;
}

.teacher-medal--silver::after {
  color: rgba(54, 70, 88, 0.76);
}

.student-chart-layout {
  min-height: 390px;
  padding: 24px clamp(18px, 4vw, 56px);
  border: 1px solid rgba(135, 210, 240, 0.12);
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.032);
}

.student-pie {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(
    #ff7b6b 0 48.9933%,
    #4dbbff 48.9933% 84.5638%,
    #4ef0c1 84.5638% 93.2886%,
    #ffb74e 93.2886% 97.9866%,
    #a78bfa 97.9866% 99.3289%,
    #8294ad 99.3289% 100%
  );
  box-shadow: 0 30px 70px rgba(0, 8, 29, 0.36), 0 0 34px rgba(67, 210, 232, 0.12);
}

.student-pie::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(145, 225, 248, 0.16);
  border-radius: 50%;
  background: #0b2040;
  box-shadow: 0 0 26px rgba(0, 8, 29, 0.34) inset;
}

.student-pie::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 28%, transparent 72%, rgba(2, 12, 32, 0.16));
  pointer-events: none;
}

.student-pie > div {
  position: absolute;
  z-index: 2;
  inset: 21%;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
}

.student-pie strong {
  display: block;
  color: #fff;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.student-pie span {
  margin-top: 8px;
  color: rgba(213, 234, 248, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.student-legend {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.student-legend li {
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(153, 213, 241, 0.1);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 32px 48px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.student-legend li > i {
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: var(--legend-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--legend-color) 56%, transparent);
}

.student-legend span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.student-legend strong {
  color: #f6fbff;
  font-size: 13px;
}

.student-legend small {
  overflow: hidden;
  color: rgba(201, 222, 239, 0.5);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-legend b {
  color: #fff;
  font-size: 17px;
  text-align: right;
}

.student-legend em {
  color: rgba(207, 227, 242, 0.55);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.student-chart-note {
  margin: 12px 2px 0;
  color: rgba(197, 220, 237, 0.47);
  font-size: 11px;
  line-height: 1.55;
}

.student-trend-kpis {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.student-trend-kpis li {
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid rgba(149, 216, 243, 0.12);
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.student-trend-kpis span {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: rgba(204, 225, 241, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.student-trend-kpis strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.student-trend-kpis small {
  color: #75e8ff;
  font-size: 11px;
  font-weight: 750;
}

.student-trend-scroll {
  overflow-x: auto;
  border: 1px solid rgba(135, 210, 240, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 72% 12%, rgba(130, 108, 255, 0.09), transparent 25%),
    rgba(255, 255, 255, 0.032);
  scrollbar-color: rgba(100, 216, 239, 0.34) transparent;
  scrollbar-width: thin;
}

.student-trend-chart {
  width: min(940px, 100%);
  min-width: 760px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.student-trend-chart__grid line {
  stroke: rgba(164, 209, 237, 0.11);
  stroke-width: 1;
}

.student-trend-chart__grid text {
  fill: rgba(189, 218, 238, 0.42);
  font-size: 11px;
  text-anchor: end;
}

.student-trend-chart__area {
  fill: url("#student-trend-fill");
}

.student-trend-chart__line {
  fill: none;
  stroke: #64dfff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: url("#student-trend-glow");
}

.student-trend-chart__points circle {
  fill: #0b2040;
  stroke: #6ce7ff;
  stroke-width: 3;
}

.student-trend-chart__points text {
  fill: #fff;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.student-trend-chart__points .student-trend-chart__month {
  fill: rgba(202, 227, 242, 0.58);
  font-size: 11px;
  font-weight: 750;
}

.student-trend-chart__points .is-peak circle {
  fill: #6a5ce0;
  stroke: #c2b8ff;
}

.student-trend-chart__points .is-peak text:not(.student-trend-chart__month) {
  fill: #d7d0ff;
}

.student-trend-chart__points .student-trend-chart__peak-note {
  font-size: 11px;
  letter-spacing: 0.02em;
}

@keyframes live-detail-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 761px) {
  #live-teachers-panel,
  #live-trend-panel {
    height: auto;
    max-height: calc(100svh - 210px);
  }
}

@media (max-width: 980px) {
  .live-class-layout { min-height: 0; }
  .live-class-stage { gap: 10px 14px; }
  .teacher-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .student-chart-layout { grid-template-columns: minmax(230px, 0.8fr) minmax(340px, 1.2fr); gap: 28px; }
}

@media (max-width: 760px) {
  .live-class-slide {
    min-height: 100svh;
    padding: 82px 18px 84px;
    align-items: flex-start;
  }
  .live-class-layout { height: auto; min-height: 0; }
  .live-class-heading h2 { font-size: clamp(30px, 8.7vw, 44px); }
  .live-class-stage {
    width: 100%;
    margin-top: 14px;
    padding: 6px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px 10px;
    align-content: start;
  }
  .live-orbit--outer { width: 122%; height: 70%; }
  .live-orbit--inner { width: 88%; height: 49%; }
  .live-class-card--main,
  .live-class-card--left-top,
  .live-class-card--right-top,
  .live-class-card--middle-left,
  .live-class-card--middle,
  .live-class-card--middle-right,
  .live-class-card--left-bottom,
  .live-class-card--bottom,
  .live-class-card--right-bottom {
    grid-area: auto;
    width: 100%;
  }
  .live-class-card--main { width: 76%; grid-column: 1 / -1; justify-self: center; }
  .live-class-card--main .live-class-card__people { width: 27%; }
  .live-class-card:not(.live-class-card--main) .live-class-card__people { width: 28%; }
  .live-detail { width: calc(100vw - 18px); }
  .live-detail__shell { max-height: calc(100svh - 18px); border-radius: 22px; }
  .live-detail__header { min-height: 52px; padding: 9px 18px 5px; }
  .live-detail__close { width: 38px; height: 38px; flex-basis: 38px; }
  .live-detail__tabs { margin: 0 18px; }
  .live-detail__tabs button { min-height: 46px; padding: 0 6px; gap: 5px; font-size: 12px; }
  .live-detail__tabs button strong { padding: 3px 6px; font-size: 10px; }
  .live-detail__panel { height: calc(100svh - 158px); padding: 18px; }
  #live-teachers-panel { padding-top: 16px; }
  #live-trend-panel { height: auto; max-height: calc(100svh - 172px); }
  .live-detail__intro { align-items: flex-start; gap: 10px; }
  .live-detail__intro > p { max-width: 44%; }
  .teacher-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .teacher-wall li { min-height: 74px; padding: 8px; gap: 9px; }
  .teacher-avatar { width: 54px; flex-basis: 54px; }
  .student-chart-layout { min-height: 0; padding: 20px 14px; grid-template-columns: 1fr; gap: 24px; }
  .student-pie { width: min(260px, 82vw); }
  .student-trend-kpis { gap: 7px; }
  .student-trend-kpis li { min-height: 70px; padding: 10px; }
  .student-trend-kpis strong { font-size: 24px; }
  .student-trend-scroll { border-radius: 17px; }
  .student-trend-chart { min-width: 640px; }
}

@media (max-width: 430px) {
  .live-detail__intro { display: block; }
  .live-detail__intro > p { max-width: none; margin-top: 7px; text-align: left; }
  .teacher-wall { gap: 7px; }
  .teacher-wall li { min-height: 62px; padding: 6px; gap: 7px; }
  .teacher-wall strong { font-size: 12px; }
  .teacher-avatar { width: 46px; flex-basis: 46px; border-radius: 10px; }
  .student-legend li { grid-template-columns: 8px minmax(0, 1fr) 27px 42px; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-class-slide *,
  .live-class-slide *::before,
  .live-class-slide *::after { animation: none !important; }
  .live-class-card,
  .live-orbit,
  .live-particle,
  .live-class-ambient__beam { opacity: 1; }
  .live-class-card--main,
  .live-class-card--left-top,
  .live-class-card--right-top,
  .live-class-card--middle-left,
  .live-class-card--middle,
  .live-class-card--middle-right,
  .live-class-card--left-bottom,
  .live-class-card--bottom,
  .live-class-card--right-bottom { transform: rotate(var(--card-rotate)); }
  .live-class-heading h2 span::after { transform: scaleX(1); }
  .live-detail[open] { animation: none; }
}
