:root {
  color-scheme: dark;
  --bg: #0f1117;
  --panel: #171a22;
  --panel-2: #1d2029;
  --panel-3: #252938;
  --panel-4: #2e3345;
  --line: #2f3444;
  --text: #f3f5fb;
  --muted: #a2a7b8;
  --soft: #7e859b;
  --chip: #262b39;
  --chip-active-bg: #f7f8fb;
  --chip-active-text: #141821;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body.theme-light {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f4f5f9;
  --panel-3: #eaedf4;
  --panel-4: #dfe5ef;
  --line: #d8ddea;
  --text: #171b24;
  --muted: #61697d;
  --soft: #7d8498;
  --chip: #eceff5;
  --chip-active-bg: #11151e;
  --chip-active-text: #ffffff;
  --shadow: 0 18px 40px rgba(16, 21, 31, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 12px 10px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.nav-link,
.leaderboard-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.leaderboard-link:hover {
  background: var(--panel-3);
}

.sidebar-divider {
  height: 1px;
  margin: 10px 0;
  background: var(--line);
}

.nav-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.nav-icon::before,
.nav-icon::after,
.search-icon::before,
.search-icon::after,
.voice-icon::before,
.voice-icon::after,
.top-icon-plus span::before,
.top-icon-plus span::after,
.top-icon-bell span::before,
.top-icon-bell span::after {
  content: "";
  position: absolute;
}

.nav-icon-home::before {
  inset: 5px 2px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.nav-icon-home::after {
  left: 3px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-icon-quicks::before {
  left: 2px;
  top: 4px;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.nav-icon-quicks::after {
  left: 8px;
  top: 4px;
  width: 2px;
  height: 12px;
  background: currentColor;
  transform: skewX(-22deg);
}

.nav-icon-subs::before {
  inset: 3px 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-icon-subs::after {
  left: 8px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.nav-icon-library::before {
  left: 4px;
  top: 2px;
  width: 12px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-icon-library::after {
  left: 8px;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
}

.nav-icon-history::before {
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon-history::after {
  left: 9px;
  top: 5px;
  width: 2px;
  height: 6px;
  background: currentColor;
  box-shadow: 4px 4px 0 -1px currentColor;
  transform-origin: bottom center;
}

.subscription-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-panel h2 {
  margin: 0 10px;
  font-size: 16px;
}

.subscription-list {
  display: grid;
  gap: 4px;
}

.subscription-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.subscription-item:hover,
.subscription-item.is-active {
  background: var(--panel-3);
}

.subscription-avatar,
.account-avatar,
.account-summary-avatar,
.feed-avatar,
.watch-avatar,
.channel-avatar,
.comment-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
}

.subscription-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 13px;
}

.settings-button {
  margin-top: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.settings-gear {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: url("settings-gear.svg") center / contain no-repeat;
  mask: url("settings-gear.svg") center / contain no-repeat;
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(10px);
}

body.theme-light .topbar {
  background: rgba(246, 247, 251, 0.95);
}

.topbar-brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-button,
.top-icon-button,
.voice-action,
.search-action {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.menu-button:hover,
.top-icon-button:hover,
.voice-action:hover,
.search-action:hover {
  background: var(--panel-3);
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-button span + span {
  margin-top: 4px;
}

.brand-button {
  display: flex;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #7b4dff url("logo.svg?v=20260618b") center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(123, 77, 255, 0.3);
  flex: 0 0 auto;
}

.search-shell {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.search-shell input {
  width: min(100%, 620px);
  height: 42px;
  border-radius: 999px 0 0 999px;
  border-right: 0;
  background: var(--panel);
}

.search-action {
  width: 60px;
  height: 42px;
  margin-left: -10px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: var(--panel);
}

.voice-action {
  background: var(--panel);
  border: 1px solid var(--line);
}

.search-icon,
.voice-icon,
.top-icon-plus span,
.top-icon-bell span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.search-icon::before {
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.voice-icon::before {
  left: 5px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.voice-icon::after {
  left: 8px;
  top: 13px;
  width: 2px;
  height: 5px;
  background: currentColor;
  box-shadow: -3px 6px 0 0 currentColor, 3px 6px 0 0 currentColor;
}

.top-icon-plus span::before {
  left: 8px;
  top: 1px;
  width: 2px;
  height: 16px;
  background: currentColor;
}

.top-icon-plus span::after {
  left: 1px;
  top: 8px;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.top-icon-bell span::before {
  left: 4px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.top-icon-bell span::after {
  left: 3px;
  top: 13px;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 5px 5px 0 -4px currentColor;
}

.account-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.account-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.account-avatar-brand {
  background: #7b4dff url("logo.svg?v=20260618b") center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(123, 77, 255, 0.24);
  color: transparent;
  font-size: 0;
}

.content-shell {
  padding: 16px 22px 30px;
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow: auto hidden;
  padding-bottom: 12px;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--chip);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
}

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

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

.thumb-wrap {
  position: relative;
}

.thumb-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.7) 0%, rgba(8, 10, 14, 0.1) 45%, rgba(8, 10, 14, 0.15) 100%);
}

.feed-avatar {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 46px;
  height: 46px;
  font-size: 17px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.thumb-title {
  position: absolute;
  left: 72px;
  right: 12px;
  top: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.24;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.thumb-title-button,
.feed-avatar-button {
  padding: 0;
  color: inherit;
}

.feed-avatar-button {
  position: absolute;
  left: 14px;
  top: 14px;
}

.thumb-title-button {
  position: absolute;
  left: 72px;
  right: 12px;
  top: 12px;
  padding-right: 12px;
}

.duration-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.video-meta {
  padding-top: 10px;
}

.video-card:hover .thumb-button {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.video-card:hover .thumb-button img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.video-card:hover .channel-line {
  color: var(--text);
}

.video-meta .channel-line {
  color: var(--muted);
  font-size: 14px;
}

.video-meta .stats-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 26px 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading h2,
.comments-head h2,
.watch-side h2,
.subscription-panel h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p,
.comments-head span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.quicks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}

.quicks-player-shell {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#quicksPlayer {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.quicks-copy h3 {
  margin: 14px 0 6px;
  font-size: 22px;
}

.quicks-copy p {
  margin: 0;
  color: var(--muted);
}

.quicks-list,
.up-next-list,
.leaderboard-list,
.comment-list {
  display: grid;
  gap: 12px;
}

.channel-quicks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.quick-card,
.up-next-item,
.leaderboard-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
}

.quick-thumb,
.up-next-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  aspect-ratio: 9 / 16;
}

.up-next-thumb {
  aspect-ratio: 16 / 9;
}

.quick-thumb img,
.up-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-copy strong,
.up-next-copy strong,
.leaderboard-copy strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}

.quick-copy span,
.up-next-copy span,
.leaderboard-copy span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.channel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.channel-main {
  min-width: 0;
}

.channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.channel-badge-silver {
  background: #8f8f92;
}

.channel-badge-gold {
  background: #ffe500;
  color: #1a1a1a;
}

.channel-badge-blue {
  background: #1897d5;
}

.channel-badge-purple {
  background: linear-gradient(135deg, #6800ff, #d445ff);
}

.channel-badge-green {
  background: #22b81f;
}

.channel-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.channel-avatar {
  width: 134px;
  height: 134px;
  flex: 0 0 134px;
  font-size: 66px;
}

.channel-copy h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.06;
}

.channel-copy p {
  margin: 10px 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.channel-stats {
  color: var(--text);
  font-weight: 700;
}

.channel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill-button,
.watch-actions button,
.primary-action,
.secondary-action,
.mode-button,
.toggle-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel-3);
}

.primary-pill,
.primary-action {
  background: #f3f5fb;
  color: #12151d;
  font-weight: 700;
}

.danger-action {
  background: #5e1820;
  color: #ffe4e7;
  border: 1px solid rgba(255, 133, 147, 0.28);
}

.danger-action:hover {
  background: #76202a;
}

.pill-button.is-active,
.mode-button.is-active,
.toggle-pill.is-active {
  background: #f3f5fb;
  color: #12151d;
  font-weight: 700;
}

body.theme-light .pill-button.is-active,
body.theme-light .mode-button.is-active,
body.theme-light .toggle-pill.is-active,
body.theme-light .primary-action {
  background: #141822;
  color: #fff;
}

.channel-quicks-wrap h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.channel-quick-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: left;
  scroll-snap-align: start;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.channel-quick-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
}

.channel-quick-card:hover {
  transform: translateY(-1px);
  background: var(--panel-3);
  border-color: rgba(255, 255, 255, 0.16);
}

.channel-quick-copy {
  min-width: 0;
}

.channel-quick-copy strong,
.channel-quick-copy span {
  display: block;
}

.channel-quick-copy strong {
  font-size: 16px;
  line-height: 1.28;
  color: var(--text);
}

.channel-quick-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 22px;
}

.back-button {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-3);
}

.player-shell {
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

#watchPlayer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.watch-title {
  margin: 16px 0 14px;
  font-size: 28px;
}

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

.watch-channel-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  text-align: left;
}

.watch-avatar {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.watch-channel-copy strong {
  display: block;
}

.watch-channel-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.watch-description {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
  line-height: 1.55;
  color: var(--muted);
}

.comments-shell {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
}

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.comment-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.comment-form input {
  min-width: 0;
}

.comment-form-actions,
.summary-actions,
.mode-row,
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wide-action {
  width: 100%;
}

.comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-head strong {
  font-size: 15px;
}

.comment-head span,
.comment-item p {
  color: var(--muted);
}

.comment-item p {
  margin: 8px 0 10px;
  color: var(--text);
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vibe-button,
.text-link-button {
  padding: 0;
  color: var(--muted);
}

.vibe-button:hover,
.text-link-button:hover {
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 11, 0.72);
  z-index: 80;
}

.modal-card {
  position: relative;
  width: min(100%, 720px);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-modal,
.upload-modal {
  width: min(100%, 560px);
}

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

.leaderboard-modal {
  width: min(100%, 760px);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--panel-3);
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

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

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: #ff9595;
  font-size: 14px;
}

.account-summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
}

.account-summary-avatar {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.account-summary strong,
.account-summary span {
  display: block;
}

.account-summary p {
  margin: 8px 0 0;
}

.leaderboard-row {
  grid-template-columns: 54px 48px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.leaderboard-rank {
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.leaderboard-stats {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.upload-file-name {
  margin-bottom: 14px;
  color: var(--muted);
}

.upload-thumb-preview {
  min-height: 0;
}

.upload-thumb-preview img {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  display: block;
}

.drop-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 18, 0.72);
  z-index: 90;
}

.drop-card {
  padding: 24px 28px;
  border: 2px dashed rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background: rgba(15, 18, 25, 0.9);
  text-align: center;
}

.drop-card strong,
.drop-card span {
  display: block;
}

.drop-card span {
  margin-top: 8px;
  color: var(--muted);
}

.made-in-tag {
  position: fixed;
  right: 16px;
  bottom: 12px;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-color-red,
.feed-color-red {
  background: #e84d4d;
}

.account-color-orange,
.feed-color-orange {
  background: #ef7a29;
}

.account-color-yellow,
.feed-color-yellow {
  background: #d4a300;
}

.account-color-green,
.feed-color-green {
  background: #1ea861;
}

.account-color-blue,
.feed-color-blue {
  background: #3578e5;
}

.account-color-purple,
.feed-color-purple {
  background: #7c4dff;
}

.account-color-pink,
.feed-color-pink {
  background: #d24b8e;
}

.account-color-brown,
.feed-color-brown {
  background: #8b5a3d;
}

.account-color-grey,
.feed-color-grey {
  background: #7e8798;
}

.account-color-white,
.feed-color-white {
  background: #d8dde9;
  color: #111;
}

.account-color-black,
.feed-color-black {
  background: #111;
}

.account-color-rainbow,
.feed-color-rainbow {
  background: linear-gradient(135deg, #7a4cff, #ff6a7d);
}

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

  .channel-hero,
  .quicks-layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .channel-quicks {
    grid-auto-columns: minmax(240px, 280px);
  }
}

@media (max-width: 940px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .nav-link span:last-child,
  .leaderboard-link,
  .subscription-panel h2,
  .subscription-item span:last-child {
    display: none;
  }

  .nav-link {
    justify-content: center;
  }

  .subscription-item {
    justify-content: center;
  }

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

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .search-shell {
    order: 3;
    width: 100%;
  }

  .watch-meta-row,
  .comments-head,
  .comment-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .quick-card,
  .up-next-item,
  .leaderboard-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    gap: 8px;
  }

  .channel-head {
    flex-direction: column;
  }
}
