:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(219, 107, 159, 0.16);
  --text: #23131d;
  --muted: #7f6271;
  --pink: #ec4899;
  --pink-deep: #be185d;
  --pink-soft: #fbcfe8;
  --pink-cloud: #fff0f7;
  --shadow: 0 24px 60px rgba(190, 24, 93, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme="dark"] {
  --bg: #130912;
  --surface: rgba(33, 18, 31, 0.82);
  --surface-strong: #1d0f1b;
  --line: rgba(255, 183, 221, 0.12);
  --text: #fbeef6;
  --muted: #d8b9cb;
  --pink-cloud: rgba(59, 28, 52, 0.9);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(251, 207, 232, 0.9), transparent 30%),
    linear-gradient(180deg, #fff9fc 0%, #fff3f8 100%);
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 24%),
    linear-gradient(180deg, #170b15 0%, #0e060d 100%);
}

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

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  width: 100%;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  max-width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
  max-width: 100%;
}

:root[data-theme="dark"] .topbar {
  background: linear-gradient(135deg, rgba(36, 18, 34, 0.76), rgba(25, 13, 24, 0.56));
}

.topbar-sticky {
  position: sticky;
  top: 12px;
  z-index: 50;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.topbar-sticky.topbar-hidden {
  transform: translateY(calc(-100% - 12px));
  opacity: 0.02;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 1;
  min-width: 0;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.3);
}

.top-links {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.profile-menu {
  position: relative;
}

.profile-menu-trigger {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 50%;
  background: rgba(255, 240, 247, 0.72);
  cursor: pointer;
  overflow: hidden;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.profile-avatar.has-image,
.watch-channel-mark.has-image {
  overflow: hidden;
  color: transparent;
}

.profile-avatar.has-image img,
.watch-channel-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.profile-menu.is-open .profile-dropdown {
  display: grid;
  gap: 10px;
}

.profile-dropdown-head {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.profile-dropdown-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-dropdown a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 240, 247, 0.34);
}

.profile-dropdown a:hover {
  color: var(--pink-deep);
  background: rgba(251, 207, 232, 0.58);
}

.top-links-strong a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 240, 247, 0.6);
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 240, 247, 0.6);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:root[data-theme="dark"] .top-links-strong a {
  background: rgba(255, 240, 247, 0.08);
}

:root[data-theme="dark"] .nav-pill-btn {
  background: rgba(255, 240, 247, 0.08);
}

:root[data-theme="dark"] .profile-menu-trigger,
:root[data-theme="dark"] .profile-dropdown a {
  background: rgba(255, 240, 247, 0.08);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  background: rgba(255, 240, 247, 0.65);
  color: var(--pink-deep);
  cursor: pointer;
  font: inherit;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(255, 240, 247, 0.08);
  color: #ffd4e8;
}

.theme-toggle-dark {
  display: none;
}

.theme-toggle[data-mode="dark"] .theme-toggle-light {
  display: none;
}

.theme-toggle[data-mode="dark"] .theme-toggle-dark {
  display: inline;
}

.nav-label-short {
  display: none;
}

.action-label-short {
  display: none;
}

.top-links a:hover,
.nav-pill-btn:hover,
.video-copy h3 a:hover,
.text-link:hover {
  color: var(--pink-deep);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(480px, 100%);
  padding: 8px 12px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  background: #fff;
}

:root[data-theme="dark"] .top-search,
:root[data-theme="dark"] .tool-select select,
:root[data-theme="dark"] .admin-form select,
:root[data-theme="dark"] .icon-action,
:root[data-theme="dark"] .reaction-btn,
:root[data-theme="dark"] .admin-form input,
:root[data-theme="dark"] .admin-form textarea,
:root[data-theme="dark"] .share-copy-row input {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .category-pill,
:root[data-theme="dark"] .suggestion-pill,
:root[data-theme="dark"] .queue-autoplay,
:root[data-theme="dark"] .player-tools-bar,
:root[data-theme="dark"] .video-card,
:root[data-theme="dark"] .featured-video-card,
:root[data-theme="dark"] .below-video-card,
:root[data-theme="dark"] .description-card,
:root[data-theme="dark"] .side-card,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .sample-ad-card,
:root[data-theme="dark"] .ad-banner,
:root[data-theme="dark"] .watch-top-ad,
:root[data-theme="dark"] .inline-ad {
  color: var(--text);
}

:root[data-theme="dark"] .video-stats,
:root[data-theme="dark"] .watch-meta,
:root[data-theme="dark"] .reaction-status,
:root[data-theme="dark"] .below-video-copy p,
:root[data-theme="dark"] .playlist-item span,
:root[data-theme="dark"] .table-video span,
:root[data-theme="dark"] .hero-copy p,
:root[data-theme="dark"] .side-card p,
:root[data-theme="dark"] .sample-ad-card p,
:root[data-theme="dark"] .compact-ad-card p,
:root[data-theme="dark"] .inline-feed-ad p,
:root[data-theme="dark"] .auth-modal-note {
  color: #d9bfd0;
}

:root[data-theme="dark"] .quick-pick-card,
:root[data-theme="dark"] .category-video-card,
:root[data-theme="dark"] .runway-ad-card {
  border-color: var(--line);
  background: rgba(29, 15, 27, 0.84);
}

:root[data-theme="dark"] .top-search input::placeholder,
:root[data-theme="dark"] .share-copy-row input::placeholder,
:root[data-theme="dark"] .admin-form input::placeholder,
:root[data-theme="dark"] .admin-form textarea::placeholder {
  color: #bfa2b3;
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 240, 247, 0.9);
  color: var(--pink-deep);
  cursor: pointer;
}

.search-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
}

.main-layout,
.watch-layout,
.admin-layout {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.hero-card,
.side-card,
.video-card,
.description-card,
.player-frame,
.inline-ad,
.form-card,
.table-card,
.stat-card,
.ad-banner,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.category-strip,
.suggestion-pills {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar,
.suggestion-pills::-webkit-scrollbar {
  display: none;
}

.category-pill,
.suggestion-pill,
.queue-autoplay {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--pink-deep);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(251, 207, 232, 0.55);
}

.category-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: 320px;
  justify-content: end;
  gap: 24px;
}

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

.runway-ad-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.runway-ad-card img,
.runway-ad-card video {
  height: 100%;
  object-fit: cover;
}

.live-ad-card {
  display: grid;
  place-items: center;
  padding: 12px;
}

.compact-ad-card video {
  width: 100%;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
}

.live-ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 240, 247, 0.96), rgba(252, 231, 243, 0.92));
}

.live-ad-slot::after {
  content: "Ad partner";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(35, 19, 29, 0.66);
}

.live-ad-slot-banner {
  min-width: min(728px, 100%);
  min-height: 90px;
}

.live-ad-slot-tall {
  min-height: 360px;
}

.live-ad-fallback {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.live-ad-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-ad-script {
  display: none;
}

.ad-creative-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(26, 12, 21, 0.2), rgba(26, 12, 21, 0.84));
}

.ad-creative-overlay strong {
  font-size: 1.05rem;
}

.ad-creative-overlay small {
  color: rgba(255, 255, 255, 0.86);
}

.ad-creative-overlay.tall {
  inset: auto 18px 18px 18px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

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

.featured-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-video-thumb {
  position: relative;
  display: block;
}

.featured-video-thumb img {
  height: 220px;
  object-fit: cover;
}

.featured-video-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.featured-video-copy h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-copy {
  padding: 36px;
}

.hero-copy h1,
.section-header h2,
.auth-card h1,
.description-card h2 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy p,
.video-copy p,
.description-card p,
.side-card p,
.ad-banner p,
.inline-ad p,
.feed-ad-card p,
.compact-ad-card p,
.sponsor-strip p,
.inline-feed-ad p,
.auth-card p {
  color: var(--muted);
  line-height: 1.7;
}

.watch-ad-cluster {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 20px;
}

.watch-orb-card,
.watch-banner-card {
  min-height: 180px;
}

.watch-orb-media {
  width: 100%;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.watch-orb-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.hero-meta,
.watch-meta,
.video-stats,
.feed-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.hero-actions,
.form-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.btn-secondary {
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid rgba(190, 24, 93, 0.18);
}

.hero-poster img,
.quick-pick-card img,
.video-thumb img,
.category-video-thumb img {
  height: 100%;
  object-fit: cover;
}

.hero-side-ad,
.feed-ad-card,
.compact-ad-card,
.sponsor-strip,
.inline-feed-ad,
.sample-ad-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 236, 246, 0.96));
  box-shadow: var(--shadow);
}

.hero-side-ad,
.compact-ad-card,
.feed-ad-card,
.sample-ad-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  align-content: start;
}

.feed-ad-label,
.eyebrow,
.category-chip,
.billboard-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
  background: rgba(251, 207, 232, 0.78);
}

.ad-banner,
.inline-ad,
.watch-top-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 231, 243, 0.95) 100%);
}

.ad-banner img,
.watch-top-ad img,
.feed-ad-card img,
.sample-ad-card img,
.inline-feed-ad img,
.ad-image-fill {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.ad-banner img {
  max-width: 560px;
}

.watch-top-ad img {
  max-width: 520px;
}

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

.section-header .seo-page-title {
  margin: 10px 0 14px;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.seo-intro {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.seo-intro h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.seo-intro p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-header.compact h2 {
  font-size: 2.3rem;
}

.quick-picks-row,
.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-pick-card,
.category-video-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.quick-pick-overlay,
.category-video-copy {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(35, 19, 29, 0.88) 100%);
}

.category-video-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  min-width: 0;
}

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

.video-grid > .video-card {
  grid-column: span 3;
}

.video-grid > .video-card.compact-card {
  grid-column: span 2;
}

.discovery-grid {
  margin-top: 8px;
  margin-bottom: 10px;
}

.sponsor-tall-card .video-thumb img {
  min-height: 220px;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.below-video-card {
  position: relative;
}

.video-thumb,
.category-video-thumb,
.below-video-thumb {
  position: relative;
  display: block;
}

.video-thumb img {
  height: 200px;
}

.duration-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(35, 19, 29, 0.72);
  backdrop-filter: blur(10px);
}

.upload-age-tag,
.sponsored-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(35, 19, 29, 0.78);
}

.card-share-btn {
  position: static;
  z-index: 1;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 19, 29, 0.78);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.card-share-btn svg {
  width: 18px;
  height: 18px;
}

.sponsored-badge {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.video-copy {
  padding: 20px;
}

.video-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.video-meta-row .video-stats {
  min-width: 0;
  flex: 1 1 auto;
}

.video-copy h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}

.video-copy h3 a,
.below-video-copy h3 a,
.playlist-copy strong,
.watch-title-panel h1,
.description-card h2,
.section-header h2 {
  color: var(--text);
}

.sidebar-stack,
.playlist-column {
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 18px;
}

.billboard-ad {
  position: sticky;
  top: 104px;
}

.compact-ad-card {
  position: static;
}

.orb-side-card,
.side-bubble-ad {
  align-items: start;
}

.orb-side-link,
.side-bubble-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
}

.orb-side-visual,
.side-bubble-media {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.orb-side-visual img,
.side-bubble-media img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.clean-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.watch-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  min-width: 0;
}

.player-frame {
  position: relative;
  padding: 12px;
}

.player-surface {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.player-frame video {
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.preview-scrub-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.player-center-toggle {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 88px;
  height: 88px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.player-center-toggle .icon-pause,
.player-inline-btn .icon-pause {
  display: none;
}

.player-center-toggle.is-playing .icon-play,
.player-inline-btn.is-playing .icon-play {
  display: none;
}

.player-center-toggle.is-playing .icon-pause,
.player-inline-btn.is-playing .icon-pause {
  display: inline;
}

.player-center-toggle svg {
  width: 34px;
  height: 34px;
}

.seek-zone {
  position: absolute;
  top: 0;
  bottom: 58px;
  width: 20%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  pointer-events: none;
}

.seek-left {
  left: 0;
}

.seek-right {
  right: 0;
}

.seek-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: rgba(35, 19, 29, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 3;
}

.seek-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.player-menu-toggle svg {
  width: 18px;
  height: 18px;
}

.player-overlay-menu {
  position: absolute;
  right: 14px;
  bottom: 64px;
  z-index: 5;
  min-width: 180px;
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(27, 14, 25, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  max-height: min(220px, 52vh);
  overflow-y: auto;
  touch-action: pan-y;
}

.player-overlay-menu.is-open {
  display: grid;
}

.player-overlay-menu .tool-select {
  display: grid;
  gap: 6px;
  color: #f3d8e8;
  font-size: 0.82rem;
}

.player-overlay-menu .tool-select span {
  color: #f3d8e8;
}

.player-overlay-menu .tool-select select,
.overlay-menu-action {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.overlay-menu-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-control-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(20, 10, 18, 0) 0%, rgba(20, 10, 18, 0.82) 36%, rgba(20, 10, 18, 0.94) 100%);
}

.player-progress-wrap {
  position: relative;
  width: 100%;
}

.smart-player.player-ui-hidden .player-center-toggle,
.smart-player.player-ui-hidden .player-control-bar,
.smart-player.player-ui-hidden .player-overlay-menu {
  opacity: 0;
  pointer-events: none;
}

.player-center-toggle,
.player-control-bar,
.player-overlay-menu {
  transition: opacity 0.18s ease;
}

.player-inline-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.player-inline-btn svg {
  width: 18px;
  height: 18px;
}

.player-time {
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.player-progress {
  width: 100%;
  margin: 0;
}

.player-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.player-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #fff;
}

.player-progress::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.player-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
}

.player-surface:fullscreen,
.player-surface:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.player-surface:fullscreen video,
.player-surface:-webkit-full-screen video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  border-radius: 0;
}

.player-surface:fullscreen .player-control-bar,
.player-surface:-webkit-full-screen .player-control-bar {
  padding: 14px 16px 18px;
}

.player-surface:fullscreen .player-overlay-menu,
.player-surface:-webkit-full-screen .player-overlay-menu {
  right: 16px;
  bottom: 72px;
  max-height: min(260px, 58vh);
}

.watch-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 0 4px;
}

.watch-title-panel h1 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1;
}

.watch-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.watch-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.watch-channel-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

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

.channel-page-shell .channel-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 22px;
  padding: 22px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 247, 0.92));
}

.channel-page-shell .channel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.channel-page-shell .channel-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.channel-page-shell .channel-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-avatar-large {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  font-size: 1.35rem;
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-editor label {
  flex: 1;
}

.reaction-box,
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 220px;
  justify-content: flex-end;
}

.icon-action,
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.reaction-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.26);
}

.reaction-btn.is-active .action-icon {
  color: #fff;
}

.action-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.action-icon svg {
  width: 20px;
  height: 20px;
}

.reaction-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.player-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.reaction-status {
  color: var(--muted);
}

.tool-select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.tool-select select {
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
}

.watch-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.description-card {
  padding: 28px;
}

.watch-detail-ad-card {
  display: grid;
  gap: 10px;
}

.watch-detail-ad-card img {
  width: 100%;
  min-height: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.watch-detail-ad-card strong {
  font-size: 1rem;
}

.description-card h2 {
  font-size: 2rem;
}

.watch-section-head {
  margin-top: 10px;
}

.below-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.below-video-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.below-video-thumb img {
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.below-video-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.below-video-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

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

.inline-feed-ad {
  grid-template-columns: 1fr;
}

.media-ad-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.media-ad-card video {
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.playlist-list {
  display: grid;
  gap: 14px;
}

.playlist-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 240, 247, 0.78);
}

.playlist-item img {
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.playlist-copy {
  display: grid;
  gap: 6px;
}

.playlist-copy strong {
  font-size: 1rem;
}

.playlist-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.player-endscreen {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 5;
  padding: 14px;
  background: linear-gradient(180deg, rgba(10, 4, 10, 0.08) 0%, rgba(10, 4, 10, 0.42) 100%);
  backdrop-filter: blur(4px);
}

.player-endscreen.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-endscreen-card {
  position: relative;
  width: min(100%, 620px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  background: rgba(20, 10, 18, 0.54);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.player-endscreen-top {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  text-align: center;
}

.player-endscreen-top h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.15rem;
}

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

.endscreen-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 240, 247, 0.05);
  text-align: left;
}

.endscreen-item img {
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.endscreen-item strong {
  font-size: 0.86rem;
  line-height: 1.08;
}

.endscreen-item span {
  color: rgba(255, 238, 246, 0.78);
  font-size: 0.68rem;
  line-height: 1.08;
}

.endscreen-item small {
  color: rgba(255, 238, 246, 0.7);
  font-size: 0.66rem;
}

.endscreen-replay {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 128px;
  min-height: 42px;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pink-deep) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

@media (max-width: 900px) {
  .player-endscreen {
    padding: 10px;
  }

  .player-endscreen-card {
    width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .player-endscreen-top {
    margin-bottom: 10px;
  }

  .player-endscreen-top h2 {
    font-size: 0.96rem;
  }

  .player-endscreen-grid {
    gap: 8px;
  }

  .endscreen-item {
    padding: 8px;
    border-radius: 14px;
    gap: 4px;
  }

  .endscreen-item img {
    height: 72px;
    border-radius: 10px;
  }

  .endscreen-item strong {
    font-size: 0.7rem;
  }

  .endscreen-item span,
  .endscreen-item small {
    font-size: 0.58rem;
  }

  .endscreen-replay {
    min-width: 112px;
    min-height: 38px;
    font-size: 0.74rem !important;
  }
}
}

.sponsored-video-card .video-thumb img {
  height: 200px;
}

.sponsored-video-card .video-copy {
  gap: 10px;
}

.sponsored-video-card .video-stats {
  justify-content: flex-start;
}

.sample-ad-card strong,
.sample-ad-card p,
.compact-ad-card p {
  margin: 0;
}

.sponsored-feed-card img {
  height: 180px;
  object-fit: cover;
}

.sponsored-feed-card .below-video-copy {
  align-content: start;
}

.endscreen-ad-item {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(255, 240, 247, 0.12));
}

.endscreen-ad-item.spotlight {
  border: 1px solid rgba(255, 212, 232, 0.18);
}

.endscreen-replay {
  white-space: nowrap;
}

.auth-shell {
  width: min(780px, calc(100% - 32px));
}

.auth-card {
  padding: 32px;
}

.upload-card {
  width: 100%;
}

.thumbnail-picker {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: rgba(255, 247, 251, 0.78);
}

.thumbnail-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thumbnail-picker-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.thumbnail-random-btn {
  min-height: 38px;
}

.thumbnail-preview-frame {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(35, 19, 29, 0.06);
  min-height: 180px;
  position: relative;
}

.thumbnail-preview-frame img {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumbnail-preview-frame.is-ready img {
  display: block;
}

.thumbnail-preview-frame::before {
  content: "Thumbnail preview";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.thumbnail-preview-frame.is-ready::before {
  content: "";
  display: none;
}

.thumbnail-frame-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.thumbnail-frame-option {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.thumbnail-frame-option img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
}

.thumbnail-frame-option span {
  font-size: 0.78rem;
  color: var(--muted);
}

.thumbnail-frame-option.is-selected {
  border-color: rgba(203, 32, 104, 0.46);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.18);
}

.form-inline-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.72);
}

.form-inline-note.is-loading {
  color: var(--pink-deep);
}

.form-inline-note.is-success {
  color: #0f9d58;
}

.form-inline-note.is-error {
  color: #d33b6a;
}

.form-inline-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-shell {
  width: min(1480px, calc(100% - 32px));
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-card {
  padding: 24px;
}

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

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
}

.form-card,
.table-card {
  padding: 24px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form span {
  font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.share-copy-row input {
  width: 100%;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.empty-panel-copy {
  color: var(--muted);
  line-height: 1.8;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.table-card {
  overflow: hidden;
}

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

.table-actions form {
  margin: 0;
}

.admin-shell .form-card,
.admin-shell .table-card,
.auth-shell .auth-card {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 242, 248, 0.92));
  box-shadow: 0 20px 44px rgba(35, 19, 29, 0.08);
}

.admin-shell .stats-row .stat-card {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 248, 0.94));
  box-shadow: 0 18px 34px rgba(35, 19, 29, 0.07);
}

.admin-shell details {
  padding: 14px 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  background: rgba(255, 247, 251, 0.78);
}

.admin-shell details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pink-deep);
}

.admin-shell details[open] summary {
  margin-bottom: 12px;
}

.auth-shell .admin-form,
.admin-shell .admin-form {
  gap: 18px;
}

.auth-shell .form-actions,
.admin-shell .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

:root[data-theme="dark"] .admin-shell .form-card,
:root[data-theme="dark"] .admin-shell .table-card,
:root[data-theme="dark"] .auth-shell .auth-card,
:root[data-theme="dark"] .admin-shell .stats-row .stat-card,
:root[data-theme="dark"] .admin-shell details {
  background: linear-gradient(135deg, rgba(34, 17, 31, 0.96), rgba(24, 11, 22, 0.94));
  border-color: rgba(255, 196, 226, 0.1);
}

.ad-slot-fieldset {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 240, 247, 0.28);
}

.ad-slot-fieldset legend {
  padding: 0 8px;
  color: var(--pink-deep);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 10px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-video {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.table-video img {
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
}

.table-video span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.text-link.danger {
  color: #c81e1e;
}

.center-empty {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.share-modal,
.popup-ad-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.share-modal.is-open,
.popup-ad-modal.is-open,
.auth-modal.is-open {
  display: block;
}

.share-modal-backdrop,
.popup-ad-backdrop,
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 19, 29, 0.35);
  backdrop-filter: blur(8px);
}

.share-modal-card,
.popup-ad-card,
.auth-modal-card {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 10vh auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(35, 19, 29, 0.22);
}

:root[data-theme="dark"] .share-modal-card,
:root[data-theme="dark"] .popup-ad-card,
:root[data-theme="dark"] .auth-modal-card {
  background: #1d0f1b;
}

.popup-ad-card {
  width: min(700px, calc(100% - 24px));
  display: grid;
  gap: 14px;
  text-align: center;
}

.popup-ad-corner-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-deep);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.popup-ad-corner-close:hover:not(:disabled) {
  transform: scale(1.04);
}

.popup-ad-corner-close:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

:root[data-theme="dark"] .popup-ad-corner-close {
  background: rgba(29, 15, 27, 0.92);
  color: #ffd4e8;
  border-color: rgba(255, 212, 232, 0.16);
}

.auth-modal-card {
  width: min(680px, calc(100% - 24px));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(252, 231, 243, 0.82));
  backdrop-filter: blur(24px) saturate(160%);
}

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

.auth-modal-head h2 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  line-height: 0.95;
}

.auth-switch {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(251, 207, 232, 0.42);
}

.auth-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.auth-modal-body {
  display: grid;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: grid;
}

.auth-modal-note {
  color: var(--muted);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-eye svg {
  width: 18px;
  height: 18px;
}

.password-eye-off {
  display: none;
}

.password-toggle.is-visible .password-eye-open {
  display: none;
}

.password-toggle.is-visible .password-eye-off {
  display: inline;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pagination-link,
.pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.pagination-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.floating-progress {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 247, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .floating-progress {
  background: linear-gradient(135deg, rgba(35, 18, 33, 0.92), rgba(22, 10, 20, 0.92));
}

.floating-progress-label {
  color: var(--pink-deep);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
}

.floating-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.header-leaderboard-slot {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.header-leaderboard-slot .ad-slot-728 {
  width: min(100%, 728px);
  min-height: 90px;
}

.ad-runway-compact {
  grid-template-columns: minmax(0, 1fr);
}

.ad-slot-320 {
  width: min(100%, 320px);
  min-height: 50px;
  margin-inline: auto;
}

.ad-slot-300 {
  width: min(100%, 300px);
  min-height: 250px;
}

.ad-slot-160 {
  width: min(100%, 160px);
  min-height: 600px;
}

.home-inline-banner-grid {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.social-bar {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(96vw, 540px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 236, 246, 0.94));
  box-shadow: 0 22px 44px rgba(35, 19, 29, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.social-bar.is-hidden {
  display: none;
}

.social-bar-media img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}

.social-bar-copy {
  flex: 1;
  min-width: 0;
}

.social-bar-copy strong,
.social-bar-copy p {
  display: block;
  margin: 0;
}

.social-bar-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}

.social-bar-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--pink-deep);
  cursor: pointer;
}

.mobile-bottom-banner {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 78;
  transform: translateX(-50%);
}

.mobile-bottom-banner-link {
  position: relative;
  display: block;
  width: min(92vw, 320px);
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 28px rgba(35, 19, 29, 0.16);
}

.mobile-bottom-banner-link img,
.footer-banner-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-bottom-banner .feed-ad-label,
.footer-banner-slot .feed-ad-label {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 1;
}

.footer-banner-slot {
  display: flex;
  justify-content: center;
  margin: 28px auto 110px;
}

.footer-banner-link {
  position: relative;
  display: block;
  width: min(100%, 728px);
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.footer-banner-slot--mobile_320 .footer-banner-link {
  width: min(92vw, 320px);
  height: 50px;
  border-radius: 16px;
}

.footer-banner-slot--header_728 .footer-banner-link {
  width: min(100%, 728px);
  height: 90px;
}

:root[data-theme="dark"] .social-bar,
:root[data-theme="dark"] .mobile-bottom-banner-link,
:root[data-theme="dark"] .footer-banner-link {
  background: linear-gradient(135deg, rgba(35, 18, 33, 0.94), rgba(22, 10, 20, 0.96));
}

.floating-runtime-slot {
  position: fixed;
  inset: auto;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 97;
}

.floating-runtime-slot .runtime-ad-slot {
  width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
}

.banner-runtime-shell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.banner-runtime-shell-media {
  position: relative;
}

.banner-runtime-shell-slot {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

.banner-runtime-shell-slot .runtime-ad-slot {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.banner-runtime-shell-slot .runtime-ad-slot iframe,
.banner-runtime-shell-slot .runtime-ad-slot img,
.banner-runtime-shell-slot .runtime-ad-slot object,
.banner-runtime-shell-slot .runtime-ad-slot embed {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  border: 0 !important;
  display: block !important;
}

.runtime-ad-slot {
  width: 100%;
}

.runtime-ad-slot[data-ad-slot="popunder"] {
  width: 0;
  height: 0;
  overflow: hidden;
}

.runtime-ad-slot[data-ad-slot="social_bar"] {
  width: 0;
  height: 0;
  overflow: visible;
}

.runtime-ad-slot[data-ad-slot="mobile_320"] {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 78;
  width: min(92vw, 320px);
  transform: translateX(-50%);
}

.runtime-ad-slot[data-ad-slot="footer_468"] {
  display: flex;
  justify-content: center;
  margin: 28px auto 110px;
}

.runtime-ad-slot[data-ad-slot="header_728"],
.runtime-ad-slot[data-ad-slot="home_300"],
.runtime-ad-slot[data-ad-slot="video_300_a"],
.runtime-ad-slot[data-ad-slot="video_300_b"],
.runtime-ad-slot[data-ad-slot="native_banner"],
.runtime-ad-slot[data-ad-slot="compact_160"] {
  display: flex;
  justify-content: center;
}

.runtime-ad-slot[data-ad-slot="sidebar_160"] {
  width: min(100%, 160px);
}

.runtime-ad-slot[data-ad-slot="compact_160"] {
  width: min(100%, 160px);
}

.runtime-ad-slot iframe,
.runtime-ad-slot img,
.runtime-ad-slot object,
.runtime-ad-slot embed {
  max-width: 100%;
}

.home-page-shell .runtime-ad-slot .feed-ad-label,
.watch-page-shell .runtime-ad-slot .feed-ad-label {
  display: none !important;
}

.home-page-shell .sponsored-video-card,
.watch-page-shell .sponsored-feed-card {
  padding: 0;
  overflow: hidden;
}

.sponsored-thumb {
  position: relative;
  display: block;
  background: linear-gradient(180deg, rgba(22, 11, 19, 0.96), rgba(38, 16, 29, 0.96));
}

.sponsored-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(180deg, rgba(24, 10, 20, 0.98), rgba(43, 18, 33, 0.98));
}

.sponsored-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.sponsored-copy p {
  margin: 0;
}

.home-page-shell .sponsored-video-card .video-copy.sponsored-copy,
.watch-page-shell .sponsored-feed-card .below-video-copy.sponsored-copy {
  padding-top: 16px;
}

.home-page-shell .sponsored-video-card .runtime-ad-slot,
.watch-page-shell .sponsored-feed-card .runtime-ad-slot {
  width: 100%;
  min-height: 100%;
  align-items: center;
  padding: 10px;
}

.home-page-shell .sponsored-video-card .runtime-ad-slot[data-ad-slot="home_300"],
.watch-page-shell .sponsored-feed-card .runtime-ad-slot[data-ad-slot="video_300_b"] {
  display: flex;
  justify-content: center;
}

.home-page-shell .sponsored-video-card .runtime-ad-slot iframe,
.watch-page-shell .sponsored-feed-card .runtime-ad-slot iframe {
  border-radius: 18px;
}

.sidebar-stack > .runtime-ad-slot,
.playlist-column > .runtime-ad-slot {
  margin-bottom: 16px;
}

.watch-page-shell > .runtime-ad-slot[data-ad-slot="video_300_a"],
.watch-page-shell .watch-info-grid > .runtime-ad-slot[data-ad-slot="native_banner"],
.watch-page-shell .compact-order + .runtime-ad-slot[data-ad-slot="video_300_b"] {
  margin-bottom: 14px;
}

.mobile-top-ad-slot {
  display: none;
}

.home-page-shell > .runtime-ad-slot[data-ad-slot="native_banner"] {
  width: min(100%, 360px);
  margin: 16px auto;
}

.home-page-shell > .runtime-ad-slot[data-ad-slot="home_300"],
.watch-page-shell .compact-order + .runtime-ad-slot[data-ad-slot="video_300_b"] {
  width: min(100%, 300px);
  margin: 16px auto;
}

.watch-page-shell .playlist-column > .runtime-ad-slot[data-ad-slot="sidebar_160"],
.home-page-shell .sidebar-stack > .runtime-ad-slot[data-ad-slot="sidebar_160"],
.home-page-shell .sidebar-stack > .runtime-ad-slot[data-ad-slot="compact_160"] {
  display: flex;
  justify-content: center;
}

.fullscreen-active .social-bar,
.fullscreen-active .mobile-bottom-banner,
.fullscreen-active .floating-progress {
  display: none !important;
}

.ad-chathead {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 75;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.fullscreen-active .ad-chathead,
.fullscreen-active .floating-progress {
  display: none !important;
}

.ad-chathead-panel {
  display: none;
  position: relative;
  width: min(280px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 236, 246, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.ad-chathead-panel.is-open {
  display: grid;
  gap: 10px;
}

.ad-chathead-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pink-deep);
  font-size: 1rem;
  cursor: pointer;
}

.ad-chathead-media img {
  width: 100%;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
}

.ad-chathead-trigger {
  position: relative;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ad-chathead-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0));
  animation: pulseRing 2.2s ease infinite;
}

.ad-chathead-trigger img {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(35, 19, 29, 0.18);
}

.ad-chathead-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

:root[data-theme="dark"] .ad-chathead-panel {
  background: linear-gradient(135deg, rgba(35, 18, 33, 0.94), rgba(22, 10, 20, 0.94));
}

:root[data-theme="dark"] .ticker-track span,
:root[data-theme="dark"] .ad-chathead-dismiss {
  background: rgba(49, 27, 45, 0.88);
}

@media (max-width: 900px) {
  .header-leaderboard-slot {
    display: none;
  }

  .ad-slot-300 {
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .ad-slot-160 {
    width: 100%;
    min-height: 0;
  }

  .social-bar {
    width: min(96vw, 460px);
    bottom: 68px;
    padding-right: 44px;
  }

  .social-bar-copy p {
    display: none;
  }

  .footer-banner-slot {
    padding-inline: 10px;
  }

  .runtime-ad-slot[data-ad-slot="social_bar"] {
    width: min(96vw, 460px);
    bottom: 68px;
  }
}

@media (min-width: 901px) {
  .mobile-bottom-banner {
    display: none;
  }
}

/* Video management controls and final desktop watch-card alignment */
.category-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 10px;
}

.category-choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.category-choice:hover,
.category-choice.is-selected {
  border-color: #ef4b8b;
  background: linear-gradient(135deg, #f34486, #d72672);
  color: #fff;
}

.admin-bulk-editor {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-bulk-editor input,
.admin-bulk-editor select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
}

.admin-video-card {
  position: relative;
}

.admin-video-select {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  accent-color: #e63278;
}

.category-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 901px) {
  .watch-page-shell .watch-panel {
    border-radius: 22px !important;
    padding: 22px 24px !important;
    overflow: hidden;
  }

  .watch-page-shell .watch-title-panel,
  .watch-page-shell .watch-head-row {
    padding-left: 2px;
    padding-right: 2px;
  }

  .watch-page-shell .watch-section-head {
    margin-top: 22px !important;
    padding: 18px 20px !important;
    border: 1px solid var(--line);
    border-radius: 18px !important;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .watch-page-shell .below-video-list > .below-video-card,
  .watch-page-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 7fr) minmax(0, 3fr) !important;
    aspect-ratio: 7 / 10 !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .watch-page-shell .below-video-copy,
  .watch-page-shell .sponsored-feed-card .below-video-copy {
    height: 108px !important;
    min-height: 108px !important;
    padding: 12px 14px !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final global dark-mode coverage. */
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .channel-page-shell .channel-hero,
:root[data-theme="dark"] .admin-panel-section,
:root[data-theme="dark"] .admin-surface,
:root[data-theme="dark"] .admin-modal-card,
:root[data-theme="dark"] .auth-modal-card,
:root[data-theme="dark"] .share-modal-card,
:root[data-theme="dark"] .profile-dropdown,
:root[data-theme="dark"] .upload-queue-item,
:root[data-theme="dark"] .category-admin-item {
  background: #1d0f1b !important;
  border-color: rgba(255, 196, 226, 0.14) !important;
  color: #fbeef6 !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .category-choice,
:root[data-theme="dark"] .admin-inline-filter input {
  background-color: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 196, 226, 0.15) !important;
  color: #fbeef6 !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #bfa2b3 !important;
}

:root[data-theme="dark"] option {
  background: #1d0f1b;
  color: #fbeef6;
}

/* Complete dark surfaces and persistent reaction states. Keep last. */
:root[data-theme="dark"],
:root[data-theme="dark"] body {
  background-color: #0e060d !important;
  color: #fbeef6 !important;
}

:root[data-theme="dark"] .watch-page-shell,
:root[data-theme="dark"] .watch-page-shell .watch-layout,
:root[data-theme="dark"] .watch-page-shell .player-column {
  color: #fbeef6 !important;
}

:root[data-theme="dark"] .watch-page-shell .watch-panel,
:root[data-theme="dark"] .watch-page-shell .watch-section-head,
:root[data-theme="dark"] .watch-page-shell .below-video-card,
:root[data-theme="dark"] .watch-page-shell .sample-ad-card,
:root[data-theme="dark"] .watch-page-shell .side-card,
:root[data-theme="dark"] .watch-page-shell .player-endscreen-card,
:root[data-theme="dark"] .watch-page-shell .ad-placement-shell,
:root[data-theme="dark"] .watch-page-shell .banner-runtime-shell,
:root[data-theme="dark"] .watch-page-shell .profile-dropdown {
  background: #1d0f1b !important;
  border-color: rgba(255, 196, 226, 0.14) !important;
  color: #fbeef6 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34) !important;
}

:root[data-theme="dark"] .watch-page-shell .below-video-copy,
:root[data-theme="dark"] .watch-page-shell .video-copy {
  background: #1d0f1b !important;
  color: #fbeef6 !important;
}

:root[data-theme="dark"] .watch-page-shell .watch-title-panel h1,
:root[data-theme="dark"] .watch-page-shell .watch-channel strong,
:root[data-theme="dark"] .watch-page-shell .watch-section-head h2,
:root[data-theme="dark"] .watch-page-shell .below-video-copy h3,
:root[data-theme="dark"] .watch-page-shell .below-video-copy h3 a {
  color: #fff7fb !important;
}

:root[data-theme="dark"] .watch-page-shell .watch-meta,
:root[data-theme="dark"] .watch-page-shell .watch-channel span,
:root[data-theme="dark"] .watch-page-shell .watch-section-head p,
:root[data-theme="dark"] .watch-page-shell .below-video-copy .video-stats,
:root[data-theme="dark"] .watch-page-shell .reaction-status {
  color: #d8bfd0 !important;
}

:root[data-theme="dark"] .watch-page-shell .pagination-link,
:root[data-theme="dark"] .watch-page-shell .pagination-next,
:root[data-theme="dark"] .watch-page-shell .icon-action,
:root[data-theme="dark"] .watch-page-shell .reaction-btn {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 196, 226, 0.15) !important;
  color: #ffe8f3 !important;
}

.watch-page-shell .reaction-btn[data-reaction="like"].is-active,
:root[data-theme="dark"] .watch-page-shell .reaction-btn[data-reaction="like"].is-active {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  border-color: #4ade80 !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.3) !important;
}

.watch-page-shell .reaction-btn[data-reaction="dislike"].is-active,
:root[data-theme="dark"] .watch-page-shell .reaction-btn[data-reaction="dislike"].is-active {
  background: linear-gradient(135deg, #f43f5e, #be123c) !important;
  border-color: #fb7185 !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.3) !important;
}

:root[data-theme="dark"] .watch-page-shell .reaction-btn.is-active .action-icon,
:root[data-theme="dark"] .watch-page-shell .reaction-btn.is-active strong,
:root[data-theme="dark"] .watch-page-shell .reaction-btn.is-active span {
  color: #fff !important;
}

:root[data-theme="dark"] .watch-page-shell .pagination-link.active {
  background: linear-gradient(135deg, #ec4899, #be185d) !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  .admin-bulk-editor {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-bulk-editor input,
  .admin-bulk-editor select,
  .admin-bulk-editor .btn {
    width: 100%;
  }
}

/* In-player pre-roll, mid-roll and post-roll ads. */
.player-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  background: #080508;
  color: #fff;
}

.player-ad-overlay[hidden] {
  display: none !important;
}

.player-ad-overlay.is-open {
  display: block;
}

.player-ad-overlay > video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-ad-topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.player-ad-topbar span,
.player-ad-click,
.player-ad-skip,
.player-ad-play {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 8, 12, 0.78);
  color: #fff;
  backdrop-filter: blur(10px);
}

.player-ad-topbar span {
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 800;
}

.player-ad-click {
  position: absolute;
  left: 12px;
  bottom: 14px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 800;
}

.player-ad-skip {
  position: absolute;
  right: 12px;
  bottom: 14px;
  min-width: 94px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.player-ad-skip:disabled {
  cursor: default;
  opacity: 0.72;
}

.player-ad-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 700px) {
  .player-ad-topbar {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .player-ad-click {
    left: 8px;
    bottom: 8px;
  }

  .player-ad-skip {
    right: 8px;
    bottom: 8px;
  }
}

@keyframes adTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-24%);
  }
}

.category-admin-list {
  display: grid;
  gap: 12px;
}

.ad-admin-layout {
  display: grid;
  gap: 24px;
}

.ad-manager-card {
  padding: 24px;
}

.ad-admin-form {
  gap: 20px;
}

.ad-slot-editor {
  padding: 18px;
}

.ad-slot-editor-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ad-slot-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: rgba(255, 248, 251, 0.82);
}

.ad-slot-preview-head {
  display: grid;
  gap: 4px;
}

.ad-slot-preview-head span,
.ad-slot-preview-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.ad-slot-preview {
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(236, 72, 153, 0.26);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(255, 255, 255, 0.88));
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.ad-slot-preview-leaderboard {
  min-height: 90px;
}

.ad-slot-preview-box {
  min-height: 250px;
}

.ad-slot-preview-skyscraper {
  min-height: 280px;
}

.ad-slot-preview-mobilebar {
  min-height: 50px;
}

.ad-slot-preview-footer {
  min-height: 60px;
}

.ad-slot-preview-bar {
  min-height: 88px;
}

.ad-slot-preview-fullscreen {
  min-height: 160px;
}

.ad-slot-preview-button {
  min-height: 64px;
}

.ad-slot-preview-native {
  min-height: 180px;
}

.ad-slot-editor-fields {
  display: grid;
  gap: 14px;
}

:root[data-theme="dark"] .super-admin-shell .form-card,
:root[data-theme="dark"] .super-admin-shell .table-card,
:root[data-theme="dark"] .super-admin-shell .stat-card {
  background: linear-gradient(135deg, rgba(30, 14, 27, 0.96), rgba(21, 10, 20, 0.94));
  border-color: rgba(255, 196, 226, 0.1);
}

.super-admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.super-admin-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.super-admin-brandbox,
.super-admin-mini-stats,
.super-admin-main .form-card,
.super-admin-main .stat-card,
.admin-panel-section {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 248, 0.93));
  box-shadow: 0 20px 44px rgba(35, 19, 29, 0.08);
}

.super-admin-brandbox {
  padding: 22px;
}

.super-admin-brandbox h2,
.admin-panel-head h1 {
  margin: 6px 0 0;
}

.super-admin-brandbox p,
.admin-panel-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.super-admin-nav {
  display: grid;
  gap: 10px;
}

.super-admin-nav-btn {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  background: rgba(255, 247, 251, 0.86);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.super-admin-nav-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.super-admin-mini-stats {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.super-admin-mini-stats article {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.super-admin-mini-stats strong {
  font-size: 1.35rem;
}

.super-admin-main {
  display: grid;
  gap: 18px;
}

.admin-panel-section {
  display: none;
  padding: 22px;
}

.admin-panel-section.is-active {
  display: grid;
  gap: 18px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

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

.super-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 18px;
}

.latest-video-panel,
.admin-users-preview,
.mobile-preview-panel,
.ad-slot-card-grid,
.blocked-ip-list {
  padding: 20px;
}

.latest-video-cards {
  display: grid;
  gap: 12px;
}

.latest-video-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 251, 0.82);
}

.latest-video-card img {
  width: 84px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.latest-video-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-user-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.admin-user-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: rgba(255, 248, 251, 0.84);
}

.admin-user-card-wide {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.admin-user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-user-serial {
  color: var(--pink-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-user-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.admin-user-card > span,
.admin-user-card small,
.admin-user-card-copy span,
.admin-user-card-copy small {
  color: var(--muted);
}

.admin-ads-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.admin-phone-preview {
  width: min(100%, 280px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, #fff4f9, #ffd9eb);
  border: 1px solid rgba(236, 72, 153, 0.14);
}

.admin-phone-preview-top {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-phone-preview-body {
  position: relative;
  height: 420px;
  margin-top: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 233, 245, 0.9));
  overflow: hidden;
}

.admin-slot-hotspot {
  position: absolute;
  border: 0;
  border-radius: 16px;
  background: rgba(236, 72, 153, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.hotspot-header {
  top: 14px;
  left: 14px;
  right: 14px;
  height: 48px;
}

.hotspot-social {
  top: 82px;
  left: 18px;
  right: 18px;
  height: 64px;
}

.hotspot-feed {
  top: 174px;
  left: 20px;
  width: 200px;
  height: 168px;
}

.hotspot-bottom {
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 42px;
}

.ad-slot-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-slot-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 20px;
  background: rgba(255, 248, 251, 0.85);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-slot-card small,
.admin-slot-card em {
  color: var(--muted);
  font-style: normal;
}

.blocked-ip-list {
  display: grid;
  gap: 12px;
}

.blocked-ip-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 247, 251, 0.84);
}

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

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
}

.admin-modal.is-open {
  display: grid;
  place-items: center;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 10, 16, 0.56);
  backdrop-filter: blur(10px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 640px);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 241, 247, 0.95));
  box-shadow: 0 24px 60px rgba(17, 10, 16, 0.22);
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-deep);
  font-size: 1.3rem;
  cursor: pointer;
}

:root[data-theme="dark"] .ad-slot-preview-card {
  background: rgba(28, 14, 26, 0.95);
  border-color: rgba(255, 196, 226, 0.12);
}

:root[data-theme="dark"] .ad-slot-preview {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 196, 226, 0.18);
  color: #ffdbe9;
}

:root[data-theme="dark"] .super-admin-brandbox,
:root[data-theme="dark"] .super-admin-mini-stats,
:root[data-theme="dark"] .admin-panel-section,
:root[data-theme="dark"] .admin-user-card,
:root[data-theme="dark"] .admin-slot-card,
:root[data-theme="dark"] .latest-video-card,
:root[data-theme="dark"] .blocked-ip-card,
:root[data-theme="dark"] .admin-modal-card {
  background: linear-gradient(135deg, rgba(30, 14, 27, 0.96), rgba(21, 10, 20, 0.94));
  border-color: rgba(255, 196, 226, 0.1);
}

:root[data-theme="dark"] .super-admin-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 196, 226, 0.1);
  color: #ffe7f2;
}

:root[data-theme="dark"] .super-admin-nav-btn.is-active {
  color: #fff;
}

:root[data-theme="dark"] .admin-phone-preview {
  background: linear-gradient(180deg, #2a1324, #1c0d17);
}

:root[data-theme="dark"] .admin-phone-preview-top,
:root[data-theme="dark"] .admin-phone-preview-body {
  background: rgba(255, 255, 255, 0.04);
  color: #ffe7f2;
}

:root[data-theme="dark"] .channel-page-shell .channel-hero {
  background: linear-gradient(135deg, rgba(30, 14, 27, 0.95), rgba(21, 10, 20, 0.94));
  border-color: rgba(255, 196, 226, 0.1);
}

.category-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.category-pill.static {
  pointer-events: none;
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

body.modal-open {
  overflow: hidden;
}

.share-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.share-modal-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.share-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 240, 247, 0.9);
  color: var(--pink-deep);
  font-size: 1.5rem;
  cursor: pointer;
}

.share-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

.auth-ban-note {
  padding: 12px 14px;
  border: 1px solid rgba(200, 30, 30, 0.12);
  border-radius: 16px;
  background: rgba(255, 242, 242, 0.94);
  color: #a61b1b;
  font-weight: 600;
}

#share-feedback {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .super-admin-layout,
  .super-dashboard-grid,
  .admin-ads-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-sidebar {
    position: static;
  }

  .admin-user-card-grid,
  .admin-user-card-grid-wide,
  .ad-slot-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-banner-grid,
  .grid-layout,
  .watch-layout,
  .admin-grid,
  .hero-card,
  .watch-info-grid,
  .below-video-list {
    grid-template-columns: 1fr;
  }

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

  .quick-picks-row,
  .category-row,
  .ad-runway {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-ad-mosaic,
  .watch-ad-cluster {
    grid-template-columns: 1fr;
  }

  .sponsor-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-panel-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .super-stats-row,
  .admin-user-card-grid,
  .admin-user-card-grid-wide,
  .ad-slot-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-card-wide {
    grid-template-columns: 1fr;
  }

  .admin-modal-card {
    width: min(94vw, 94vw);
    max-height: 90vh;
    padding: 18px;
    border-radius: 24px;
  }

  .page-shell,
  .admin-shell,
  .auth-shell {
    width: min(100% - 20px, 100%);
  }

  .topbar,
  .section-header,
  .watch-head-row,
  .watch-top-ad,
  .queue-head,
  .ad-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-search,
  .top-links,
  .top-links-strong,
  .hero-actions,
  .form-actions,
  .watch-actions {
    width: 100%;
  }

  .top-links,
  .top-links-strong {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-links-strong a,
  .nav-pill-btn,
  .theme-toggle,
  .category-pill {
    min-height: 36px;
    padding: 8px 12px;
  }

  .video-grid,
  .quick-picks-row,
  .category-row,
  .featured-shelf,
  .ad-runway {
    grid-template-columns: 1fr;
  }

  .below-video-card,
  .playlist-item {
    grid-template-columns: 1fr;
  }

  .playlist-item img {
    height: 160px;
  }

  .seek-zone {
    width: 26%;
  }

  .compact-ad-card,
  .billboard-ad {
    position: static;
  }

  .player-tools-bar {
    align-items: flex-start;
  }

  .tool-select {
    width: 100%;
    justify-content: space-between;
  }

  .share-copy-row {
    grid-template-columns: 1fr;
  }

  .player-endscreen-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-endscreen-slider {
    grid-auto-columns: minmax(200px, 72vw);
  }

  .floating-progress {
    left: 12px;
    right: 12px;
    min-width: 0;
  }

  .ad-chathead {
    left: 12px;
    bottom: 88px;
  }

  .ad-slot-editor-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card strong {
    font-size: 1.45rem;
  }

  .form-card,
  .table-card,
  .auth-card {
    padding: 18px;
    border-radius: 22px;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 14px;
  }

  .table-wrap tr {
    padding: 16px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    border-radius: 22px;
    background: rgba(255, 250, 252, 0.84);
    box-shadow: 0 14px 28px rgba(35, 19, 29, 0.06);
  }

  .table-wrap td {
    padding: 0;
    border-bottom: 0;
  }

  .table-wrap td + td {
    margin-top: 12px;
  }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--pink-deep);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-wrap td:first-child::before {
    display: none;
  }

  .table-video {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .table-video img {
    width: 96px;
    height: 68px;
    border-radius: 16px;
  }

  .table-actions {
    gap: 8px;
  }

  .table-actions .text-link {
    padding: 10px 12px;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1;
  }

  .table-actions .text-link.danger {
    border-color: rgba(200, 30, 30, 0.15);
    background: rgba(255, 242, 242, 0.9);
  }

  .profile-avatar-editor,
  .channel-page-shell .channel-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumbnail-picker-head {
    display: grid;
  }

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

  :root[data-theme="dark"] .table-wrap tr {
    background: rgba(28, 14, 26, 0.95);
    border-color: rgba(255, 196, 226, 0.1);
  }

  :root[data-theme="dark"] .table-actions .text-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 196, 226, 0.12);
    color: #ffe5f0;
  }
}

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

  .video-grid > .video-card,
  .video-grid > .video-card.compact-card {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .page-shell,
  .watch-shell,
  .admin-shell,
  .auth-shell {
    width: min(100% - 12px, 100%);
  }

  .topbar,
  .watch-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "search search";
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand,
  .top-search,
  .top-links,
  .top-links-strong,
  .watch-panel,
  .player-column,
  .playlist-column,
  .player-frame,
  .watch-title-panel,
  .watch-head-row,
  .watch-channel,
  .watch-actions,
  .grid-layout,
  .watch-layout,
  .below-video-list,
  .below-video-card {
    min-width: 0;
    max-width: 100%;
  }

  .brand {
    grid-area: brand;
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .top-search {
    grid-area: search;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .top-links,
  .top-links-strong {
    grid-area: nav;
    width: auto;
    justify-content: flex-end;
    justify-self: end;
    gap: 6px;
  }

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

  .sidebar-stack,
  .playlist-column {
    width: 100%;
  }

  .category-strip {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .watch-shell,
  .admin-shell,
  .auth-shell {
    width: min(100% - 12px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .watch-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "search search";
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 18px;
  }

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

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .top-search {
    grid-area: search;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 5px 8px;
    gap: 6px;
  }

  .top-search input {
    min-width: 0;
    font-size: 0.84rem;
  }

  .top-links,
  .top-links-strong {
    grid-area: nav;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    justify-self: end;
    gap: 6px;
  }

  .top-links-strong a,
  .nav-pill-btn,
  .theme-toggle {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .category-strip {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 2px;
  }

  .category-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .ad-runway,
  .hero-card,
  .featured-shelf,
  .sidebar-stack,
  .playlist-column .compact-ad-card,
  .playlist-column .billboard-ad,
  .player-tools-bar {
    display: none;
  }

  .grid-layout,
  .watch-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .video-grid > .video-card,
  .video-grid > .video-card.compact-card {
    grid-column: span 1;
  }

  .video-card {
    border-radius: 16px;
  }

  .video-thumb img {
    height: 106px;
  }

  .video-copy {
    padding: 8px 8px 10px;
  }

  .category-chip,
  .feed-ad-label,
  .eyebrow,
  .billboard-label {
    padding: 5px 9px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .video-copy h3 {
    margin: 6px 0 4px;
    font-size: 0.82rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .video-stats {
    gap: 5px;
    font-size: 0.72rem;
  }

  .video-card .video-stats span:nth-child(n+2) {
    display: none;
  }

  .duration-pill,
  .upload-age-tag,
  .sponsored-badge {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .card-share-btn {
    width: 28px;
    height: 28px;
  }

  .card-share-btn svg {
    width: 14px;
    height: 14px;
  }

  .duration-pill {
    right: 8px;
    bottom: 8px;
  }

  .upload-age-tag,
  .sponsored-badge {
    left: 8px;
    top: 8px;
  }

  .watch-shell .page-shell,
  .watch-panel {
    gap: 10px;
  }

  .player-frame {
    padding: 8px;
    border-radius: 18px;
  }

  .player-surface,
  .player-frame video {
    border-radius: 14px;
  }

  .watch-title-panel h1 {
    margin: 4px 0 6px;
    font-size: 1.12rem;
    line-height: 1.08;
  }

  .watch-meta {
    gap: 7px;
    font-size: 0.76rem;
  }

  .watch-head-row {
    gap: 10px;
    padding-top: 0;
  }

  .watch-channel {
    gap: 10px;
  }

  .watch-channel-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .watch-actions {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .watch-actions::-webkit-scrollbar {
    display: none;
  }

  .icon-action,
  .reaction-btn {
    min-height: 36px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.82rem;
    flex: 0 0 auto;
  }

  .action-icon,
  .action-icon svg {
    width: 17px;
    height: 17px;
  }

  .description-card {
    padding: 16px;
  }

  .description-card h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .description-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .section-header h2 {
    font-size: 1.18rem;
  }

  .section-header p {
    font-size: 0.82rem;
  }

  .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .below-video-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .below-video-thumb img {
    height: 106px;
    border-radius: 12px;
  }

  .below-video-copy {
    gap: 4px;
    padding: 0 2px 2px;
  }

  .below-video-copy h3 {
    font-size: 0.82rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .below-video-copy p,
  .below-video-copy .video-stats {
    font-size: 0.72rem;
  }

  .below-video-card .video-stats span:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-leaderboard-slot,
  .runtime-ad-slot[data-ad-slot="header_728"] {
    display: flex !important;
    justify-content: center !important;
  }

  .home-page-shell > .runtime-ad-slot[data-ad-slot="home_300"],
  .watch-page-shell .compact-order + .runtime-ad-slot[data-ad-slot="video_300_b"],
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="video_300_a"],
  .watch-page-shell .watch-panel + .runtime-ad-slot[data-ad-slot="video_300_b"],
  .watch-page-shell .runtime-ad-slot[data-ad-slot="native_banner"],
  .home-page-shell > .runtime-ad-slot[data-ad-slot="native_banner"] {
    width: min(100%, 300px);
    margin: 10px auto 12px;
  }

  .home-page-shell > .runtime-ad-slot[data-ad-slot="home_300"] + .home-secondary-sections {
    margin-top: 4px;
  }

  .watch-page-shell .playlist-column > .runtime-ad-slot[data-ad-slot="sidebar_160"],
  .home-page-shell .sidebar-stack > .runtime-ad-slot[data-ad-slot="sidebar_160"],
  .home-page-shell .sidebar-stack > .runtime-ad-slot[data-ad-slot="compact_160"],
  .watch-page-shell .playlist-column > .runtime-ad-slot[data-ad-slot="compact_160"],
  .watch-page-shell .watch-info-grid,
  .watch-page-shell .playlist-column > .runtime-ad-slot[data-ad-slot="sidebar_160"] {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .home-page-shell > .runtime-ad-slot[data-ad-slot="home_300"],
  .watch-page-shell .compact-order + .runtime-ad-slot[data-ad-slot="video_300_b"] {
    margin: 8px auto 10px;
  }
}

@media (min-width: 901px) {
  .home-page-shell > .runtime-ad-slot[data-ad-slot="header_728"] {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 6px 18px;
  }

  .page-shell > * {
    max-width: 100%;
  }

  .topbar,
  .watch-topbar {
    width: 100%;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "search search";
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .top-search {
    grid-area: search;
    width: 100%;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 999px;
  }

  .search-icon-btn {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .search-icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .top-search input {
    font-size: 0.74rem;
  }

  .top-links,
  .top-links-strong {
    grid-area: nav;
    gap: 4px;
    justify-self: end;
  }

  .top-links-strong a,
  .nav-pill-btn,
  .theme-toggle {
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 0.68rem;
  }

  .profile-menu-trigger {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .category-strip,
  .category-strip-watch {
    gap: 6px;
    margin: 0 0 8px;
    padding: 0 2px 2px;
  }

  .category-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .ad-runway,
  .featured-shelf,
  .sidebar-stack,
  .sponsor-strip,
  .watch-top-ad,
  .watch-top-ad-compact,
  .watch-orb-card,
  .watch-banner-card,
  .playlist-column .billboard-ad,
  .playlist-column .compact-ad-card,
  .playlist-column .side-bubble-ad,
  .player-tools-bar {
    display: none !important;
  }

  .grid-layout,
  .watch-layout,
  .player-column,
  .playlist-column,
  .watch-panel,
  .watch-info-grid,
  .below-video-list,
  .discovery-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .grid-layout,
  .watch-layout,
  .watch-info-grid {
    display: block;
  }

  .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 4px;
    width: 100%;
    margin: 6px 0 8px;
    padding: 0 2px;
  }

  .section-header h2,
  .section-header.compact h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
  }

  .section-header p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.3;
    text-align: left;
  }

  .video-grid,
  .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: start;
  }

  .grid-layout {
    gap: 4px;
  }

  .video-grid > .video-card,
  .video-grid > .video-card.compact-card,
  .below-video-list > .below-video-card {
    grid-column: span 1;
  }

  .video-card,
  .below-video-card,
  .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 10px;
    box-shadow: none;
  }

  .video-thumb img,
  .below-video-thumb img {
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
  }

  .video-copy,
  .below-video-copy {
    padding: 6px 4px 8px;
    gap: 2px;
  }

  .video-copy h3,
  .below-video-copy h3 {
    margin: 3px 0 2px;
    font-size: 0.8rem;
    line-height: 1.16;
    -webkit-line-clamp: 2;
  }

  .video-stats,
  .below-video-copy p,
  .below-video-copy .video-stats {
    gap: 4px;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .video-card .video-stats,
  .below-video-card .video-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .video-card .video-stats span,
  .below-video-card .video-stats span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .video-card .video-stats span:nth-child(3),
  .below-video-card .video-stats span:nth-child(3) {
    display: none;
  }

  .below-video-copy p {
    display: none;
  }

  .category-chip,
  .feed-ad-label,
  .eyebrow,
  .billboard-label {
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  .duration-pill,
  .upload-age-tag,
  .sponsored-badge {
    padding: 3px 6px;
    font-size: 0.58rem;
  }

  .sponsored-video-card .video-copy,
  .sample-ad-card.inline-feed-ad.sponsored-feed-card .below-video-copy {
    padding-top: 4px;
  }

  .sponsored-video-card .video-stats span:nth-child(2),
  .sample-ad-card.inline-feed-ad.sponsored-feed-card .video-stats span:nth-child(2) {
    display: none;
  }

  .pagination-bar {
    justify-content: flex-start;
  }

  .watch-shell .category-strip-watch {
    margin-bottom: 6px;
  }

  .player-frame {
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .player-surface,
  .player-frame video {
    border-radius: 10px;
  }

  .watch-panel {
    display: grid;
    gap: 8px;
    padding: 0;
    margin-top: 0;
  }

  .watch-title-panel h1 {
    margin: 2px 0 4px;
    font-size: 0.98rem;
    line-height: 1.12;
  }

  .watch-meta {
    gap: 5px;
    font-size: 0.68rem;
  }

  .watch-head-row {
    display: grid;
    gap: 8px;
  }

  .watch-channel {
    gap: 8px;
  }

  .watch-channel-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .watch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    width: 100%;
    justify-content: stretch;
  }

  .icon-action,
  .reaction-btn {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    gap: 5px;
    justify-content: center;
    font-size: 0.68rem;
  }

  .icon-action span:not(.action-icon),
  .reaction-btn span:not(.action-icon),
  .reaction-btn strong {
    white-space: nowrap;
  }

  .watch-actions > .icon-action:last-child {
    grid-column: span 2;
  }

  .description-card {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .description-card h2 {
    margin: 0 0 6px;
    font-size: 0.84rem;
  }

  .description-card p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .pagination-bar {
    gap: 6px;
    margin-top: 10px;
  }

  .pagination-link,
  .pagination-next {
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .floating-progress {
    left: 8px;
    right: 8px;
    min-width: 0;
  }

  .ad-chathead {
    left: 8px;
    bottom: 72px;
  }
}

@media (max-width: 900px) {
  .topbar,
  .watch-topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "search"
      "nav";
    align-items: stretch;
  }

  .top-search {
    min-width: 0;
  }

  .top-links,
  .top-links-strong {
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .top-links-strong a,
  .nav-pill-btn,
  .theme-toggle {
    min-width: 42px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .watch-page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .watch-page-shell .watch-panel {
    gap: 12px;
  }

  .watch-page-shell .watch-title-panel h1 {
    margin: 4px 0 6px;
    font-size: 1.12rem;
    line-height: 1.18;
  }

  .watch-page-shell .watch-meta {
    gap: 8px;
    font-size: 0.78rem;
  }

  .watch-page-shell .watch-head-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .watch-page-shell .watch-channel {
    min-width: 0;
  }

  .watch-page-shell .watch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    justify-content: center;
    font-size: 0.76rem;
  }

  .watch-page-shell .watch-actions > .icon-action:last-child {
    grid-column: span 2;
  }

  .watch-page-shell .description-card {
    margin-top: 10px;
    padding: 14px;
    border-radius: 14px;
  }

  .watch-page-shell .description-card h2 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .watch-page-shell .description-card p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .watch-page-shell .watch-section-head {
    gap: 6px;
    margin-top: 12px;
  }

  .watch-page-shell .watch-section-head p {
    font-size: 0.76rem;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .watch-page-shell .below-video-thumb img {
    height: 100%;
    min-height: 108px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .watch-page-shell .below-video-copy {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 0;
  }

  .watch-page-shell .below-video-copy h3 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.28;
  }

  .watch-page-shell .below-video-copy p,
  .watch-page-shell .below-video-copy .video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .watch-page-shell .below-video-card .video-stats span,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card .video-stats span {
    display: inline;
  }
}

@media (max-width: 640px) {
  .watch-page-shell .watch-actions {
    grid-template-columns: 1fr;
  }

  .watch-page-shell .watch-actions > .icon-action:last-child {
    grid-column: auto;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: 1fr;
  }

  .watch-page-shell .below-video-thumb img {
    min-height: 160px;
    height: auto;
  }
}

@media (max-width: 900px) {
  .watch-page-shell,
  .home-page-shell {
    width: min(100% - 24px, 100%);
    margin: 0 auto;
  }

  .topbar,
  .watch-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "search"
      "nav";
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .brand,
  .top-search,
  .top-links,
  .top-links-strong {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: block;
  }

  .nav-label-full {
    display: inline;
  }

  .nav-label-short {
    display: none;
  }

  .top-search {
    min-width: 0;
    padding: 6px 10px;
  }

  .top-links,
  .top-links-strong {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-links-strong a,
  .nav-pill-btn,
  .theme-toggle,
  .profile-menu-trigger {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0.8rem;
  }

  .watch-top-ad,
  .ad-banner,
  .sponsor-strip {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .watch-page-shell > .topbar,
  .watch-page-shell .watch-top-ad,
  .watch-page-shell .player-frame,
  .watch-page-shell .watch-panel,
  .watch-page-shell .sponsor-strip,
  .watch-page-shell .watch-info-grid,
  .watch-page-shell .section-header,
  .watch-page-shell .below-video-list,
  .home-page-shell > .topbar,
  .home-page-shell .section-header,
  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    width: calc(100% - 8px);
    margin-left: auto;
    margin-right: auto;
  }

  .watch-top-ad,
  .ad-banner {
    display: grid;
  }

  .live-ad-slot,
  .live-ad-slot-banner,
  .watch-top-ad img,
  .ad-banner img {
    min-width: 0;
    max-width: 100%;
  }

  .watch-page-shell .watch-head-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 0;
  }

  .watch-page-shell .watch-channel {
    align-items: center;
    margin: 0;
  }

  .watch-page-shell .watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: flex-start;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    flex: 0 1 auto;
    min-height: 42px;
    min-width: 0;
    padding: 0 10px;
    font-size: 0.82rem;
    margin: 0;
  }

  .watch-page-shell .watch-actions > .icon-action:last-child {
    grid-column: auto;
  }

  .watch-page-shell .watch-title-panel h1 {
    font-size: 1.24rem;
    line-height: 1.22;
  }

  .watch-page-shell .watch-meta {
    gap: 8px;
    font-size: 0.82rem;
  }

  .watch-page-shell .description-card {
    padding: 16px;
  }

  .watch-page-shell .description-card h2 {
    font-size: 1.12rem;
  }

  .watch-page-shell .description-card p {
    font-size: 0.84rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding: 10px 0 24px;
  }

  .home-page-shell .section-header,
  .watch-page-shell .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .home-page-shell .section-header h2,
  .watch-page-shell .section-header h2,
  .watch-page-shell .section-header.compact h2 {
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .home-page-shell .section-header .seo-page-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .seo-intro {
    width: calc(100% - 8px);
    margin: 0 auto;
    padding: 14px;
    border-radius: 16px;
  }

  .home-page-shell .section-header p,
  .watch-page-shell .section-header p {
    font-size: 0.82rem;
    text-align: left;
  }

  .home-page-shell .ad-runway,
  .home-page-shell .featured-shelf,
  .home-page-shell .quick-picks-row,
  .home-page-shell .sidebar-stack,
  .watch-page-shell .playlist-column,
  .watch-page-shell .player-tools-bar,
  .watch-page-shell .watch-ad-cluster {
    display: none !important;
  }

  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid,
  .watch-page-shell .watch-layout,
  .watch-page-shell .watch-info-grid,
  .watch-page-shell .below-video-list {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card,
  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .home-page-shell .video-thumb img {
    height: auto !important;
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .home-page-shell .video-copy {
    padding: 14px;
  }

  .home-page-shell .video-copy h3 {
    margin: 10px 0 6px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .home-page-shell .video-stats {
    gap: 8px;
    font-size: 0.8rem;
  }

  .home-page-shell .video-card .video-stats span,
  .home-page-shell .sponsored-video-card .video-stats span {
    display: inline;
  }

  .watch-page-shell .watch-panel {
    gap: 14px;
  }

  .watch-page-shell .watch-title-panel h1 {
    font-size: 1.35rem;
  }

  .watch-page-shell .watch-channel-mark {
    width: 42px;
    height: 42px;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .watch-page-shell .below-video-thumb img {
    height: 100%;
    min-height: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .watch-page-shell .below-video-copy {
    gap: 6px;
    padding: 0;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.98rem;
    line-height: 1.28;
  }

  .watch-page-shell .below-video-copy p,
  .watch-page-shell .below-video-copy .video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
  }

  .watch-page-shell .below-video-card .video-stats span {
    display: inline;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .topbar,
  .watch-topbar {
    padding: 10px;
    border-radius: 18px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .top-search input {
    font-size: 0.8rem;
  }

  .category-strip,
  .suggestion-pills {
    gap: 8px;
    margin-bottom: 12px;
  }

  .category-pill,
  .suggestion-pill {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .home-page-shell .video-thumb img,
  .watch-page-shell .below-video-thumb img {
    min-height: 170px;
  }

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

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    flex: initial;
    width: 100%;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .page-shell,
  .watch-page-shell,
  .home-page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .watch-page-shell > .topbar,
  .watch-page-shell .watch-top-ad,
  .watch-page-shell .player-frame,
  .watch-page-shell .watch-panel,
  .watch-page-shell .sponsor-strip,
  .watch-page-shell .watch-info-grid,
  .watch-page-shell .section-header,
  .watch-page-shell .below-video-list,
  .home-page-shell > .topbar,
  .home-page-shell .section-header,
  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 300px) auto;
    grid-template-areas: "brand search nav";
    align-items: center;
    gap: 10px;
  }

  .home-page-shell .top-search,
  .watch-page-shell .top-search {
    width: 100%;
    max-width: 300px;
    justify-self: center;
    padding: 4px 8px;
  }

  .home-page-shell .top-links,
  .home-page-shell .top-links-strong,
  .watch-page-shell .top-links,
  .watch-page-shell .top-links-strong {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .home-page-shell .top-links-strong a,
  .home-page-shell .nav-pill-btn,
  .home-page-shell .theme-toggle,
  .watch-page-shell .top-links-strong a,
  .watch-page-shell .nav-pill-btn,
  .watch-page-shell .theme-toggle {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .watch-page-shell .watch-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .watch-page-shell .watch-channel {
    min-width: 0;
    gap: 10px;
  }

  .watch-page-shell .watch-channel > div:last-child {
    min-width: 0;
  }

  .watch-page-shell .watch-channel strong,
  .watch-page-shell .watch-channel span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .watch-page-shell .watch-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    gap: 4px;
    margin: 0;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 8px;
    gap: 5px;
    margin: 0;
    font-size: 0.72rem;
  }

  .watch-page-shell .action-icon,
  .watch-page-shell .action-icon svg {
    width: 15px;
    height: 15px;
  }
}

/* Final mobile-first app-style overrides */
@media (max-width: 640px) {
  .page-shell,
  .watch-page-shell,
  .home-page-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 8px 22px !important;
  }

  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
  }

  .home-page-shell .top-search,
  .watch-page-shell .top-search {
    padding: 6px 10px !important;
  }

  .home-page-shell .top-search input,
  .watch-page-shell .top-search input {
    font-size: 0.86rem !important;
  }

  .home-page-shell .category-strip,
  .watch-page-shell .category-strip-watch {
    gap: 8px !important;
    margin: 0 0 10px !important;
  }

  .home-page-shell .category-pill,
  .watch-page-shell .category-pill {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.82rem !important;
  }

  .home-page-shell .section-header,
  .watch-page-shell .section-header {
    gap: 5px !important;
    margin: 4px 0 10px !important;
    padding: 0 2px !important;
  }

  .home-page-shell .section-header h2,
  .watch-page-shell .section-header h2,
  .watch-page-shell .section-header.compact h2 {
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
  }

  .home-page-shell .section-header p,
  .watch-page-shell .section-header p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    border-radius: 18px !important;
    box-shadow: var(--shadow) !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 190px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 14px !important;
  }

  .home-page-shell .video-copy {
    padding: 12px 12px 14px !important;
    gap: 4px !important;
  }

  .home-page-shell .video-copy h3 {
    margin: 8px 0 4px !important;
    font-size: 1.02rem !important;
    line-height: 1.28 !important;
  }

  .home-page-shell .video-stats {
    gap: 6px !important;
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow {
    padding: 4px 8px !important;
    font-size: 0.64rem !important;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    padding: 4px 7px !important;
    font-size: 0.62rem !important;
  }

  .watch-page-shell .watch-title-panel h1 {
    font-size: 1.3rem !important;
    line-height: 1.18 !important;
    margin: 4px 0 6px !important;
  }

  .watch-page-shell .watch-meta {
    gap: 7px !important;
    font-size: 0.8rem !important;
  }

  .watch-page-shell .watch-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    min-height: 40px !important;
    font-size: 0.76rem !important;
  }

  .watch-page-shell .description-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .watch-page-shell .description-card h2 {
    font-size: 1.05rem !important;
    margin: 0 0 6px !important;
  }

  .watch-page-shell .description-card p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .watch-page-shell .media-ad-card {
    padding: 10px !important;
    gap: 8px !important;
  }

  .watch-page-shell .media-ad-card img,
  .watch-page-shell .media-ad-card video {
    min-height: 110px !important;
    max-height: 110px !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 9px !important;
    border-radius: 14px !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 108px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .below-video-copy {
    gap: 4px !important;
    padding: 0 !important;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
  }

  .watch-page-shell .below-video-copy p,
  .watch-page-shell .below-video-copy .video-stats {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    gap: 4px !important;
  }
}

@media (max-width: 900px) {
  .home-page-shell .section-header h2,
  .watch-page-shell .section-header h2,
  .watch-page-shell .section-header.compact h2 {
    font-size: 1.5rem !important;
    line-height: 1.12 !important;
  }

  .home-page-shell .section-header p,
  .watch-page-shell .section-header p {
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }

  .home-page-shell .category-pill,
  .watch-page-shell .category-pill {
    min-height: 36px !important;
    padding: 0 13px !important;
    font-size: 0.84rem !important;
  }

  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    border-radius: 18px !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 210px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  .home-page-shell .video-copy {
    padding: 14px !important;
    gap: 5px !important;
  }

  .home-page-shell .video-copy h3 {
    margin: 8px 0 4px !important;
    font-size: 1.06rem !important;
    line-height: 1.28 !important;
  }

  .home-page-shell .video-stats {
    gap: 6px !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow {
    padding: 4px 8px !important;
    font-size: 0.66rem !important;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    padding: 4px 7px !important;
    font-size: 0.64rem !important;
  }

  .watch-page-shell .watch-title-panel h1 {
    font-size: 1.38rem !important;
    line-height: 1.18 !important;
  }

  .watch-page-shell .watch-meta {
    font-size: 0.84rem !important;
    gap: 8px !important;
  }

  .watch-page-shell .description-card h2 {
    font-size: 1.12rem !important;
  }

  .watch-page-shell .description-card p {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }

  .watch-page-shell .media-ad-card {
    padding: 10px !important;
    gap: 8px !important;
  }

  .watch-page-shell .media-ad-card img,
  .watch-page-shell .media-ad-card video {
    min-height: 120px !important;
    max-height: 120px !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 118px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.88rem !important;
    line-height: 1.24 !important;
  }

  .watch-page-shell .below-video-copy p,
  .watch-page-shell .below-video-copy .video-stats {
    font-size: 0.72rem !important;
    gap: 4px !important;
    line-height: 1.22 !important;
  }
}

/* Final compact feed + video-page cleanup for <=900px */
@media (max-width: 900px) {
  .watch-page-shell .playlist-column {
    display: none !important;
  }

  .watch-page-shell .pagination-bar {
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
  }

  .watch-page-shell .pagination-link,
  .watch-page-shell .pagination-next {
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
  }

  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .home-page-shell .video-grid > .video-card,
  .home-page-shell .video-grid > .video-card.compact-card {
    grid-column: span 1 !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 128px !important;
    aspect-ratio: 16 / 11 !important;
    border-radius: 10px !important;
  }

  .home-page-shell .video-copy {
    padding: 8px 8px 10px !important;
    gap: 2px !important;
  }

  .home-page-shell .video-copy h3 {
    margin: 5px 0 3px !important;
    font-size: 0.82rem !important;
    line-height: 1.16 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .home-page-shell .video-stats {
    gap: 4px !important;
    font-size: 0.68rem !important;
    line-height: 1.18 !important;
  }

  .home-page-shell .video-stats span:nth-child(3) {
    display: none !important;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow {
    padding: 3px 7px !important;
    font-size: 0.56rem !important;
    letter-spacing: 0.06em !important;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    padding: 3px 6px !important;
    font-size: 0.56rem !important;
  }
}

@media (max-width: 560px) {
  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    gap: 6px !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 118px !important;
  }

  .home-page-shell .video-copy h3 {
    font-size: 0.78rem !important;
  }

  .watch-page-shell .below-video-list {
    gap: 8px !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 108px !important;
  }
}

@media (max-width: 900px) {
  .watch-page-shell .watch-head-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
    padding-top: 0 !important;
  }

  .watch-page-shell .watch-channel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .watch-page-shell .watch-channel-mark {
    width: 42px;
    height: 42px;
  }

  .watch-page-shell .watch-channel > div:last-child,
  .watch-page-shell .watch-channel strong,
  .watch-page-shell .watch-channel span {
    min-width: 0;
  }

  .watch-page-shell .watch-channel strong,
  .watch-page-shell .watch-channel span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .watch-page-shell .watch-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
    margin: 0 !important;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    gap: 4px;
    justify-content: center;
    font-size: 0.72rem;
  }

  .watch-page-shell .icon-action span:not(.action-icon),
  .watch-page-shell .reaction-btn span:not(.action-icon),
  .watch-page-shell .reaction-btn strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .watch-page-shell .action-icon,
  .watch-page-shell .action-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 760px) {
  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    border-radius: 14px;
  }

  .home-page-shell .video-thumb img {
    min-height: 132px !important;
    aspect-ratio: 16 / 10;
  }

  .home-page-shell .video-copy {
    padding: 11px;
  }

  .home-page-shell .video-copy h3 {
    margin: 7px 0 4px;
    font-size: 0.96rem;
    line-height: 1.24;
  }

  .home-page-shell .video-stats {
    gap: 5px;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow {
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .watch-page-shell .watch-info-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 12px;
  }

  .watch-page-shell .media-ad-card {
    gap: 8px;
    padding: 12px;
  }

  .watch-page-shell .media-ad-card img,
  .watch-page-shell .media-ad-card video {
    max-height: 140px;
    min-height: 140px;
    border-radius: 14px;
    object-fit: cover;
  }

  .watch-page-shell .media-ad-card strong {
    font-size: 0.92rem;
  }

  .watch-page-shell .media-ad-card p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .watch-page-shell .watch-section-head {
    margin-top: 8px;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 9px;
    border-radius: 14px;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 116px;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .watch-page-shell .below-video-copy {
    gap: 4px;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .watch-page-shell .below-video-copy p,
  .watch-page-shell .below-video-copy .video-stats {
    gap: 4px;
    font-size: 0.68rem;
    line-height: 1.2;
  }
}

@media (max-width: 560px) {
  .watch-page-shell .watch-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    font-size: 0.74rem;
  }

  .home-page-shell .video-thumb img {
    min-height: 118px !important;
  }

  .home-page-shell .video-copy h3 {
    font-size: 0.9rem;
  }

  .home-page-shell .video-stats {
    font-size: 0.72rem;
  }

  .watch-page-shell .media-ad-card img,
  .watch-page-shell .media-ad-card video {
    min-height: 120px;
    max-height: 120px;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 102px;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .topbar-sticky {
    position: fixed !important;
    top: 10px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    z-index: 90 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, rgba(255, 250, 253, 0.86), rgba(255, 239, 247, 0.82)) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    box-shadow: 0 14px 36px rgba(190, 24, 93, 0.14) !important;
  }

  .page-shell,
  .watch-page-shell,
  .home-page-shell {
    padding-top: 96px !important;
  }

  .home-page-shell .sidebar-stack {
    display: none !important;
  }

  .home-page-shell .home-secondary-sections {
    display: none !important;
  }

  .home-page-shell .grid-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: start !important;
  }

  .home-page-shell .video-grid > .video-card,
  .home-page-shell .video-grid > .video-card.compact-card,
  .home-page-shell .discovery-grid > .video-card,
  .home-page-shell .discovery-grid > .video-card.compact-card {
    grid-column: span 1 !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.94) !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 156px !important;
    height: auto !important;
    aspect-ratio: 0.92 / 1 !important;
    border-radius: 10px !important;
  }

  .home-page-shell .video-copy {
    padding: 8px 4px 8px !important;
    gap: 2px !important;
  }

  .home-page-shell .video-copy h3 {
    margin: 5px 0 2px !important;
    font-size: 0.8rem !important;
    line-height: 1.12 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .home-page-shell .video-stats {
    gap: 3px !important;
    font-size: 0.62rem !important;
    line-height: 1.12 !important;
  }

  .home-page-shell .video-stats span:nth-child(3) {
    display: none !important;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow {
    padding: 4px 8px !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.06em !important;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    padding: 3px 6px !important;
    font-size: 0.54rem !important;
  }
}

@media (max-width: 900px) {
  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 210px) auto !important;
    grid-template-areas: "brand search nav" !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .home-page-shell .top-search,
  .watch-page-shell .top-search {
    max-width: 210px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 6px !important;
    overflow: hidden !important;
    justify-self: center !important;
    transition: width 0.2s ease, box-shadow 0.2s ease !important;
  }

  .home-page-shell .top-search input,
  .watch-page-shell .top-search input {
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .home-page-shell .top-search.is-expanded,
  .watch-page-shell .top-search.is-expanded {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: calc(100% + 8px) !important;
    width: auto !important;
    max-width: none !important;
    padding: 6px 10px !important;
    box-shadow: 0 12px 28px rgba(190, 24, 93, 0.14) !important;
    z-index: 95 !important;
  }

  .home-page-shell .top-search.is-expanded input,
  .watch-page-shell .top-search.is-expanded input {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .home-page-shell .topbar.search-active .brand,
  .home-page-shell .topbar.search-active .top-links,
  .watch-page-shell .topbar.search-active .brand,
  .watch-page-shell .topbar.search-active .top-links {
    opacity: 0.12 !important;
  }

  .home-page-shell .top-links,
  .home-page-shell .top-links-strong,
  .watch-page-shell .top-links,
  .watch-page-shell .top-links-strong {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .home-page-shell .top-links-strong a,
  .home-page-shell .nav-pill-btn,
  .home-page-shell .theme-toggle,
  .watch-page-shell .top-links-strong a,
  .watch-page-shell .nav-pill-btn,
  .watch-page-shell .theme-toggle {
    padding: 0 7px !important;
    min-height: 34px !important;
    font-size: 0.72rem !important;
  }

  .watch-page-shell .watch-head-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .watch-page-shell .watch-channel {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .watch-page-shell .watch-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .watch-page-shell .watch-actions::-webkit-scrollbar {
    display: none !important;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    flex: 0 0 auto !important;
    min-width: 92px !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
  }

  .watch-page-shell .pagination-bar {
    justify-content: center !important;
    width: 100% !important;
  }

  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-radius: 12px !important;
    min-height: 250px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
    align-content: start !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 118px !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .below-video-copy {
    align-content: start !important;
    gap: 3px !important;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.82rem !important;
    line-height: 1.14 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 1.9em !important;
  }

  .watch-page-shell .below-video-copy p {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 1.2em !important;
  }

  .watch-page-shell .below-video-copy .video-stats {
    font-size: 0.66rem !important;
    line-height: 1.14 !important;
    gap: 3px !important;
  }

  .home-page-shell .category-strip,
  .watch-page-shell .category-strip-watch {
    position: sticky !important;
    top: 84px !important;
    z-index: 80 !important;
    padding-top: 6px !important;
    margin-top: 2px !important;
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.96), rgba(255, 244, 250, 0.78)) !important;
    backdrop-filter: blur(10px) !important;
  }
}

@media (max-width: 560px) {
  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    grid-template-columns: auto minmax(0, 160px) auto !important;
  }

  .home-page-shell .top-search,
  .watch-page-shell .top-search {
    max-width: 160px !important;
  }

  .watch-page-shell .watch-actions {
    gap: 5px !important;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 122px !important;
    aspect-ratio: 0.9 / 1 !important;
  }

  .home-page-shell .video-copy {
    padding: 7px 4px 8px !important;
  }

  .home-page-shell .video-copy h3 {
    font-size: 0.74rem !important;
    margin: 4px 0 2px !important;
  }

  .home-page-shell .video-stats {
    font-size: 0.58rem !important;
  }

  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    font-size: 0.5rem !important;
    padding: 2px 5px !important;
  }
}

@media (max-width: 900px) {
  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    grid-template-columns: auto 40px auto !important;
    overflow: visible !important;
  }

  .home-page-shell .top-search,
  .watch-page-shell .top-search {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    justify-content: center !important;
  }

  .home-page-shell .top-search.is-expanded,
  .watch-page-shell .top-search.is-expanded {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 10px !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-top: 6px !important;
  }

  .home-page-shell .topbar.search-active,
  .watch-page-shell .topbar.search-active {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "search" !important;
  }

  .home-page-shell .topbar.search-active .brand,
  .home-page-shell .topbar.search-active .top-links,
  .watch-page-shell .topbar.search-active .brand,
  .watch-page-shell .topbar.search-active .top-links {
    display: none !important;
    opacity: 0 !important;
  }

  .home-page-shell .top-search.is-expanded input,
  .watch-page-shell .top-search.is-expanded input {
    font-size: 0.88rem !important;
  }

  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    gap: 0 !important;
  }

  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card,
  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 118px !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 0 !important;
  }

  .home-page-shell .video-copy {
    padding: 6px 4px 8px !important;
  }

  .home-page-shell .video-copy h3 {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    margin: 4px 0 2px !important;
  }

  .home-page-shell .video-stats {
    font-size: 0.56rem !important;
    line-height: 1.08 !important;
    gap: 2px !important;
  }

  .home-page-shell .category-chip,
  .home-page-shell .feed-ad-label,
  .home-page-shell .eyebrow,
  .home-page-shell .duration-pill,
  .home-page-shell .upload-age-tag,
  .home-page-shell .sponsored-badge {
    font-size: 0.5rem !important;
  }

  :root[data-theme="dark"] .home-page-shell .video-card,
  :root[data-theme="dark"] .home-page-shell .sponsored-video-card,
  :root[data-theme="dark"] .watch-page-shell .below-video-card,
  :root[data-theme="dark"] .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    background: #171317 !important;
    color: #f8edf5 !important;
    box-shadow: none !important;
  }

  :root[data-theme="dark"] .home-page-shell .video-stats,
  :root[data-theme="dark"] .watch-page-shell .below-video-copy p,
  :root[data-theme="dark"] .watch-page-shell .below-video-copy .video-stats {
    color: #ceb5c5 !important;
  }
}

@media (max-width: 560px) {
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 108px !important;
  }

  .home-page-shell .video-copy h3 {
    font-size: 0.68rem !important;
  }

  .home-page-shell .video-stats {
    font-size: 0.52rem !important;
  }
}

@media (max-width: 900px) {
  .watch-page-shell .watch-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding-top: 0 !important;
  }

  .watch-page-shell .watch-channel {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .watch-page-shell .watch-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .watch-page-shell .icon-action,
  .watch-page-shell .reaction-btn {
    flex: 0 0 auto !important;
    min-width: 74px !important;
    min-height: 32px !important;
    padding: 0 7px !important;
    gap: 4px !important;
    font-size: 0.62rem !important;
  }

  .watch-page-shell .action-icon,
  .watch-page-shell .action-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .watch-page-shell .watch-inline-ad {
    width: 60% !important;
    max-width: 60% !important;
    margin: 8px 0 10px auto !important;
    padding: 10px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .watch-inline-ad img,
  .watch-page-shell .watch-inline-ad video {
    min-height: 92px !important;
    max-height: 92px !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .watch-inline-ad strong {
    font-size: 0.78rem !important;
  }

  .watch-page-shell .watch-inline-ad p {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  .watch-page-shell .player-column {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .watch-page-shell .player-frame {
    padding: 2px !important;
    margin: 0 0 8px !important;
    border-radius: 14px !important;
    width: calc(100vw - 2px) !important;
    max-width: calc(100vw - 2px) !important;
    margin-left: calc((100% - (100vw - 2px)) / 2) !important;
    margin-right: calc((100% - (100vw - 2px)) / 2) !important;
  }

  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    border-radius: 10px !important;
  }

  .home-page-shell .video-thumb img {
    min-height: 116px !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .player-surface,
  .watch-page-shell .player-frame video {
    width: 100% !important;
    aspect-ratio: 41 / 30 !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-radius: 10px !important;
    gap: 8px !important;
    padding: 6px 4px 8px !important;
    min-height: 0 !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card img {
    min-height: 116px !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .below-video-copy {
    padding: 0 2px 2px !important;
    gap: 2px !important;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    margin: 4px 0 2px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-copy .video-stats,
  .watch-page-shell .below-video-copy p {
    font-size: 0.56rem !important;
    line-height: 1.08 !important;
    gap: 2px !important;
  }

  :root[data-theme="dark"] .watch-page-shell .below-video-card,
  :root[data-theme="dark"] .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    background: #171317 !important;
    color: #f8edf5 !important;
  }
}

@media (max-width: 900px) {
  .watch-page-shell > .topbar {
    margin-bottom: 6px !important;
  }

  .watch-page-shell .watch-inline-ad-top {
    margin-top: -10px !important;
    margin-bottom: 8px !important;
  }

  .watch-page-shell .watch-inline-ad-top {
    margin: 0 0 10px !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-head-row {
    display: grid !important;
    grid-template-columns: minmax(112px, 34vw) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-channel {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-channel-mark {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.92rem !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-channel strong {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-channel span {
    display: block !important;
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .icon-action,
  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .reaction-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 27px !important;
    padding: 0 3px !important;
    gap: 3px !important;
    justify-content: center !important;
    border-radius: 999px !important;
    font-size: 0.5rem !important;
    line-height: 1 !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .action-icon,
  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .action-icon svg {
    width: 11px !important;
    height: 11px !important;
    flex: 0 0 11px !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box span:not(.action-icon),
  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box strong {
    font-size: 0.5rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .action-label-full {
    display: none !important;
  }

  .watch-page-shell .watch-panel.compact-order .watch-actions.reaction-box .action-label-short {
    display: inline !important;
  }

  .watch-page-shell .watch-inline-ad {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 10px !important;
    padding: 8px 10px 10px !important;
    gap: 6px !important;
    border-radius: 14px !important;
  }

  .watch-page-shell .watch-inline-ad a {
    display: block !important;
  }

  .watch-page-shell .watch-inline-ad img,
  .watch-page-shell .watch-inline-ad video {
    width: 100% !important;
    min-height: 58px !important;
    max-height: 58px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }

  .watch-page-shell .watch-inline-ad strong {
    font-size: 0.74rem !important;
    line-height: 1.08 !important;
  }

  .watch-page-shell .watch-inline-ad p {
    font-size: 0.58rem !important;
    line-height: 1.12 !important;
    margin: 0 !important;
  }

  .watch-page-shell .watch-info-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .watch-page-shell .watch-detail-ad-card {
    padding: 14px !important;
  }

  .watch-page-shell .watch-detail-ad-card img {
    min-height: 88px !important;
    max-height: 88px !important;
    border-radius: 12px !important;
  }

  .watch-page-shell .watch-detail-ad-card strong {
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
  }

  .watch-page-shell .watch-detail-ad-card p {
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
  }

  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card > a {
    display: block !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card img {
    width: 100% !important;
    min-height: 116px !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
  }

  .watch-page-shell .below-video-copy {
    display: grid !important;
    align-content: start !important;
    gap: 2px !important;
    padding: 0 3px 4px !important;
  }

  .watch-page-shell .below-video-copy .feed-ad-label,
  .watch-page-shell .below-video-copy .category-chip,
  .watch-page-shell .below-video-copy .eyebrow {
    font-size: 0.48rem !important;
    letter-spacing: 0.08em !important;
  }

  .watch-page-shell .below-video-copy h3 {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
    margin: 2px 0 1px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-copy p {
    font-size: 0.56rem !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-copy .video-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    font-size: 0.56rem !important;
    line-height: 1.08 !important;
  }

  :root[data-theme="dark"] .watch-page-shell .below-video-card,
  :root[data-theme="dark"] .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card,
  :root[data-theme="dark"] .watch-page-shell .watch-inline-ad {
    background: #171317 !important;
    color: #f8edf5 !important;
  }

  :root[data-theme="dark"] .watch-page-shell .below-video-copy p,
  :root[data-theme="dark"] .watch-page-shell .below-video-copy .video-stats,
  :root[data-theme="dark"] .watch-page-shell .watch-inline-ad p {
    color: #ceb5c5 !important;
  }
}

@media (max-width: 900px) {
  .home-page-shell > .topbar,
  .watch-page-shell > .topbar {
    background: linear-gradient(135deg, rgba(255, 244, 249, 0.92), rgba(255, 236, 246, 0.88)) !important;
    backdrop-filter: blur(20px) saturate(155%) !important;
  }

  .search-icon-btn,
  .theme-toggle,
  .top-links-strong a,
  .nav-pill-btn,
  .category-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .search-icon-btn {
    padding: 0 !important;
  }

  .theme-toggle,
  .top-links-strong a,
  .nav-pill-btn {
    min-height: 36px !important;
  }

  .category-pill {
    min-height: 34px !important;
    padding: 0 15px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
  }

  .category-strip,
  .suggestion-pills {
    align-items: center !important;
  }

  .home-page-shell .category-strip,
  .watch-page-shell .category-strip-watch {
    background: rgba(255, 244, 249, 0.78) !important;
    border: 1px solid rgba(236, 72, 153, 0.12) !important;
    border-radius: 18px !important;
    padding: 8px !important;
    margin-top: 2px !important;
  }

  .watch-page-shell .watch-title-panel h1,
  .home-page-shell .video-copy h3,
  .watch-page-shell .below-video-copy h3,
  .watch-page-shell .description-card h2 {
    letter-spacing: -0.01em !important;
  }
}

@media (max-width: 900px) {
  :root[data-theme="dark"] .home-page-shell > .topbar,
  :root[data-theme="dark"] .watch-page-shell > .topbar {
    background: linear-gradient(135deg, rgba(37, 19, 35, 0.9), rgba(22, 11, 22, 0.86)) !important;
    border-color: rgba(255, 196, 226, 0.12) !important;
  }

  :root[data-theme="dark"] .top-search {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 196, 226, 0.12) !important;
  }

  :root[data-theme="dark"] .home-page-shell .category-strip,
  :root[data-theme="dark"] .watch-page-shell .category-strip-watch {
    background: rgba(31, 14, 28, 0.92) !important;
    border-color: rgba(255, 196, 226, 0.12) !important;
  }

  :root[data-theme="dark"] .search-icon-btn,
  :root[data-theme="dark"] .theme-toggle,
  :root[data-theme="dark"] .top-links-strong a,
  :root[data-theme="dark"] .nav-pill-btn,
  :root[data-theme="dark"] .category-pill,
  :root[data-theme="dark"] .pagination-link,
  :root[data-theme="dark"] .pagination-next {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffe6f2 !important;
    border-color: rgba(255, 196, 226, 0.14) !important;
  }

  :root[data-theme="dark"] .category-pill.active,
  :root[data-theme="dark"] .pagination-link.active {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
    color: #fff !important;
  }

  :root[data-theme="dark"] .watch-page-shell .watch-panel,
  :root[data-theme="dark"] .watch-page-shell .description-card,
  :root[data-theme="dark"] .watch-page-shell .watch-top-ad,
  :root[data-theme="dark"] .watch-page-shell .watch-inline-ad,
  :root[data-theme="dark"] .watch-page-shell .player-endscreen-card,
  :root[data-theme="dark"] .home-page-shell .video-card,
  :root[data-theme="dark"] .home-page-shell .sponsored-video-card {
    background: rgba(28, 14, 26, 0.95) !important;
    color: #fbeef6 !important;
  }

  :root[data-theme="dark"] .watch-page-shell .watch-detail-ad-card {
    background: rgba(28, 14, 26, 0.95) !important;
    color: #fbeef6 !important;
  }

  :root[data-theme="dark"] .home-page-shell .video-stats,
  :root[data-theme="dark"] .watch-page-shell .watch-meta,
  :root[data-theme="dark"] .watch-page-shell .description-card p,
  :root[data-theme="dark"] .watch-page-shell .below-video-copy p,
  :root[data-theme="dark"] .watch-page-shell .below-video-copy .video-stats,
  :root[data-theme="dark"] .watch-page-shell .watch-inline-ad p,
  :root[data-theme="dark"] .brand small {
    color: #d8bfd0 !important;
  }
}

@media (max-width: 900px) {
  .home-page-shell .pagination-bar {
    width: 100% !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home-page-shell > .topbar {
    margin-bottom: -1px !important;
  }

  .home-page-shell .category-strip {
    margin-top: -18px !important;
  }

  .watch-page-shell > .topbar {
    margin-bottom: -1px !important;
  }

  .watch-page-shell .watch-inline-ad-top {
    margin-top: -18px !important;
    margin-bottom: 3px !important;
  }

  .watch-page-shell .player-tools-bar {
    display: none !important;
    margin-top: 6px !important;
    padding: 10px 12px !important;
  }

  .watch-page-shell .player-tools-bar.is-open {
    display: flex !important;
  }

  .watch-page-shell .player-tools-bar .tool-select {
    flex: 1 1 100% !important;
  }

  .player-menu-toggle {
    right: 12px;
    bottom: 10px;
    width: 34px;
    height: 34px;
  }

  .player-overlay-menu {
    right: 10px;
    bottom: 56px;
    min-width: 164px;
    padding: 10px;
    border-radius: 16px;
  }

  .player-center-toggle {
    width: 74px;
    height: 74px;
  }

  .player-center-toggle svg {
    width: 30px;
    height: 30px;
  }

  .player-control-bar {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .player-preview-card {
    width: 72px;
    bottom: 14px;
    padding: 5px;
  }

  .player-preview-card img {
    height: 38px;
  }

  .player-preview-card span {
    font-size: 0.58rem;
  }

  .player-inline-btn {
    width: 32px;
    height: 32px;
  }

  .player-time {
    font-size: 0.7rem;
  }
}

body.admin-mode .floating-progress,
body.admin-mode .social-bar,
body.admin-mode .mobile-bottom-banner,
body.admin-mode .footer-banner-slot {
  display: none !important;
}

.super-admin-shell-v2 {
  padding-bottom: 32px;
}

.super-admin-shell-v2 .top-search input {
  min-width: 0;
}

.admin-topbar-v2 {
  gap: 14px;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 251, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-chip-live {
  gap: 8px;
}

.admin-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: adminPulseLive 1.5s infinite;
}

@keyframes adminPulseLive {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.admin-menu-toggle,
.admin-sidebar-close {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 240, 247, 0.72);
  color: var(--text);
  cursor: pointer;
}

.admin-menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.admin-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.super-admin-layout-v2 {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.super-admin-sidebar-v2 {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(101, 204, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.98), rgba(17, 12, 31, 0.98));
  box-shadow: 0 20px 44px rgba(3, 8, 20, 0.42);
}

.super-admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.super-admin-sidebar-head h2 {
  margin: 4px 0 0;
}

.super-admin-nav-v2 {
  display: grid;
  gap: 8px;
}

.super-admin-mini-stats-v2 {
  display: grid;
  gap: 8px;
}

.super-admin-mini-stats-v2 article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(111, 192, 255, 0.12);
}

.super-admin-mini-stats-v2 span {
  color: rgba(224, 233, 255, 0.68);
  font-size: 0.9rem;
}

.super-admin-main-v2 {
  display: grid;
  gap: 18px;
}

.admin-surface {
  padding: 18px;
  border: 1px solid rgba(96, 188, 255, 0.12);
  background: linear-gradient(180deg, rgba(11, 18, 31, 0.98), rgba(19, 13, 33, 0.98));
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.36);
}

.admin-quick-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-tile {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(103, 196, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 23, 39, 0.96), rgba(16, 12, 28, 0.96));
}

.admin-metric-tile span {
  color: rgba(214, 226, 255, 0.7);
  font-size: 0.9rem;
}

.admin-metric-tile strong {
  font-size: 1.4rem;
  color: #f8fbff;
}

.admin-dashboard-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.admin-dashboard-grid-ads {
  grid-template-columns: 320px minmax(0, 1fr);
}

.admin-dashboard-grid-chart {
  align-items: stretch;
}

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

.admin-latest-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(102, 195, 255, 0.1);
}

.admin-latest-card img,
.admin-video-cell img {
  width: 86px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-latest-card span,
.admin-latest-card small {
  display: block;
  color: rgba(214, 226, 255, 0.7);
}

.admin-latest-card small {
  margin-top: 4px;
}

.admin-brief-list {
  display: grid;
  gap: 10px;
}

.admin-brief-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(103, 196, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-brief-list span {
  color: rgba(214, 226, 255, 0.72);
}

.admin-inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-inline-filter input[type="text"],
.admin-inline-filter input[type="date"] {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(102, 195, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ff;
  font: inherit;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 230px;
}

.admin-chart-day {
  display: grid;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(103, 196, 255, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-chart-day.is-active {
  border-color: rgba(96, 188, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(96, 188, 255, 0.18), 0 10px 24px rgba(3, 8, 20, 0.24);
}

.admin-chart-day strong,
.admin-chart-day small {
  text-align: center;
}

.admin-chart-day small {
  color: rgba(214, 226, 255, 0.66);
  font-size: 0.74rem;
}

.admin-chart-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  height: 136px;
}

.chart-bar {
  width: 14px;
  min-height: 10px;
  border-radius: 999px;
}

.chart-visitors {
  background: linear-gradient(180deg, #ec4899, #be185d);
}

.chart-views {
  background: linear-gradient(180deg, #7c3aed, #4338ca);
}

.chart-uploads {
  background: linear-gradient(180deg, #fb7185, #f97316);
}

.chart-registrations {
  background: linear-gradient(180deg, #22c55e, #14b8a6);
}

.admin-chart-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-chart-detail-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(103, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.admin-chart-detail-card span {
  display: block;
  color: rgba(214, 226, 255, 0.68);
  font-size: 0.82rem;
}

.admin-chart-detail-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  color: #f8fbff;
}

.admin-list-head,
.admin-compact-row {
  display: grid;
  gap: 12px;
  align-items: center;
}

.admin-list-head {
  padding: 0 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-compact-list {
  display: grid;
  gap: 10px;
}

.admin-compact-row {
  padding: 12px 14px;
  border: 1px solid rgba(103, 196, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-video-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(103, 196, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-video-card > img {
  width: 100%;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
}

.admin-video-card-copy span,
.admin-video-card-copy small {
  display: block;
  color: rgba(214, 226, 255, 0.7);
}

.admin-video-card-copy small {
  margin-top: 4px;
}

.admin-quick-metrics-users {
  margin-bottom: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-video-list-head,
.admin-video-row {
  grid-template-columns: minmax(240px, 2.2fr) 0.7fr 0.7fr 0.8fr auto;
}

.admin-user-list-head,
.admin-user-row {
  grid-template-columns: minmax(180px, 1.5fr) minmax(180px, 1.4fr) 0.5fr 0.7fr auto;
}

.admin-video-cell,
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-video-cell div,
.admin-user-cell strong {
  min-width: 0;
}

.admin-video-cell strong,
.admin-user-cell strong {
  display: block;
}

.admin-video-cell span {
  display: block;
  color: rgba(214, 226, 255, 0.72);
  font-size: 0.9rem;
}

.admin-user-avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 42px;
}

.admin-user-index {
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-user-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-user-premium-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(99, 191, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 23, 39, 0.96), rgba(16, 12, 28, 0.96));
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.35);
}

.admin-user-premium-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-premium-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-premium-head div {
  min-width: 0;
}

.admin-user-premium-head strong,
.admin-user-premium-head small {
  display: block;
}

.admin-user-premium-head small {
  color: rgba(214, 226, 255, 0.72);
}

.admin-user-premium-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  flex: 0 0 62px;
}

.admin-user-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(115, 198, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 245, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge.is-online,
.admin-badge.is-active {
  border-color: rgba(34, 197, 94, 0.24);
  color: #7bf1a8;
}

.admin-badge.is-banned {
  border-color: rgba(248, 113, 113, 0.24);
  color: #fda4af;
}

.admin-badge.admin-badge-role {
  border-color: rgba(168, 85, 247, 0.24);
  color: #d8b4fe;
}

.admin-user-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-stats-grid article {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(103, 196, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-stats-grid span {
  display: block;
  color: rgba(214, 226, 255, 0.68);
  font-size: 0.82rem;
}

.admin-user-stats-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-inline-actions form {
  margin: 0;
}

.admin-modal-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 20px;
  margin: 8px 0 16px;
}

.admin-danger-form {
  margin-top: 14px;
}

.admin-form-actions-split {
  justify-content: flex-start;
}

.admin-permission-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
}

.admin-permission-grid legend {
  padding: 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.admin-phone-preview-watch .hotspot-watch-top {
  top: 36px;
  left: 20px;
  right: 20px;
  height: 76px;
}

.admin-phone-preview-watch .hotspot-watch-native {
  top: 140px;
  left: 20px;
  right: 20px;
  height: 112px;
}

.admin-phone-preview-watch .hotspot-watch-bottom {
  top: 272px;
  left: 20px;
  right: 20px;
  height: 92px;
}

.hotspot-home-native {
  top: 352px;
  left: 20px;
  right: 20px;
  height: 56px;
}

.admin-phone-preview-watch .hotspot-watch-smart {
  top: 10px;
  right: 18px;
  width: 108px;
  height: 20px;
}

.admin-desktop-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(103, 196, 255, 0.1);
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.98), rgba(13, 10, 24, 0.98));
}

.admin-desktop-preview .admin-slot-hotspot {
  position: static;
  width: 100%;
}

.desktop-header {
  height: 50px;
}

.admin-desktop-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  min-height: 220px;
}

.desktop-content,
.desktop-sidebar {
  height: 100%;
}

.desktop-footer {
  height: 42px;
}

.admin-slot-summary-list {
  display: grid;
  gap: 10px;
}

.admin-slot-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(103, 196, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-slot-summary-row small {
  display: block;
  color: rgba(214, 226, 255, 0.68);
  margin-top: 4px;
}

.category-admin-item {
  border-color: rgba(103, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

body.admin-mode .btn.btn-secondary,
body.admin-mode .btn.btn-primary,
body.admin-mode .admin-modal-card,
body.admin-mode .admin-modal-close,
body.admin-mode .category-admin-item,
body.admin-mode .admin-form label span,
body.admin-mode .admin-form input,
body.admin-mode .admin-form textarea,
body.admin-mode .admin-form select {
  color: #eef5ff;
}

body.admin-mode .admin-modal-card,
body.admin-mode .category-admin-item,
body.admin-mode .admin-form input,
body.admin-mode .admin-form textarea,
body.admin-mode .admin-form select,
body.admin-mode .btn.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(103, 196, 255, 0.12);
}

body.admin-mode .admin-form input::placeholder,
body.admin-mode .admin-form textarea::placeholder {
  color: rgba(214, 226, 255, 0.46);
}

body.admin-mode .admin-modal-close {
  background: rgba(255, 255, 255, 0.08);
}

body.admin-mode .btn.btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #2563eb 100%);
}

body.admin-mode .btn.btn-secondary {
  color: #eef5ff;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 7, 11, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 89;
}

:root[data-theme="dark"] .super-admin-sidebar-v2,
:root[data-theme="dark"] .admin-chip,
:root[data-theme="dark"] .admin-metric-tile,
:root[data-theme="dark"] .admin-latest-card,
:root[data-theme="dark"] .admin-brief-list article,
:root[data-theme="dark"] .admin-compact-row,
:root[data-theme="dark"] .admin-video-card,
:root[data-theme="dark"] .admin-chart-day,
:root[data-theme="dark"] .super-admin-mini-stats-v2 article {
  background: linear-gradient(135deg, rgba(30, 14, 27, 0.96), rgba(21, 10, 20, 0.94));
  border-color: rgba(255, 196, 226, 0.1);
}

:root[data-theme="dark"] .admin-inline-filter input[type="text"],
:root[data-theme="dark"] .admin-inline-filter input[type="date"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 196, 226, 0.1);
  color: #ffe7f2;
}

body.admin-mode {
  color: #eef5ff;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent 22%),
    linear-gradient(180deg, #060b15 0%, #090612 100%);
}

body.admin-mode .topbar {
  border-color: rgba(88, 176, 255, 0.12);
  background: linear-gradient(135deg, rgba(9, 16, 28, 0.92), rgba(15, 11, 28, 0.86));
}

body.admin-mode .admin-panel-section,
body.admin-mode .form-card,
body.admin-mode .table-card,
body.admin-mode .stat-card,
body.admin-mode .super-admin-brandbox,
body.admin-mode .super-admin-mini-stats,
body.admin-mode .super-admin-shell .form-card,
body.admin-mode .super-admin-shell .table-card {
  background: linear-gradient(180deg, rgba(11, 18, 31, 0.98), rgba(19, 13, 33, 0.98)) !important;
  border-color: rgba(96, 188, 255, 0.12) !important;
  color: #eef5ff;
}

body.admin-mode .brand small,
body.admin-mode .eyebrow,
body.admin-mode .admin-panel-head p,
body.admin-mode .section-header.compact p {
  color: rgba(214, 226, 255, 0.68);
}

body.admin-mode .super-admin-nav-btn {
  border-color: rgba(103, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e9f4ff;
}

body.admin-mode .super-admin-nav-btn.is-active {
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  border-color: rgba(147, 197, 253, 0.32);
}

body.admin-mode .profile-dropdown,
body.admin-mode .profile-dropdown a,
body.admin-mode .theme-toggle,
body.admin-mode .profile-menu-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(103, 196, 255, 0.12);
  color: #eef5ff;
}

body.admin-mode .profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
}

body.admin-mode .admin-panel-head h1,
body.admin-mode .section-header.compact h2,
body.admin-mode .admin-chart-day strong,
body.admin-mode .admin-user-premium-head strong,
body.admin-mode .admin-latest-card strong,
body.admin-mode .admin-slot-summary-row strong,
body.admin-mode .admin-video-card-copy strong {
  color: #f8fbff;
}

body.admin-mode .admin-panel-head,
body.admin-mode .section-header,
body.admin-mode .admin-chart-day,
body.admin-mode .admin-brief-list article,
body.admin-mode .admin-chart-detail-card,
body.admin-mode .admin-user-premium-card,
body.admin-mode .admin-video-card,
body.admin-mode .admin-slot-card,
body.admin-mode .admin-slot-summary-row {
  color: #eef5ff;
}

body.admin-mode,
body.admin-mode .page-shell,
body.admin-mode .super-admin-shell-v2,
body.admin-mode .super-admin-layout-v2,
body.admin-mode .super-admin-main-v2,
body.admin-mode [data-admin-section],
body.admin-mode .admin-surface,
body.admin-mode .admin-dashboard-grid-v2,
body.admin-mode .admin-dashboard-grid-ads,
body.admin-mode .admin-latest-grid,
body.admin-mode .admin-video-card-grid,
body.admin-mode .admin-user-premium-grid,
body.admin-mode .admin-slot-map,
body.admin-mode .admin-slot-summary-list {
  background-color: transparent !important;
}

body.admin-mode .admin-panel-section.is-active,
body.admin-mode .form-card.admin-surface,
body.admin-mode .admin-chart-detail-card,
body.admin-mode .admin-metric-tile,
body.admin-mode .admin-latest-card,
body.admin-mode .admin-video-card,
body.admin-mode .admin-user-premium-card,
body.admin-mode .admin-slot-card,
body.admin-mode .admin-slot-summary-row,
body.admin-mode .admin-quick-metrics-users article,
body.admin-mode .category-admin-item,
body.admin-mode .super-admin-mini-stats-v2 article {
  background: linear-gradient(180deg, rgba(11, 18, 31, 0.98), rgba(19, 13, 33, 0.98)) !important;
  border-color: rgba(96, 188, 255, 0.12) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

body.admin-mode .admin-panel-section {
  border-color: rgba(96, 188, 255, 0.12) !important;
}

body.admin-mode .admin-chart-grid {
  background: transparent !important;
}

body.admin-mode .admin-inline-filter input[type="text"],
body.admin-mode .admin-inline-filter input[type="date"],
body.admin-mode .admin-inline-filter select,
body.admin-mode .admin-inline-filter button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(103, 196, 255, 0.12);
  color: #eef5ff;
}

@media (max-width: 1180px) {
  .admin-quick-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-dashboard-grid-v2,
  .admin-dashboard-grid-ads {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .admin-video-list-head,
  .admin-video-row,
  .admin-user-list-head,
  .admin-user-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-list-head {
    display: none;
  }
}

@media (max-width: 900px) {
  .admin-menu-toggle,
  .admin-sidebar-close {
    display: inline-flex;
  }

  .super-admin-layout-v2 {
    grid-template-columns: 1fr;
  }

  .super-admin-sidebar-v2 {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    max-width: 340px;
    z-index: 90;
    border-radius: 0 24px 24px 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    overflow: auto;
  }

  body.admin-sidebar-open .super-admin-sidebar-v2 {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-topbar-v2 {
    align-items: center;
  }

  .admin-top-links a:first-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .admin-quick-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-chart-grid,
  .admin-video-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-desktop-preview-body,
  .admin-user-stats-grid,
  .admin-chart-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-metric-tile {
    padding: 14px;
  }

  .admin-metric-tile strong {
    font-size: 1.2rem;
  }

  .admin-topbar-v2 .top-search {
    width: auto;
  }

  .admin-topbar-v2 .top-links {
    width: auto;
    flex-wrap: nowrap;
  }

  .admin-topbar-status {
    display: none;
  }
}

/* Final mobile ad/feed overrides to win against earlier duplicated rules. */
@media (max-width: 900px) {
  .home-page-shell .header-leaderboard-slot,
  .home-page-shell > .runtime-ad-slot[data-ad-slot="header_728"] {
    display: none !important;
  }

  .watch-page-shell .header-leaderboard-slot,
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="header_728"] {
    display: flex !important;
    justify-content: center !important;
    margin: 8px auto 12px !important;
  }

  .home-page-shell .mobile-top-ad-slot {
    display: flex !important;
    justify-content: center !important;
    width: min(100%, 300px) !important;
    margin: 8px auto 12px !important;
  }

  .home-page-shell .mobile-top-ad-slot > .runtime-ad-slot[data-ad-slot="home_300"] {
    display: flex !important;
    justify-content: center !important;
    width: min(100%, 300px) !important;
  }

  .home-page-shell > .runtime-ad-slot[data-ad-slot="native_banner"],
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="native_banner"],
  .home-page-shell > .runtime-ad-slot[data-ad-slot="home_300"],
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="video_300_a"],
  .watch-page-shell .watch-panel + .runtime-ad-slot[data-ad-slot="video_300_b"] {
    display: flex !important;
    justify-content: center !important;
    width: min(100%, 300px) !important;
    margin: 10px auto 12px !important;
  }

  .home-page-shell .sponsored-video-card,
  .watch-page-shell .sponsored-feed-card,
  .watch-page-shell .below-video-card {
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    align-content: start !important;
  }

  .home-page-shell .video-thumb img,
  .home-page-shell .sponsored-video-card .sponsored-thumb img {
    height: 146px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb img {
    height: 146px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  .home-page-shell .sponsored-video-card .sponsored-thumb img,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb img {
    background: #140a13 !important;
  }

  .home-page-shell .video-copy,
  .home-page-shell .sponsored-video-card .video-copy,
  .watch-page-shell .below-video-copy,
  .watch-page-shell .sponsored-feed-card .below-video-copy {
    min-height: 108px !important;
  }
}

/* Final public-site mobile layout pass. Keep this last so it wins over older duplicated rules. */
@media (max-width: 900px) {
  .home-page-shell .grid-layout,
  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid,
  .watch-page-shell .below-video-list {
    gap: 10px !important;
  }

  .home-page-shell .video-grid,
  .home-page-shell .discovery-grid,
  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
  }

  .home-page-shell .video-grid > .video-card,
  .home-page-shell .video-grid > .video-card.compact-card,
  .home-page-shell .discovery-grid > .video-card,
  .home-page-shell .discovery-grid > .video-card.compact-card,
  .watch-page-shell .below-video-list > .below-video-card,
  .watch-page-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-column: span 1 !important;
  }

  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card,
  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-rows: 146px minmax(92px, auto) !important;
    align-content: start !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-shadow: var(--shadow) !important;
  }

  .home-page-shell .video-thumb,
  .home-page-shell .sponsored-thumb,
  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb {
    height: 146px !important;
  }

  .home-page-shell .video-thumb img,
  .home-page-shell .sponsored-thumb img,
  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb img {
    width: 100% !important;
    height: 146px !important;
    min-height: 146px !important;
    max-height: 146px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
  }

  .home-page-shell .video-copy,
  .home-page-shell .sponsored-video-card .video-copy,
  .watch-page-shell .below-video-copy,
  .watch-page-shell .sponsored-feed-card .below-video-copy {
    display: grid !important;
    align-content: start !important;
    gap: 4px !important;
    min-height: 92px !important;
    padding: 10px !important;
  }

  .home-page-shell .video-copy h3,
  .home-page-shell .sponsored-video-card .video-copy h3,
  .watch-page-shell .below-video-copy h3,
  .watch-page-shell .sponsored-feed-card .below-video-copy h3 {
    margin: 2px 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.15 !important;
  }

  .home-page-shell .video-stats,
  .watch-page-shell .below-video-copy .video-stats {
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
    gap: 4px !important;
  }

  .home-page-shell .runtime-ad-slot[data-ad-slot="home_300"],
  .home-page-shell .mobile-top-ad-slot,
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="video_300_a"],
  .watch-page-shell .watch-panel + .runtime-ad-slot[data-ad-slot="video_300_b"],
  .watch-page-shell > .runtime-ad-slot[data-ad-slot="native_banner"] {
    width: min(100%, 300px) !important;
    margin: 10px auto 14px !important;
  }

  .runtime-ad-slot[data-ad-slot="mobile_320"] {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 95 !important;
  }

  .social-bar {
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    z-index: 96 !important;
  }
}

@media (max-width: 560px) {
  .home-page-shell .video-card,
  .home-page-shell .sponsored-video-card,
  .watch-page-shell .below-video-card,
  .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-rows: 132px minmax(88px, auto) !important;
  }

  .home-page-shell .video-thumb,
  .home-page-shell .sponsored-thumb,
  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb,
  .home-page-shell .video-thumb img,
  .home-page-shell .sponsored-thumb img,
  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb img {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
  }

  .home-page-shell .video-copy h3,
  .home-page-shell .sponsored-video-card .video-copy h3,
  .watch-page-shell .below-video-copy h3,
  .watch-page-shell .sponsored-feed-card .below-video-copy h3 {
    font-size: 0.8rem !important;
  }
}

/* Public site ad layout v5 */
.public-site-shell .mobile-top-ad-slot {
  display: none;
}

.public-site-shell .public-ad-stage {
  display: flex;
  justify-content: center;
  margin: 12px auto 18px;
}

.public-site-shell .ad-placement-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-site-shell .ad-placement-shell--hero {
  width: min(100%, 728px);
  border-radius: 24px;
}

.public-site-shell .ad-placement-shell--stage {
  width: min(100%, 340px);
}

.public-site-shell .ad-placement-shell--feed-card,
.public-site-shell .ad-placement-shell--watch-card {
  display: grid;
  grid-template-rows: 170px minmax(92px, auto);
  height: 100%;
  border-radius: 22px;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.public-site-shell .ad-shell-media {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 8, 16, 0.98), rgba(34, 16, 30, 0.98));
}

.public-site-shell .ad-placement-shell--hero .ad-shell-media {
  min-height: 90px;
}

.public-site-shell .ad-placement-shell--stage .ad-shell-media {
  min-height: 250px;
}

.public-site-shell .ad-shell-fallback,
.public-site-shell .ad-shell-runtime {
  position: absolute;
  inset: 0;
}

.public-site-shell .ad-shell-fallback {
  z-index: 1;
}

.public-site-shell .ad-shell-runtime {
  z-index: 2;
}

.public-site-shell .ad-shell-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.public-site-shell .ad-shell-runtime > .runtime-ad-slot {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.public-site-shell .ad-shell-runtime > .runtime-ad-slot iframe,
.public-site-shell .ad-shell-runtime > .runtime-ad-slot img,
.public-site-shell .ad-shell-runtime > .runtime-ad-slot object,
.public-site-shell .ad-shell-runtime > .runtime-ad-slot embed {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

.public-site-shell .ad-shell-copy {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  background: var(--surface);
}

.public-site-shell .ad-shell-copy h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.public-site-shell .ad-shell-copy .video-stats {
  gap: 6px;
  font-size: 0.78rem;
}

.public-site-shell .public-grid-layout {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
}

.public-site-shell .public-grid-layout.public-grid-layout-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.public-site-shell .public-video-grid {
  gap: 18px;
}

.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card,
.public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
  display: grid;
  grid-template-rows: 190px minmax(104px, auto);
  align-content: start;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb {
  height: 190px;
}

.public-site-shell .video-thumb img,
.public-site-shell .below-video-thumb img,
.public-site-shell .sponsored-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-copy {
  min-height: 104px;
}

.public-site-shell .public-inline-ad-card {
  padding: 0;
}

.public-site-shell .public-inline-ad-card .ad-placement-shell {
  height: 100%;
}

.public-site-shell .public-inline-ad-card .video-copy,
.public-site-shell .public-inline-ad-card .below-video-copy,
.public-site-shell .public-inline-ad-card .sponsored-copy {
  padding: 0;
}

.public-site-shell .public-ad-stage-mid,
.public-site-shell .public-ad-stage-bottom,
.public-site-shell .public-watch-mid-stage,
.public-site-shell .public-watch-native-stage {
  margin-top: 4px;
}

@media (min-width: 901px) {
  .public-site-shell .public-ad-hero {
    display: flex;
    justify-content: center;
    margin: 10px 0 16px;
  }
}

@media (max-width: 900px) {
  .public-site-shell .public-ad-hero,
  .public-site-shell .header-leaderboard-slot {
    display: none !important;
  }

  .public-site-shell .watch-after-actions-banner {
    display: flex !important;
    justify-content: center !important;
    margin: 8px auto 12px !important;
  }

  .public-site-shell .watch-after-actions-banner .ad-placement-shell--hero {
    width: min(100%, 320px) !important;
  }

  .public-site-shell .watch-after-actions-banner .ad-shell-media {
    min-height: 50px !important;
    height: 50px !important;
  }

  .public-site-shell .watch-after-actions-banner .ad-shell-copy {
    display: none !important;
  }

  .public-site-shell .watch-after-actions-banner .ad-shell-runtime > .runtime-ad-slot[data-ad-slot="mobile_320"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .public-site-shell .mobile-top-ad-slot {
    display: flex !important;
    justify-content: center !important;
    margin: 8px auto 14px !important;
  }

  .public-site-shell .public-grid-layout,
  .public-site-shell .watch-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .public-site-shell .public-video-grid,
  .public-site-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .public-site-shell .public-video-grid > .video-card,
  .public-site-shell .public-video-grid > .video-card.compact-card,
  .public-site-shell .below-video-list > .below-video-card,
  .public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-column: span 1 !important;
  }

  .public-site-shell .video-card,
  .public-site-shell .sponsored-video-card,
  .public-site-shell .below-video-card,
  .public-site-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-rows: 144px minmax(94px, auto) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  .public-site-shell .video-thumb,
  .public-site-shell .below-video-thumb,
  .public-site-shell .sponsored-thumb,
  .public-site-shell .ad-placement-shell--feed-card .ad-shell-media,
  .public-site-shell .ad-placement-shell--watch-card .ad-shell-media {
    min-height: 144px !important;
    height: 144px !important;
  }

  .public-site-shell .video-thumb img,
  .public-site-shell .below-video-thumb img,
  .public-site-shell .sponsored-thumb img,
  .public-site-shell .ad-placement-shell--feed-card .ad-shell-fallback img,
  .public-site-shell .ad-placement-shell--watch-card .ad-shell-fallback img {
    width: 100% !important;
    height: 144px !important;
    min-height: 144px !important;
    max-height: 144px !important;
    object-fit: cover !important;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-copy,
  .public-site-shell .ad-shell-copy {
    min-height: 94px !important;
    padding: 10px !important;
    gap: 4px !important;
  }

  .public-site-shell .video-copy h3,
  .public-site-shell .below-video-copy h3,
  .public-site-shell .sponsored-copy h3,
  .public-site-shell .ad-shell-copy h3 {
    font-size: 0.82rem !important;
    line-height: 1.12 !important;
    margin: 2px 0 !important;
  }

  .public-site-shell .video-stats,
  .public-site-shell .below-video-copy .video-stats,
  .public-site-shell .sponsored-copy .video-stats,
  .public-site-shell .ad-shell-copy .video-stats {
    font-size: 0.68rem !important;
    gap: 4px !important;
  }

  .public-site-shell .public-ad-stage,
  .public-site-shell .public-watch-top-stage,
  .public-site-shell .public-watch-mid-stage,
  .public-site-shell .public-watch-native-stage,
  .public-site-shell .public-watch-compact-stage {
    width: 100% !important;
    margin: 8px auto 14px !important;
  }

  .public-site-shell .ad-placement-shell--stage {
    width: min(100%, 320px) !important;
    border-radius: 18px !important;
  }

  .public-site-shell .ad-placement-shell--stage .ad-shell-media {
    min-height: 250px !important;
  }

  .public-site-shell .sidebar-stack,
  .public-site-shell .playlist-column {
    display: none !important;
  }

  .social-bar {
    display: flex !important;
    width: min(94vw, 520px) !important;
    top: auto !important;
  }
}

@media (max-width: 560px) {
  .public-site-shell .public-video-grid,
  .public-site-shell .below-video-list {
    gap: 10px !important;
  }

  .public-site-shell .video-card,
  .public-site-shell .sponsored-video-card,
  .public-site-shell .below-video-card,
  .public-site-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-rows: 132px minmax(88px, auto) !important;
  }

  .public-site-shell .video-thumb,
  .public-site-shell .below-video-thumb,
  .public-site-shell .sponsored-thumb,
  .public-site-shell .ad-placement-shell--feed-card .ad-shell-media,
  .public-site-shell .ad-placement-shell--watch-card .ad-shell-media {
    min-height: 132px !important;
    height: 132px !important;
  }

  .public-site-shell .video-thumb img,
  .public-site-shell .below-video-thumb img,
  .public-site-shell .sponsored-thumb img,
  .public-site-shell .ad-placement-shell--feed-card .ad-shell-fallback img,
  .public-site-shell .ad-placement-shell--watch-card .ad-shell-fallback img {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
  }
}

/* Tube layout v6 */
.public-site-shell .social-bar-dismiss {
  display: none !important;
}

.public-site-shell .public-ad-hero-mobile {
  display: none;
}

.public-site-shell .tube-feed-layout {
  align-items: start;
}

.public-site-shell .public-home-sidebar {
  display: grid;
  gap: 18px;
}

.public-site-shell .public-home-sidebar .ad-placement-shell--stage {
  width: 100%;
}

.public-site-shell .public-home-sidebar .ad-placement-shell--sidebar_160 .ad-shell-media {
  min-height: 600px;
}

.public-site-shell .public-home-sidebar .ad-placement-shell--compact_160 .ad-shell-media {
  min-height: 300px;
}

.public-site-shell .public-sidebar-block {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.public-site-shell .public-sidebar-head {
  display: grid;
  gap: 4px;
}

.public-site-shell .public-sidebar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.public-site-shell .public-video-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .video-card.compact-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .public-video-grid > .sponsored-video-card.compact-card {
  grid-column: span 1 !important;
}

.public-site-shell .public-native-ad-card {
  grid-column: 1 / -1 !important;
}

.public-site-shell .public-inline-stage-ad {
  grid-column: 1 / -1 !important;
  display: flex;
  justify-content: center;
  margin: 2px 0 6px;
}

.public-site-shell .public-inline-stage-ad .ad-placement-shell--stage {
  width: min(100%, 300px);
}

.public-site-shell .public-native-ad-card .ad-placement-shell--feed-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: none;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-site-shell .public-native-ad-card .ad-placement-shell--feed-card .ad-shell-media {
  min-height: 150px;
  height: 150px;
}

.public-site-shell .public-native-ad-card .ad-placement-shell--feed-card .ad-shell-copy {
  min-height: 150px;
  align-content: center;
}

.public-site-shell .ad-placement-shell--hero-mobile {
  width: min(100%, 320px);
  border-radius: 16px;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-media {
  min-height: 50px;
  height: 50px;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-copy {
  display: none;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-runtime > .runtime-ad-slot[data-ad-slot="mobile_320"] {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-fallback img {
  height: 50px;
  object-fit: cover;
}

@media (min-width: 901px) {
  .public-site-shell .public-ad-hero {
    display: flex !important;
  }

  .public-site-shell .public-ad-hero-mobile {
    display: none !important;
  }

  .public-site-shell .header-leaderboard-slot.public-ad-hero {
    margin-bottom: 16px;
  }
}

@media (max-width: 900px) {
  .public-site-shell .public-ad-hero {
    display: none !important;
  }

  .public-site-shell .public-ad-hero-mobile {
    display: flex !important;
    justify-content: center !important;
    margin: 8px auto 14px !important;
  }

  .public-site-shell .tube-feed-layout,
  .public-site-shell .public-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .public-site-shell .public-home-sidebar {
    display: none !important;
  }

  .public-site-shell .public-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .public-site-shell .public-native-ad-card {
    grid-column: span 1 !important;
  }

  .public-site-shell .public-native-ad-card .ad-placement-shell--feed-card {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: 144px minmax(94px, auto);
    min-height: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
  }

  .public-site-shell .public-native-ad-card .ad-placement-shell--feed-card .ad-shell-media {
    min-height: 144px;
    height: 144px;
  }

  .public-site-shell .public-native-ad-card .ad-placement-shell--feed-card .ad-shell-copy {
    min-height: 94px;
    align-content: start;
  }

  .public-site-shell .public-inline-stage-ad {
    margin: 0;
  }

  .public-site-shell .public-inline-stage-ad .ad-placement-shell--stage {
    width: min(100%, 300px);
  }

  .footer-banner-slot {
    margin: 22px auto 88px;
  }
}

/* Tube layout v7 */
.public-site-shell .public-video-grid,
.public-site-shell .below-video-list {
  display: grid !important;
  gap: 14px !important;
  align-items: start !important;
}

.public-site-shell .public-video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.public-site-shell .below-video-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card,
.public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
  display: grid !important;
  grid-template-rows: auto 108px !important;
  align-content: start !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

.public-site-shell .public-native-ad-card {
  grid-column: span 1 !important;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb,
.public-site-shell .ad-placement-shell--feed-card .ad-shell-media,
.public-site-shell .ad-placement-shell--watch-card .ad-shell-media {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
  height: auto !important;
}

.public-site-shell .video-thumb img,
.public-site-shell .below-video-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.public-site-shell .sponsored-thumb img,
.public-site-shell .ad-placement-shell--feed-card .ad-shell-fallback img,
.public-site-shell .ad-placement-shell--watch-card .ad-shell-fallback img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #160b15 !important;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-copy,
.public-site-shell .ad-shell-copy {
  min-height: 108px !important;
  padding: 12px !important;
  display: grid !important;
  align-content: start !important;
  gap: 6px !important;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3,
.public-site-shell .ad-shell-copy h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.45em !important;
}

.public-site-shell .video-stats,
.public-site-shell .below-video-copy .video-stats,
.public-site-shell .sponsored-copy .video-stats,
.public-site-shell .ad-shell-copy .video-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
}

.public-site-shell .public-native-ad-card .ad-placement-shell--feed-card,
.public-site-shell .public-native-ad-card .ad-placement-shell--watch-card {
  display: grid !important;
  grid-template-rows: auto 108px !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
}

.public-site-shell .public-inline-stage-ad {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  margin: 2px 0 8px !important;
}

.public-site-shell .public-inline-stage-ad .ad-placement-shell--stage {
  width: min(100%, 300px) !important;
}

.public-site-shell .public-ad-stage {
  display: flex !important;
  justify-content: center !important;
}

.public-site-shell .ad-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f34486, #cb2068);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.public-site-shell .video-card:not(.sponsored-video-card) .category-chip,
.public-site-shell .below-video-card .category-chip {
  display: none !important;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3,
.public-site-shell .video-copy h3 a,
.public-site-shell .below-video-copy h3 a,
.public-site-shell .sponsored-copy h3 a {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}

.public-site-shell .below-video-copy p {
  margin: 0 !important;
  min-height: 1.2em !important;
}

.public-site-shell .sponsored-copy {
  grid-template-rows: auto auto !important;
}

.public-site-shell .watch-page-shell .sample-ad-card.inline-feed-ad.sponsored-feed-card,
.public-site-shell .watch-page-shell .below-video-card {
  height: 100% !important;
}

.public-site-shell .public-watch-native-stage .ad-placement-shell--stage {
  width: min(100%, 360px) !important;
}

.public-site-shell .public-watch-native-stage .ad-placement-shell--stage .ad-shell-media {
  min-height: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}

.public-site-shell .public-watch-native-stage .ad-shell-runtime > .runtime-ad-slot[data-ad-slot="native_banner"] {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
}

.public-site-shell .ad-placement-shell--hero-mobile {
  width: min(100%, 320px) !important;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-media,
.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-fallback img {
  aspect-ratio: 320 / 50 !important;
  height: auto !important;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-copy {
  display: none !important;
}

.public-site-shell .ad-placement-shell--hero-mobile .ad-shell-runtime > .runtime-ad-slot[data-ad-slot="mobile_320"] {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: 100% !important;
}

.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card,
.public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
  display: flex !important;
  flex-direction: column !important;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb {
  display: block !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

.public-site-shell .video-thumb img,
.public-site-shell .below-video-thumb img,
.public-site-shell .sponsored-thumb img {
  display: block !important;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-copy {
  flex: 1 1 auto !important;
  grid-auto-rows: min-content !important;
}

.public-site-shell .public-watch-native-stage {
  width: 100% !important;
}

.public-site-shell .public-watch-native-stage .ad-placement-shell--stage {
  width: min(100%, 320px) !important;
}

.public-site-shell .public-watch-native-stage .ad-shell-runtime,
.public-site-shell .public-watch-native-stage .runtime-ad-slot[data-ad-slot="native_banner"] {
  width: 100% !important;
  overflow: visible !important;
}

.public-site-shell .sponsored-copy .category-chip,
.public-site-shell .sponsored-badge,
.public-site-shell .ad-card-cta {
  display: none !important;
}

.public-site-shell .public-video-grid > .sponsored-video-card .video-copy,
.public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card .below-video-copy {
  min-height: 96px !important;
}

@media (max-width: 900px) {
  .public-site-shell .public-video-grid,
  .public-site-shell .below-video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .public-site-shell .public-video-grid > .video-card,
  .public-site-shell .public-video-grid > .sponsored-video-card,
  .public-site-shell .below-video-list > .below-video-card,
  .public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card,
  .public-site-shell .public-native-ad-card .ad-placement-shell--feed-card,
  .public-site-shell .public-native-ad-card .ad-placement-shell--watch-card {
    display: grid !important;
    grid-template-rows: clamp(104px, 28vw, 122px) 96px !important;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-copy,
  .public-site-shell .ad-shell-copy {
    min-height: 96px !important;
    padding: 10px !important;
  }

  .public-site-shell .sponsored-copy {
    min-height: 96px !important;
  }

  .public-site-shell .video-copy h3,
  .public-site-shell .below-video-copy h3,
  .public-site-shell .sponsored-copy h3,
  .public-site-shell .ad-shell-copy h3 {
    font-size: 0.84rem !important;
  }

  .public-site-shell .video-thumb,
  .public-site-shell .below-video-thumb,
  .public-site-shell .sponsored-thumb,
  .public-site-shell .video-thumb img,
  .public-site-shell .below-video-thumb img,
  .public-site-shell .sponsored-thumb img {
    width: 100% !important;
    height: clamp(104px, 28vw, 122px) !important;
    min-height: clamp(104px, 28vw, 122px) !important;
    max-height: clamp(104px, 28vw, 122px) !important;
    aspect-ratio: auto !important;
  }

  .public-site-shell .sponsored-thumb img {
    object-fit: cover !important;
    object-position: center !important;
  }

  .public-site-shell .video-stats,
  .public-site-shell .below-video-copy .video-stats,
  .public-site-shell .sponsored-copy .video-stats,
  .public-site-shell .ad-shell-copy .video-stats {
    font-size: 0.68rem !important;
  }

  .public-site-shell .public-home-sidebar,
  .public-site-shell .playlist-column {
    display: none !important;
  }
}

.admin-video-ad-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-video-ad-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-video-ad-editor strong {
  font-size: 0.95rem;
}

.admin-inline-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-queue-panel {
  min-width: min(360px, calc(100vw - 24px));
  max-width: min(360px, calc(100vw - 24px));
  gap: 12px;
}

.upload-queue-inline {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  margin: 18px auto 0;
}

.global-upload-panel {
  width: min(420px, calc(100vw - 32px));
  right: 18px;
  bottom: 18px;
}

.global-upload-panel[hidden] {
  display: none !important;
}

.global-upload-launcher {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(35, 19, 29, 0.26);
  --upload-progress: 0;
}

.global-upload-launcher[hidden] {
  display: none !important;
}

.global-upload-launcher-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: conic-gradient(
    from -90deg,
    #f34486 calc(var(--upload-progress) * 1%),
    rgba(243, 68, 134, 0.18) 0
  );
}

.global-upload-launcher-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d1325, #140912);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.global-upload-launcher-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.global-upload-launcher-center strong,
.global-upload-launcher-center small {
  display: block;
  line-height: 1;
}

.global-upload-launcher-center strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.global-upload-launcher-center small {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-panel-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-panel-trigger {
  min-height: 32px;
  padding: 0 12px;
}

.upload-queue-list {
  display: grid;
  gap: 10px;
}

.upload-queue-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.upload-queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-queue-row strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.upload-queue-status,
.upload-queue-item small {
  color: var(--muted);
  font-size: 0.76rem;
}

.upload-queue-item.is-uploading .upload-queue-status {
  color: var(--pink-deep);
}

.upload-queue-item.is-paused .upload-queue-status {
  color: #b7791f;
}

.upload-queue-item.is-done .upload-queue-status {
  color: #0f9d58;
}

.upload-queue-item.is-failed .upload-queue-status {
  color: #d33b6a;
}

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

.upload-queue-action {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.upload-queue-bar {
  height: 8px;
}

.watch-after-actions-banner {
  margin: 10px 0 6px;
}

.public-watch-square-stage {
  margin: 6px 0 18px;
}

.player-buffering-indicator {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.58);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.player-buffering-indicator.is-visible {
  display: inline-flex;
}

.player-buffering-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 999px;
  animation: player-spin 0.8s linear infinite;
}

@keyframes player-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .admin-video-ad-editor-grid,
  .admin-inline-two {
    grid-template-columns: 1fr;
  }

  .upload-queue-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: auto;
    max-width: none;
  }

  .upload-queue-inline {
    left: auto;
    right: auto;
    bottom: auto;
    min-width: 0;
    max-width: 100%;
  }

  .global-upload-panel {
    right: 12px;
    left: 12px;
    bottom: 78px;
  }

  .global-upload-launcher {
    right: 10px;
    bottom: 74px;
    max-width: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-overflow-scrolling: touch;
}

.page-shell,
.home-page-shell,
.watch-page-shell,
.channel-page-shell,
.admin-shell,
.auth-shell {
  padding-bottom: calc(48px + var(--active-upload-queue-space, 0px));
}

.global-upload-panel {
  right: 12px !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

.global-upload-launcher {
  right: 8px !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

.upload-queue-row strong,
.upload-queue-item small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-share-btn {
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
}

.card-share-btn svg {
  display: none;
}

.video-meta-row {
  align-items: center;
}

.video-stats,
.below-video-copy .video-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.video-meta-row .video-stats span,
.below-video-copy .video-stats span {
  display: inline-flex;
  align-items: center;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3,
.public-site-shell .ad-shell-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: 2.45em;
}

.watch-page-shell .watch-channel > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.watch-page-shell .watch-channel strong,
.watch-page-shell .watch-channel span {
  line-height: 1.18;
}

.profile-avatar,
.watch-channel-mark {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .page-shell,
  .home-page-shell,
  .watch-page-shell,
  .channel-page-shell,
  .admin-shell,
  .auth-shell {
    padding-bottom: calc(84px + var(--active-upload-queue-space, 0px));
  }

  .global-upload-panel {
    left: auto !important;
    right: 10px !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    width: min(340px, calc(100vw - 20px)) !important;
  }

  .global-upload-launcher {
    right: 8px !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    width: 62px !important;
    height: 62px !important;
  }

  .global-upload-launcher-ring {
    width: 62px !important;
    height: 62px !important;
  }
}

.public-site-shell,
.channel-page-shell,
.watch-page-shell {
  padding-bottom: calc(110px + var(--active-upload-queue-space, 0px));
}

.global-upload-panel {
  right: 8px !important;
  bottom: max(0px, env(safe-area-inset-bottom)) !important;
  width: min(360px, calc(100vw - 16px)) !important;
  z-index: 86;
}

.global-upload-launcher {
  right: 8px !important;
  bottom: max(0px, env(safe-area-inset-bottom)) !important;
  z-index: 87;
}

.global-upload-launcher-center {
  gap: 2px;
}

.upload-queue-row {
  align-items: flex-start;
}

.upload-queue-row strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upload-queue-item small,
.upload-queue-status {
  line-height: 1.35;
}

.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card {
  align-content: start;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb {
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 244, 249, 0.92);
}

.public-site-shell .video-thumb img,
.public-site-shell .below-video-thumb img,
.public-site-shell .sponsored-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-video-card .video-copy.sponsored-copy {
  padding: 14px 16px !important;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3 {
  margin: 8px 0 8px !important;
  font-size: 1.04rem !important;
  line-height: 1.22;
  min-width: 0;
}

.public-site-shell .video-copy p,
.public-site-shell .below-video-copy p,
.public-site-shell .sponsored-copy p {
  margin: 0 0 6px;
}

.public-site-shell .video-meta-row,
.watch-page-shell .video-meta-row {
  align-items: center !important;
  gap: 10px !important;
}

.public-site-shell .video-stats,
.watch-page-shell .below-video-copy .video-stats {
  gap: 4px 10px;
  line-height: 1.22;
}

.public-site-shell .video-stats span,
.watch-page-shell .below-video-copy .video-stats span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-share-btn {
  font-size: 1rem !important;
  line-height: 1 !important;
  font-family: inherit !important;
}

.card-share-btn.is-copied {
  background: linear-gradient(135deg, #f34486, #d72672) !important;
}

.profile-avatar,
.watch-channel-mark {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

.watch-page-shell .watch-channel > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.watch-page-shell .watch-channel strong,
.watch-page-shell .watch-channel span {
  line-height: 1.18;
}

@media (max-width: 900px) {
  .public-site-shell,
  .channel-page-shell,
  .watch-page-shell {
    padding-bottom: calc(118px + var(--active-upload-queue-space, 0px));
  }

  .global-upload-panel {
    width: min(320px, calc(100vw - 16px)) !important;
    right: 8px !important;
    bottom: max(0px, env(safe-area-inset-bottom)) !important;
  }

  .global-upload-launcher {
    width: 56px !important;
    height: 56px !important;
    right: 8px !important;
    bottom: max(0px, env(safe-area-inset-bottom)) !important;
  }

  .global-upload-launcher-ring {
    width: 56px !important;
    height: 56px !important;
  }

  .global-upload-launcher-center strong {
    font-size: 0.96rem;
  }

  .global-upload-launcher-center small {
    font-size: 0.52rem;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-video-card .video-copy.sponsored-copy {
    padding: 12px 14px !important;
  }
}

/* Final mobile/feed stability overrides */
.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card,
.public-site-shell .below-video-list > .sample-ad-card {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.public-site-shell .video-card,
.public-site-shell .below-video-card,
.public-site-shell .sponsored-video-card,
.public-site-shell .sample-ad-card {
  overflow: hidden;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb {
  display: block;
  min-height: 0;
  background: rgba(255, 244, 249, 0.95);
}

.public-site-shell .video-thumb img,
.public-site-shell .below-video-thumb img,
.public-site-shell .sponsored-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-copy,
.public-site-shell .ad-shell-copy {
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  align-content: start !important;
  gap: 8px;
  min-width: 0;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3,
.public-site-shell .ad-shell-copy h3 {
  margin: 0 !important;
  min-height: 2.5em;
  overflow: hidden;
}

.public-site-shell .video-meta-row,
.watch-page-shell .below-video-copy .video-meta-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: end !important;
  gap: 8px !important;
  min-width: 0;
}

.public-site-shell .video-stats,
.watch-page-shell .below-video-copy .video-stats,
.public-site-shell .sponsored-copy .video-stats,
.public-site-shell .ad-shell-copy .video-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 8px !important;
  min-width: 0;
  align-items: end !important;
}

.public-site-shell .video-stats span,
.watch-page-shell .below-video-copy .video-stats span,
.public-site-shell .sponsored-copy .video-stats span,
.public-site-shell .ad-shell-copy .video-stats span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site-shell .video-stats span:nth-child(3),
.watch-page-shell .below-video-copy .video-stats span:nth-child(3) {
  grid-column: 1 / -1;
}

.public-site-shell .card-share-btn,
.watch-page-shell .card-share-btn {
  justify-self: end;
  align-self: end;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
}

.table-bulk-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.global-upload-panel {
  right: 6px !important;
  bottom: max(2px, env(safe-area-inset-bottom)) !important;
}

.global-upload-launcher {
  right: 6px !important;
  bottom: max(2px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 900px) {
  .global-upload-panel {
    right: 6px !important;
    bottom: max(2px, env(safe-area-inset-bottom)) !important;
    width: min(316px, calc(100vw - 12px)) !important;
  }

  .global-upload-launcher {
    right: 6px !important;
    bottom: max(2px, env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
  }

  .global-upload-launcher-ring {
    width: 54px !important;
    height: 54px !important;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-copy {
    padding: 10px 12px !important;
    gap: 6px;
  }

  .public-site-shell .video-copy h3,
  .public-site-shell .below-video-copy h3,
  .public-site-shell .sponsored-copy h3 {
    font-size: 1rem !important;
    line-height: 1.18 !important;
    min-height: 2.36em;
  }

  .public-site-shell .video-stats,
  .watch-page-shell .below-video-copy .video-stats {
    gap: 3px 7px !important;
    font-size: 0.82rem !important;
  }
}

/* Fixed 70 / 30 public card structure */
.public-site-shell .public-video-grid > .video-card,
.public-site-shell .public-video-grid > .sponsored-video-card,
.public-site-shell .below-video-list > .below-video-card,
.public-site-shell .below-video-list > .sample-ad-card {
  display: grid !important;
  grid-template-rows: minmax(0, 7fr) minmax(0, 3fr) !important;
  aspect-ratio: 7 / 10;
  min-height: 0;
}

.public-site-shell .video-thumb,
.public-site-shell .below-video-thumb,
.public-site-shell .sponsored-thumb {
  height: 100% !important;
}

.public-site-shell .video-copy,
.public-site-shell .below-video-copy,
.public-site-shell .sponsored-copy {
  height: 100% !important;
  overflow: hidden !important;
}

.public-site-shell .video-copy h3,
.public-site-shell .below-video-copy h3,
.public-site-shell .sponsored-copy h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.36em;
}

.public-site-shell .video-meta-row,
.watch-page-shell .below-video-copy .video-meta-row {
  margin-top: auto;
}

/* Final compact card size + bottom mobile ad placement */
@media (max-width: 900px) {
  .public-site-shell .public-video-grid > .video-card,
  .public-site-shell .public-video-grid > .sponsored-video-card,
  .public-site-shell .below-video-list > .below-video-card,
  .public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-rows: 126px 76px !important;
    height: 202px !important;
    min-height: 202px !important;
    max-height: 202px !important;
    aspect-ratio: auto !important;
  }

  .public-site-shell .video-thumb,
  .public-site-shell .below-video-thumb,
  .public-site-shell .sponsored-thumb,
  .public-site-shell .video-thumb img,
  .public-site-shell .below-video-thumb img,
  .public-site-shell .sponsored-thumb img {
    width: 100% !important;
    height: 126px !important;
    min-height: 126px !important;
    max-height: 126px !important;
    aspect-ratio: auto !important;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-copy {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    padding: 8px 10px !important;
    gap: 4px !important;
  }

  .public-site-shell .video-copy h3,
  .public-site-shell .below-video-copy h3,
  .public-site-shell .sponsored-copy h3 {
    font-size: 0.78rem !important;
    line-height: 1.14 !important;
    min-height: 1.8em !important;
    max-height: 1.8em !important;
    -webkit-line-clamp: 2 !important;
  }

  .public-site-shell .video-meta-row,
  .watch-page-shell .below-video-copy .video-meta-row {
    grid-template-columns: minmax(0, 1fr) 28px !important;
    gap: 6px !important;
    align-items: end !important;
  }

  .public-site-shell .video-stats,
  .watch-page-shell .below-video-copy .video-stats,
  .public-site-shell .sponsored-copy .video-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
  }

  .public-site-shell .video-stats span,
  .watch-page-shell .below-video-copy .video-stats span,
  .public-site-shell .sponsored-copy .video-stats span {
    flex: 0 1 auto;
    max-width: 46%;
  }

  .public-site-shell .video-stats span:nth-child(3),
  .watch-page-shell .below-video-copy .video-stats span:nth-child(3) {
    display: none !important;
  }

  .public-site-shell .card-share-btn,
  .watch-page-shell .card-share-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.9rem !important;
  }

  .mobile-bottom-banner {
    bottom: max(2px, env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-banner-link,
  .mobile-bottom-banner .banner-runtime-shell-slot,
  .mobile-bottom-banner .runtime-ad-slot[data-ad-slot="mobile_320"] {
    margin-bottom: 0 !important;
  }
}

/* Final July 3 feed/watch polish */
@media (max-width: 900px) {
  .public-site-shell {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .public-site-shell .public-video-grid > .video-card,
  .public-site-shell .public-video-grid > .sponsored-video-card,
  .public-site-shell .below-video-list > .below-video-card,
  .public-site-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-rows: 126px 84px !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .public-site-shell .video-copy,
  .public-site-shell .below-video-copy,
  .public-site-shell .sponsored-copy {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 7px 10px 9px !important;
    gap: 3px !important;
  }

  .public-site-shell .video-copy h3,
  .public-site-shell .below-video-copy h3,
  .public-site-shell .sponsored-copy h3 {
    font-size: 0.8rem !important;
    line-height: 1.16 !important;
    min-height: 2.06em !important;
    max-height: 2.06em !important;
  }

  .public-site-shell .video-meta-row,
  .watch-page-shell .below-video-copy .video-meta-row {
    margin-top: 0 !important;
    gap: 5px !important;
  }

  .public-site-shell .video-stats,
  .watch-page-shell .below-video-copy .video-stats,
  .public-site-shell .sponsored-copy .video-stats {
    gap: 2px 6px !important;
    font-size: 0.67rem !important;
    margin-top: 0 !important;
  }

  .mobile-bottom-banner {
    bottom: 0 !important;
    transform: translateX(-50%) !important;
  }

  .mobile-bottom-banner .banner-runtime-shell {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 901px) {
  .watch-page-shell .below-video-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .watch-page-shell .below-video-list > .below-video-card,
  .watch-page-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    display: grid !important;
    grid-template-rows: minmax(0, 68%) minmax(0, 32%) !important;
    aspect-ratio: 7 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-content: start !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .watch-page-shell .below-video-thumb img,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .watch-page-shell .below-video-copy,
  .watch-page-shell .sponsored-feed-card .below-video-copy {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-content: start !important;
    gap: 6px !important;
    padding: 14px 14px 12px !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-copy h3,
  .watch-page-shell .sponsored-feed-card .below-video-copy h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.18 !important;
    min-height: 2.36em !important;
    max-height: 2.36em !important;
  }

  .watch-page-shell .below-video-copy .video-meta-row,
  .watch-page-shell .sponsored-feed-card .below-video-copy .video-meta-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
    gap: 8px !important;
    align-items: end !important;
    margin-top: auto !important;
  }

  .watch-page-shell .below-video-copy .video-stats,
  .watch-page-shell .sponsored-feed-card .below-video-copy .video-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content)) !important;
    gap: 4px 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.12 !important;
    min-width: 0 !important;
  }

  .watch-page-shell .below-video-copy .video-stats span,
  .watch-page-shell .sponsored-feed-card .below-video-copy .video-stats span {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .watch-page-shell .below-video-copy .video-stats span:nth-child(3),
  .watch-page-shell .sponsored-feed-card .below-video-copy .video-stats span:nth-child(3) {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final July 3 deployment fixes */
@media (max-width: 900px) {
  .home-page-shell.public-site-shell {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .home-page-shell .footer-banner-slot {
    margin-top: auto !important;
    margin-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    padding-top: 16px !important;
  }

  .footer-banner-slot--mobile_320 .banner-runtime-shell,
  .footer-banner-slot--mobile_320 .banner-runtime-shell-slot,
  .footer-banner-slot--mobile_320 .footer-banner-link {
    width: min(92vw, 320px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 901px) {
  .watch-page-shell .watch-layout {
    display: block !important;
  }

  .watch-page-shell .player-column {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .watch-page-shell .playlist-column {
    display: none !important;
  }

  .watch-page-shell .below-video-list {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .watch-page-shell .below-video-list > .below-video-card,
  .watch-page-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-rows: 68% 32% !important;
    min-height: 0 !important;
  }
}

/* Final watch page desktop card parity with the home feed. */
@media (min-width: 901px) {
  .watch-page-shell .watch-panel {
    border-radius: 22px !important;
    padding: 22px 24px !important;
  }

  .watch-page-shell .watch-section-head {
    margin-top: 22px !important;
    padding: 18px 20px !important;
    border: 1px solid var(--line);
    border-radius: 18px !important;
  }

  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .watch-page-shell .below-video-list > .below-video-card,
  .watch-page-shell .below-video-list > .sample-ad-card.inline-feed-ad.sponsored-feed-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 7fr) minmax(0, 3fr) !important;
    aspect-ratio: 7 / 10 !important;
    height: auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .watch-page-shell .below-video-thumb,
  .watch-page-shell .sponsored-feed-card .sponsored-thumb {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .watch-page-shell .below-video-copy,
  .watch-page-shell .sponsored-feed-card .below-video-copy {
    height: 100% !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .watch-page-shell .below-video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final channel share, mobile bottom ad, and category-row fixes. */
.channel-page-shell .channel-hero-copy {
  flex: 1;
  min-width: 0;
}

.channel-page-shell .channel-share-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 900px) {
  .channel-page-shell .channel-hero {
    flex-wrap: wrap;
  }

  .channel-page-shell .channel-share-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .mobile-bottom-banner {
    bottom: 0 !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }

  .mobile-bottom-banner .banner-runtime-shell,
  .mobile-bottom-banner .banner-runtime-shell-slot,
  .mobile-bottom-banner .runtime-ad-slot[data-ad-slot="mobile_320"] {
    bottom: auto !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

  .mobile-bottom-banner-link,
  .mobile-bottom-banner-link img {
    margin: 0 !important;
    vertical-align: bottom !important;
  }

  .mobile-bottom-banner .runtime-ad-slot[data-ad-slot="mobile_320"] iframe {
    position: fixed !important;
    inset: auto auto 0 50% !important;
    width: 320px !important;
    max-width: calc(100vw - 8px) !important;
    height: 50px !important;
    max-height: 50px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 99 !important;
  }

  .home-page-shell .category-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .home-page-shell .category-strip::-webkit-scrollbar {
    display: none;
  }

  .home-page-shell .category-pill {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
    padding: 9px 12px !important;
  }

  .home-page-shell .category-pill.category-has-emoji {
    font-size: 0.68rem !important;
    gap: 3px !important;
  }
}

/* Final metadata text alignment and reusable admin live search. */
.public-site-shell .video-meta-row,
.watch-page-shell .below-video-copy .video-meta-row {
  align-items: center !important;
}

.public-site-shell .video-stats,
.watch-page-shell .below-video-copy .video-stats {
  align-items: center !important;
  align-self: center !important;
}

.public-site-shell .card-share-btn,
.watch-page-shell .card-share-btn {
  align-self: end !important;
}

.admin-live-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  margin: 16px 0;
}

.admin-user-live-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-user-live-search label {
  grid-column: 1 / -1;
  font-weight: 800;
}

.admin-live-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.admin-live-search > span,
.admin-search-no-results {
  color: var(--muted);
}

[data-admin-search-item="true"][hidden],
.admin-search-no-results[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .admin-live-search,
  .admin-user-live-search {
    grid-template-columns: 1fr;
  }

  .admin-live-search .btn {
    display: none;
  }
}
