:root {
  --bg: #111315;
  --bg-top: #0b0c0d;
  --bg-bar: #17191c;
  --bg-card: #1b1e22;
  --bg-card-2: #20242a;
  --line: #2f343b;
  --text: #f4f4f5;
  --muted: #9ea6b2;
  --muted-strong: #cfd5de;
  --brand-accent: #2f6feb;
  --accent: #2f6feb;
  --accent-hover: #4f86f7;
  --accent-soft: rgba(47, 111, 235, 0.18);
  --accent-ring: rgba(47, 111, 235, 0.92);
  --shell: 1520px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #121416;
  color: var(--text);
  font:
    14px/1.4 "Manrope",
    Arial,
    Helvetica,
    sans-serif;
  overflow-x: hidden;
}

main {
  min-height: calc(100vh - 9rem);
}

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

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Titillium Web", "Manrope", Arial, Helvetica, sans-serif;
}

p {
  margin-bottom: 0;
}

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

.shell {
  width: min(var(--shell), calc(100% - 1rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--solid {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.button--solid:hover {
  border-color: #f1f1f1;
  background: #f1f1f1;
}

.button--ghost:hover {
  border-color: #424953;
  background: var(--bg-card-2);
}

.button--disabled,
.button--disabled:hover {
  color: #717985;
  cursor: default;
  transform: none;
}

.button:focus-visible,
.main-nav a:focus-visible,
.tag-row a:focus-visible,
.taxonomy-chip:focus-visible,
.video-card a:focus-visible,
.site-footer a:focus-visible,
.site-search input:focus-visible,
.pagination a:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 13, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.site-header__top {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #0d0e10;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(18rem, 24rem);
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 0.75rem;
}

.site-header__nav {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: #17191c;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}

.brand__logo {
  display: block;
  width: min(12.5rem, 100%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  min-width: max-content;
  padding: 0.45rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b5bdc9;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.main-nav a:hover,
.tag-row a:hover,
.video-card__meta a:hover {
  color: var(--text);
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(47, 111, 235, 0.24), rgba(47, 111, 235, 0.12));
  border-color: rgba(47, 111, 235, 0.34);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-search {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  width: 100%;
  max-width: 24rem;
  min-width: 0;
  justify-self: end;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-search:focus-within {
  border-color: rgba(47, 111, 235, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(47, 111, 235, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

.site-search input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 2.55rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.site-search input::placeholder {
  color: #788291;
}

.site-search .button {
  min-height: 2.55rem;
  padding: 0 1rem;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.index-band,
.page-band,
.watch-band,
.admin-section {
  padding: 1rem 0 1.2rem;
}

.index-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.index-toolbar h1 {
  margin: 0;
  font-size: 1.25rem;
}

.index-toolbar__count {
  color: var(--muted);
  font-size: 0.86rem;
}

.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.browse-links--section {
  margin-top: 1rem;
}

.browse-links__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.browse-links__item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.browse-links__item:hover,
.watch-category-link:hover {
  border-color: #4a515d;
  color: var(--text);
  background: var(--bg-card-2);
}

.browse-links__item--tag {
  color: #d7dee8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.video-grid--index {
  gap: 1rem;
}

.video-card {
  min-width: 0;
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #0a0b0d;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38)),
    linear-gradient(135deg, var(--thumb-accent), #1c2026 62%);
}

.video-card__thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.22));
}

.video-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__duration {
  position: absolute;
  z-index: 2;
  padding: 0.24rem 0.38rem;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
}

.video-card__duration {
  right: 0.35rem;
  bottom: 0.35rem;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
}

.video-card__body {
  padding: 0.35rem 0.1rem 0;
}

.video-card__body h3 {
  margin: 0 0 0.2rem;
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 400;
  color: #f7f7f8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.video-card__meta a {
  color: var(--muted);
}

.video-card__sep {
  color: #687282;
  padding: 0 0.15rem;
}

.video-card__reason {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.pagination__pages {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination__button,
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

button.pagination__button,
button.pagination__page {
  font-family: inherit;
}

.pagination__button {
  text-transform: uppercase;
}

.pagination__page--active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.pagination__button--disabled {
  color: #717985;
  cursor: default;
}

.page-intro {
  margin-bottom: 0.9rem;
}

.page-intro h1 {
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
}

.page-band--categories {
  padding: 0.85rem 0 1rem;
}

.page-band--categories .page-intro {
  margin-bottom: 0.45rem;
}

.page-band--categories .eyebrow {
  margin-bottom: 0.2rem;
}

.page-band--categories .page-intro h1 {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.15;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.page-band--categories .category-grid {
  gap: 0.45rem;
}

.category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.page-band--categories .category-tile {
  min-height: 2.55rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.category-tile:hover {
  border-color: #4a515d;
  background: var(--bg-card-2);
}

.category-tile--rich {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 5.6rem;
  gap: 0.2rem;
  text-align: left;
}

.category-tile--rich strong {
  color: var(--text);
  font-size: 0.95rem;
}

.category-tile--rich span,
.category-tile--rich small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.category-tile--rich small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-intro p:not(.eyebrow),
.watch-copy p:not(.eyebrow),
.watch-side__note,
.legal-item p,
.legal-note p,
.legal-contact__hint,
.queue-item p,
.site-footer p,
.empty-state p {
  color: var(--muted);
}

.legal-shell {
  display: grid;
  gap: 0.95rem;
}

.legal-effective {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

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

.watch-band__inner {
  display: block;
}

.watch-main {
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "player"
    "copy";
  width: 100%;
  margin: 0;
}

.watch-player {
  grid-area: player;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000000;
}

.watch-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-video-shell,
.watch-video {
  width: 100%;
  height: 100%;
}

.watch-video-shell {
  overflow: hidden;
}

.watch-video {
  display: block;
}

.watch-copy {
  grid-area: copy;
  padding-top: 0;
}

.watch-side {
  grid-area: side;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.watch-copy h1 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.watch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0 0;
}

.watch-stats div {
  min-width: 7rem;
}

.watch-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.watch-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tag-row a {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.watch-category-link {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
}

.watch-side__note,
.legal-contact,
.legal-note,
.legal-item,
.empty-state,
.queue-panel,
.form-shell,
.stat-card {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.legal-contact__label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-contact__value {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.legal-contact__hint {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.legal-note {
  border-color: rgba(47, 111, 235, 0.35);
  background: rgba(47, 111, 235, 0.08);
}

.watch-related {
  width: 100%;
  margin: 1.35rem 0 0;
}

.watch-related .video-grid--index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-toolbar--side {
  margin-bottom: 0;
}

.index-toolbar--side h2 {
  margin: 0;
  font-size: 1.25rem;
}

.video-grid--side {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.watch-side .video-grid--side {
  grid-template-columns: 1fr;
}

.video-rail {
  display: grid;
  gap: 0.55rem;
}

.video-rail .video-card {
  display: grid;
  grid-template-columns: minmax(6.8rem, 34%) 1fr;
  gap: 0.5rem;
}

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

.video-rail .video-card__body {
  padding-top: 0;
}

.video-rail .video-card__body h3 {
  font-size: 0.84rem;
  line-height: 1.15;
  -webkit-line-clamp: 2;
}

.video-rail .video-card__meta {
  font-size: 0.74rem;
}

.video-rail .video-card__reason {
  display: none;
}

.legal-list,
.queue-list {
  display: grid;
  gap: 0.75rem;
}

.legal-item h2 {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.legal-bullets {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.38rem;
}

.admin-shell {
  background: var(--bg);
}

.admin-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: #0d0e10;
}

.admin-header__inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
}

.admin-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-nav form {
  margin: 0;
}

.admin-nav a,
.admin-main {
  padding: 1rem 0 2rem;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
}

.admin-login-wrap {
  display: grid;
  justify-items: center;
}

.admin-login-card {
  width: min(100%, 28rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.65rem;
}

.queue-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-shell {
  display: grid;
  gap: 0.9rem;
}

.form-shell label {
  display: grid;
  gap: 0.35rem;
}

.form-shell input,
.form-shell select,
.form-shell textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121417;
  color: var(--text);
}

.form-shell input,
.form-shell select {
  min-height: 2.5rem;
  padding: 0 0.7rem;
}

.form-shell textarea {
  resize: vertical;
  padding: 0.7rem;
}

.form-shell span,
.tag-picker legend {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-grid,
.admin-grid,
.form-stack {
  display: grid;
  gap: 0.9rem;
}

.admin-grid {
  margin: 0.95rem 0;
}

.admin-grid--control {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.admin-grid--control > .panel,
.admin-grid--control > .form-shell {
  height: 100%;
}

.admin-video-form {
  align-content: start;
}

.form-grid--duration {
  grid-template-columns: repeat(2, minmax(0, 8rem));
}

.admin-muted {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.taxonomy-admin-list {
  display: grid;
  gap: 0.45rem;
}

.taxonomy-admin-list + .taxonomy-admin-list {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.taxonomy-admin-list h3 {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
}

.taxonomy-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.taxonomy-admin-row:first-of-type {
  border-top: 0;
}

.taxonomy-admin-row div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.taxonomy-admin-row--editing {
  border-color: rgba(47, 111, 235, 0.18);
  background: rgba(47, 111, 235, 0.06);
}

.taxonomy-inline-edit {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.taxonomy-inline-edit input {
  width: 100%;
  min-width: 0;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121417;
  color: var(--text);
  font: inherit;
}

.taxonomy-inline-edit small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.taxonomy-admin-row strong,
.admin-table strong {
  overflow-wrap: anywhere;
}

.taxonomy-admin-row span,
.admin-table span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-tag-cloud {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
  overflow: hidden;
}

.admin-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  min-height: 12rem;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 15%, rgba(47, 111, 235, 0.13), transparent 28%),
    radial-gradient(circle at 82% 75%, rgba(45, 212, 191, 0.1), transparent 30%),
    #101215;
}

.admin-cloud-word {
  display: inline-block;
  color: var(--muted-strong);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.admin-cloud-word:hover {
  color: #ffffff;
  transform: translateY(-1px) scale(1.03);
}

.admin-cloud-word--1 {
  color: #7f8793;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-cloud-word--2 {
  color: #9aa5b4;
  font-size: 1rem;
}

.admin-cloud-word--3 {
  color: #b9c4d5;
  font-size: 1.2rem;
}

.admin-cloud-word--4 {
  color: #8fb5ff;
  font-size: 1.45rem;
}

.admin-cloud-word--5 {
  color: #5eead4;
  font-size: 1.78rem;
  text-shadow: 0 0 18px rgba(45, 212, 191, 0.18);
}

.admin-posts {
  margin-top: 0.95rem;
}

.admin-api {
  margin-top: 0.95rem;
}

.api-grid {
  display: grid;
  gap: 0.9rem;
}

.api-docs,
.api-keys,
.api-key-create {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  align-content: start;
}

.api-docs label,
.api-key-create label {
  display: grid;
  gap: 0.35rem;
}

.api-docs span,
.api-key-create span {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.api-docs input,
.api-docs select,
.api-docs textarea,
.api-key-create input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121417;
  color: var(--text);
  font: inherit;
}

.api-docs input,
.api-docs select,
.api-key-create input {
  min-height: 2.5rem;
  padding: 0 0.7rem;
}

.api-key-create .button {
  align-self: start;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  line-height: 1.1;
}

.api-docs textarea {
  resize: vertical;
  padding: 0.7rem;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.api-key-list {
  display: grid;
  gap: 0.45rem;
}

.api-key-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.api-key-row > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.api-key-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.api-key-row form {
  margin: 0;
}

.admin-post-search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-post-search label {
  flex: 1 1 18rem;
}

.admin-post-search input {
  width: 100%;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 62rem;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--text);
  font-size: 0.82rem;
}

.admin-table a {
  color: var(--muted-strong);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-actions--inline {
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.admin-actions form,
.taxonomy-admin-row form {
  margin: 0;
}

.admin-actions .button,
.taxonomy-admin-row .button {
  min-height: 2rem;
  padding: 0 0.65rem;
  font-size: 0.78rem;
}

.admin-table-empty td {
  color: var(--muted);
  text-align: center;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.form-message {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--muted-strong);
}

.form-message p {
  margin: 0;
}

.form-message p + p {
  margin-top: 0.25rem;
}

.form-message--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.form-message--success {
  margin-bottom: 0.9rem;
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.1);
  color: #ccfbf1;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tag-picker legend {
  width: 100%;
  margin-bottom: 0.1rem;
}

.tag-picker label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #121417;
}

.tag-picker input {
  width: auto;
  min-height: auto;
}

.tag-picker span {
  line-height: 1;
}

.embed-shell {
  margin: 0;
  background: transparent;
}

.embed-player {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100vh;
  min-height: 20rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    linear-gradient(135deg, var(--player-accent), #1b2028 60%);
}

.embed-video-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

.embed-video {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #000000;
  object-fit: contain;
}

.watch-player .embed-video-shell,
.watch-player .embed-video {
  width: 100%;
  height: 100%;
}

.embed-video-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-content: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  text-align: center;
  pointer-events: none;
}

.embed-video-shell.is-loading .embed-video-loader {
  display: grid;
}

.embed-video-loader span {
  width: 2.4rem;
  height: 2.4rem;
  justify-self: center;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: player-spin 0.8s linear infinite;
}

.embed-video-loader strong {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.video-quality {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 8, 10, 0.74);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.video-quality[hidden] {
  display: none;
}

.embed-video-shell:hover .video-quality,
.embed-video-shell:focus-within .video-quality,
.embed-video-shell.is-touch-interacting .video-quality,
.embed-video-shell.has-open-quality-menu .video-quality {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: none), (pointer: coarse) {
  .embed-video-shell:hover .video-quality,
  .embed-video-shell:focus-within .video-quality {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
  }

  .embed-video-shell.is-touch-interacting .video-quality,
  .embed-video-shell.has-open-quality-menu .video-quality {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.video-quality__button {
  min-width: 3.6rem;
  min-height: 1.75rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.video-quality__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 5.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 8, 10, 0.94);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.32);
}

.video-quality__menu[hidden] {
  display: none;
}

.video-quality__item {
  display: flex;
  width: 100%;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.65rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-quality__item:hover,
.video-quality__item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.video-quality__item[aria-checked="true"]::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ef8d65;
}

@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}

.embed-player__screen {
  display: grid;
  place-content: end start;
  gap: 0.7rem;
  padding: 1.2rem;
}

.embed-player__pill {
  position: static;
  width: max-content;
}

.embed-player__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
}

.embed-player__track {
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.embed-player__track span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.site-footer {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    #0c0d10;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
  padding: 2rem 0 2.15rem;
}

.site-footer__label {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__meta {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}

.site-footer__domain {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.site-footer nav a {
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.site-footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (min-width: 700px) {
  .shell {
    width: min(var(--shell), calc(100% - 1.5rem));
  }

  .form-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .api-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  }
}

@media (min-width: 980px) {
  .shell {
    width: min(var(--shell), calc(100% - 2rem));
  }

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

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

}

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

  .watch-related .video-grid--index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 699px) {
  .shell {
    width: min(100% - 1rem, var(--shell));
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.7rem 0;
  }

  .brand {
    justify-content: center;
  }

  .brand__logo {
    width: min(11rem, 78vw);
  }

  .main-nav {
    justify-content: flex-start;
    padding: 0.4rem 0;
    scroll-padding-inline: 0.5rem;
  }

  .legal-contacts--three {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    min-height: 2.1rem;
    padding: 0 0.7rem;
    font-size: 0.8rem;
  }

  .site-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
  }

  .site-footer__inner {
    padding-bottom: 1.15rem;
  }

  .site-footer nav {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .shell {
    width: min(100% - 1rem, var(--shell));
  }

  .site-search {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .site-search input {
    min-height: 2.35rem;
    padding: 0 0.7rem;
    font-size: 0.88rem;
  }

  .site-search .button {
    min-height: 2.35rem;
    padding: 0 0.8rem;
  }

  .index-band,
  .page-band,
  .watch-band,
  .admin-section {
    padding-top: 0.85rem;
  }

  .index-toolbar {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-grid--control {
    grid-template-columns: 1fr;
  }

  .admin-grid--control > .panel,
  .admin-grid--control > .form-shell {
    height: auto;
  }

  .index-toolbar h1 {
    font-size: 1.18rem;
  }

  .index-toolbar__count {
    padding-top: 1.55rem;
    white-space: nowrap;
  }

  .video-grid,
  .video-grid--index,
  .watch-related .video-grid--index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .taxonomy-admin-row--editing {
    grid-template-columns: 1fr;
  }

  .video-card__body h3 {
    font-size: 0.8rem;
  }
}

@media (min-width: 700px) and (max-width: 1180px) {
  .legal-contacts--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a {
    padding: 0 0.72rem;
    font-size: 0.82rem;
  }

  .site-search {
    max-width: 20rem;
  }
}
