:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --ink: #1d2320;
  --muted: #66716b;
  --line: #dcd8cc;
  --panel: #ffffff;
  --panel-soft: #f0eee6;
  --accent: #b43c2d;
  --accent-dark: #8d2b21;
  --green: #315f46;
  --gold: #b48738;
  --shadow: 0 18px 50px rgba(38, 35, 28, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: rgba(247, 246, 241, 0.94);
  border-bottom: 1px solid rgba(220, 216, 204, 0.8);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost-button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.danger-button {
  background: #2d1713;
  color: #fff;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px max(18px, env(safe-area-inset-left)) 18px max(18px, env(safe-area-inset-right));
}

.hero {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 26px 0 12px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-panel {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 28%, rgba(180, 60, 45, 0.18), transparent 30%),
    linear-gradient(135deg, #e9e0cf, #faf8f2 48%, #d2dccf);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(49, 95, 70, 0.24);
}

.hero-panel::before {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -50px;
}

.hero-panel::after {
  width: 160px;
  height: 160px;
  right: 72px;
  bottom: -42px;
}

.hero-figure {
  position: absolute;
  inset: 28px auto auto 28px;
  width: 128px;
  height: 164px;
}

.hero-figure .head {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ink);
}

.hero-figure .body {
  width: 42px;
  height: 78px;
  margin: 6px auto 0;
  border-radius: 26px 26px 10px 10px;
  background: var(--green);
}

.hero-figure .arm,
.hero-figure .leg {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
}

.hero-figure .arm.left {
  width: 92px;
  left: 0;
  top: 58px;
  transform: rotate(-18deg);
}

.hero-figure .arm.right {
  width: 86px;
  right: -4px;
  top: 78px;
  transform: rotate(20deg);
}

.hero-figure .leg.left {
  width: 82px;
  left: 13px;
  bottom: 12px;
  transform: rotate(28deg);
}

.hero-figure .leg.right {
  width: 96px;
  right: -10px;
  bottom: 26px;
  transform: rotate(-20deg);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

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

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(38, 35, 28, 0.06);
}

.course-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 60, 45, 0.14), 0 10px 30px rgba(38, 35, 28, 0.1);
}

.course-art {
  height: 112px;
  background:
    linear-gradient(120deg, rgba(29, 35, 32, 0.16), rgba(180, 60, 45, 0.12)),
    repeating-linear-gradient(45deg, #ece7dc, #ece7dc 12px, #f8f6ef 12px, #f8f6ef 24px);
}

.course-art-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
  background: #f8f6ef;
}

.course-art.cover-foundation {
  background:
    radial-gradient(circle at 78% 26%, rgba(180, 60, 45, 0.34), transparent 24%),
    linear-gradient(135deg, #e9e0cf, #f9f6ec 48%, #cfd9c9);
}

.course-art.cover-small-frame {
  background:
    linear-gradient(135deg, rgba(49, 95, 70, 0.86), rgba(232, 224, 207, 0.72)),
    repeating-linear-gradient(90deg, #f4efe4, #f4efe4 8px, #d7ddcf 8px, #d7ddcf 16px);
}

.course-art.cover-small-frame-2 {
  background:
    radial-gradient(circle at 25% 70%, rgba(49, 95, 70, 0.34), transparent 28%),
    linear-gradient(120deg, #f2efe7, #d7c7b2 48%, #8c9b8d);
}

.course-art.cover-pushhands {
  background:
    radial-gradient(circle at 35% 42%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(135deg, #315f46, #b43c2d 54%, #2d1713);
}

.course-art.cover-intention {
  background:
    linear-gradient(150deg, rgba(45, 23, 19, 0.9), rgba(180, 60, 45, 0.62)),
    repeating-linear-gradient(135deg, #f0eadf, #f0eadf 10px, #d9cdbd 10px, #d9cdbd 20px);
}

.course-art.cover-athlete {
  background:
    radial-gradient(circle at 72% 34%, rgba(180, 60, 45, 0.32), transparent 24%),
    linear-gradient(135deg, #1d2320, #315f46 52%, #e9e0cf);
}

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

.course-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.course-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-title-row h3 {
  min-width: 0;
}

.course-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.share-button {
  width: 34px;
  min-height: 34px;
  font-size: 16px;
}

.course-body p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.progress-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.price {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 800;
}

.owned {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.lesson-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.lesson-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.lesson-row small {
  color: var(--muted);
}

.lock {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.player-modal,
.player-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(29, 35, 32, 0.82);
}

.player-sheet.is-open {
  display: grid;
  place-items: center;
  padding: 16px;
}

.player-modal {
  display: grid;
  place-items: center;
  padding:
    calc(14px + env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    calc(14px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.player-shell,
.player {
  width: min(980px, 100%);
  max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.player-top,
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #181c1a;
}

.player-top > div {
  min-width: 0;
}

.player-top strong,
.player-top small {
  display: block;
  overflow-wrap: anywhere;
}

.player-top small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.player-top .lesson-actions {
  flex: 0 0 auto;
}

.player-title {
  min-width: 0;
  font-weight: 800;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap video,
.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(70vh, 100%);
  object-fit: contain;
  background: #000;
}

.player-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: none;
  min-width: 84px;
  min-height: 52px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.player-play-button.is-visible {
  display: inline-grid;
  place-items: center;
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-align: center;
}

.player-error.is-visible {
  display: grid;
}

.player-error strong,
.player-error small {
  display: block;
}

.player-error small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.watermark {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav button.active {
  background: var(--panel-soft);
  color: var(--accent-dark);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-heading h3 {
  margin: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.muted-line {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.form textarea {
  resize: vertical;
  line-height: 1.5;
}

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

.check-label {
  align-content: end;
  grid-template-columns: auto 1fr;
  min-height: 68px;
}

.check-label input {
  width: 18px;
  min-height: 18px;
}

.check-group {
  display: grid;
  gap: 8px;
}

.check-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-check {
  align-items: center;
  align-content: center;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 34px;
  color: var(--ink);
}

.admin-course-list {
  display: grid;
  gap: 14px;
}

.create-course-panel {
  margin-bottom: 14px;
}

.admin-course {
  gap: 12px;
}

.admin-course-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-course h3,
.admin-course-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-course-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.published {
  background: rgba(49, 95, 70, 0.12);
  color: var(--green);
}

.status-badge.hidden {
  background: rgba(180, 60, 45, 0.12);
  color: var(--accent-dark);
}

.recovery-card {
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 10px;
}

.recovery-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.recovery-head h3 {
  margin: 0;
}

.recovery-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.muted-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.event-list {
  display: grid;
  gap: 6px;
}

.event-item {
  padding: 8px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.event-item strong,
.event-item code {
  display: block;
  overflow-wrap: anywhere;
}

.event-item code {
  margin-top: 5px;
  color: var(--ink);
  white-space: normal;
}

.backup-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.backup-panel h3 {
  margin: 0;
}

.backup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
}

.backup-row span {
  overflow-wrap: anywhere;
}

.backup-row a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.stat-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stat-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 22px;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.alert-card strong {
  font-size: 15px;
}

.alert-card small {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.alert-card.warning {
  border-color: rgba(180, 60, 45, 0.34);
}

.alert-card.danger {
  border-color: rgba(180, 60, 45, 0.62);
  background: rgba(180, 60, 45, 0.08);
}

.config-health {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.config-health h3 {
  margin: 0;
}

.config-row {
  display: grid;
  grid-template-columns: 112px 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.config-row small {
  color: var(--muted);
  line-height: 1.45;
}

.config-detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.config-grid,
.checklist {
  display: grid;
  gap: 10px;
}

.config-row {
  border: 1px solid var(--line);
}

.config-row.ready,
.check-item.ready {
  border-color: #a7d7b5;
  background: #eef8f0;
}

.config-row.missing,
.check-item.missing {
  border-color: #e7c07a;
  background: #fff7e7;
}

.config-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.config-summary textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.check-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #fff;
}

.check-item strong,
.check-item small,
.check-item code {
  display: block;
}

.check-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.check-item code {
  margin-top: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.lesson-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.lesson-admin {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.upload-row input[type="file"] {
  min-width: 0;
  padding: 9px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.video-source-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.video-library {
  display: grid;
  gap: 10px;
}

.video-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.video-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.video-meta strong,
.video-meta small {
  overflow-wrap: anywhere;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-block {
  display: grid;
  gap: 6px;
}

.table-scroll-hint {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 800;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.notice-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 60, 45, 0.28);
  border-radius: 8px;
  background: #fff6f2;
}

.notice-banner strong {
  color: var(--accent-dark);
}

.notice-banner.warning {
  border-color: rgba(180, 60, 45, 0.46);
  background: rgba(180, 60, 45, 0.08);
}

.notice-banner span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.notice-actions .ghost-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 50;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  font-size: 14px;
  box-shadow: var(--shadow);
}

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

.site-footer {
  padding: 18px 16px 96px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 861px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .topbar {
    padding: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-panel {
    min-height: 180px;
  }

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

  .course-card {
    min-height: 0;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .config-row {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .player-modal {
    place-items: start stretch;
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }

  .player-shell {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .player-top {
    padding: 10px 12px;
  }

  .video-wrap {
    aspect-ratio: 16 / 9;
  }
}
