:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #101722;
  --surface-2: #17212d;
  --text: #eef5ff;
  --muted: #b7c4d1;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #54d8ff;
  --coral: #ff756f;
  --gold: #f3c65a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 13, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(84, 216, 255, 0.7);
  background: linear-gradient(135deg, rgba(84, 216, 255, 0.28), rgba(255, 117, 111, 0.2));
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cyan);
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.guide-hero {
  background: var(--bg);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.88) 0%, rgba(7, 9, 13, 0.64) 42%, rgba(7, 9, 13, 0.16) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 25%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.latest-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(84, 216, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.latest-video-frame a {
  width: 100%;
  height: 100%;
}

.latest-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.latest-video-card-link {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  color: var(--cyan);
  font-weight: 900;
  text-align: center;
}

.latest-video-card-link img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.latest-video-card-link span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-top: 1px solid rgba(84, 216, 255, 0.24);
  background: rgba(84, 216, 255, 0.1);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 8.5em;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 24px 0 0;
  color: #d9e8f5;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  background: var(--cyan);
  color: #021019;
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip article {
  min-height: 230px;
  padding: clamp(22px, 4vw, 40px);
  background: #0b1017;
}

.home-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-dashboard a {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: clamp(22px, 4vw, 38px);
  background: #0b1017;
}

.home-dashboard span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-dashboard strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.home-dashboard small {
  color: var(--muted);
  font-size: 0.95rem;
}

.number {
  color: var(--gold);
  font-weight: 900;
}

.quick-strip h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.quick-strip p,
.panel p,
.timeline p,
.character-card p,
.note p,
.footer p {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: clamp(68px, 10vw, 118px) clamp(20px, 5vw, 72px);
}

.section.tight {
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(48px, 7vw, 82px);
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.section-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.tools-section {
  background:
    linear-gradient(180deg, rgba(84, 216, 255, 0.08), rgba(243, 198, 90, 0.04)),
    #080d13;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.tool-card {
  overflow: hidden;
  display: grid;
  background: rgba(16, 23, 34, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(84, 216, 255, 0.65);
  transform: translateY(-2px);
}

.tool-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1017;
}

.tool-card-body {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.tool-card-body small {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(84, 216, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.tool-card-body strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.tool-card-body span {
  color: var(--muted);
  font-size: 0.9rem;
}

.two-column,
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.panel,
.checklist,
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.panel h3,
.checklist h3,
.note h3,
.timeline h3,
.character-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.checklist ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.checklist li + li {
  margin-top: 8px;
}

.split-band {
  background:
    linear-gradient(180deg, rgba(84, 216, 255, 0.07), rgba(255, 117, 111, 0.06)),
    #0a0f15;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.timeline article,
.character-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(16, 23, 34, 0.78);
}

.timeline span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--coral);
  font-weight: 900;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.character-card strong {
  display: block;
  margin-top: 20px;
  color: var(--gold);
}

.character-card span {
  display: block;
  margin-top: 4px;
  color: #dbe8f4;
}

.section-link {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  padding: clamp(84px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 86px);
  background:
    linear-gradient(115deg, rgba(84, 216, 255, 0.16), transparent 42%),
    linear-gradient(295deg, rgba(255, 117, 111, 0.12), transparent 36%),
    #080d13;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.random-namecard-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.94), rgba(5, 8, 12, 0.68) 38%, rgba(5, 8, 12, 0.26) 66%, rgba(5, 8, 12, 0.58)),
    linear-gradient(180deg, rgba(5, 8, 12, 0.06), rgba(5, 8, 12, 0.52)),
    var(--namecard-bg, none),
    #080d13;
  background-position: center, center, var(--namecard-position, center 42%);
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

.random-namecard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 66% 42%, transparent 0 34%, rgba(5, 8, 12, 0.12) 62%, rgba(5, 8, 12, 0.5) 100%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 11em;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.page-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 20px 0 0;
  color: var(--muted);
}

.page-hero a,
.footer p a {
  color: var(--cyan);
  font-weight: 800;
}

.character-hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  padding: clamp(84px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(52px, 8vw, 96px);
  background:
    linear-gradient(120deg, rgba(84, 216, 255, 0.18), transparent 38%),
    linear-gradient(300deg, rgba(243, 198, 90, 0.1), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(255, 117, 111, 0.18), transparent 30%),
    #070b11;
  border-bottom: 1px solid var(--line);
}

.character-hero-inner {
  width: min(980px, 100%);
  margin: 0;
}

.character-hero-art {
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 430px;
  margin: 0;
  pointer-events: none;
}

.character-hero-art img {
  width: min(100%, 520px);
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 32px 42px rgba(0, 0, 0, 0.56));
}

.character-hero h1 {
  margin-top: 4px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.character-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--cyan);
  font-weight: 800;
}

.character-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.character-detail-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.detail-panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.detail-panel p {
  margin: 0;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list strong {
  color: var(--gold);
}

.detail-list span {
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-list dt {
  color: var(--muted);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
}

.spec-list a {
  color: var(--cyan);
  font-weight: 800;
}

.constellation-panel {
  border-color: rgba(243, 198, 90, 0.3);
  background:
    linear-gradient(135deg, rgba(243, 198, 90, 0.08), transparent 42%),
    rgba(16, 23, 34, 0.82);
}

.constellation-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.constellation-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.constellation-list li:last-child {
  border-bottom: 0;
}

.constellation-list strong {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(243, 198, 90, 0.42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
}

.constellation-list span {
  color: var(--text);
  line-height: 1.75;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.note-grid h3 {
  margin: 0 0 8px;
}

.weapon-source a {
  color: var(--cyan);
  font-weight: 800;
}

.move-table-wrap {
  display: grid;
  gap: 18px;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
  color: #1d2733;
  box-shadow: var(--shadow);
}

.move-table-panel {
  display: grid;
  gap: 18px;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(84, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 13, 22, 0.62);
  box-shadow: var(--shadow);
}

.move-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.move-table + .move-table {
  border-top: 10px solid #f7f9fb;
}

.move-table th,
.move-table td {
  border: 1px solid #d5dde5;
  padding: 9px 10px;
  vertical-align: middle;
}

.move-table thead th {
  background: #ffd200;
  color: #1b2735;
  text-align: center;
  font-weight: 800;
}

.move-table tbody th {
  width: 128px;
  background: #aeeff8;
  color: #176477;
  text-align: center;
  font-weight: 800;
}

.move-table tbody td:nth-child(3),
.move-table tbody td:nth-child(4),
.move-table tbody td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}

.move-table tbody td:last-child {
  text-align: left;
  white-space: normal;
}

.move-table:not(:first-child) tbody th {
  background: #8be98b;
  color: #176d2c;
}

.burst-table tbody th {
  background: #eb70ef;
  color: #651f74;
}

.quick-strip.inline {
  max-width: 1060px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.source-note,
.roster-tools {
  width: min(1060px, 100%);
  margin: 0 auto 18px;
}

.source-note {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(84, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(84, 216, 255, 0.08);
  color: var(--muted);
}

.source-note strong {
  color: var(--cyan);
}

.roster-tools {
  display: grid;
  gap: 8px;
}

.roster-tools label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.roster-tools input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.roster-list,
.video-grid {
  display: grid;
  gap: 16px;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.cost-group {
  width: min(1060px, 100%);
  margin: 30px auto 0;
}

.cost-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.92);
  cursor: pointer;
  list-style: none;
}

.cost-group summary::-webkit-details-marker {
  display: none;
}

.cost-group summary span {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 900;
}

.cost-group summary small {
  color: var(--muted);
  font-weight: 800;
}

.cost-group summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.cost-group[open] summary {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.cost-group[open] summary::after {
  content: "-";
}

.cost-group .roster-list {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  background: rgba(7, 9, 13, 0.4);
}

.roster-list {
  grid-template-columns: 1fr;
}

.db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1060px, 100%);
  margin: 0 auto 20px;
}

.db-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
}

.db-stats strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.db-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.roster-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.roster-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.roster-info {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.roster-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(84, 216, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(84, 216, 255, 0.06);
}

.roster-copy {
  min-width: 0;
}

.roster-card h3,
.video-card h3 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
}

.roster-card p,
.video-card p {
  margin: 0;
  color: var(--muted);
}

.cost,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(243, 198, 90, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.card-actions a,
.video-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(84, 216, 255, 0.12);
  border: 1px solid rgba(84, 216, 255, 0.28);
  color: var(--cyan);
  font-weight: 800;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-feed-grid {
  display: grid;
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  gap: 16px;
}

.official-feed-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.official-feed-card > p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.video-card {
  padding: 22px;
}

.contributor-manager {
  display: none;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(84, 216, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.9);
}

.page-editing .contributor-manager {
  display: grid;
}

.contributor-manager-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.contributor-manager h3,
.contributor-manager p {
  margin: 0;
}

.contributor-manager button,
.contributor-form input,
.contributor-form textarea {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.84);
  color: var(--text);
  font: inherit;
}

.contributor-manager button {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.contributor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.contributor-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contributor-form .wide {
  grid-column: 1 / -2;
}

.contributor-form input,
.contributor-form textarea {
  width: 100%;
  padding: 12px;
}

.contributor-form textarea {
  resize: vertical;
}

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

.contributor-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 35, 0.72);
}

.contributor-edit-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contributor-edit-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.streamer-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 216, 255, 0.08), transparent 48%),
    rgba(16, 23, 34, 0.84);
  box-shadow: var(--shadow);
}

.streamer-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.streamer-head img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(84, 216, 255, 0.35);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(5, 8, 12, 0.7);
}

.streamer-head h3,
.streamer-card p {
  margin: 0;
}

.streamer-card p {
  color: var(--muted);
}

.streamer-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(84, 216, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.72);
}

.streamer-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.streamer-card a {
  align-self: end;
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(84, 216, 255, 0.42);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(84, 216, 255, 0.12);
  font-weight: 900;
}

.streamer-manager {
  display: none;
  gap: 16px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(84, 216, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.9);
}

.page-editing .streamer-manager {
  display: grid;
}

.streamer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.streamer-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.streamer-form .wide {
  grid-column: 1 / -1;
}

.streamer-form input,
.streamer-form textarea,
.streamer-form button,
.streamer-manager button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.84);
  color: var(--text);
  font: inherit;
}

.streamer-form input,
.streamer-form textarea {
  width: 100%;
  padding: 12px;
}

.streamer-form button,
.streamer-manager button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

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

.empty-note {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.video-card a {
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

body.admin-locked > header,
body.admin-locked > main,
body.admin-locked > footer {
  display: none !important;
}

.admin-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 20%, rgba(71, 207, 255, 0.16), transparent 34%),
    var(--bg);
}

.admin-gate .notice-card {
  width: min(460px, 100%);
}

.admin-gate form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-gate input {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 13, 0.72);
  color: var(--text);
  padding: 0 12px;
}

body:not(.site-admin) [data-admin-panel],
body:not(.site-admin) .site-editor {
  display: none !important;
}

.video-library-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

body.video-admin .video-library-shell {
  grid-template-columns: 320px minmax(420px, 1fr) minmax(280px, 360px);
  width: min(1460px, 100%);
}

.video-character-panel,
.video-library-main,
.video-channel-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.video-character-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 16px;
}

.video-channel-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.compact-heading {
  width: auto;
  margin: 0;
}

.compact-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.video-library-tools,
.video-cost-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-library-tools {
  margin-bottom: 14px;
}

.video-admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(154, 169, 184, 0.26);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 900;
}

body.video-admin .video-admin-status {
  border-color: rgba(243, 198, 90, 0.5);
  color: #061018;
  background: var(--gold);
}

body:not(.video-admin) .video-admin-only {
  display: none !important;
}

body:not(.video-admin) .video-register-form,
body:not(.video-admin) .video-channel-panel {
  display: none !important;
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.video-cost-tabs {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.video-cost-tabs button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.video-cost-tabs button.is-active {
  color: #061018;
  border-color: transparent;
  background: var(--cyan);
}

.video-character-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.video-character-button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.video-character-button:hover,
.video-character-button.is-active {
  border-color: rgba(84, 216, 255, 0.34);
  background: rgba(84, 216, 255, 0.12);
}

.video-character-button.is-empty {
  opacity: 0.38;
}

.video-character-button.has-videos {
  border-color: rgba(243, 198, 90, 0.42);
}

.video-character-button img,
.video-character-fallback {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.video-character-fallback {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 900;
}

.video-character-button span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-character-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-top: -10px;
  border: 1px solid rgba(243, 198, 90, 0.52);
  border-radius: 999px;
  color: var(--gold);
  background: #080c11;
  font-size: 0.68rem;
  font-weight: 900;
}

.video-character-button.is-active span {
  color: var(--text);
}

.video-library-main {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.video-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 170px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.38);
  overflow: hidden;
}

.video-selected-head h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.video-selected-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 112px;
  align-self: stretch;
  margin: -14px 0 -22px auto;
  pointer-events: none;
}

.video-selected-art img {
  width: 132px;
  max-height: 168px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}

body:not(.video-admin) .video-selected-head {
  border-color: rgba(84, 216, 255, 0.22);
}

body:not(.video-admin) .video-selected-head h3 {
  letter-spacing: 0;
}

.video-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.video-channel-form,
.video-channel-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

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

.video-channel-form label,
.video-channel-row label,
.video-register-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.video-register-form label:nth-child(4),
.video-register-form button {
  grid-column: 1 / -1;
}

.video-channel-form input,
.video-channel-row select,
.video-register-form select,
.video-register-form input,
.video-register-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #080c11;
  font: inherit;
}

.video-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.video-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(84, 216, 255, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(84, 216, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.video-channel-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.video-channel-pill button {
  border: 0;
  color: var(--coral);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.registered-video-list {
  display: grid;
  gap: 16px;
}

.registered-empty,
.registered-video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.42);
}

.registered-empty {
  padding: 28px;
  color: var(--muted);
}

.registered-video-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.registered-video-channel {
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(84, 216, 255, 0.24);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(84, 216, 255, 0.1);
}

.registered-video-channel img,
.registered-video-channel span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  color: var(--cyan);
  font-weight: 900;
}

.registered-video-channel img.is-hidden {
  display: none;
}

.registered-video-body {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.registered-video-card h4 {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.registered-video-card p {
  margin: 0;
  color: var(--muted);
}

.registered-video-thumb {
  grid-column: 1 / -1;
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(84, 216, 255, 0.22);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

.video-published-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 999px;
  background: rgba(5, 10, 15, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.video-published-date.is-loading {
  color: var(--muted);
}

.registered-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.registered-video-thumb:hover img {
  transform: scale(1.04);
}

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

.registered-actions a,
.registered-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(84, 216, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(84, 216, 255, 0.12);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.registered-actions button {
  border-color: rgba(84, 216, 255, 0.28);
  color: var(--cyan);
  background: rgba(84, 216, 255, 0.12);
}

.registered-actions button[data-delete-video] {
  border-color: rgba(255, 117, 111, 0.36);
  color: var(--coral);
  background: rgba(255, 117, 111, 0.12);
}

.channel-section {
  background:
    linear-gradient(180deg, rgba(84, 216, 255, 0.06), rgba(7, 9, 13, 0)),
    var(--bg);
}

.channel-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.channel-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 160px;
  text-align: center;
}

.channel-card h3 {
  margin: 0;
  font-size: 1rem;
}

.contributor-icon-link {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(84, 216, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(84, 216, 255, 0.2), transparent 52%),
    rgba(5, 8, 12, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.contributor-icon-link:hover {
  border-color: rgba(84, 216, 255, 0.72);
  transform: translateY(-2px);
}

.contributor-icon-link img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.editor-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.editor-sidebar,
.editor-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.editor-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.editor-sidebar label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.editor-sidebar input,
.editor-sidebar select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--text);
  background: #0b1017;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.editor-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.editor-actions .button {
  width: 100%;
}

.editor-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.editor-main {
  padding: clamp(18px, 3vw, 28px);
}

.editor-title,
.editor-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-title {
  margin-bottom: 24px;
}

.editor-title h2,
.editor-section h3 {
  margin: 0;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(84, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(84, 216, 255, 0.12);
  color: var(--cyan);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.editor-form-tabs,
.move-form-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.move-form-tabs {
  margin-top: -4px;
}

.section-heading .move-form-tabs {
  justify-content: center;
  margin: 0 auto;
  padding-bottom: 0;
}

.move-table-panel .move-form-tabs {
  justify-content: center;
  margin: 0 auto;
  padding-bottom: 0;
  width: 100%;
}

.form-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(84, 216, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-tab.is-active {
  border-color: rgba(84, 216, 255, 0.7);
  background: rgba(84, 216, 255, 0.2);
  color: var(--cyan);
}

.mini-button.danger {
  border-color: rgba(255, 117, 111, 0.36);
  background: rgba(255, 117, 111, 0.12);
  color: var(--coral);
}

.editor-section + .editor-section {
  margin-top: 28px;
}

.editor-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.editor-table th,
.editor-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.editor-table th {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.editor-table input {
  width: 100%;
  min-width: 90px;
  padding: 8px;
  color: var(--text);
  background: #080c11;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.empty-editor-row {
  color: var(--muted);
  text-align: center;
}

.practice {
  background: #080c11;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: #dbe8f4;
}

.steps span {
  color: var(--cyan);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--cyan);
  font-weight: 800;
}

.site-editor {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: min(560px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(84, 216, 255, 0.34);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.site-editor button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.site-editor button:hover {
  border-color: rgba(84, 216, 255, 0.52);
  color: #ffffff;
  background: rgba(84, 216, 255, 0.16);
}

.site-editor button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-editor [data-edit-toggle] {
  color: #061018;
  border-color: transparent;
  background: var(--cyan);
}

.site-editor span {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body.page-editing [data-edit-key] {
  outline: 1px dashed rgba(84, 216, 255, 0.62);
  outline-offset: 3px;
  cursor: text;
}

body.page-editing [data-edit-key]:focus {
  outline: 2px solid var(--gold);
  background: rgba(243, 198, 90, 0.08);
}

.is-user-hidden {
  display: none !important;
}

body.page-editing.show-hidden-edits .is-user-hidden {
  display: block !important;
  opacity: 0.35;
  filter: grayscale(0.75);
}

body.page-editing [data-block-key],
body.page-editing .page-edit-block {
  position: relative;
}

body.page-editing [data-block-key]:hover,
body.page-editing .page-edit-block:hover {
  outline: 1px solid rgba(243, 198, 90, 0.48);
  outline-offset: 5px;
}

.page-edit-block {
  margin: 18px 0;
  color: var(--text);
}

.page-edit-text {
  max-width: 760px;
}

.page-edit-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.page-edit-card h3,
.page-edit-card p,
.page-edit-text p {
  margin: 0;
}

.page-edit-card h3 + p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .character-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .character-hero-art {
    min-height: 260px;
    justify-items: start;
  }

  .character-hero-art img {
    width: min(74vw, 320px);
    max-height: 330px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.72) 54%, rgba(7, 9, 13, 0.16) 100%),
      linear-gradient(90deg, rgba(7, 9, 13, 0.82), rgba(7, 9, 13, 0.18));
  }

  .quick-strip,
  .home-dashboard,
  .tool-grid,
  .guide-hero,
  .official-feed-grid,
  .channel-grid,
  .timeline,
  .character-grid,
  .video-grid,
  .video-library-shell,
  .note-grid,
  .character-detail-grid,
  .db-stats,
  .editor-shell,
  .two-column,
  .practice-layout {
    grid-template-columns: 1fr;
  }

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

  .card-actions {
    justify-content: flex-start;
  }

  .quick-strip article {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-character-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .video-character-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .video-channel-form,
  .video-channel-row,
  .contributor-form,
  .contributor-edit-row,
  .streamer-grid,
  .streamer-form {
    grid-template-columns: 1fr;
  }

  .contributor-form .wide {
    grid-column: auto;
  }

  .streamer-form .wide {
    grid-column: auto;
  }

  .registered-video-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .registered-video-thumb {
    grid-column: 1 / -1;
  }

  .registered-video-channel {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.95rem;
  }

  .nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .video-selected-head {
    align-items: flex-start;
    min-height: 140px;
    padding: 18px;
  }

  .video-selected-art {
    flex-basis: 76px;
    margin: -8px 0 -18px auto;
  }

  .video-selected-art img {
    width: 86px;
    max-height: 126px;
  }

  .button {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .source-note {
    grid-template-columns: 1fr;
  }

  .video-character-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-editor {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }

  .site-editor button {
    flex: 1 1 88px;
  }
}
