:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #fffefd;
  --surface-strong: #eef8ff;
  --text: #091129;
  --muted: #66738f;
  --quiet: #929bb0;
  --border: #dfe7f6;
  --accent: #00b8ff;
  --accent-strong: #005f98;
  --accent-soft: #dbf8ff;
  --saffron: #ffb000;
  --coral: #ff2477;
  --mint: #24c995;
  --violet: #7f2cff;
  --plum: #141035;
  --shadow: 0 18px 42px rgba(10, 18, 45, 0.13);
  --party-shadow: 0 12px 28px rgba(0, 166, 200, 0.18);
  --header-height: 62px;
  --sidebar-width: 232px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(120deg, rgba(0, 184, 255, 0.14), transparent 27%),
    linear-gradient(240deg, rgba(255, 36, 119, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #fff6ea 100%);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(35deg, transparent 0 47%, rgba(255, 176, 0, 0.68) 47% 51%, transparent 51% 100%) 18px 22px / 164px 164px,
    linear-gradient(140deg, transparent 0 44%, rgba(255, 36, 119, 0.62) 44% 49%, transparent 49% 100%) 48px 80px / 190px 190px,
    linear-gradient(90deg, transparent 0 48%, rgba(0, 184, 255, 0.5) 48% 52%, transparent 52% 100%) 12px 10px / 132px 132px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 0.07) 50%, rgba(0, 0, 0, 0.18) 84%, #000 100%);
}

body::after {
  content: "";
  position: fixed;
  right: -130px;
  top: 72px;
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background: url("assets/positube-mark.png") center / contain no-repeat;
  filter: saturate(1.2) drop-shadow(0 18px 40px rgba(255, 36, 119, 0.28));
  opacity: 0.09;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 178, 26, 0.62);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 230px minmax(280px, 640px) 1fr;
  align-items: center;
  height: var(--header-height);
  gap: 20px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(43, 23, 79, 0.06);
  backdrop-filter: blur(18px);
}

.brand-row,
.header-actions,
.search-row,
.video-meta,
.title-row,
.channel-line,
.chip-row,
.watch-actions,
.modal-actions {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 16px;
  min-width: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.has-badge {
  position: relative;
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(0, 166, 200, 0.14);
}

.icon-button:active {
  transform: scale(0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
  color: var(--plum);
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 42px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 8px 16px rgba(255, 36, 119, 0.25));
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 7px;
  height: 7px;
  background: var(--saffron);
  transform: rotate(18deg);
  animation: sparkle-pop 2200ms ease-in-out infinite;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  color: transparent;
  background: linear-gradient(90deg, #091129 0%, #091129 42%, var(--coral) 58%, var(--violet) 78%, var(--accent) 100%);
  background-clip: text;
  font-weight: 950;
  letter-spacing: 0;
}

@keyframes sparkle-pop {
  0%,
  100% {
    transform: rotate(18deg) scale(0.82);
    opacity: 0.72;
  }

  50% {
    transform: rotate(18deg) scale(1.18);
    opacity: 1;
  }
}

.search-row {
  justify-self: stretch;
  gap: 8px;
  min-width: 0;
}

.search-form {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
}

.search-form input::placeholder {
  color: #8490a8;
}

.search-submit {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 100%;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #f7fdff, #ecfbff);
  color: var(--accent-strong);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 36, 119, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 232, 0.96), rgba(255, 238, 247, 0.9));
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #19d3ff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 166, 200, 0.26);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.upload-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 16px 28px rgba(0, 166, 200, 0.32);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 14px 12px 24px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.sidebar.collapsed {
  --sidebar-width: 82px;
}

.sidebar-section {
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.sidebar-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading button {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 5px;
}

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

.nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 9px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 650;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(1px);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 246, 213, 0.84));
  color: var(--accent-strong);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 178, 26, 0.14);
}

.nav-item > span:not(.status-dot):not(.channel-avatar) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-manage-actions {
  display: inline-flex;
  gap: 3px;
  opacity: 0.58;
  transform: translateX(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-manage-row:hover .nav-manage-actions,
.nav-manage-row:focus-within .nav-manage-actions {
  opacity: 1;
  transform: translateX(0);
}

.nav-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-icon-button:hover {
  color: #fff;
  border-color: rgba(0, 214, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 214, 255, 0.18);
}

.nav-icon-button.danger:hover {
  color: #ff89d6;
  border-color: rgba(255, 44, 168, 0.55);
  box-shadow: 0 0 16px rgba(255, 44, 168, 0.2);
}

.channel-avatar,
.video-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.video-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.main {
  min-width: 0;
  padding: 14px 28px 54px;
}

.need-console {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 166, 200, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 255, 0.86)),
    linear-gradient(90deg, rgba(255, 178, 26, 0.1), transparent);
  box-shadow: var(--party-shadow);
}

.need-console::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coral), var(--saffron), var(--mint));
  border-radius: 999px;
}

.console-label {
  color: var(--plum);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.need-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  max-width: 760px;
}

.need-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.need-chip-row::-webkit-scrollbar {
  display: none;
}

.need-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(43, 23, 79, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.need-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 166, 200, 0.34);
  box-shadow: 0 10px 18px rgba(0, 166, 200, 0.12);
}

.need-chip.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #21c4df);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 166, 200, 0.23);
}

.why-these {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 79, 123, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 249, 230, 0.94), rgba(255, 242, 248, 0.82) 48%, rgba(229, 250, 255, 0.88)),
    linear-gradient(90deg, rgba(255, 79, 123, 0.12), transparent);
  box-shadow: 0 12px 28px rgba(255, 79, 123, 0.09);
}

.why-these h2 {
  margin: 0 0 4px;
  color: var(--plum);
  font-size: 17px;
  line-height: 1.2;
}

.why-these p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.why-metrics {
  display: flex;
  gap: 9px;
  align-items: stretch;
}

.why-metrics div {
  display: grid;
  align-content: center;
  min-width: 82px;
  padding: 8px 10px;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.why-metrics strong {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  color: var(--plum);
  font-size: 16px;
}

.why-metrics strong span {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
}

.why-metrics div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.refresh-feed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral), #ff7b45);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 22px rgba(255, 79, 123, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.refresh-feed:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(255, 79, 123, 0.28);
}

.feed-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 12px;
}

.feed-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.select-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.select-control select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 750;
  padding: 0 28px 0 10px;
}

.chip-row {
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  gap: 12px;
  padding: 0 0 18px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.rail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 12px;
}

.rail-header h2,
.section-title {
  margin: 0;
  color: var(--plum);
  font-size: 21px;
  line-height: 1.25;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.continue-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.video-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(43, 23, 79, 0.08);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 166, 200, 0.26);
  box-shadow: 0 18px 34px rgba(43, 23, 79, 0.13);
}

.title-row {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.video-card button,
.side-video button {
  text-align: left;
}

.thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card:hover .thumb-wrap img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.source-thumb-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px;
  background:
    linear-gradient(35deg, transparent 0 46%, rgba(255, 255, 255, 0.24) 46% 52%, transparent 52% 100%),
    linear-gradient(135deg, var(--accent) 0%, #75e7f4 44%, var(--coral) 100%);
  color: #fff;
  transition: transform 220ms ease, filter 220ms ease;
}

.source-thumb-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface-strong);
}

.source-thumb-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
}

.source-thumb-image.image-failed > img {
  display: none;
}

.source-thumb-image.image-failed .source-thumb-fallback {
  display: block;
}

.source-link,
.source-article-link {
  background:
    linear-gradient(35deg, transparent 0 46%, rgba(255, 255, 255, 0.26) 46% 52%, transparent 52% 100%),
    linear-gradient(135deg, var(--accent) 0%, #5bd8f0 54%, var(--saffron) 100%);
}

.source-audio {
  background:
    linear-gradient(35deg, transparent 0 46%, rgba(255, 255, 255, 0.26) 46% 52%, transparent 52% 100%),
    linear-gradient(135deg, #7c3aed 0%, #ff4f7b 54%, var(--saffron) 100%);
}

.source-article {
  background:
    linear-gradient(35deg, transparent 0 46%, rgba(255, 255, 255, 0.26) 46% 52%, transparent 52% 100%),
    linear-gradient(135deg, var(--mint) 0%, var(--accent) 52%, #7c3aed 100%);
}

.video-card:hover .source-thumb-visual {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.02);
}

.source-thumb-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.source-thumb-label {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.source-thumb-warning {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(11, 41, 36, 0.48);
  font-size: 11px;
  font-weight: 850;
}

.duration,
.preview-label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(36, 22, 55, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.preview-label {
  left: 6px;
  right: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.video-card:hover .preview-label {
  opacity: 1;
  transform: translateY(0);
}

.progress-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.38);
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--saffron));
}

.video-body {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding-top: 9px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.reason-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.reason-badge.compact {
  margin-bottom: 5px;
}

.why-link {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

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

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 27px;
  padding: 0 5px;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

.mini-action:hover,
.mini-action.active,
.action-pill.active {
  border-color: rgba(0, 166, 200, 0.28);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.video-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.32;
  font-weight: 850;
}

.video-channel,
.video-stats,
.muted {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.channel-line {
  gap: 5px;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
}

.menu-dots {
  color: var(--muted);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
}

.empty-state > div {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 460px;
}

.empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.watch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
  padding-top: 12px;
}

.player-panel {
  min-width: 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background-image: var(--poster);
  background-size: cover;
  background-position: var(--frame-x, 50%) center;
  box-shadow: inset 0 -160px 120px rgba(43, 23, 79, 0.44), 0 18px 38px rgba(43, 23, 79, 0.16);
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.native-stage,
.embed-stage,
.audio-stage,
.article-reader,
.article-file-stage,
.source-open-panel {
  width: 100%;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--party-shadow);
}

.native-stage {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081a17;
}

.embed-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 67, 176, 0.24), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(0, 214, 255, 0.2), transparent 28%),
    #050816;
}

.shorts-embed-stage {
  width: min(100%, 430px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.native-media {
  display: block;
  width: 100%;
  height: 100%;
  background: #081a17;
}

.video-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050816;
}

.audio-stage,
.source-open-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 230px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 251, 255, 0.86)),
    linear-gradient(90deg, rgba(255, 178, 26, 0.12), transparent);
}

.audio-stage audio {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--coral);
}

.source-open-icon {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #fff2f8);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 166, 200, 0.12);
}

.source-open-art {
  position: relative;
  display: block;
  width: 168px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), #fff2f8);
  color: var(--accent-strong);
  box-shadow: 0 14px 26px rgba(43, 23, 79, 0.12);
}

.source-open-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-open-art svg {
  display: none;
}

.source-open-art.image-failed {
  display: inline-grid;
  place-items: center;
}

.source-open-art.image-failed img {
  display: none;
}

.source-open-art.image-failed svg {
  display: block;
}

.source-open-panel h2,
.audio-stage h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.source-open-panel p,
.audio-stage p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.missing-file {
  border-style: dashed;
}

.article-reader {
  max-height: min(680px, 68vh);
  overflow: auto;
  padding: 26px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.68;
}

.article-reader p {
  margin: 0 0 18px;
}

.article-reader p:last-child {
  margin-bottom: 0;
}

.article-file-stage {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.article-frame {
  width: 100%;
  height: min(680px, 70vh);
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.big-play {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(36, 22, 55, 0.82);
  color: #fff;
  backdrop-filter: blur(10px);
}

.player-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  color: #fff;
}

.scrubber {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 750;
}

.scrubber input {
  width: 100%;
  accent-color: var(--coral);
}

.watch-title {
  margin: 16px 0 10px;
  color: var(--plum);
  font-size: 24px;
  line-height: 1.25;
}

.watch-need-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.watch-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

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

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(43, 23, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.action-pill.danger {
  border-color: rgba(198, 106, 74, 0.28);
  color: var(--coral);
}

.channel-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.channel-card .video-avatar {
  width: 44px;
  height: 44px;
}

.subscribe {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.description {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  line-height: 1.45;
}

.recommendations {
  display: grid;
  gap: 14px;
}

.side-video {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(43, 23, 79, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.side-video .thumb-wrap {
  border-radius: 7px;
}

.side-video .video-title {
  font-size: 14px;
}

.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(340px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.popover h3 {
  margin: 4px 4px 10px;
  font-size: 15px;
}

.popover-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 6px;
  border-radius: 7px;
}

.popover-row:hover {
  background: var(--accent-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(0, 166, 200, 0.24), rgba(255, 79, 123, 0.22)),
    rgba(36, 22, 55, 0.28);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.source-modal {
  width: min(700px, 100%);
}

.modal-header,
.modal-body,
.modal-actions {
  padding: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.source-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.source-tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 72px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.source-tab.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), #fff5d9);
  color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(0, 166, 200, 0.14);
}

.source-help {
  padding: 10px 12px;
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  background: linear-gradient(90deg, #fff4f8, #fff9e6);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
}

.field input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.thumb-field-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.thumb-field-preview img {
  width: 72px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.65);
}

.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  place-items: center;
  min-height: 110px;
  border: 1px dashed rgba(0, 166, 200, 0.38);
  border-radius: var(--radius);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(236, 251, 255, 0.72), rgba(255, 249, 230, 0.72));
  text-align: center;
  padding: 16px;
  line-height: 1.35;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.why-video-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.why-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-strong);
}

.why-video-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.why-preview .source-thumb-visual {
  height: 100%;
}

.why-video-row h3 {
  margin: 8px 0 5px;
  font-size: 18px;
  line-height: 1.2;
}

.why-video-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.why-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.why-breakdown div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(15, 107, 88, 0.12);
  border-radius: 8px;
  background: rgba(238, 247, 242, 0.64);
}

.why-breakdown strong {
  color: var(--accent-strong);
  text-transform: capitalize;
}

.why-breakdown span,
.next-step {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.next-step {
  padding: 11px 12px;
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  background: #fff4f8;
}

.ghost-button,
.primary-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
}

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

.primary-button {
  background: linear-gradient(135deg, var(--accent), #21c4df);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 166, 200, 0.2);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--plum), var(--coral));
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.shorts-grid,
.library-list {
  display: grid;
  gap: 16px;
}

.shorts-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.short-card .thumb-wrap {
  aspect-ratio: 9 / 16;
}

.short-card-body {
  display: grid;
  gap: 7px;
  padding-top: 10px;
}

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

.short-card .admin-card-actions {
  grid-template-columns: 1fr;
}

.short-card .mini-action {
  min-height: 30px;
}

.library-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.library-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 210px minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .continue-rail,
  .feed-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

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

  .recommendations {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .need-console,
  .why-these {
    grid-template-columns: 1fr;
  }

  .why-metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 116px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
    height: var(--header-height);
    padding: 8px 14px 12px;
  }

  .brand-row {
    grid-area: brand;
  }

  .search-row {
    grid-area: search;
  }

  .header-actions {
    grid-area: actions;
    gap: 4px;
  }

  .upload-button {
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .upload-button span {
    display: none;
  }

  .trust-note {
    display: none;
  }

  .header-actions .icon-button[data-action="toggle-user"] + .icon-button {
    display: none;
  }

  .layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: block;
    width: 100%;
    height: 70px;
    padding: 6px 10px;
    border-top: 1px solid var(--border);
    border-right: 0;
    overflow: hidden;
  }

  .sidebar-section:not(:first-child) {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    min-height: 56px;
    padding: 4px 2px;
    font-size: 11px;
  }

  .nav-item .status-dot {
    display: none;
  }

  .main {
    padding: 12px 14px 98px;
  }

  .need-console {
    padding: 14px;
  }

  .need-copy {
    font-size: 12px;
  }

  .why-these {
    padding: 12px;
  }

  .feed-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .chip-row {
    top: var(--header-height);
    padding-bottom: 14px;
  }

  .continue-rail,
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .video-body {
    grid-template-columns: 32px minmax(0, 1fr);
  }

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

  .mini-action {
    justify-content: center;
    padding: 0 5px;
  }

  .menu-dots {
    display: none;
  }

  .watch-meta,
  .channel-card {
    align-items: flex-start;
  }

  .watch-meta {
    flex-direction: column;
  }

  .audio-stage,
  .source-open-panel {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 220px;
  }

  .source-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .source-tab {
    min-width: 112px;
  }

  .side-video,
  .library-row {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .library-row > .muted,
  .library-status {
    display: none;
  }

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

  .why-video-row,
  .why-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 19px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .continue-rail,
  .feed-grid,
  .shorts-grid,
  .recommendations {
    grid-template-columns: 1fr;
  }

  .continue-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .continue-rail .video-card {
    min-width: 82%;
    scroll-snap-align: start;
  }

  .watch-title {
    font-size: 21px;
  }

  .watch-need-note {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* POSITUBE dark neon reference skin */
:root {
  color-scheme: dark;
  --bg: #030815;
  --surface: rgba(12, 22, 45, 0.82);
  --surface-strong: rgba(18, 31, 64, 0.94);
  --text: #f8fbff;
  --muted: #a9b6d5;
  --quiet: #7280a4;
  --border: rgba(120, 153, 255, 0.22);
  --accent: #23c8ff;
  --accent-strong: #8deaff;
  --accent-soft: rgba(35, 200, 255, 0.15);
  --saffron: #ff9b19;
  --coral: #ff2ca8;
  --mint: #32f0c9;
  --violet: #8a38ff;
  --plum: #f8fbff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --party-shadow: 0 22px 46px rgba(255, 44, 168, 0.13), 0 0 0 1px rgba(104, 141, 255, 0.12);
  --header-height: 78px;
  --sidebar-width: 248px;
}

body {
  background:
    radial-gradient(900px 540px at 88% -8%, rgba(138, 56, 255, 0.42), transparent 58%),
    radial-gradient(720px 460px at 0% 28%, rgba(0, 152, 255, 0.28), transparent 62%),
    linear-gradient(180deg, #03040c 0%, #061329 44%, #07162b 100%);
  color: var(--text);
}

body::before {
  opacity: 0.24;
  background:
    linear-gradient(32deg, transparent 0 48%, rgba(255, 44, 168, 0.5) 48% 50%, transparent 50% 100%) 32px 28px / 180px 180px,
    linear-gradient(142deg, transparent 0 46%, rgba(35, 200, 255, 0.34) 46% 48%, transparent 48% 100%) 20px 80px / 220px 220px,
    linear-gradient(90deg, transparent 0 49%, rgba(255, 155, 25, 0.28) 49% 51%, transparent 51% 100%) 0 0 / 160px 160px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.22));
}

body::after {
  right: -105px;
  top: 86px;
  width: 440px;
  height: 440px;
  opacity: 0.08;
  filter: saturate(1.35) drop-shadow(0 0 42px rgba(255, 44, 168, 0.56));
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(255, 44, 168, 0.78);
}

.topbar {
  grid-template-columns: 260px minmax(300px, 640px) 1fr;
  padding: 0 24px;
  background: rgba(3, 6, 18, 0.9);
  border-bottom: 1px solid rgba(123, 145, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.icon-button {
  color: #eef4ff;
  border-radius: 10px;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 22px rgba(35, 200, 255, 0.22);
}

.brand {
  gap: 11px;
  color: #fff;
}

.brand-mark {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 12px rgba(35, 200, 255, 0.62)) drop-shadow(0 0 22px rgba(255, 44, 168, 0.45));
}

.brand-mark::after {
  right: -3px;
  top: -2px;
  background: #ffb321;
  box-shadow: 0 0 12px rgba(255, 179, 33, 0.82);
}

.brand-stack {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  color: #fff;
  background: none;
  font-size: 23px;
  letter-spacing: 0.2em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

.brand-tagline {
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.26em;
  opacity: 0.84;
}

.search-form {
  height: 46px;
  border-color: rgba(135, 158, 255, 0.22);
  border-radius: 18px;
  background: rgba(9, 14, 31, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 26px rgba(0, 0, 0, 0.22);
}

.search-form input {
  color: #f8fbff;
}

.search-submit {
  border-left-color: rgba(135, 158, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: #f4f8ff;
}

.trust-note {
  border-color: rgba(151, 96, 255, 0.38);
  border-radius: 10px;
  background: rgba(13, 16, 39, 0.84);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.trust-note svg {
  color: var(--coral);
}

.upload-button,
.primary-button,
.refresh-feed,
.subscribe {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #9a22ff 0%, #ff28b8 48%, #ff9219 100%);
  box-shadow: 0 0 22px rgba(255, 44, 168, 0.3), 0 15px 30px rgba(0, 0, 0, 0.28);
}

.upload-button:hover,
.primary-button:hover,
.refresh-feed:hover,
.subscribe:hover {
  box-shadow: 0 0 30px rgba(255, 44, 168, 0.42), 0 18px 34px rgba(0, 0, 0, 0.34);
}

.layout {
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  background: linear-gradient(180deg, rgba(3, 10, 27, 0.92), rgba(3, 12, 31, 0.72));
  border-right: 1px solid rgba(121, 148, 255, 0.18);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.22);
}

.sidebar-section {
  border-top-color: rgba(121, 148, 255, 0.14);
}

.section-heading {
  color: #a8b4d8;
  letter-spacing: 0.08em;
}

.nav-item {
  color: #eef4ff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 760;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 44, 168, 0.22), rgba(138, 56, 255, 0.18));
  border-color: rgba(255, 74, 190, 0.62);
  box-shadow: inset 3px 0 0 var(--coral), 0 0 26px rgba(255, 44, 168, 0.28);
}

.nav-item .status-dot {
  background: #ff9b19;
  box-shadow: 0 0 16px rgba(255, 155, 25, 0.86);
}

.channel-avatar,
.video-avatar {
  background: linear-gradient(135deg, rgba(255, 155, 25, 0.86), rgba(255, 44, 168, 0.64));
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 155, 25, 0.22);
}

.main {
  padding: 24px 28px 64px;
}

.need-console {
  min-height: 176px;
  margin-bottom: 18px;
  padding: 30px 34px;
  border-color: rgba(255, 155, 25, 0.44);
  border-radius: 12px;
  background:
    radial-gradient(420px 180px at 84% 38%, rgba(255, 155, 25, 0.42), transparent 65%),
    radial-gradient(640px 240px at 92% 80%, rgba(255, 44, 168, 0.45), transparent 68%),
    linear-gradient(112deg, rgba(255, 230, 218, 0.96) 0%, rgba(255, 162, 116, 0.9) 45%, rgba(154, 34, 255, 0.86) 100%);
  color: #070b20;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 34px rgba(255, 44, 168, 0.26);
}

.need-console::before {
  left: 28px;
  right: 28px;
  background: linear-gradient(90deg, var(--accent), var(--coral), var(--saffron));
  box-shadow: 0 0 18px rgba(255, 44, 168, 0.5);
}

.need-console::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 22px;
  width: 260px;
  height: 130px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.82) 0 12%, transparent 13%),
    linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.58) 50%, transparent 82%);
  opacity: 0.6;
  filter: blur(0.2px);
  transform: rotate(-8deg);
}

.console-label {
  color: #050918;
  font-size: 29px;
  letter-spacing: 0;
}

.need-copy {
  color: rgba(5, 9, 24, 0.78);
  font-size: 14px;
  max-width: 700px;
}

.need-chip {
  border-color: rgba(13, 18, 37, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #081126;
  box-shadow: 0 10px 24px rgba(5, 9, 24, 0.12);
}

.need-chip.active {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, #9728ff, #ff2ca8 54%, #ff941c);
  color: #fff;
  box-shadow: 0 0 26px rgba(255, 44, 168, 0.42);
}

.why-these {
  border-color: rgba(121, 148, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 16, 37, 0.92), rgba(12, 20, 52, 0.78));
  box-shadow: var(--party-shadow);
}

.why-these h2,
.rail-header h2,
.section-title,
.watch-title,
.empty-state h2 {
  color: #fff;
}

.why-these h2::before {
  content: "✦";
  margin-right: 10px;
  color: var(--coral);
  text-shadow: 0 0 16px rgba(255, 44, 168, 0.7);
}

.why-these p {
  color: #d8e2ff;
}

.why-metrics div,
.select-control select,
.action-pill,
.mini-action,
.source-tab,
.field input,
.field textarea,
.field select {
  border-color: rgba(121, 148, 255, 0.24);
  background: rgba(9, 18, 42, 0.75);
  color: #f8fbff;
}

.why-metrics strong,
.why-breakdown strong {
  color: #fff;
}

.why-metrics strong span,
.reason-badge {
  background: rgba(35, 200, 255, 0.18);
  color: #9feeff;
  box-shadow: inset 0 0 0 1px rgba(35, 200, 255, 0.2);
}

.why-metrics div > span,
.select-control,
.video-channel,
.video-stats,
.muted,
.field,
.source-help,
.source-open-panel p,
.audio-stage p,
.why-video-row p,
.why-breakdown span,
.next-step {
  color: var(--muted);
}

.feed-heading-row {
  margin: 22px 0 16px;
}

.section-title {
  position: relative;
  font-size: 24px;
}

.section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--saffron));
  box-shadow: 0 0 16px rgba(255, 44, 168, 0.5);
}

.feed-grid {
  gap: 18px;
}

.video-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(123, 145, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 31, 64, 0.88), rgba(8, 18, 42, 0.95));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.video-card:hover {
  border-color: rgba(255, 44, 168, 0.58);
  box-shadow: 0 0 30px rgba(255, 44, 168, 0.22), 0 22px 42px rgba(0, 0, 0, 0.42);
}

.thumb-wrap {
  border-radius: 12px 12px 0 0;
  background: #0a1230;
  box-shadow: none;
}

.source-thumb-visual {
  background:
    radial-gradient(220px 150px at 88% 18%, rgba(255, 44, 168, 0.84), transparent 62%),
    linear-gradient(135deg, #006cff 0%, #7b3dff 46%, #ff6a1c 100%);
}

.video-body {
  padding: 14px;
}

.video-title {
  color: #fff;
  font-size: 16px;
}

.why-link {
  color: #ff79cf;
}

.verified {
  background: #23c8ff;
  color: #031026;
}

.mini-action {
  min-height: 32px;
  border-radius: 8px;
  color: #e9f1ff;
}

.mini-action:hover,
.mini-action.active,
.action-pill.active {
  border-color: rgba(255, 44, 168, 0.48);
  background: rgba(255, 44, 168, 0.14);
  color: #fff;
}

.empty-state {
  min-height: 300px;
  color: #c9d5f5;
}

.native-stage,
.audio-stage,
.article-reader,
.article-file-stage,
.source-open-panel,
.watch-need-note,
.description,
.side-video,
.library-row,
.modal {
  border-color: rgba(123, 145, 255, 0.22);
  background: linear-gradient(180deg, rgba(15, 27, 58, 0.92), rgba(8, 18, 42, 0.94));
  color: var(--text);
  box-shadow: var(--party-shadow);
}

.source-open-panel,
.audio-stage {
  background:
    radial-gradient(440px 180px at 90% 10%, rgba(138, 56, 255, 0.24), transparent 64%),
    linear-gradient(135deg, rgba(17, 33, 70, 0.94), rgba(7, 17, 40, 0.96));
}

.source-open-icon,
.source-open-art {
  background: linear-gradient(135deg, rgba(35, 200, 255, 0.22), rgba(255, 44, 168, 0.22));
  color: #9feeff;
  box-shadow: 0 0 30px rgba(35, 200, 255, 0.12);
}

.watch-meta,
.channel-card {
  border-bottom-color: rgba(123, 145, 255, 0.18);
}

.description a {
  color: #9feeff;
}

.modal-backdrop {
  background:
    radial-gradient(700px 420px at 78% 18%, rgba(255, 44, 168, 0.28), transparent 68%),
    rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(14px);
}

.modal {
  border: 1px solid rgba(123, 145, 255, 0.28);
  border-radius: 14px;
}

.modal-header {
  border-bottom-color: rgba(123, 145, 255, 0.18);
}

.modal-header h2 {
  color: #fff;
}

.source-tab.active {
  border-color: rgba(255, 44, 168, 0.56);
  background: linear-gradient(135deg, rgba(138, 56, 255, 0.34), rgba(255, 44, 168, 0.18));
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 44, 168, 0.2);
}

.source-help,
.next-step {
  border-left-color: var(--coral);
  background: rgba(255, 44, 168, 0.1);
}

.drop-zone {
  border-color: rgba(35, 200, 255, 0.32);
  background: rgba(35, 200, 255, 0.08);
  color: #c9d5f5;
}

.ghost-button {
  border: 1px solid rgba(123, 145, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 44, 168, 0.42);
  border-radius: 8px;
  background: rgba(255, 44, 168, 0.1);
  color: #ffd7f1;
  font-size: 13px;
  font-weight: 800;
}

.admin-modal {
  width: min(440px, 100%);
}

.multi-field {
  gap: 9px;
  padding: 0;
  border: 0;
}

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

.multi-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(121, 148, 255, 0.24);
  border-radius: 9px;
  background: rgba(9, 18, 42, 0.75);
  color: #d8e2ff;
  font-size: 12px;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.check-pill input:checked + span {
  border-color: rgba(255, 44, 168, 0.58);
  background: linear-gradient(135deg, rgba(138, 56, 255, 0.36), rgba(255, 44, 168, 0.2));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 44, 168, 0.18);
}

.admin-card-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
}

.mini-action.danger,
.action-pill.danger {
  border-color: rgba(255, 44, 168, 0.38);
  color: #ff9cdd;
}

.toast {
  background: linear-gradient(135deg, #8a38ff, #ff2ca8 58%, #ff9b19);
  box-shadow: 0 0 32px rgba(255, 44, 168, 0.42);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 250px minmax(220px, 1fr) auto;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 124px;
  }

  .topbar {
    background: rgba(3, 6, 18, 0.94);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .brand-tagline {
    display: none;
  }

  .sidebar {
    background: rgba(3, 10, 27, 0.94);
    border-top-color: rgba(123, 145, 255, 0.24);
  }

  .need-console {
    min-height: 0;
    padding: 18px 14px;
  }

  .need-console::after {
    display: none;
  }

  .console-label {
    font-size: 22px;
  }

  .why-these {
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .brand {
    gap: 7px;
  }

  .brand-name {
    font-size: 14px;
  }

  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .source-modal {
    max-height: calc(100vh - 28px);
  }
}

/* Fit-and-polish pass for the dark POSITUBE skin */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

.app-shell,
.topbar,
.layout,
.main,
.need-console,
.why-these,
.feed-heading-row,
.feed-grid,
.empty-state,
.modal {
  min-width: 0;
  max-width: 100%;
}

.brand-row,
.brand,
.brand-stack,
.search-row,
.search-form,
.header-actions,
.need-console > *,
.need-chip-row,
.why-these > *,
.why-metrics,
.feed-tools,
.select-control,
.video-card,
.video-body,
.watch-shell,
.source-open-panel,
.audio-stage {
  min-width: 0;
}

.topbar {
  grid-template-columns: minmax(250px, 292px) minmax(240px, 1fr) auto;
  gap: 18px;
}

.brand {
  overflow: hidden;
}

.brand-stack {
  overflow: hidden;
}

.brand-name,
.brand-tagline {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.search-row {
  max-width: 700px;
}

.header-actions {
  justify-self: end;
}

.need-chip-row {
  max-width: 100%;
  padding-bottom: 2px;
}

.need-console > div:first-child {
  position: relative;
  z-index: 1;
  max-width: min(760px, 100%);
}

.why-these {
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto) auto;
}

.why-metrics {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.why-metrics::-webkit-scrollbar {
  display: none;
}

.why-metrics div {
  min-width: 98px;
}

.feed-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
}

.source-open-panel,
.audio-stage {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

@media (min-width: 1500px) {
  .feed-grid {
    grid-template-columns: repeat(4, minmax(255px, 1fr));
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(230px, 270px) minmax(200px, 1fr) auto;
    gap: 12px;
  }

  .trust-note {
    display: none;
  }

  .why-these {
    grid-template-columns: 1fr;
  }

  .why-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .why-metrics div {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand-row {
    width: 100%;
  }

  .search-row {
    max-width: none;
    width: 100%;
  }

  .need-console {
    width: 100%;
    overflow: hidden;
  }

  .need-chip-row {
    width: 100%;
  }

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

  .source-open-panel,
  .audio-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  :root {
    --header-height: 120px;
  }

  .topbar {
    padding: 8px 12px 10px;
  }

  .brand-row {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .search-form {
    height: 42px;
    border-radius: 15px;
  }

  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .need-console {
    padding: 18px 14px;
  }

  .console-label {
    font-size: 25px;
    line-height: 1.08;
    max-width: 100%;
  }

  .need-copy {
    font-size: 14px;
  }

  .need-chip {
    min-height: 36px;
    padding: 0 12px;
  }

  .why-these {
    padding: 14px;
  }

  .why-metrics {
    gap: 8px;
  }

  .why-metrics div {
    padding: 9px;
  }

  .feed-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .select-control {
    width: 100%;
  }

  .select-control select {
    flex: 1;
    min-width: 0;
  }

  .source-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .source-tab {
    min-width: 0;
  }

  .modal-backdrop {
    padding: 12px;
  }
}

/* POSITUBE speed + gloss pass */
:root {
  --header-height: 72px;
  --tap-fast: 95ms;
  --shine-line: rgba(255, 255, 255, 0.22);
  --shine-soft: rgba(255, 255, 255, 0.08);
  --neon-pink: rgba(255, 44, 168, 0.5);
  --neon-blue: rgba(35, 200, 255, 0.44);
}

button,
a,
label,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
.check-pill span,
.source-tab,
.thumb-wrap,
.video-card {
  touch-action: manipulation;
}

.icon-button,
.upload-button,
.nav-item,
.need-chip,
.refresh-feed,
.video-card,
.thumb-wrap img,
.source-thumb-visual,
.mini-action,
.action-pill,
.source-tab,
.check-pill span,
.primary-button,
.ghost-button,
.subscribe,
.search-submit,
.title-row,
.back-button {
  transition-duration: var(--tap-fast) !important;
}

button:active,
a[role="button"]:active,
.upload-button:active,
.primary-button:active,
.ghost-button:active,
.refresh-feed:active,
.subscribe:active,
.mini-action:active,
.action-pill:active,
.need-chip:active,
.nav-item:active,
.source-tab:active,
.check-pill:active span {
  transform: translateY(1px) scale(0.985);
  filter: brightness(1.12) saturate(1.12);
}

body {
  background:
    radial-gradient(860px 520px at 86% -7%, rgba(255, 44, 168, 0.36), transparent 58%),
    radial-gradient(720px 420px at 8% 16%, rgba(35, 200, 255, 0.28), transparent 60%),
    radial-gradient(680px 420px at 74% 100%, rgba(255, 155, 25, 0.18), transparent 62%),
    linear-gradient(180deg, #02030b 0%, #061126 46%, #071a33 100%);
}

body::before {
  opacity: 0.3;
  filter: saturate(1.25);
}

body::after {
  opacity: 0.11;
  filter:
    saturate(1.55)
    drop-shadow(0 0 42px rgba(35, 200, 255, 0.38))
    drop-shadow(0 0 62px rgba(255, 44, 168, 0.42));
}

.topbar {
  height: 72px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 46%),
    rgba(3, 6, 18, 0.88);
  border-bottom-color: rgba(160, 184, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.brand-mark {
  transform: translateZ(0);
  filter:
    drop-shadow(0 0 10px rgba(35, 200, 255, 0.82))
    drop-shadow(0 0 24px rgba(255, 44, 168, 0.52));
}

.brand-name {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.42), 0 0 34px rgba(35, 200, 255, 0.28);
}

.search-form,
.trust-note,
.why-these,
.video-card,
.native-stage,
.audio-stage,
.article-reader,
.article-file-stage,
.source-open-panel,
.watch-need-note,
.description,
.side-video,
.library-row,
.modal {
  position: relative;
  isolation: isolate;
}

.search-form::before,
.trust-note::before,
.video-card::before,
.source-open-panel::before,
.modal::before,
.why-these::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, var(--shine-line), transparent 28%, transparent 72%, rgba(35, 200, 255, 0.08));
  opacity: 0.68;
}

.upload-button,
.primary-button,
.refresh-feed,
.subscribe {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(135deg, #7b2cff 0%, #ff2ca8 48%, #ff9b19 100%);
  box-shadow:
    0 0 24px rgba(255, 44, 168, 0.42),
    0 14px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.upload-button::after,
.primary-button::after,
.refresh-feed::after,
.subscribe::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 44%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.upload-button:hover::after,
.primary-button:hover::after,
.refresh-feed:hover::after,
.subscribe:hover::after {
  animation: positube-shine 680ms ease-out;
}

@keyframes positube-shine {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(420%) skewX(-18deg);
  }
}

.layout {
  grid-template-columns: 238px minmax(0, 1fr);
}

.sidebar {
  padding: 12px 10px 20px;
}

.nav-list {
  gap: 4px;
}

.nav-item {
  min-height: 36px;
  border-radius: 9px;
}

.main {
  padding: 18px 22px 56px;
}

.need-console {
  min-height: 152px;
  margin-bottom: 14px;
  padding: 24px 28px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 30%),
    radial-gradient(420px 180px at 84% 38%, rgba(255, 155, 25, 0.48), transparent 65%),
    radial-gradient(640px 240px at 92% 80%, rgba(255, 44, 168, 0.5), transparent 68%),
    linear-gradient(112deg, rgba(255, 230, 218, 0.98) 0%, rgba(255, 154, 108, 0.94) 45%, rgba(128, 43, 255, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 34px rgba(255, 44, 168, 0.32),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.need-console::after {
  opacity: 0.78;
}

.console-label {
  font-size: 28px;
}

.need-chip-row {
  gap: 7px;
}

.need-chip {
  min-height: 36px;
  padding: 0 12px;
}

.why-these {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
}

.why-metrics div {
  min-width: 78px;
  padding: 7px 9px;
}

.feed-heading-row {
  margin: 16px 0 12px;
}

.feed-grid,
.continue-rail,
.recommendations,
.shorts-grid,
.library-list {
  gap: 14px;
}

.video-card {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(18, 31, 64, 0.9), rgba(7, 17, 42, 0.97));
  transform: translateZ(0);
  will-change: transform;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 44, 168, 0.68);
  box-shadow:
    0 0 34px rgba(255, 44, 168, 0.26),
    0 18px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.thumb-wrap {
  border-radius: 14px 14px 0 0;
}

.video-body {
  gap: 8px;
  padding: 12px;
}

.video-title {
  font-size: 15.5px;
  line-height: 1.24;
}

.card-actions {
  gap: 4px;
  margin-top: 7px;
}

.mini-action {
  min-height: 30px;
}

.watch-shell {
  gap: 18px;
}

.watch-title {
  margin: 14px 0 9px;
}

.watch-need-note,
.description,
.channel-card {
  padding-block: 12px;
}

.modal-backdrop {
  backdrop-filter: blur(18px) saturate(1.2);
}

.modal {
  border-radius: 16px;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.56),
    0 0 42px rgba(255, 44, 168, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modal-header,
.modal-body,
.modal-actions {
  padding: 16px;
}

.source-tab {
  min-height: 66px;
}

.field input,
.field textarea,
.field select {
  padding: 10px 11px;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 36px rgba(255, 44, 168, 0.5), 0 16px 30px rgba(0, 0, 0, 0.36);
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 228px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 116px;
  }

  .topbar {
    height: var(--header-height);
  }

  .layout {
    display: block;
  }

  .main {
    padding: 14px 14px 94px;
  }

  .need-console {
    min-height: auto;
    padding: 18px 14px;
  }

  .video-card:hover {
    transform: none;
  }
}
