:root {
  --academy-bg: #070b10;
  --academy-bg-2: #101418;
  --academy-topbar: rgba(12, 15, 20, 0.84);
  --academy-panel: rgba(13, 18, 25, 0.86);
  --academy-panel-2: rgba(17, 22, 30, 0.72);
  --academy-border: rgba(222, 177, 91, 0.2);
  --academy-border-soft: rgba(255, 255, 255, 0.09);
  --academy-text: #f8f3ea;
  --academy-muted: #a9b0ba;
  --academy-gold: #d9ad58;
  --academy-gold-2: #f4d18a;
  --academy-blue: #38a8ff;
  --academy-green: #5ad17b;
  --academy-danger: #ef5b5b;
  --academy-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --academy-font: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

body.platform-academy-mode,
body.account-settings-mode {
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 173, 88, 0.14), transparent 24rem),
    radial-gradient(circle at 12% 22%, rgba(47, 93, 110, 0.12), transparent 22rem),
    var(--academy-bg);
  color: var(--academy-text);
  font-family: var(--academy-font);
}

body.academy-light {
  --academy-bg: #f7f8fb;
  --academy-bg-2: #ffffff;
  --academy-topbar: rgba(255, 255, 255, 0.86);
  --academy-panel: rgba(255, 255, 255, 0.88);
  --academy-panel-2: rgba(255, 255, 255, 0.72);
  --academy-border: rgba(166, 121, 42, 0.24);
  --academy-border-soft: rgba(17, 24, 39, 0.11);
  --academy-text: #171826;
  --academy-muted: #596070;
  --academy-shadow: 0 28px 90px rgba(31, 41, 55, 0.12);
}

body.platform-academy-mode #particles-canvas {
  opacity: 0.14;
}

body.platform-academy-mode > .navbar {
  display: none;
}

body.platform-academy-mode .page-section {
  padding-top: 0;
  padding-bottom: 0;
}

body.platform-academy-mode .container {
  max-width: none;
  padding: 0;
}

.academy-shell {
  min-height: 100vh;
  background: transparent;
  overflow: clip;
  padding-top: 74px;
}

@keyframes academyViewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes academyBlockIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.academy-view-enter {
  animation: academyViewIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.academy-view-enter .academy-featured,
.academy-view-enter .academy-progress-hub,
.academy-view-enter .academy-category-navigator,
.academy-view-enter .academy-rail-section,
.academy-view-enter .academy-page-title,
.academy-view-enter .academy-page-subtitle,
.academy-view-enter .academy-video-box,
.academy-view-enter .academy-course-panel,
.academy-view-enter .academy-info-box {
  animation: academyBlockIn 0.44s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.academy-view-enter .academy-progress-hub,
.academy-view-enter .academy-category-navigator {
  animation-delay: 0.04s;
}

.academy-view-enter .academy-rail-section {
  animation-delay: 0.08s;
}

.academy-svg {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.academy-svg svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.academy-topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2200;
  width: 100%;
  background: var(--academy-topbar);
  border-bottom: 1px solid var(--academy-border-soft);
  backdrop-filter: blur(22px);
  overflow: visible;
}

.academy-topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
}

.academy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--academy-text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.academy-brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 173, 88, 0.55);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--academy-gold);
  background: rgba(217, 173, 88, 0.08);
  font-weight: 900;
}

.academy-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.academy-nav a,
.academy-nav button {
  border: 0;
  background: transparent;
  color: var(--academy-muted);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.academy-nav a:active,
.academy-nav button:active,
.academy-icon-btn:active,
.academy-theme-btn:active,
.academy-user-pill:active {
  transform: scale(0.96);
}

.academy-nav a:hover,
.academy-nav button:hover,
.academy-nav a.active,
.academy-nav button.active {
  color: var(--academy-gold-2);
}

.academy-nav a.active::after,
.academy-nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--academy-gold), transparent);
}

.academy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.academy-auth-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--academy-border-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--academy-text);
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.academy-auth-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(63, 132, 255, 0.55);
  background: rgba(63, 132, 255, 0.09);
  box-shadow: 0 14px 32px rgba(63, 132, 255, 0.16);
}

.academy-auth-btn.primary {
  border-color: rgba(63, 132, 255, 0.75);
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
}

.academy-icon-btn,
.academy-theme-btn,
.academy-menu-btn,
.academy-profile-btn,
.academy-user-pill {
  border: 1px solid var(--academy-border-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--academy-text);
  border-radius: 14px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.academy-user-pill {
  min-width: 0;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  font-weight: 900;
}

.academy-icon-btn:hover,
.academy-theme-btn:hover,
.academy-menu-btn:hover,
.academy-profile-btn:hover,
.academy-user-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 173, 88, 0.45);
  background: rgba(217, 173, 88, 0.08);
  box-shadow: 0 14px 32px rgba(217, 173, 88, 0.12);
}

.academy-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b6231, #f0cf89);
  color: #12100b;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(244, 209, 138, 0.6);
}

.academy-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.academy-role-badge.trusted {
  color: #f8f3ea;
  background: rgba(217, 173, 88, 0.22);
  border: 1px solid rgba(217, 173, 88, 0.42);
}

.academy-role-badge.member {
  color: #dbeafe;
  background: rgba(56, 168, 255, 0.15);
  border: 1px solid rgba(56, 168, 255, 0.32);
}

.academy-menu,
.academy-notification-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: max(18px, calc((100vw - 1480px) / 2 + 34px));
  z-index: 3000;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(217, 173, 88, 0.24);
  border-radius: 18px;
  background: color-mix(in srgb, var(--academy-panel) 98%, #030712 2%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(56, 168, 255, 0.08) inset;
  backdrop-filter: blur(30px) saturate(1.18);
  padding: 10px;
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.academy-topbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.academy-notification-menu {
  right: max(88px, calc((100vw - 1480px) / 2 + 112px));
}

.academy-menu.open,
.academy-notification-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.academy-menu.open::before,
.academy-notification-menu.open::before {
  display: none;
}

.academy-menu::-webkit-scrollbar,
.academy-course-rail::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.academy-menu::-webkit-scrollbar-thumb,
.academy-course-rail::-webkit-scrollbar-thumb {
  background: rgba(217, 173, 88, 0.38);
  border-radius: 999px;
}

.academy-menu-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 15px;
  background: rgba(217, 173, 88, 0.08);
  border: 1px solid rgba(217, 173, 88, 0.18);
}

.academy-menu-profile strong,
.academy-menu-profile small {
  display: block;
}

.academy-menu-profile small {
  margin-top: 4px;
  color: var(--academy-muted);
}

.academy-menu-label {
  color: var(--academy-gold);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 14px 6px;
  font-weight: 900;
}

.academy-menu a,
.academy-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--academy-text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  min-width: 0;
}

.academy-menu a > svg,
.academy-menu button > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  color: var(--academy-blue);
  background: rgba(56, 168, 255, 0.12);
  border: 1px solid rgba(56, 168, 255, 0.2);
}

.academy-menu a > span,
.academy-menu button > span {
  min-width: 0;
}

.academy-menu a > .academy-svg,
.academy-menu button > .academy-svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  color: var(--academy-blue);
  background: rgba(56, 168, 255, 0.12);
  border: 1px solid rgba(56, 168, 255, 0.2);
}

.academy-menu a > span:last-child,
.academy-menu button > span:last-child {
  justify-self: end;
  line-height: 1;
}

.academy-menu a:hover,
.academy-menu button:hover {
  background: rgba(217, 173, 88, 0.1);
  color: var(--academy-gold-2);
}

.academy-menu button:last-child {
  color: #ff7b7b;
}

.academy-menu button:last-child > .academy-svg {
  color: #ff7b7b;
  background: rgba(239, 91, 91, 0.12);
  border-color: rgba(239, 91, 91, 0.24);
}

.academy-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--academy-border-soft);
  margin-bottom: 8px;
}

.academy-notification-head button {
  border: 1px solid var(--academy-border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--academy-muted);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.academy-notification-item,
.academy-notification-empty {
  border-radius: 13px;
  padding: 12px;
  color: var(--academy-muted);
}

.academy-notification-item {
  border: 1px solid var(--academy-border-soft);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 8px;
}

.academy-notification-item strong,
.academy-notification-item small,
.academy-notification-item span {
  display: block;
}

.academy-notification-item strong {
  color: var(--academy-text);
  margin-bottom: 4px;
}

.academy-notification-item small {
  line-height: 1.45;
}

.academy-notification-item span {
  font-size: 0.72rem;
  margin-top: 6px;
}

.academy-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 34px 56px;
}

.academy-main.compact,
.academy-main.lesson {
  padding-top: 36px;
}

.academy-page-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.academy-page-subtitle {
  color: var(--academy-muted);
  margin-bottom: 28px;
}

.academy-featured {
  width: 100vw;
  min-height: clamp(430px, 58vh, 610px);
  margin-left: calc(50% - 50vw);
  margin-bottom: 32px;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.64) 38%, rgba(7, 11, 16, 0.18) 100%),
    var(--cover, radial-gradient(circle at 72% 42%, rgba(217,173,88,.6), transparent 18rem));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

body.academy-light .academy-featured {
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.96) 0%, rgba(247, 248, 251, 0.74) 38%, rgba(247, 248, 251, 0.12) 100%),
    var(--cover);
}

.academy-featured.locked {
  filter: saturate(0.75);
}

.academy-featured-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 54px 34px;
}

.academy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217, 173, 88, 0.38);
  color: var(--academy-gold-2);
  background: rgba(217, 173, 88, 0.09);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.academy-featured h1 {
  max-width: 720px;
  margin: 24px 0 14px;
  font-size: clamp(2.45rem, 6vw, 4.65rem);
  font-weight: 900;
  line-height: 1.02;
  color: var(--academy-text);
  letter-spacing: 0;
}

.academy-featured p {
  max-width: 470px;
  color: var(--academy-muted);
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.academy-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.academy-primary-btn,
.academy-gold-btn,
.academy-ghost-btn,
.academy-outline-btn {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(217, 173, 88, 0.34);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.academy-primary-btn,
.academy-gold-btn {
  background: linear-gradient(135deg, #f5d58f, #c99341);
  color: #171108;
  box-shadow: 0 18px 34px rgba(217, 173, 88, 0.2);
}

.academy-outline-btn,
.academy-ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--academy-text);
}

.academy-primary-btn:hover,
.academy-gold-btn:hover,
.academy-ghost-btn:hover,
.academy-outline-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 209, 138, 0.72);
}

.academy-primary-btn:active,
.academy-gold-btn:active,
.academy-ghost-btn:active,
.academy-outline-btn:active {
  transform: translateY(0) scale(0.97);
}

.academy-rail-section {
  margin: 28px 0 42px;
}

.academy-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
}

.academy-section-row h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.academy-course-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 0 18px;
}

.academy-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
  gap: 20px;
  align-items: stretch;
}

.academy-card {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  min-height: 424px;
  scroll-snap-align: start;
  border: 1px solid var(--academy-border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--academy-panel);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
  display: flex;
  flex-direction: column;
}

.academy-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(217, 173, 88, 0.42);
}

.academy-card.locked .academy-card-cover {
  filter: grayscale(1) brightness(0.58);
}

.academy-card-cover {
  width: 100%;
  height: 158px;
  border: 0;
  cursor: pointer;
  display: block;
  aspect-ratio: auto;
  background: var(--cover, linear-gradient(135deg, rgba(217,173,88,.12), rgba(37,64,86,.22)));
  background-size: cover;
  background-position: center;
  flex: 0 0 158px;
}

.academy-card-body {
  padding: 18px;
  min-height: 266px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.academy-kicker {
  display: block;
  color: var(--academy-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 800;
}

.academy-card h3 {
  color: var(--academy-text);
  margin-bottom: 8px;
  font-size: 1.04rem;
  letter-spacing: 0;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.academy-card p,
.academy-info-card p,
.academy-material small {
  color: var(--academy-muted);
  font-size: 0.9rem;
}

.academy-card p {
  min-height: 62px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.academy-card-body > .academy-gold-btn,
.academy-card-body > .academy-ghost-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.academy-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
  flex: 0 0 auto;
}

.academy-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--academy-gold), var(--academy-gold-2));
}

.academy-progress-hub {
  border: 1px solid var(--academy-border-soft);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--academy-panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  padding: 9px;
  margin: -6px 0 24px;
}

.academy-progress-top {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(390px, 1.5fr) minmax(250px, 0.9fr);
  gap: 10px;
  align-items: stretch;
}

.academy-greeting,
.academy-stat-card,
.academy-level-card,
.academy-evolve-banner,
.academy-category-card {
  border: 1px solid var(--academy-border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.academy-greeting {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.academy-greeting h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.academy-greeting p,
.academy-stat-card small,
.academy-level-card small,
.academy-evolve-banner p,
.academy-category-card small {
  color: var(--academy-muted);
}

.academy-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.academy-stat-card {
  min-height: 76px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.academy-stat-card.book-tone .academy-stat-icon {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.38);
}

.academy-stat-card.xp-tone .academy-stat-icon {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.32);
}

.academy-stat-card.streak-tone .academy-stat-icon {
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.34);
}

.academy-stat-card strong {
  display: block;
  color: var(--academy-text);
  font-size: 1rem;
  line-height: 1;
}

.academy-stat-icon,
.academy-evolve-icon,
.academy-category-card > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--academy-gold-2);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.22);
  flex: 0 0 auto;
}

.academy-level-card {
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05)),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(37, 99, 235, 0.28);
}

.academy-level-card strong {
  display: block;
  color: var(--academy-gold-2);
  font-size: 1rem;
}

.academy-level-track {
  height: 6px;
  width: min(230px, 40vw);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  overflow: hidden;
  margin: 6px 0 4px;
}

.academy-level-track span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.academy-level-emblem {
  width: 58px;
  height: 58px;
  color: #60a5fa;
  filter: drop-shadow(0 0 22px rgba(37, 99, 235, 0.34));
}

.academy-level-emblem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.academy-level-emblem .level-outer {
  fill: rgba(37, 99, 235, 0.14);
  stroke: currentColor;
  stroke-width: 2.2;
}

.academy-level-emblem .level-inner {
  fill: url("#academyLevelGradient");
  opacity: 0.2;
  stroke: currentColor;
  stroke-width: 1.4;
}

.academy-level-emblem .level-star {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.2;
}

.academy-level-emblem .level-spark {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.85;
}

.academy-level-emblem.advanced {
  color: #22c55e;
  filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.3));
}

.academy-level-emblem.mentor {
  color: #a855f7;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.36));
}

.academy-level-emblem.guardian {
  color: #f59e0b;
  filter: drop-shadow(0 0 26px rgba(245, 158, 11, 0.38));
}

.academy-level-emblem.maximum {
  color: #f8fafc;
  filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.52));
}

.academy-evolve-banner {
  margin-top: 14px;
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.18), transparent 22rem),
    rgba(37, 99, 235, 0.075);
}

.academy-evolve-banner div {
  flex: 1;
}

.academy-evolve-banner strong {
  display: block;
  color: var(--academy-text);
  margin-bottom: 4px;
}

.academy-category-navigator {
  margin-top: 18px;
}

.academy-category-navigator.compact {
  border: 1px solid var(--academy-border-soft);
  border-radius: 18px;
  background: var(--academy-panel);
  padding: 12px;
  margin: -6px 0 26px;
}

.academy-category-head {
  margin: 18px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.academy-category-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.academy-outline-btn.compact {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.academy-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.academy-category-card {
  min-height: 50px;
  padding: 8px 10px;
  color: var(--academy-text);
  text-align: left;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.academy-category-card strong {
  font-size: 0.78rem;
}

.academy-category-card > span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.academy-category-card > span .academy-svg {
  width: 15px;
  height: 15px;
}

.academy-category-card small {
  grid-column: 2;
  font-size: 0.7rem;
}

.academy-category-card:hover,
.academy-category-card.active {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.58);
  background: rgba(37, 99, 235, 0.11);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.academy-category-card:active,
.account-side-btn:active {
  transform: translateY(0) scale(0.98);
}

.academy-category-group {
  margin-bottom: 24px;
}

.academy-category-group h3 {
  color: var(--academy-text);
  font-size: 1rem;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.academy-breadcrumbs {
  color: var(--academy-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  font-weight: 800;
}

.academy-breadcrumbs a {
  color: var(--academy-muted);
  text-decoration: none;
}

.academy-breadcrumbs .current {
  color: var(--academy-gold-2);
}

.academy-lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  gap: 26px;
  align-items: start;
}

.academy-lesson-header {
  max-width: 980px;
  margin-bottom: 24px;
}

.academy-module-label {
  color: var(--academy-gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 900;
}

.academy-lesson-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 8px 0 6px;
  letter-spacing: 0;
}

.academy-lesson-subtitle {
  color: var(--academy-muted);
  font-weight: 800;
}

.academy-player {
  margin-top: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #05080d;
  border: 1px solid var(--academy-border-soft);
  box-shadow: var(--academy-shadow);
}

.academy-player-guard,
.academy-player video,
.academy-player iframe,
.academy-player img,
.academy-player-guard video,
.academy-player-guard iframe,
.academy-player-guard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  object-fit: cover;
}

.academy-player,
.academy-player-guard {
  user-select: none;
}

.academy-player-guard {
  background: #05080d;
}

.academy-fallback-player {
  min-height: 390px;
  display: grid;
  place-items: center;
  color: var(--academy-muted);
  background:
    radial-gradient(circle at center, rgba(217,173,88,.18), transparent 18rem),
    #070b10;
}

.academy-lesson-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.academy-lesson-actions > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.academy-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--academy-border-soft);
  margin: 30px 0 16px;
}

.academy-tab {
  border: 0;
  background: transparent;
  color: var(--academy-muted);
  padding: 0 0 14px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

.academy-tab.active {
  color: var(--academy-gold-2);
}

.academy-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--academy-gold);
}

.academy-tab-content-enter {
  animation: academyBlockIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.academy-info-card,
.academy-course-panel {
  border: 1px solid var(--academy-border-soft);
  border-radius: 16px;
  background: var(--academy-panel-2);
  padding: 24px;
}

.academy-material {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  color: var(--academy-text);
}

.academy-material-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 173, 88, 0.25);
  color: var(--academy-gold);
  background: rgba(217, 173, 88, 0.08);
}

.academy-course-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  margin-top: 0;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.academy-course-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--academy-border-soft);
  margin-bottom: 22px;
}

.academy-panel-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--academy-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--academy-text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.academy-panel-toggle:hover {
  border-color: var(--academy-border);
  background: rgba(37, 99, 235, 0.12);
}

.academy-course-panel.collapsed {
  overflow: visible;
}

.academy-course-panel.collapsed .academy-course-panel-header {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.academy-course-panel.collapsed .academy-panel-toggle {
  transform: rotate(180deg);
}

.academy-course-panel-body {
  display: block;
}

.academy-course-panel.collapsed .academy-course-panel-body {
  display: none;
}

.academy-module {
  margin-bottom: 24px;
}

.academy-module h4 {
  color: var(--academy-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.academy-lesson-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--academy-muted);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 13px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.academy-lesson-item.active {
  background: rgba(217, 173, 88, 0.2);
  color: var(--academy-text);
}

.academy-lesson-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.academy-lesson-item.done .academy-lesson-dot {
  background: var(--academy-gold);
  border-color: var(--academy-gold);
}

.academy-empty {
  border: 1px dashed var(--academy-border-soft);
  border-radius: 16px;
  padding: 30px;
  color: var(--academy-muted);
  text-align: center;
  background: var(--academy-panel-2);
}

.academy-notice-clean-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 36px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 20, 35, 0.82), rgba(5, 14, 26, 0.68));
  color: #f8fafc;
  text-align: center;
}

.academy-notice-clean-empty > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 125, 255, 0.32);
  border-radius: 14px;
  background: rgba(47, 125, 255, 0.12);
  color: #79adff;
}

.academy-notice-clean-empty svg {
  width: 22px;
  height: 22px;
}

.academy-notice-clean-empty h2,
.academy-notice-clean-empty p {
  margin: 0;
}

.academy-notice-clean-empty h2 {
  font-size: 1.05rem;
}

.academy-notice-clean-empty p {
  max-width: 460px;
  color: #94a3b8;
  font-size: 0.82rem;
}

body.platform-academy-mode {
  --academy-gold: #2563eb;
  --academy-gold-2: #60a5fa;
  --academy-border: rgba(37, 99, 235, 0.24);
  --academy-blue: #2563eb;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.16), transparent 24rem),
    radial-gradient(circle at 12% 22%, rgba(96, 165, 250, 0.13), transparent 22rem),
    var(--academy-bg);
}

body.platform-academy-mode .academy-brand-mark,
body.platform-academy-mode .academy-material-icon {
  border-color: rgba(37, 99, 235, 0.52);
  color: var(--academy-gold-2);
  background: rgba(37, 99, 235, 0.1);
}

body.platform-academy-mode .academy-menu {
  border-color: rgba(37, 99, 235, 0.28);
}

body.platform-academy-mode .academy-notification-menu {
  border-color: rgba(37, 99, 235, 0.28);
}

body.platform-academy-mode .academy-menu-profile,
body.platform-academy-mode .academy-badge {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.1);
}

body.platform-academy-mode .academy-menu-label {
  color: var(--academy-gold-2);
}

body.platform-academy-mode .academy-icon-btn:hover,
body.platform-academy-mode .academy-theme-btn:hover,
body.platform-academy-mode .academy-menu-btn:hover,
body.platform-academy-mode .academy-profile-btn:hover,
body.platform-academy-mode .academy-user-pill:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.15);
}

body.platform-academy-mode .academy-primary-btn,
body.platform-academy-mode .academy-gold-btn {
  border-color: rgba(37, 99, 235, 0.46);
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

body.platform-academy-mode .academy-ghost-btn,
body.platform-academy-mode .academy-outline-btn {
  border-color: rgba(37, 99, 235, 0.34);
}

body.platform-academy-mode .academy-primary-btn:hover,
body.platform-academy-mode .academy-gold-btn:hover,
body.platform-academy-mode .academy-ghost-btn:hover,
body.platform-academy-mode .academy-outline-btn:hover {
  border-color: rgba(96, 165, 250, 0.72);
}

body.platform-academy-mode .academy-progress span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

body.platform-academy-mode .academy-card:hover {
  border-color: rgba(37, 99, 235, 0.46);
}

body.platform-academy-mode,
body.platform-academy-mode * {
  scrollbar-color: rgba(37, 99, 235, 0.72) rgba(8, 12, 20, 0.18);
}

body.platform-academy-mode *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.92), rgba(37, 99, 235, 0.66));
}

body.platform-academy-mode *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(147, 197, 253, 1), rgba(37, 99, 235, 0.84));
}

body.platform-academy-mode .academy-menu::-webkit-scrollbar-thumb,
body.platform-academy-mode .academy-course-rail::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.5);
}

body.platform-academy-mode .academy-avatar {
  background: linear-gradient(135deg, #1d4ed8, #93c5fd);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.62);
}

body.platform-academy-mode .academy-role-badge.trusted {
  color: #eff6ff;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.44);
}

body.platform-academy-mode .academy-menu a:hover,
body.platform-academy-mode .academy-menu button:hover,
body.platform-academy-mode .academy-notification-head button:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--academy-gold-2);
}

body.platform-academy-mode .academy-featured {
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.64) 38%, rgba(7, 11, 16, 0.18) 100%),
    var(--cover, radial-gradient(circle at 72% 42%, rgba(37, 99, 235, 0.58), transparent 18rem));
}

body.platform-academy-mode .academy-card-cover {
  background: var(--cover, linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(30, 64, 175, 0.28)));
}

body.platform-academy-mode .academy-fallback-player {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.18), transparent 18rem),
    #070b10;
}

body.platform-academy-mode .academy-lesson-item.active {
  background: rgba(37, 99, 235, 0.16);
}

body.platform-academy-mode.academy-light {
  --academy-text: #0f172a;
  --academy-muted: #475569;
  --academy-panel: rgba(255, 255, 255, 0.93);
  --academy-panel-2: rgba(255, 255, 255, 0.82);
  --academy-border-soft: rgba(15, 23, 42, 0.14);
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.1), transparent 24rem),
    radial-gradient(circle at 12% 22%, rgba(96, 165, 250, 0.09), transparent 22rem),
    var(--academy-bg);
}

body.platform-academy-mode.academy-light .academy-topbar,
body.platform-academy-mode.academy-light .academy-card,
body.platform-academy-mode.academy-light .academy-course-panel,
body.platform-academy-mode.academy-light .academy-video-box,
body.platform-academy-mode.academy-light .academy-material,
body.platform-academy-mode.academy-light .academy-info-box,
body.platform-academy-mode.academy-light .academy-menu {
  color: var(--academy-text);
}

body.platform-academy-mode.academy-light .academy-menu,
body.platform-academy-mode.academy-light .academy-notification-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.06) inset;
}

body.platform-academy-mode.academy-light .academy-menu.open::before,
body.platform-academy-mode.academy-light .academy-notification-menu.open::before {
  background: rgba(248, 250, 252, 0.46);
}

body.platform-academy-mode.academy-light .academy-featured {
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.97) 0%, rgba(247, 248, 251, 0.84) 42%, rgba(247, 248, 251, 0.22) 100%),
    var(--cover, radial-gradient(circle at 72% 42%, rgba(37, 99, 235, 0.32), transparent 18rem));
}

body.platform-academy-mode.academy-light .academy-featured h1,
body.platform-academy-mode.academy-light .academy-card h3,
body.platform-academy-mode.academy-light .academy-course-panel-header h3,
body.platform-academy-mode.academy-light .academy-lesson-title,
body.platform-academy-mode.academy-light .academy-video-box h1,
body.platform-academy-mode.academy-light .academy-info-box h3,
body.platform-academy-mode.academy-light .academy-material strong {
  color: #0f172a;
}

body.platform-academy-mode.academy-light .academy-featured p,
body.platform-academy-mode.academy-light .academy-card p,
body.platform-academy-mode.academy-light .academy-kicker,
body.platform-academy-mode.academy-light .academy-lesson-subtitle,
body.platform-academy-mode.academy-light .academy-breadcrumbs,
body.platform-academy-mode.academy-light .academy-breadcrumbs a,
body.platform-academy-mode.academy-light .academy-material small,
body.platform-academy-mode.academy-light .academy-meta,
body.platform-academy-mode.academy-light .academy-progress-label {
  color: #475569;
}

body.platform-academy-mode.academy-light .academy-icon-btn,
body.platform-academy-mode.academy-light .academy-theme-btn,
body.platform-academy-mode.academy-light .academy-menu-btn,
body.platform-academy-mode.academy-light .academy-profile-btn,
body.platform-academy-mode.academy-light .academy-user-pill,
body.platform-academy-mode.academy-light .academy-ghost-btn,
body.platform-academy-mode.academy-light .academy-outline-btn {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.74);
}

body.platform-academy-mode.academy-light .academy-player {
  background: #e2e8f0;
}

.academy-notice-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.academy-notice-hero-copy-only {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.academy-notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.academy-notice-list,
.academy-notice-side {
  border: 1px solid var(--academy-border-soft);
  border-radius: 22px;
  background: var(--academy-panel);
  padding: 22px;
}

.academy-notice-list h2,
.academy-notice-side h3 {
  margin: 0 0 16px;
}

.academy-notice-featured,
.academy-notice-row {
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 219, 254, 0.18), transparent 14rem),
    rgba(13, 18, 25, 0.72);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(112px, auto) auto 22px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: 0.22s ease;
}

.academy-notice-featured > *,
.academy-notice-row > *,
.academy-notice-copy {
  min-width: 0;
}

.academy-notice-featured {
  min-height: 130px;
  box-shadow: 0 18px 46px rgba(219, 234, 254, 0.08);
}

body.academy-light .academy-notice-featured,
body.academy-light .academy-notice-row {
  background:
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.18), transparent 14rem),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1);
}

.academy-notice-row {
  margin-bottom: 12px;
  box-shadow: none;
}

.academy-notice-featured:hover,
.academy-notice-row:hover,
.academy-notice-side button:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
}

.academy-notice-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--academy-blue);
  background: rgba(59, 130, 246, 0.14);
}

.academy-notice-copy h3 {
  margin: 7px 0 4px;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.academy-notice-copy p {
  color: var(--academy-muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.academy-notice-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--academy-blue);
  border: 1px solid rgba(59, 130, 246, 0.38);
  background: rgba(59, 130, 246, 0.11);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-notice-meta {
  display: grid;
  gap: 4px;
  color: var(--academy-muted);
  white-space: nowrap;
  text-align: right;
}

.academy-notice-meta strong {
  color: var(--academy-text);
}

.academy-notice-arrow {
  color: var(--academy-blue);
}

.academy-notice-side {
  position: sticky;
  top: 96px;
}

.academy-notice-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.academy-notice-section-head h2 {
  margin-bottom: 4px;
}

.academy-notice-section-head p,
.academy-notice-side-empty p {
  margin: 0;
  color: var(--academy-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.academy-forum-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.academy-forum-sources button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #8dbbff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.academy-forum-sources button:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

.academy-notice-side button {
  width: 100%;
  border: 1px solid var(--academy-border-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  color: var(--academy-text);
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: 0.22s ease;
}

.academy-notice-side button span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--academy-blue);
  background: rgba(59, 130, 246, 0.14);
}

.academy-notice-side button small {
  color: var(--academy-muted);
}

.academy-notice-side-empty {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--academy-border-soft);
  border-radius: 16px;
}

.academy-notice-side .academy-notice-side-empty button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  color: #8dbbff;
  font-weight: 800;
  text-align: center;
}

.academy-notice-side .academy-notice-side-empty button .academy-svg {
  width: 16px;
  height: 16px;
  display: inline-flex;
  grid-row: auto;
  border-radius: 0;
  background: transparent;
}

.academy-live-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #dbeafe;
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.35) 55%, rgba(15, 23, 42, 0.2));
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.34), 0 18px 34px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.academy-live-icon::before,
.academy-live-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(219, 234, 254, 0.72);
  border-radius: 999px;
  animation: paiva-live-pulse 1.8s ease-out infinite;
}

.academy-live-icon::after {
  animation-delay: .55s;
}

.academy-live-icon i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #eff6ff;
  box-shadow: 0 0 18px rgba(239, 246, 255, 0.95);
  z-index: 1;
}

@keyframes paiva-live-pulse {
  0% { transform: scale(.45); opacity: .85; }
  100% { transform: scale(1.7); opacity: 0; }
}

.academy-live-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.12)),
    radial-gradient(circle at 88% 22%, rgba(147, 197, 253, 0.2), transparent 13rem),
    rgba(10, 16, 28, 0.82);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.16);
}

.academy-live-card .academy-notice-badge,
.academy-live-strip .academy-notice-badge {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.52);
  background: rgba(37, 99, 235, 0.32);
}

.academy-live-card.is-ended .academy-notice-badge {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.62);
}

.academy-live-strip {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.24), rgba(8, 47, 73, 0.08)),
    rgba(13, 18, 25, 0.72);
}

.academy-live-strip h2 {
  margin: 0 0 14px;
}

.academy-live-list {
  display: grid;
  gap: 12px;
}

.academy-live-list .academy-notice-row {
  margin-bottom: 0;
}

body.academy-light .academy-live-card,
body.academy-light .academy-live-strip {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.1);
}

.paiva-level-emblem,
.paiva-medal {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}

.paiva-level-emblem svg,
.paiva-medal svg {
  width: 52px;
  height: 52px;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.22));
}

.paiva-level-emblem small,
.paiva-medal strong,
.paiva-medal small {
  margin-top: 5px;
  text-align: center;
}

.paiva-level-emblem .emblem-plate,
.paiva-medal .medal-ring {
  fill: rgba(15, 23, 42, 0.96);
  stroke: #60a5fa;
  stroke-width: 2;
}

.paiva-level-emblem .emblem-core,
.paiva-medal .medal-core {
  fill: rgba(37, 99, 235, 0.2);
  stroke: rgba(191, 219, 254, 0.42);
}

.paiva-level-emblem .emblem-symbol,
.paiva-medal .medal-symbol {
  fill: none;
  stroke: #dbeafe;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(20px, 20px) scale(.98);
}

.paiva-level-emblem.advanced .emblem-plate { stroke: #a78bfa; }
.paiva-level-emblem.mentor .emblem-plate { stroke: #22c55e; }
.paiva-level-emblem.royal .emblem-plate { stroke: #f59e0b; }
.paiva-level-emblem.legend .emblem-plate { stroke: #ec4899; }
.paiva-level-emblem.mythic .emblem-plate { stroke: #fde68a; }

.paiva-medal.pioneer .medal-ring { stroke: #93c5fd; }
.paiva-medal.social .medal-ring { stroke: #4ade80; }
.paiva-medal.scholar .medal-ring { stroke: #a78bfa; }
.paiva-medal.top3 .medal-ring { stroke: #fbbf24; }
.paiva-medal.focus .medal-ring { stroke: #22d3ee; }
.paiva-medal.explorer .medal-ring { stroke: #f97316; }

.academy-menu-medals {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.academy-menu-medals .paiva-medal svg {
  width: 34px;
  height: 34px;
}

.account-settings-shell {
  min-height: 100vh;
  background: transparent;
  color: var(--academy-text);
}

.account-settings-title {
  max-width: 1480px;
  margin: 0 auto 18px;
  padding: 36px 34px 0;
}

.account-settings-title h1 {
  color: var(--academy-gold-2);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.account-settings-title p {
  color: var(--academy-muted);
  margin-top: 8px;
}

.account-settings-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 0 34px 56px;
}

.account-sidebar,
.account-panel,
.account-card {
  border: 1px solid var(--academy-border-soft);
  border-radius: 16px;
  background: var(--academy-panel);
}

.account-sidebar {
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 94px;
}

.account-side-toggle {
  display: none;
  position: fixed;
  left: 12px;
  top: 94px;
  z-index: 2600;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--academy-border);
  background: var(--academy-panel);
  color: var(--academy-gold-2);
  font-weight: 900;
}

.account-side-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--academy-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.account-side-btn.active,
.account-side-btn:hover {
  color: var(--academy-gold-2);
  background: rgba(217, 173, 88, 0.12);
}

.account-panel {
  padding: 24px;
}

.account-view-enter {
  animation: academyBlockIn 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--enter-index, 0) * 45ms);
}

.account-profile-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: start;
}

.account-photo {
  text-align: center;
}

.account-photo .academy-avatar {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  font-size: 2.4rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.academy-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--academy-muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.academy-field.full {
  grid-column: 1 / -1;
}

.academy-field input,
.academy-field textarea {
  height: 46px;
  border: 1px solid var(--academy-border-soft);
  border-radius: 12px;
  background: rgba(3, 7, 12, 0.34);
  color: var(--academy-text);
  padding: 0 12px;
  outline: none;
  font: inherit;
}

.academy-field textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

body.academy-light .academy-field input,
body.academy-light .academy-field textarea {
  background: rgba(255, 255, 255, 0.68);
}

.academy-field input:focus,
.academy-field textarea:focus {
  border-color: rgba(217, 173, 88, 0.5);
}

.account-security-summary {
  border: 1px solid var(--academy-border-soft);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.account-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.account-card {
  padding: 22px;
}

.account-card h3 {
  color: var(--academy-gold-2);
  margin-bottom: 8px;
}

.account-card p {
  color: var(--academy-muted);
  font-size: 0.9rem;
  min-height: 44px;
}

.account-action-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-setting-row {
  border: 1px solid var(--academy-border-soft);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-setting-row strong,
.account-log-row strong {
  display: block;
  color: var(--academy-text);
  margin-bottom: 4px;
}

.account-setting-row small,
.account-log-row small {
  color: var(--academy-muted);
  line-height: 1.5;
}

.account-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--academy-border-soft);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.account-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--academy-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.account-switch:checked {
  border-color: rgba(217, 173, 88, 0.62);
  background: rgba(217, 173, 88, 0.2);
}

.account-switch:checked::after {
  transform: translateX(20px);
  background: var(--academy-gold-2);
}

.account-log-row {
  border-bottom: 1px solid var(--academy-border-soft);
  padding: 14px 0;
}

.account-log-row:last-child {
  border-bottom: 0;
}

@media (max-width: 1100px) {
  .academy-nav {
    display: none;
  }
  .academy-progress-top {
    grid-template-columns: 1fr;
  }
  .academy-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .academy-user-pill > span:not(.academy-avatar):not(.academy-role-badge) {
    display: none;
  }
  .account-profile-layout,
  .account-card-grid {
    grid-template-columns: 1fr;
  }
  .academy-notice-hero,
  .academy-notice-layout {
    grid-template-columns: 1fr;
  }
  .academy-notice-side {
    position: static;
  }
}

@media (max-width: 700px) {
  .academy-lesson-layout {
    grid-template-columns: 1fr;
  }
  .academy-course-panel {
    position: sticky;
    top: 82px;
    margin-top: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}

@media (max-width: 780px) {
  .academy-topbar-inner,
  .academy-main,
  .academy-featured-inner,
  .account-settings-title,
  .account-settings-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .academy-brand span:last-child {
    display: none;
  }
  .academy-user-pill {
    display: inline-flex;
    min-width: 44px;
    padding: 0 4px;
  }
  .academy-user-pill .academy-role-badge {
    display: none;
  }
  .academy-menu,
  .academy-notification-menu {
    right: 14px;
    width: min(360px, calc(100vw - 28px));
  }
  .academy-featured {
    min-height: 500px;
  }
  .academy-featured h1 {
    font-size: clamp(2.7rem, 17vw, 4.2rem);
  }
  .academy-card {
    flex-basis: min(82vw, 300px);
    width: min(82vw, 300px);
    min-width: min(82vw, 300px);
    max-width: min(82vw, 300px);
  }
  .academy-progress-hub {
    padding: 16px;
  }
  .academy-stat-grid,
  .academy-category-row,
  .academy-notice-featured,
  .academy-notice-row {
    grid-template-columns: 1fr;
  }
  .academy-notice-meta {
    text-align: left;
  }
  .academy-notice-link {
    justify-self: start;
  }
  .academy-notice-arrow {
    display: none;
  }
  .academy-notice-section-head {
    flex-direction: column;
  }
  .academy-forum-sources {
    justify-content: flex-start;
  }
  .academy-evolve-banner,
  .academy-category-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .academy-evolve-banner .academy-outline-btn,
  .academy-category-head .academy-outline-btn {
    width: 100%;
  }
  .account-settings-grid {
    grid-template-columns: 1fr;
  }
  .account-side-toggle {
    display: grid;
    place-items: center;
    top: 50%;
    transform: translateY(-50%);
  }
  .account-sidebar {
    position: fixed;
    top: 144px;
    left: 12px;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 2500;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.25s ease;
    box-shadow: var(--academy-shadow);
  }
  .account-sidebar.open {
    transform: translateX(0);
  }
  .account-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Meus cursos: categorias abertas e cards verticais */
.academy-my-courses {
  margin: 34px 0 10px;
}

.academy-my-courses-title {
  margin-bottom: 22px;
}

.academy-my-courses-title > span {
  display: block;
  margin-bottom: 6px;
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.academy-my-courses-title h2 {
  margin: 0;
  color: var(--academy-text);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.academy-my-courses-title p {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--academy-muted);
  font-size: 0.9rem;
}

.course-category-section,
.course-category-section *,
.course-card,
.course-card * {
  box-sizing: border-box;
  min-width: 0;
}

.course-category-section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--academy-border-soft);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 0, rgba(37, 99, 235, 0.055), transparent 23rem),
    rgba(6, 15, 27, 0.42);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

body.academy-light .course-category-section {
  background:
    radial-gradient(circle at 85% 0, rgba(37, 99, 235, 0.07), transparent 23rem),
    rgba(255, 255, 255, 0.72);
}

.course-category-header {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.course-category-header h2 {
  margin: 0;
  color: var(--academy-text);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.course-category-header p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--academy-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.category-count {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(24, 211, 155, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #35e0aa;
  background: rgba(24, 211, 155, 0.09);
  font-size: 0.68rem;
  font-weight: 850;
}

.course-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.course-card {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(15, 27, 45, 0.96), rgba(7, 16, 29, 0.98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.academy-light .course-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 137, 255, 0.42);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.course-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: #081222;
  cursor: pointer;
}

.course-cover img,
.course-cover-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.course-cover-fallback {
  background:
    radial-gradient(circle at 68% 34%, rgba(47, 125, 255, 0.44), transparent 32%),
    radial-gradient(circle at 30% 70%, rgba(24, 211, 155, 0.13), transparent 34%),
    linear-gradient(145deg, #0b1d37, #040a14);
}

.course-card:hover .course-cover img,
.course-card:hover .course-cover-fallback {
  transform: scale(1.035);
}

.course-card.is-locked .course-cover img {
  filter: grayscale(1) brightness(0.58) contrast(1.08);
}

.course-card.is-locked .course-cover-fallback {
  filter: grayscale(1) brightness(0.58) contrast(1.08);
}

.course-card.is-locked .course-cover::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 18, 0.08), rgba(4, 8, 18, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(123, 167, 255, 0.15), transparent 38%);
  content: "";
  pointer-events: none;
}

.course-card.is-locked:hover .course-cover img,
.course-card.is-locked:hover .course-cover-fallback {
  filter: grayscale(0.82) brightness(0.66) contrast(1.08);
}

.course-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.course-badge.unlocked {
  border-color: rgba(24, 211, 155, 0.42);
  background: rgba(8, 95, 70, 0.84);
}

.course-badge.locked {
  background: rgba(3, 8, 16, 0.78);
}

.course-badge .academy-svg,
.course-btn .academy-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.course-card-body {
  padding: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.course-category-name {
  margin-bottom: 6px;
  color: #6fa7ff;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card h3,
.course-card p {
  overflow-wrap: break-word;
}

.course-card h3 {
  margin: 0 0 7px;
  color: var(--academy-text);
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.course-card p {
  margin: 0 0 14px;
  color: var(--academy-muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.73rem;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-progress-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--academy-muted);
  font-size: 0.62rem;
}

.course-progress-meta strong {
  color: var(--academy-text);
  font-size: inherit;
}

.course-progress {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.17);
}

.course-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #126bff, #4d9aff);
  box-shadow: 0 0 14px rgba(18, 107, 255, 0.38);
}

.course-locked-note {
  margin-top: auto;
  color: #77869b;
  font-size: 0.64rem;
}

.course-card-footer {
  margin-top: 13px;
}

.course-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(82, 142, 255, 0.42);
  background: rgba(18, 107, 255, 0.04);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease;
}

.course-btn.primary:hover {
  background: rgba(18, 107, 255, 0.13);
}

.course-btn.unlock {
  background: linear-gradient(135deg, #126bff, #2f7dff);
  box-shadow: 0 10px 26px rgba(18, 107, 255, 0.24);
}

.course-btn.unlock:hover,
.course-btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 14px 34px rgba(18, 107, 255, 0.25);
}

.course-card img,
.course-card svg {
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .course-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .course-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .course-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-category-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .course-category-section {
    padding: 14px;
    border-radius: 15px;
  }

  .course-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-cover img,
  .course-cover-fallback,
  .course-btn {
    transition-duration: 0.01ms !important;
  }
}

/* Lives */
.lives-shell {
  background:
    radial-gradient(circle at 82% 6%, rgba(18, 107, 255, 0.16), transparent 29rem),
    radial-gradient(circle at 12% 24%, rgba(24, 211, 155, 0.07), transparent 24rem),
    #020812;
}

.lives-main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 80px;
}

.lives-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 30px;
  align-items: center;
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(105, 155, 231, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 4%, rgba(18, 107, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(8, 20, 38, 0.95), rgba(3, 10, 22, 0.92));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.lives-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18d39b;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lives-kicker .academy-svg {
  width: 17px;
  height: 17px;
}

.lives-hero h1 {
  margin: 16px 0 18px;
  color: #f8fafc;
  font-size: clamp(2.65rem, 5.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.lives-hero h1 em {
  color: #2680ff;
  font-style: normal;
}

.lives-hero-copy > p {
  max-width: 620px;
  color: rgba(232, 240, 252, 0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.lives-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.lives-hero-actions > span,
.live-room-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 240, 252, 0.64);
  font-size: 0.77rem;
}

.live-primary-btn {
  border-color: #126bff;
  background: linear-gradient(135deg, #1478ff, #0750d2);
  color: #fff;
  box-shadow: 0 14px 40px rgba(18, 107, 255, 0.28);
}

.lives-clean-state {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.lives-clean-state strong {
  color: #f8fafc;
}

.lives-clean-state span {
  color: rgba(232, 240, 252, 0.52);
  font-size: 0.78rem;
}

.lives-hero-feature {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(2, 8, 18, 0.78);
}

.live-cover {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    radial-gradient(circle at 52% 36%, rgba(25, 127, 255, 0.46), transparent 18%),
    radial-gradient(circle at 50% 52%, rgba(24, 211, 155, 0.1), transparent 34%),
    linear-gradient(145deg, #07162d, #020711);
  background-position: center;
  background-size: cover;
}

.live-cover.hero {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.live-cover.hero::after,
.live-cover.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 8, 18, 0.94));
}

.live-cover-fallback,
.lives-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  color: rgba(77, 145, 255, 0.5);
}

.live-cover-fallback .academy-svg,
.lives-hero-placeholder .academy-svg {
  width: 76px;
  height: 76px;
}

.lives-hero-placeholder {
  align-content: center;
  gap: 14px;
  color: rgba(232, 240, 252, 0.48);
  font-size: 0.84rem;
}

.lives-hero-feature > .live-status-pill {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
}

.lives-hero-feature > div:last-child:not(.lives-hero-placeholder) {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
}

.lives-hero-feature h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
  letter-spacing: -0.04em;
}

.lives-hero-feature p {
  margin: 8px 0 0;
  color: rgba(232, 240, 252, 0.65);
  line-height: 1.5;
}

.live-status-pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 13, 26, 0.78);
  color: #eaf1fb;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.live-status-pill.status-live {
  border-color: rgba(255, 80, 94, 0.38);
  background: rgba(193, 20, 42, 0.9);
  color: #fff;
}

.live-status-pill.status-live i,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4255;
  box-shadow: 0 0 0 4px rgba(255, 66, 85, 0.13);
}

.lives-section {
  margin-top: 34px;
}

.lives-section-head,
.lives-section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lives-section-head {
  justify-content: space-between;
  margin-bottom: 15px;
}

.lives-section-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lives-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.live-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(13, 25, 43, 0.9), rgba(5, 13, 25, 0.92));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 107, 255, 0.36);
  box-shadow: 0 20px 64px rgba(18, 107, 255, 0.14);
}

.live-card-hit {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.live-card-hit:focus-visible {
  outline: 2px solid #5da0ff;
  outline-offset: -3px;
}

.live-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
}

.live-card-media .live-cover {
  min-height: 100%;
}

.live-card-media .live-status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

.live-card-copy {
  padding: 16px;
}

.live-card-copy h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.3;
}

.live-card-copy p {
  display: -webkit-box;
  margin: 8px 0 14px;
  overflow: hidden;
  color: rgba(232, 240, 252, 0.56);
  font-size: 0.76rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(232, 240, 252, 0.68);
  font-size: 0.68rem;
}

.live-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-card-meta .academy-svg {
  width: 14px;
  height: 14px;
  color: #4a92ff;
}

.lives-section-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: rgba(232, 240, 252, 0.48);
  font-size: 0.78rem;
  text-align: center;
}

.lives-history-row {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.past-lives-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 250, 252, 0.82);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: 220ms ease;
}

.past-lives-trigger:hover {
  border-color: rgba(18, 107, 255, 0.34);
  background: rgba(18, 107, 255, 0.16);
  color: #fff;
}

.lives-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.lives-page-header h1 {
  margin: 4px 0 6px;
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lives-page-header p {
  margin: 0;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.86rem;
}

.lives-page-eyebrow {
  color: #4f9cff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lives-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lives-create-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(76, 147, 255, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, #1536d9, #087ff5);
  box-shadow: 0 12px 32px rgba(4, 91, 255, 0.24);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.lives-create-btn .academy-svg,
.live-admin-panel .academy-svg,
.live-end-modal .academy-svg {
  width: 17px;
  height: 17px;
}

.live-admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(53, 122, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(16, 45, 96, 0.5), rgba(7, 17, 34, 0.72));
}

.live-admin-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-admin-panel > div:first-child > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(19, 95, 255, 0.18);
  color: #5aa0ff;
}

.live-admin-panel strong,
.live-admin-panel small {
  display: block;
}

.live-admin-panel strong {
  color: #f8fafc;
  font-size: 0.76rem;
}

.live-admin-panel small {
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.5);
  font-size: 0.63rem;
}

.live-admin-panel > div:last-child {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.live-admin-panel button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(93, 148, 255, 0.25);
  border-radius: 10px;
  background: rgba(13, 31, 61, 0.74);
  color: rgba(244, 248, 255, 0.86);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.live-admin-panel .live-end-btn {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.18);
  color: #fca5a5;
}

.live-ended-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.69rem;
  font-weight: 750;
}

.live-ended-note .academy-svg {
  width: 15px;
  height: 15px;
}

.live-end-modal[hidden] {
  display: none;
}

.live-end-modal {
  position: fixed;
  z-index: 6800;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.live-end-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 16, 0.82);
  backdrop-filter: blur(14px);
}

.live-end-modal > section {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: 26px;
  background: radial-gradient(circle at 100% 0%, rgba(185, 28, 28, 0.14), transparent 35%), #08111f;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
  color: #f8fafc;
}

.live-end-modal > section > .academy-svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.22);
  color: #fb7185;
}

.live-end-modal > section > small {
  display: block;
  margin: 18px 0 4px;
  color: #fb7185;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-end-modal h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.live-end-modal p {
  margin: 0;
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.82rem;
  line-height: 1.65;
}

.live-end-modal > section > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 14px;
  background: rgba(120, 53, 15, 0.12);
  color: #fbbf24;
}

.live-end-modal > section > div span {
  color: rgba(254, 243, 199, 0.72);
}

.live-end-modal > section > div strong,
.live-end-modal > section > div small {
  display: block;
  font-size: 0.7rem;
}

.live-end-modal > section > div small {
  margin-top: 3px;
  color: rgba(254, 243, 199, 0.48);
}

.live-end-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.live-end-modal footer button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.live-end-modal footer .confirm {
  border-color: rgba(248, 113, 113, 0.34);
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #fff;
}

.past-lives-modal[hidden] {
  display: none;
}

.past-lives-modal {
  position: fixed;
  z-index: 6300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.past-lives-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 15, 0.78);
  backdrop-filter: blur(14px);
}

.past-lives-panel {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 0%, rgba(18, 107, 255, 0.2), transparent 34%),
    rgba(8, 17, 31, 0.98);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.52);
}

.past-lives-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.past-lives-header span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #18d39b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.past-lives-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.past-lives-header p {
  margin: 10px 0 0;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.82rem;
}

.past-lives-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  cursor: pointer;
}

.past-lives-grid {
  max-height: calc(100vh - 210px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 22px;
  overflow-y: auto;
}

.past-live-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  transition: 220ms ease;
}

.past-live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 107, 255, 0.32);
  box-shadow: 0 18px 60px rgba(18, 107, 255, 0.14);
}

.past-live-cover {
  position: relative;
  aspect-ratio: 16 / 9;
}

.past-live-cover .live-cover {
  min-height: 100%;
}

.past-live-cover > span {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(13, 20, 34, 0.76);
  color: #f8fafc;
  font-size: 0.66rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.past-live-info {
  padding: 15px;
}

.past-live-info h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.3;
}

.past-live-info small {
  display: block;
  margin-top: 8px;
  color: rgba(248, 250, 252, 0.56);
  font-size: 0.7rem;
}

.past-live-info button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #67a3ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.past-lives-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(248, 250, 252, 0.48);
  text-align: center;
}

.past-lives-empty .academy-svg {
  width: 38px;
  height: 38px;
  color: #3e88f4;
}

.past-lives-empty strong {
  color: #f8fafc;
}

.past-lives-empty p {
  margin: 0;
  font-size: 0.76rem;
}

.live-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  color: rgba(232, 240, 252, 0.68);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.live-back-btn .academy-svg {
  transform: rotate(180deg);
}

.live-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.live-room-stage,
.live-chat-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(7, 16, 29, 0.9);
}

.live-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.live-player iframe,
.live-player .live-cover {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.live-player-state {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(2, 8, 18, 0.34);
  color: #fff;
}

.live-room-info {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-room-info h1 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.live-ended-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(232, 240, 252, 0.5);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.live-ended-note .academy-svg {
  width: 14px;
  height: 14px;
  color: rgba(100, 160, 255, 0.7);
}

.live-ended-note + h1 {
  margin-top: 8px;
}

.live-room-info p,
.live-room-tabs p {
  margin: 0;
  color: rgba(232, 240, 252, 0.6);
  font-size: 0.82rem;
  line-height: 1.65;
}

.live-room-actions {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.live-room-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.live-room-tabs section {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.live-room-tabs h2 {
  margin: 0 0 9px;
  color: #f8fafc;
  font-size: 0.84rem;
}

.live-room-tabs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #77adff;
  font-size: 0.76rem;
  text-decoration: none;
}

.live-chat-panel {
  min-height: 530px;
}

.live-chat-head {
  padding: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-chat-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-chat-head strong,
.live-chat-head small {
  display: block;
}

.live-chat-head strong {
  color: #f8fafc;
  font-size: 0.82rem;
}

.live-chat-head small {
  margin-top: 3px;
  color: rgba(232, 240, 252, 0.48);
  font-size: 0.65rem;
}

.live-chat-empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 32px;
  color: rgba(232, 240, 252, 0.48);
  text-align: center;
}

.live-chat-empty .academy-svg {
  width: 38px;
  height: 38px;
  color: #347edc;
}

.live-chat-empty strong {
  color: #f8fafc;
}

.live-chat-empty p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
}

.academy-notice-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 11px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #69a6ff;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .lives-hero,
  .live-room-layout {
    grid-template-columns: 1fr;
  }

  .lives-hero-feature {
    min-height: 360px;
  }

  .live-chat-panel {
    min-height: 320px;
  }

  .live-chat-empty {
    min-height: 230px;
  }
}

@media (max-width: 820px) {
  .lives-page-header,
  .live-admin-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .lives-page-actions,
  .live-admin-panel > div:last-child {
    justify-content: flex-start;
  }

  .lives-card-grid {
    grid-template-columns: 1fr;
  }

  .lives-hero {
    min-height: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .lives-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .live-room-info,
  .live-room-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-room-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lives-page-actions > button,
  .live-admin-panel button {
    width: 100%;
  }

  .live-admin-panel > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .live-end-modal > section {
    padding: 22px;
    border-radius: 20px;
  }

  .live-end-modal footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .past-lives-modal {
    padding: 12px;
  }

  .past-lives-panel {
    border-radius: 24px;
  }

  .past-lives-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .lives-hero-feature {
    min-height: 300px;
  }

  .live-room-stage,
  .live-chat-panel {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-card,
  .past-live-card,
  .past-lives-trigger {
    transition-duration: 0.01ms !important;
  }
}
