:root {
  --yt-bg: #0f0f0f;
  --yt-elevated: #212121;
  --yt-hover: #3f3f3f;
  --yt-text: #f1f1f1;
  --yt-muted: #aaaaaa;
  --yt-accent: #ff0000;
  --yt-link: #3ea6ff;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--yt-bg);
  color: var(--yt-text);
  line-height: 1.45;
}
a { color: var(--yt-link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; background: #000; position: sticky; top: 0; z-index: 20;
}
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; display: inline-flex; align-items: center; }
.logo img { display: block; height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.logo:hover { text-decoration: none; color: var(--yt-accent); }
.home-promos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 20px;
}
.home-promos__card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 10;
}
.home-promos__card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-promos__card span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff; font-weight: 650; font-size: 0.9rem;
}
.home-promos__card:hover { text-decoration: none; outline: 1px solid #555; }
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px 40px;
  align-items: stretch;
}
.auth-split__art {
  border-radius: 12px; overflow: hidden; min-height: 420px; background: #1a1a1a;
}
.auth-split__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-split .auth-box { margin: 0; max-width: none; }
.art.art--sm { max-height: 220px; }
.form-wrap .art { width: 100%; border-radius: 12px; margin: 0 0 14px; max-height: 240px; object-fit: cover; }
.form-wrap form + .art { margin-top: 28px; }
@media (max-width: 900px) {
  .home-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-split__art { max-height: 240px; min-height: 180px; }
}
@media (max-width: 520px) {
  .home-promos { grid-template-columns: 1fr; }
}
.search { flex: 1; display: flex; max-width: 640px; }
.search input {
  flex: 1; padding: 10px 14px; border: 0; border-radius: 40px 0 0 40px;
  background: var(--yt-elevated); color: var(--yt-text);
}
.search button {
  padding: 10px 18px; border: 0; border-radius: 0 40px 40px 0;
  background: var(--yt-hover); color: var(--yt-text); cursor: pointer;
}
.site-header nav { display: flex; gap: 14px; }
.site-header nav a { color: var(--yt-text); font-size: 0.9rem; }
.muted { color: var(--yt-muted); }
.cat-nav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 10px 20px; background: #141414; border-bottom: 1px solid #222;
  overflow-x: auto;
}
.cat-nav__item {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
  background: var(--yt-elevated); color: var(--yt-text); font-size: 0.85rem;
}
.cat-nav__item:hover { text-decoration: none; background: var(--yt-hover); }
.cat-nav__item.is-active { background: #fff; color: #0f0f0f; font-weight: 600; }
.cat-children {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.cat-tree { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.cat-tree__group h2 {
  font-size: 1.05rem; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline;
}
.cat-tree__group h2 a { color: var(--yt-text); }
.cat-list { list-style: none; padding: 0; margin: 0 0 24px; max-width: 640px; }
.cat-list--nested { margin: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.cat-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #222;
}
.cat-list a { color: var(--yt-text); font-weight: 600; }
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 16px 0 8px; padding-top: 8px;
}
.pager__links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pager__links a, .pager__current {
  min-width: 36px; text-align: center; padding: 8px 10px; border-radius: 8px;
  background: var(--yt-elevated); color: var(--yt-text);
}
.pager__links a:hover { text-decoration: none; background: var(--yt-hover); }
.pager__current { background: #fff; color: #0f0f0f; font-weight: 700; }
.site-footer {
  border-top: 1px solid #222; padding: 24px; text-align: center;
  color: var(--yt-muted); font-size: 0.85rem;
}
.site-footer a { color: var(--yt-muted); margin: 0 8px; }
.site-footer__links { margin-bottom: 10px; }
.site-footer__copy { margin: 0 0 14px; }
.site-footer__compliance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.site-footer__compliance a {
  display: inline-block;
  margin: 0;
  line-height: 0;
  opacity: 0.95;
}
.site-footer__compliance a:hover { opacity: 1; }
.site-footer__compliance img {
  display: block;
  height: auto;
  max-width: 140px;
  background: #fff;
  border-radius: 2px;
}
.site-footer__compliance .dmca-badge img {
  background: transparent;
  max-width: 121px;
}

.rommie-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0 8px;
}
.rommie-badge a {
  display: inline-block;
  line-height: 0;
  opacity: 0.92;
}
.rommie-badge a:hover { opacity: 1; }
.rommie-badge img { display: block; width: 110px; height: auto; }
.rommie-badge--browse { margin: 28px auto 4px; }
.rommie-badge--watch {
  justify-content: flex-start;
  margin: 14px 0 0;
}
.meta-desc--trust { margin-top: 12px; }

.watch-related-strip {
  margin: 18px 0 4px;
}
.watch-related-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
}
.watch-related-strip__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.watch-related-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.watch-related-strip__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  min-width: 0;
}
.watch-related-strip__card:hover { text-decoration: none; }
.watch-related-strip__card img,
.watch-related-strip__card .related-card__ph,
.watch-related-strip__card .video-card__embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1a1a;
  display: block;
}
.watch-related-strip__card .video-card__embed {
  position: relative;
  overflow: hidden;
}
.watch-related-strip__card .video-card__embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.watch-related-strip__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.watch-related-strip__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-related-strip__meta small { font-size: 0.75rem; }
@media (max-width: 700px) {
  .watch-related-strip__grid { grid-template-columns: 1fr; }
}

.watch-slot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}
@media (max-width: 700px) {
  .watch-slot-pair { grid-template-columns: 1fr; }
}
.watch-slot-pair--after-comments { margin-top: 20px; }

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
}
.playlist-add { position: relative; }
.playlist-add__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  background: #1a1a1a;
  border: 1px solid #3f3f3f;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.playlist-add__list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 200px;
  overflow: auto;
}
.playlist-add__item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.playlist-add__item:hover { background: #2a2a2a; }
.playlist-add__create {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #333;
  padding-top: 10px;
}
.playlist-add__create input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #3f3f3f;
  background: #121212;
  color: #fff;
}

/* Playlist directory rows */
.playlist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
  margin: 16px 0 24px;
}
@media (max-width: 820px) {
  .playlist-list { grid-template-columns: 1fr; }
}
.playlist-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--yt-surface, #1a1a1a);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  min-width: 0;
}
.playlist-row:hover {
  background: #252525;
  text-decoration: none;
}
.playlist-row__thumb,
.playlist-row__thumb img,
.playlist-row__thumb .video-card__embed,
.playlist-row__ph {
  flex: 0 0 168px;
  width: 168px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  object-fit: cover;
  background: #111;
}
.playlist-row__thumb .video-card__embed-frame {
  width: 320px;
  height: 180px;
  transform: scale(0.525);
  transform-origin: top left;
}
.playlist-row__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.playlist-row__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yt-text, #fff);
}
.playlist-row__count { font-size: 0.9rem; }

.playlist-section { margin: 28px 0 0; }
.playlist-section:first-of-type { margin-top: 16px; }
.playlist-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.playlist-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.playlist-section__head h2 { margin: 0; }
.playlist-section--search { margin-bottom: 20px; }
.search-videos-head {
  margin: 24px 0 10px;
  font-size: 1.15rem;
}
.playlist-list__ad {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
}

/* Watch sidebar playlist blocks */
.watch-playlist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.watch-playlist-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.playlist-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.playlist-mini:hover { text-decoration: none; opacity: 0.92; }
.playlist-mini__thumb,
.playlist-mini__thumb img,
.playlist-mini__thumb .video-card__embed,
.playlist-mini__ph {
  flex: 0 0 80px;
  width: 80px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  object-fit: cover;
  background: #111;
}
.playlist-mini__thumb .video-card__embed-frame {
  width: 320px;
  height: 180px;
  transform: scale(0.25);
  transform-origin: top left;
}
.playlist-mini__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.playlist-mini__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--yt-text, #fff);
}
.playlist-mini__count { font-size: 0.78rem; }

.playlist-view__actions { margin: 12px 0 20px; }

.watch-playlist-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}
.watch-playlist-nav__pos { font-size: 0.9rem; }
.watch-playlist-nav .is-disabled { opacity: 0.45; pointer-events: none; }

.watch-playlist-queue {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.watch-playlist-queue__item { margin: 0; }
.watch-playlist-queue__item.is-current .watch-playlist-queue__link {
  background: #2a2a2a;
  border-color: #555;
}
.watch-playlist-queue__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
}
.watch-playlist-queue__link:hover { background: #222; text-decoration: none; }
.watch-playlist-queue__index {
  width: 1.4rem;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.82rem;
}
.watch-playlist-queue__thumb,
.watch-playlist-queue__thumb img,
.watch-playlist-queue__thumb .video-card__embed,
.watch-playlist-queue__ph {
  flex: 0 0 84px;
  width: 84px;
  height: 47px;
  border-radius: 6px;
  overflow: hidden;
  object-fit: cover;
  background: #111;
}
.watch-playlist-queue__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.watch-playlist-queue__title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--yt-text, #fff);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-list--account { max-width: none; }
.playlist-row--account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--yt-surface, #1a1a1a);
}
.playlist-row--account .playlist-row__link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.playlist-row__account-actions { flex-shrink: 0; }

.playlist-edit { max-width: 900px; }
.playlist-edit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.playlist-edit__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1a1a1a;
}
.playlist-edit__pos { width: 1.5rem; text-align: right; flex-shrink: 0; }
.playlist-edit__thumb,
.playlist-edit__thumb img,
.playlist-edit__ph {
  flex: 0 0 120px;
  width: 120px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  object-fit: cover;
  background: #111;
}
.playlist-edit__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playlist-edit__info a { font-weight: 600; color: var(--yt-text, #fff); }
.playlist-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.inline-form { display: inline-flex; gap: 4px; margin: 0; }
.inline-form button { padding: 6px 10px; font-size: 0.85rem; }

.watch-comments {
  margin: 28px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #222;
}
.watch-comments__title {
  margin: 0 0 14px;
  font-size: 1.2rem;
}
.watch-comments__form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3f3f3f;
  background: #121212;
  color: #fff;
  resize: vertical;
}
.watch-comments__form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.comment {
  padding: 12px 0;
  border-bottom: 1px solid #222;
}
.comment--reply {
  margin: 10px 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid #333;
  border-bottom: 0;
}
.comment__head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.comment__body {
  margin: 0;
  color: #ddd;
  line-height: 1.45;
  white-space: pre-wrap;
}
.comment__reply {
  margin-top: 6px;
  background: none;
  border: 0;
  color: #3ea6ff;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

/* Browse tube layout; YouTube-style: left cats | main | right ads */
.browse-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}
.browse-main { min-width: 0; }
.browse-section { margin-bottom: 8px; }
.browse-section h2 { font-size: 1.1rem; margin: 8px 0 12px; }
.browse-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 72px; align-self: start;
}
.browse-nav {
  position: sticky; top: 72px; align-self: start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 8px 6px 24px 0;
  border-right: 1px solid #222;
}
.browse-nav__divider {
  height: 1px; background: #2a2a2a; margin: 10px 8px;
}
.browse-nav__link,
.browse-nav__parent {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--yt-text);
  font-size: 0.9rem;
  text-decoration: none;
}
.browse-nav__link:hover,
.browse-nav__parent:hover {
  background: var(--yt-hover);
  text-decoration: none;
}
.browse-nav__link.is-active,
.browse-nav__summary.is-active .browse-nav__parent {
  background: var(--yt-elevated);
  font-weight: 650;
}
.browse-nav__group { margin: 2px 0; }
.browse-nav__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  padding-right: 8px;
}
.browse-nav__summary::-webkit-details-marker { display: none; }
.browse-nav__summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--yt-muted);
  font-size: 0.75rem;
}
.browse-nav__group:not([open]) .browse-nav__summary::after { content: "▸"; }
.browse-nav__summary .browse-nav__parent { flex: 1; min-width: 0; }
.browse-nav__children {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px 8px;
}
.browse-nav__children .browse-nav__link {
  font-size: 0.85rem;
  color: var(--yt-muted);
  padding: 6px 12px;
}
.browse-nav__children .browse-nav__link.is-active { color: var(--yt-text); }
.nav-toggle {
  display: none;
  border: 0; background: var(--yt-elevated); color: #fff;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.2rem;
}
.cat-nav { display: none; } /* legacy top pills removed from chrome */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 1280px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-grid__native {
  grid-column: span 2;
  min-height: 120px;
}
.video-card {
  display: flex; flex-direction: column; color: inherit;
  background: var(--yt-elevated); border-radius: 10px; overflow: hidden;
}
.video-card:hover { text-decoration: none; filter: brightness(1.06); }
.video-card img, .video-card__ph, .video-card__embed {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #1a1a1a; display: block;
}
.video-card__embed {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.video-card__embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  /* Scale so letterboxing / chrome is less obvious in the 16:9 crop */
  transform: scale(1.35);
  transform-origin: center center;
}
.video-card__embed-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}
.video-card__title {
  padding: 8px 10px 2px; font-size: 0.9rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card__meta { padding: 0 10px 10px; font-size: 0.75rem; color: var(--yt-muted); }

/* Watch layout */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}
.watch-main { min-width: 0; }
.player {
  position: relative; padding-bottom: 56.25%; background: #000;
  border-radius: 12px; overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.meta { margin-top: 16px; }
.meta h1 { margin: 0 0 8px; font-size: 1.35rem; }
.meta-stats { margin: 0 0 12px; }
.meta-stats a { color: var(--yt-muted); }
.watch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.watch-actions .btn { margin: 0; }
.vote-bar {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #3f3f3f;
  border-radius: 10px;
  overflow: hidden;
  background: var(--yt-elevated);
}
.vote-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--yt-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.vote-bar__btn + .vote-bar__btn {
  border-left: 1px solid #3f3f3f;
}
.vote-bar__btn:hover { background: var(--yt-hover); }
.vote-bar__btn.is-active {
  background: #2a2a2a;
  color: #fff;
}
.vote-bar__btn.is-up.is-active { color: #3ea6ff; }
.vote-bar__btn.is-down.is-active { color: #ff6b6b; }
.vote-bar__icon { font-size: 1rem; line-height: 1; }
.vote-bar__count { font-variant-numeric: tabular-nums; min-width: 1ch; }
.continue-rail.is-hidden { display: none !important; }
.share-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 16px; padding: 12px 0; border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.share-row__label { color: var(--yt-muted); font-size: 0.85rem; font-weight: 600; }
.share-row__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-block; padding: 7px 12px; border-radius: 8px; border: 0;
  background: var(--yt-elevated); color: var(--yt-text); font-size: 0.8rem; cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { background: var(--yt-hover); text-decoration: none; }
.meta-grid {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px;
  margin: 0 0 12px; font-size: 0.95rem;
}
.meta-grid dt { color: var(--yt-muted); margin: 0; }
.meta-grid dd { margin: 0; }
.meta-desc { margin-top: 8px; color: #ddd; }
.tags a { margin-right: 8px; color: #aaa; }
.tags--keywords { margin: 0 0 8px; }
.claim-banner {
  background: var(--yt-elevated); padding: 12px 16px; border-radius: 8px; margin: 12px 0;
}
.watch-sidebar { display: flex; flex-direction: column; gap: 14px; }
.watch-related-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px;
}
.watch-related-title { font-size: 1rem; margin: 0; }
.watch-related-more { font-size: 0.85rem; }
.watch-related { display: flex; flex-direction: column; gap: 10px; }
.related-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 10px; color: inherit; align-items: start;
}
.related-card:hover { text-decoration: none; }
.related-card img, .related-card__ph, .related-card .video-card__embed {
  width: 168px; height: 94px; object-fit: cover; border-radius: 8px; background: #1a1a1a;
}
.related-card .video-card__embed {
  position: relative;
  display: block;
  overflow: hidden;
  pointer-events: none;
  aspect-ratio: auto;
}
.related-card .video-card__embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: scale(1.4);
  transform-origin: center center;
}
.related-card span {
  font-size: 0.85rem; font-weight: 600;
  display: flex; flex-direction: column; gap: 4px;
}
.related-card small { font-weight: 400; }

/* Promo slots (neutral names — avoid EasyList ad-* class hits) */
.side-slot, .center-slot, .player-slot {
  position: relative;
  background: #181818;
  border: 1px dashed #333;
  border-radius: 8px;
  min-height: 60px;
  overflow: hidden;
}
.rs-slot__body {
  display: flex; align-items: center; justify-content: center;
  min-height: inherit; padding: 4px; width: 100%;
}
.rs-slot__body img, .rs-slot__body iframe {
  max-width: 100%; display: block;
}
.side-slot.is-empty .rs-slot__body::after,
.side-slot.is-disabled .rs-slot__body::after,
.center-slot.is-empty .rs-slot__body::after,
.center-slot.is-disabled .rs-slot__body::after,
.player-slot.is-empty .rs-slot__body::after,
.player-slot.is-disabled .rs-slot__body::after {
  content: "Slot";
  color: #555;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.side-slot.is-disabled,
.center-slot.is-disabled,
.player-slot.is-disabled { opacity: 0.35; }
.rs-slot--h-sm { min-height: 90px; }
.rs-slot--h-full { min-height: 90px; margin: 12px 0 20px; }
.rs-slot--v-lg { min-height: 250px; }
.rs-slot--native { min-height: 140px; height: 100%; }
.rs-slot--thumb { min-height: 120px; }
.rs-slot--square { min-height: 250px; aspect-ratio: 1; max-width: 300px; }
.rs-slot--float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: min(320px, calc(100vw - 32px));
  min-height: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  border-style: solid;
}
.rs-slot__dismiss {
  position: absolute; top: 4px; right: 6px; z-index: 2;
  border: 0; background: rgba(0,0,0,.65); color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}

@media (max-width: 1100px) {
  .browse-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .browse-sidebar { display: none; }
}
@media (max-width: 980px) {
  .browse-layout, .watch-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .browse-nav {
    display: block;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40;
    width: min(300px, 88vw);
    background: #0f0f0f;
    border-right: 1px solid #333;
    padding: 64px 12px 24px;
    max-height: none;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: none;
  }
  body.nav-open .browse-nav {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,.55);
  }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 35;
    background: rgba(0,0,0,.55);
  }
  body.nav-open .nav-backdrop { display: block; }
  .browse-sidebar { position: static; flex-direction: row; flex-wrap: wrap; display: flex; }
  .browse-sidebar .side-slot { flex: 1 1 240px; }
  .video-grid__native { grid-column: span 1; }
  .watch-slot-pair { grid-template-columns: 1fr; }
  .site-header { gap: 10px; padding: 10px 12px; }
  .site-header nav { display: none; }
  .search { max-width: none; }
}
/* Auth / account */
.auth-box, .account-box {
  max-width: 400px; margin: 48px auto; padding: 24px;
  background: var(--yt-elevated); border-radius: 12px;
}
.auth-box--wide, .account-box { max-width: 720px; }
.account-box { margin: 24px auto; padding: 0 16px 48px; background: transparent; }
.account-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 16px 0 8px; padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}
.account-tabs__item {
  padding: 8px 12px; border-radius: 8px;
  color: var(--yt-muted); font-size: 0.9rem; font-weight: 600;
  background: transparent;
}
.account-tabs__item:hover { text-decoration: none; color: #fff; background: #1a1a1a; }
.account-tabs__item.is-active {
  color: #fff; background: var(--yt-elevated);
}
.auth-box label, .account-section label {
  display: block; margin: 12px 0 4px; color: var(--yt-muted); font-size: 0.85rem;
}
.auth-box input, .account-section input, .account-section textarea {
  width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid #3f3f3f; background: #121212; color: #fff; box-sizing: border-box;
}
.auth-box button, .account-section button {
  margin-top: 16px; width: 100%; padding: 12px; border: 0; border-radius: 8px;
  background: var(--yt-accent, #ff0000); color: #fff; font-weight: 600; cursor: pointer;
}
.account-section button { width: auto; padding: 12px 18px; }
.err { color: #ffb4b4; }
.ok { color: #b4ffc4; }
.flash { padding: 10px; border-radius: 8px; margin: 12px 0; }
.flash.ok { background: #113b1a; }
.flash.err { background: #3b1111; }
.auth-links { margin-top: 12px; }
.form-note { margin: 4px 0 0; font-size: 0.8rem; }
.embed-example code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  word-break: break-all;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #c8c8c8;
}
.hp-trap {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
.role-pick {
  margin: 16px 0 8px; padding: 12px; border: 1px solid #3f3f3f; border-radius: 10px;
}
.role-pick legend { padding: 0 6px; color: #fff; font-weight: 600; }
.role-option {
  display: flex; gap: 10px; align-items: flex-start; margin: 10px 0;
  color: #fff; cursor: pointer;
}
.role-option input { width: auto; margin-top: 4px; }
.role-option small { display: block; color: var(--yt-muted); font-weight: 400; margin-top: 2px; }
.account-section { margin: 16px 0 0; padding-top: 4px; border-top: 0; }
.account-section h2 { margin: 20px 0 8px; font-size: 1.15rem; }
.account-section h2:first-child { margin-top: 0; }
.cf-turnstile { margin-top: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Submit embed */
.form-wrap { max-width: 640px; margin: 24px auto; padding: 0 16px 48px; }
.form-wrap .notice {
  background: #2a1515; border-left: 4px solid var(--yt-accent, #ff0000);
  padding: 14px 16px; border-radius: 8px; margin-bottom: 16px;
}
.form-wrap label { display:block; margin:14px 0 4px; color:var(--yt-muted); font-size:0.85rem; }
.form-wrap input, .form-wrap textarea, .form-wrap select {
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid #3f3f3f;
  background:#212121; color:#f1f1f1; box-sizing: border-box;
}
.embed-autofill {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.embed-autofill textarea { margin: 0; width: 100%; }
.embed-autofill .btn {
  align-self: flex-start;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.9rem;
}
@media (min-width: 560px) {
  .embed-autofill {
    flex-direction: row;
    align-items: stretch;
  }
  .embed-autofill textarea { flex: 1; }
  .embed-autofill .btn {
    align-self: stretch;
    white-space: nowrap;
  }
}
#autofill-status.okbox, #autofill-status.errbox {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
}
.is-hidden { display: none !important; }
.cat-picker__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cat-picker__row select { flex: 1; margin: 0; }
.cat-picker__row .btn {
  margin: 0;
  padding: 10px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-picker__selected {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}
.cat-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
  background: #2a2a2a;
  border: 1px solid #3f3f3f;
  font-size: 0.85rem;
  color: #f1f1f1;
  max-width: 100%;
}
.cat-picker__primary {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  background: #ff6666;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}
.cat-picker__remove {
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}
.cat-picker__remove:hover { color: #fff; }
.form-wrap button.btn, .form-wrap .btn {
  margin-top:18px; margin-bottom:8px; border:0; cursor:pointer; padding:12px 18px;
  border-radius:8px; background:var(--yt-accent,#ff0000); color:#fff; font-weight:600;
}
.okbox { background:#113b1a; color:#b4ffc4; padding:12px; border-radius:8px; }
.errbox { background:#3b1111; color:#ffb4b4; padding:12px; border-radius:8px; }
.partner-list { font-size: 0.85rem; margin: 0 0 16px; }
.earn-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; list-style: none; padding: 0; margin: 12px 0;
}
.earn-stats li {
  background: #212121; border-radius: 10px; padding: 12px;
  color: var(--yt-muted); font-size: 0.85rem;
}
.earn-stats strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.earn-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 8px; }
.earn-table th, .earn-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #333; }

/* Public earn + dashboard */
.earn { max-width: 800px; margin: 0 auto; padding: 24px 16px 48px; }
.earn .art { width:100%; border-radius:12px; margin:16px 0; max-height:320px; object-fit:cover; }
.earn .steps { counter-reset: s; list-style:none; padding:0; }
.earn .steps li {
  counter-increment: s; background:#212121; margin:10px 0;
  padding:14px 16px 14px 48px; border-radius:10px; position:relative;
}
.earn .steps li::before {
  content: counter(s); position:absolute; left:14px; top:14px;
  width:24px; height:24px; border-radius:50%; background:var(--yt-accent,#ff0000);
  display:grid; place-items:center; font-size:0.8rem; font-weight:700;
}
.earn-block { margin: 28px 0; }
.earn-hero-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 8px 0; }
.earn-hero-rate strong { font-size: 2rem; color: #fff; }
.earn-hero-rate span { color: var(--yt-muted); }
.calc {
  background: #212121; border-radius: 12px; padding: 16px;
  max-width: 420px;
}
.calc label { display:block; margin-bottom: 6px; color: var(--yt-muted); font-size: 0.85rem; }
.calc input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #3f3f3f;
  background: #121212; color: #fff; box-sizing: border-box;
}
.calc-out { margin: 14px 0 0; }
.pay table { width:100%; border-collapse:collapse; }
.pay td, .pay th { text-align:left; padding:8px; border-bottom:1px solid #333; }
.caveat { color:var(--yt-muted); font-size:0.85rem; }
.earn-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.earn-cta .btn, .btn.ghost {
  display: inline-block; padding: 12px 18px; border-radius: 8px;
  background: var(--yt-accent,#ff0000); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.ghost { background: transparent; border: 1px solid #3f3f3f; color: #fff; }
.dash-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.dash-section { margin: 32px 0; }
.dash-section h2 { margin: 0 0 6px; font-size: 1.2rem; }
.chart-box {
  background: #212121; border-radius: 12px; padding: 16px; margin-top: 10px;
}

/* Directory + profile */
.dir-wrap, .profile-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dir-filters input, .dir-filters select {
  padding: 8px 10px; border-radius: 8px; border: 1px solid #3f3f3f;
  background: #212121; color: #fff;
}
.dir-filters button {
  padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--yt-accent,#ff0000); color: #fff; font-weight: 600; cursor: pointer;
}
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.dir-card {
  display: flex; flex-direction: column; background: #212121; border-radius: 12px;
  overflow: hidden; color: inherit; text-decoration: none;
}
.dir-card:hover { filter: brightness(1.06); text-decoration: none; }
.dir-card img, .dir-card__ph {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a1a1a;
  display: grid; place-items: center; font-size: 2rem; color: #666;
}
.dir-card__name { padding: 8px 10px 2px; font-weight: 600; font-size: 0.9rem; }
.dir-card__meta { padding: 0 10px 10px; font-size: 0.75rem; color: var(--yt-muted); }
.dir-pager { margin-top: 20px; display: flex; gap: 12px; align-items: center; }
.profile-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.profile-avatar {
  height: 160px;
  width: auto;
  max-width: min(220px, 40vw);
  border-radius: 12px;
  object-fit: contain;
  background: #212121;
  display: block;
}
.profile-avatar--ph {
  width: 120px;
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: #666;
  font-weight: 700;
}
.profile-section { margin: 24px 0; }
.profile-section h2 { margin: 0 0 10px; font-size: 1.15rem; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.profile-facts div { background: #212121; border-radius: 10px; padding: 10px 12px; }
.profile-facts dt { color: var(--yt-muted); font-size: 0.75rem; margin: 0 0 4px; }
.profile-facts dd { margin: 0; }
.profile-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.profile-links a {
  display: inline-block; padding: 8px 12px; background: #212121; border-radius: 8px; color: var(--yt-link,#3ea6ff);
}
.claim-banner {
  background: #2a1515; border-left: 4px solid var(--yt-accent,#ff0000);
  padding: 14px 16px; border-radius: 8px; margin: 16px 0;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.profile-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.profile-gallery__item {
  display: block;
  height: 250px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #212121;
  cursor: zoom-in;
}
.profile-gallery__item img {
  height: 250px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  vertical-align: top;
}
@media (max-width: 560px) {
  .profile-gallery__item {
    width: 250px;
    height: auto;
  }
  .profile-gallery__item img {
    width: 250px;
    height: auto;
  }
}

html.rs-lightbox-open,
body.rs-lightbox-open { overflow: hidden; }
.rs-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.rs-lightbox.is-hidden { display: none !important; }
.rs-lightbox__backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; margin: 0;
  background: rgba(0, 0, 0, 0.88); cursor: pointer;
}
.rs-lightbox__panel {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: min(1100px, 100%);
  max-height: min(92vh, 100%);
}
.rs-lightbox__figure {
  margin: 0; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rs-lightbox__img {
  display: block;
  max-width: min(100%, 100vw - 48px);
  max-height: min(82vh, 900px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.rs-lightbox__cap { font-size: 0.85rem; }
.rs-lightbox__close {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: #212121; color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.rs-lightbox__close:hover { background: #3f3f3f; }
.rs-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(33, 33, 33, 0.9); color: #fff; font-size: 1.75rem; line-height: 1;
  cursor: pointer; z-index: 2;
}
.rs-lightbox__nav:hover { background: #3f3f3f; }
.rs-lightbox__nav--prev { left: 0; }
.rs-lightbox__nav--next { right: 0; }
@media (max-width: 700px) {
  .rs-lightbox__nav--prev { left: 4px; }
  .rs-lightbox__nav--next { right: 4px; }
  .rs-lightbox__close { top: 0; right: 0; }
}

.account-claimed {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #1a1a1a;
  border-radius: 12px;
  border-left: 4px solid var(--yt-accent, #ff0000);
}
.account-claimed h2 { margin: 0 0 6px; font-size: 1.15rem; }
.account-claimed__list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.account-claimed__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.account-claimed__actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto;
}
.account-claimed__actions .btn { margin: 0; }
.gallery-manage { margin-top: 28px; padding-top: 20px; border-top: 1px solid #333; }
.gallery-manage__list {
  list-style: none; padding: 0; margin: 12px 0;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start;
}
.gallery-manage__item {
  background: #212121; border-radius: 10px; overflow: hidden; padding-bottom: 8px;
  width: auto; max-width: 100%;
}
.gallery-manage__item.is-avatar { outline: 2px solid var(--yt-accent, #ff0000); outline-offset: 0; }
.gallery-manage__item > img,
.gallery-manage__thumb-btn img {
  height: 250px;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}
.gallery-manage__pick { margin: 0; }
.gallery-manage__thumb-btn {
  position: relative; display: block; width: auto; padding: 0; border: 0;
  background: transparent; cursor: pointer; color: inherit;
}
@media (max-width: 560px) {
  .gallery-manage__item > img,
  .gallery-manage__thumb-btn img {
    width: 250px;
    height: auto;
  }
}
.gallery-manage__thumb-btn:hover .gallery-manage__badge--hint,
.gallery-manage__item.is-avatar .gallery-manage__badge { opacity: 1; }
.gallery-manage__badge {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  padding: 4px 6px; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
  background: rgba(0,0,0,.78); color: #fff; text-align: center;
}
.gallery-manage__badge--hint { opacity: 0; transition: opacity .15s ease; }
.gallery-manage__actions {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; justify-content: center;
}
.gallery-manage__actions button {
  font-size: 0.75rem; padding: 4px 8px; cursor: pointer;
  background: #333; color: #eee; border: 0; border-radius: 4px;
}
.gallery-manage__actions .btn-danger { background: #5a1515; }
.gallery-upload label.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: #ccc;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.35;
}
.gallery-upload label.check input[type="checkbox"] {
  width: auto;
  min-width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--yt-accent, #ff0000);
  cursor: pointer;
}

.profile-avatar-edit {
  margin: 0 0 22px;
  padding: 14px 0 18px;
  border-bottom: 1px solid #333;
}
.profile-avatar-edit h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.profile-avatar-edit__row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-avatar-edit__img,
.profile-avatar-edit__ph {
  height: 160px;
  width: auto;
  max-width: 220px;
  border-radius: 12px;
  object-fit: contain;
  background: #212121;
  flex: 0 0 auto;
  display: block;
}
.profile-avatar-edit__ph {
  width: 120px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #888;
}
.profile-avatar-edit__hint {
  flex: 1 1 220px;
  margin: 0;
  max-width: 420px;
}

.profile-links-presets {
  margin: 20px 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #333;
}
.profile-links-presets legend {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.profile-links-presets__intro { margin: 8px 0 14px; }
.profile-links-presets__group {
  margin: 0 0 18px;
  padding: 12px 0 4px;
  border: 0;
  border-top: 1px solid #2a2a2a;
}
.profile-links-presets__group:first-of-type { border-top: 0; padding-top: 0; }
.profile-links-presets__group legend {
  padding: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #b8b8b8;
}
.profile-links-presets__other-title {
  margin: 22px 0 6px;
  font-size: 1rem;
}
.profile-link-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}
.profile-link-row__label {
  font-weight: 650;
  color: var(--yt-link, #3ea6ff);
  text-decoration: none;
}
.profile-link-row__label:hover { text-decoration: underline; }
.profile-link-row input {
  width: 100%;
  margin: 0;
}
.profile-link-row--other {
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
}
@media (max-width: 560px) {
  .profile-link-row,
  .profile-link-row--other {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.nav-bell { position: relative; }
.nav-bell__count {
  display: inline-block; min-width: 1.25em; padding: 0 5px; margin-left: 2px;
  border-radius: 999px; background: var(--yt-accent,#ff0000); color: #fff;
  font-size: 0.7rem; font-weight: 700; line-height: 1.4; vertical-align: middle;
}
.cat-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 6px; font-size: 0.9rem; line-height: 1.3;
}
.cat-meta__crumb { color: var(--yt-muted); }
.cat-meta__sep { color: var(--yt-muted); }
.cat-count { margin: 0 0 10px; }
.browse-main > h1 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 700; }
.follow-wrap {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0;
}
.cat-meta .follow-wrap { margin: 0; }
.cat-meta .follow-wrap .btn,
.cat-meta .follow-form button {
  display: inline; width: auto; margin: 0; padding: 0;
  border: 0; background: none; border-radius: 0;
  color: var(--yt-link); font: inherit; font-weight: 500; cursor: pointer;
}
.cat-meta .follow-wrap .btn:hover,
.cat-meta .follow-form button:hover { text-decoration: underline; }
.follow-form { display: inline; margin: 0; }
.follow-form button { width: auto; }
.follow-count { font-size: 0.85rem; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-item {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #2a2a2a;
}
.notif-item.is-unread { border-left: 3px solid var(--yt-accent,#ff0000); padding-left: 10px; }
.notif-item p { margin: 4px 0 0; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notif-actions form { margin: 0; }
.notif-actions button {
  padding: 6px 10px; border: 0; border-radius: 6px; background: #333; color: #eee; cursor: pointer;
}
.trophy-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.trophy-list li {
  background: #212121; border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.trophy-list strong { font-size: 0.95rem; }
.trophy-list .muted { font-size: 0.75rem; }
.code-block {
  background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: 0.85rem; color: #ddd;
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
}

/* Cookie consent — fixed viewport overlay (not in page flow) */
#cookie-consent.cookie-consent,
.cookie-consent {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 10050 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  box-sizing: border-box;
}
#cookie-consent.cookie-consent.is-hidden,
.cookie-consent.is-hidden {
  display: none !important;
}
.cookie-consent__panel {
  pointer-events: auto;
  width: min(520px, 100%);
  max-width: 520px;
  margin: 0;
  background: #212121;
  border: 1px solid #3f3f3f;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  transform: translateY(-8vh);
}
.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cookie-consent__text {
  margin: 0 0 14px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cookie-consent__text a { color: #3ea6ff; }
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-consent__actions .btn {
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: #ff0000;
  color: #fff;
}
.cookie-consent__actions .btn.ghost {
  background: transparent;
  border: 1px solid #3f3f3f;
  color: #fff;
}
.cookie-consent__opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  color: #ddd;
  font-size: 0.9rem;
  cursor: pointer;
}
.cookie-consent__opt input {
  margin-top: 3px;
  width: auto;
}
.cookie-consent__main.is-hidden,
.cookie-consent__custom.is-hidden { display: none; }
@media (max-width: 560px) {
  .cookie-consent__panel { transform: none; }
  .cookie-consent__actions .btn { flex: 1 1 auto; }
}

.rs-slot-gate {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10040 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  box-sizing: border-box;
}
.rs-slot-gate.is-hidden { display: none !important; }
html.rs-slot-gate-open,
body.rs-slot-gate-open {
  overflow: hidden;
}
.rs-slot-gate__panel {
  pointer-events: auto;
  width: min(560px, 100%);
  max-width: 560px;
  margin: 0;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid #5a3030;
  background: #1a1212;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.rs-slot-gate__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.rs-slot-gate__text {
  margin: 0;
  color: #f0e6e6;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.5;
  font-weight: 500;
}
.rs-slot-gate__countdown {
  margin: 0;
  color: #ffb4b4;
  font-size: 1rem;
  font-weight: 700;
}
.rs-slot-gate__dismiss {
  align-self: center;
  margin: 4px 0 0;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  min-width: 160px;
}
.rs-slot-gate__dismiss:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Promoter marketing page: full nav, no ad sidebar */
.browse-layout.promo-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}
.promo-page .promo {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 8px 40px;
}
.promo-page h1 {
  margin: 8px 0 12px;
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1.25;
}
.promo__lede {
  font-size: 1.05rem;
  color: var(--yt-muted);
  margin: 0 0 8px;
}
.promo-page .art {
  width: 100%;
  border-radius: 12px;
  margin: 16px 0;
  max-height: 360px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}
.promo__list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--yt-text);
}
.promo__list li { margin: 8px 0; }
.promo-page .earn-block p { color: var(--yt-muted); }
.promo-page .earn-block p strong,
.promo-page .earn-block li strong { color: var(--yt-text); }
@media (max-width: 900px) {
  .browse-layout.promo-layout { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 24px 20px 48px;
  line-height: 1.55;
}
.legal-doc h1 {
  font-size: 1.75rem;
  margin: 0 0 12px;
  line-height: 1.25;
}
.legal-doc h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  padding-top: 8px;
  border-top: 1px solid #222;
}
.legal-doc h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}
.legal-doc p,
.legal-doc li { color: var(--yt-text); }
.legal-doc ul,
.legal-doc ol { padding-left: 1.25rem; margin: 8px 0 12px; }
.legal-doc li { margin: 6px 0; }
.legal-doc a { color: #3ea6ff; }
.legal-doc__lede { font-size: 1.05rem; margin: 0 0 8px; }
.legal-doc__meta { margin: 0 0 20px; font-size: 0.9rem; }
.legal-doc__box {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: var(--yt-elevated);
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}
.legal-doc__box p { margin: 0 0 8px; }
.legal-doc__box p:last-child { margin-bottom: 0; }
.legal-doc__pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #0a0a0a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  color: var(--yt-muted);
  overflow-x: auto;
}
.legal-doc__close { margin-top: 28px; }
.legal-doc .small { font-size: 0.85rem; }
.legal-doc code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: #1a1a1a;
}
