/* VYORA video and creator platform styling */
:root {
  color-scheme: dark;
  --navbar-controls-height: 56px;
  --navbar-art-height: clamp(160px, 16.523vw, 423px);
  --navbar-height: calc(var(--navbar-controls-height) + var(--navbar-art-height));
  --bg-primary: #04152d;
  --bg-secondary: #0b2445;
  --bg-hover: #16416e;
  --text-primary: #f7f9fc;
  --text-secondary: #c0cddd;
  --accent-red: #2d82d5;
  --accent-yellow: #ffd43b;
  --border-color: #31577e;
  --chip-bg: #123254;
  --chip-active: #ffd43b;
  --chip-active-text: #04152d;
  --card-bg: #0b2445;
  --search-border: #50769c;
}

body.light-theme {
  color-scheme: dark;
  --bg-primary: #071a35;
  --bg-secondary: #102b4f;
  --bg-hover: #1a4778;
  --text-primary: #f7f9fc;
  --text-secondary: #c8d5e4;
  --border-color: #3b648c;
  --chip-bg: #183b63;
  --chip-active: #ffd43b;
  --chip-active-text: #04152d;
  --card-bg: #102b4f;
  --search-border: #5b82a8;
}

/* Site-wide scrollbars use the navy VYORA background. */
html {
  color-scheme: dark;
  scrollbar-color: #466b92 #04152d;
  scrollbar-width: thin;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(28, 118, 214, 0.22), transparent 34%),
    radial-gradient(ellipse at 92% 20%, rgba(255, 212, 59, 0.08), transparent 28%),
    linear-gradient(145deg, #04152d 0%, #071b36 55%, #05172f 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.2s, color 0.2s;
  scrollbar-color: #466b92 var(--bg-primary, #04152d);
  scrollbar-width: thin;
}

body.light-theme, html.light-theme {
  scrollbar-color: #5b82a8 var(--bg-primary, #071a35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  scrollbar-color: #466b92 var(--bg-primary, #04152d);
  scrollbar-width: thin;
}

/* WebKit / Chromium / Edge / Safari Global Scrollbars */
::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--bg-primary, #04152d);
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: #383838;
  border-radius: 4px;
  border: 2px solid var(--bg-primary, #04152d);
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: #555555;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: var(--bg-primary, #04152d);
}

/* Navbar */
.navbar {
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  height: var(--navbar-height);
  padding: 12px clamp(12px, 2vw, 36px);
  background:
    linear-gradient(180deg, rgba(2, 13, 30, 0.94) 0%, rgba(2, 13, 30, 0.72) 18%, rgba(2, 13, 30, 0.04) 60%, rgba(2, 13, 30, 0.13) 100%),
    url('/vyora-channel-banner.png') center center / cover no-repeat,
    var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(153, 193, 230, 0.18);
  box-shadow: 0 16px 45px rgba(0, 7, 18, 0.32);
}

.navbar > .nav-left,
.navbar > .nav-center,
.navbar > .nav-right {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(170, 198, 226, 0.2);
  border-radius: 17px;
  background: rgba(4, 21, 45, 0.76);
  box-shadow: 0 10px 28px rgba(0, 8, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  color: var(--accent-red);
  font-size: 26px;
}

.logo-icon-img {
  height: 44px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px rgba(23, 105, 194, 0.3));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover .logo-icon-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 9px rgba(23, 105, 194, 0.55));
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary, #ffffff);
}

.logo-text .highlight {
  color: #3988df;
}

.badge {
  background-color: var(--border-color);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Nav Center */
.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 380px !important;
  width: auto;
  max-width: 650px;
}

.search-box {
  display: flex;
  flex: 1;
  height: 40px;
  border: 1px solid var(--search-border);
  border-radius: 40px;
  overflow: hidden;
  background-color: var(--bg-hover);
}

.search-box:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.24);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-primary);
  caret-color: var(--accent-red);
  font-size: 15px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-primary);
  opacity: 1;
}

.search-box button {
  background-color: var(--bg-hover);
  border: none;
  border-left: 1px solid var(--border-color);
  width: 64px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.voice-btn {
  background-color: var(--bg-secondary);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.create-btn:hover {
  background-color: #383838;
}

/* Notification Dropdown */
.notif-wrapper, .user-menu-wrapper {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: #cc0000;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.notif-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 2000;
}

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

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.notif-item:hover {
  background-color: var(--bg-hover);
}

.notif-item.unread {
  background-color: rgba(62, 166, 255, 0.08);
}

.notif-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-item h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.notif-item p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.notif-item span {
  font-size: 10px;
  color: #888;
  margin-top: 4px;
  display: block;
}

/* User Dropdown */
.user-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.user-avatar img:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

.user-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 260px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding: 8px 0;
  z-index: 2000;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 4px;
  transition: background-color 0.15s ease;
}

.user-dropdown-header:hover {
  background-color: var(--hover-color, rgba(255, 255, 255, 0.1));
}

.user-dropdown-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-dropdown-header:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: var(--bg-hover);
}

/* Main Layout */
.main-container {
  display: flex;
  height: calc(100vh - var(--navbar-height));
  width: 100%;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background-color: var(--bg-primary);
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed span,
.sidebar.collapsed .section-title,
.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed hr {
  display: none;
}

.sidebar.collapsed .nav-item {
  flex-direction: column;
  padding: 12px 0;
  font-size: 10px;
  justify-content: center;
}

.sidebar.collapsed .nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 12px 12px 6px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background-color: var(--bg-hover);
}

.nav-item.active {
  background-color: var(--bg-hover);
  font-weight: 700;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 12px 0;
}

.sidebar-footer {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 16px 12px;
  line-height: 1.5;
}

/* Content Area */
.content-area {
  flex: 1 1 0%;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px 40px 24px;
  box-sizing: border-box;
}

/* View Panels Base Architecture */
.view-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

#video-feed.active {
  display: block !important;
}

.watch-view.active {
  display: flex;
}

.shorts-view.active {
  display: flex;
}

/* Category Chips */
.category-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chip {
  background-color: var(--chip-bg);
  color: var(--text-primary);
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chip:hover {
  background-color: var(--bg-hover);
}

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

/* Video Grid Feed — exactly 3 columns, scales to fill screen width */
.video-grid {
  display: grid;
  /* Forces exactly 3 equal columns per row */
  grid-template-columns: repeat(3, 1fr);
  /* Controls the spacing between your video cards */
  gap: 24px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.video-card {
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  box-sizing: border-box;
}

/* Standalone / placeholder cards follow standard widescreen 16:9 aspect ratio */
.video-card:not(:has(.thumbnail-wrap)) {
  aspect-ratio: 16 / 9;
  background-color: var(--card-bg);
  border-radius: 8px;
}

.video-card:hover {
  transform: translateY(-2px);
}

.youtube-discovery {
  margin: 34px 16px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color, #292929);
}

.youtube-discovery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.youtube-discovery-heading h3 {
  margin: 0;
  color: var(--text-primary, #f1f1f1);
  font-size: 18px;
}

.youtube-discovery-heading h3 img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -5px;
  object-fit: contain;
}

.youtube-discovery-heading p {
  margin: 6px 0 0;
  color: var(--text-secondary, #aaa);
  font-size: 13px;
}

.youtube-refresh-btn {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
}

.youtube-refresh-btn:hover,
.youtube-refresh-btn:focus-visible {
  border-color: #ff0033;
  outline: none;
}

.youtube-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.youtube-category-shelf {
  margin-top: 30px;
}

.youtube-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.youtube-category-heading h4 {
  margin: 0;
  color: var(--text-primary, #f1f1f1);
  font-size: 17px;
}

.youtube-category-heading span {
  color: var(--text-secondary, #aaa);
  font-size: 12px;
}

.youtube-category-row {
  display: grid;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.youtube-category-row .youtube-discovery-card {
  scroll-snap-align: start;
}

.youtube-discovery-status {
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--text-secondary, #aaa);
}

.youtube-discovery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
}

.youtube-discovery-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.youtube-play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.youtube-play-trigger:hover,
.youtube-play-trigger:focus-visible {
  background: rgba(0, 0, 0, 0.2);
  outline: 2px solid #ff0033;
  outline-offset: -2px;
}

.youtube-discovery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.youtube-discovery-card:hover .youtube-discovery-thumb img {
  transform: scale(1.03);
}

.youtube-play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.youtube-discovery-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.youtube-discovery-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-primary, #f1f1f1);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.youtube-discovery-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary, #f1f1f1);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.youtube-discovery-title-button:hover {
  color: #ff5454;
}

.youtube-discovery-title-button:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ff0033;
  outline-offset: 3px;
}

.youtube-discovery-channel,
.youtube-discovery-views,
.youtube-discovery-open-link {
  overflow: hidden;
  color: var(--text-secondary, #aaa);
  font-size: 12px;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.youtube-discovery-channel:hover,
.youtube-discovery-title:hover,
.youtube-discovery-open-link:hover {
  color: #ff5454;
}

@media (max-width: 900px) {
  .youtube-discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .youtube-discovery {
    margin-inline: 8px;
  }

  .youtube-discovery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .youtube-category-row {
    grid-auto-columns: minmax(190px, 76vw);
  }

  .youtube-discovery-card {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  }

  .youtube-discovery-thumb {
    height: 100%;
    min-height: 100px;
    aspect-ratio: auto;
  }

  .youtube-play-badge {
    right: 6px;
    bottom: 6px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .youtube-discovery-meta {
    justify-content: center;
    padding: 10px;
  }
}

.player-wrapper.youtube-embed-active #main-player,
.player-wrapper.youtube-embed-active #yt-gesture-layer,
.player-wrapper.youtube-embed-active #yt-chrome-bottom {
  display: none !important;
}

.player-wrapper.youtube-embed-active > :not(#youtube-player-host):not(.youtube-player-error):not(#vyora-video-watermark) {
  display: none !important;
}

.player-wrapper.youtube-embed-active #vyora-video-watermark {
  display: block !important;
  top: auto !important;
  right: 52px !important;
  bottom: 22px !important;
  left: auto !important;
  width: 92px !important;
  height: 28px !important;
  max-width: calc(100% - 16px) !important;
  max-height: none !important;
  padding: 1px 3px;
  border-radius: 5px;
  background: rgba(7, 26, 53, 0.98);
  -webkit-backdrop-filter: blur(16px) saturate(65%);
  backdrop-filter: blur(16px) saturate(65%);
  box-sizing: border-box;
  object-fit: contain;
  opacity: 0 !important;
  z-index: 16;
  filter: none;
  transition: opacity 220ms ease;
}

.player-wrapper.youtube-embed-active #vyora-video-watermark.is-visible {
  opacity: 1 !important;
}

@media (max-width: 480px) {
  .player-wrapper.youtube-embed-active #vyora-video-watermark {
    right: 35px !important;
    bottom: 11px !important;
    width: 84px !important;
    height: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-wrapper.youtube-embed-active #vyora-video-watermark {
    transition: none;
  }
}

.watch-media {
  width: 100%;
  min-width: 0;
}

.watch-media:fullscreen,
.watch-media:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #000;
}

.watch-media:fullscreen .player-wrapper,
.watch-media:-webkit-full-screen .player-wrapper {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.player-wrapper.youtube-embed-active #youtube-player-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #000;
}

.player-wrapper.youtube-embed-active #youtube-player-host iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-player-error {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.youtube-player-error a {
  color: #70b7ff;
}

.watch-view.youtube-external-video .creator-merch-shelf {
  display: none !important;
}

.thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail-wrap video,
.thumbnail-wrap img,
.related-thumb video,
.related-thumb img,
.short-shelf-card video,
.short-shelf-card img,
.history-thumb video,
.history-thumb img,
.playlist-video-thumb video,
.playlist-video-thumb img,
.playlist-thumb-wrap video,
.playlist-thumb-wrap img,
.game-stream-thumb video,
.game-stream-thumb img,
.movie-poster-wrap video,
.admin-thumb-mini {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none !important;
}

.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  pointer-events: none !important;
}

.video-meta {
  display: flex;
  gap: 12px;
  padding: 12px 4px 0;
}

.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.avatar-fallback {
  cursor: default !important;
  object-fit: contain;
  background: #0b2445;
}

.youtube-discovery-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.youtube-discovery-meta .youtube-discovery-title-button {
  text-align: left;
}

.avatar-fallback:hover,
.avatar-fallback:active {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.card-avatar:hover {
  transform: scale(1.14);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.card-avatar:active {
  transform: scale(0.95);
}

.meta-details {
  display: flex;
  flex-direction: column;
}

.video-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-name, .video-stats {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.persona-identity {
  color: #c6a3ff;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 5px;
}

.persona-identity i {
  color: #a855f7;
  margin-right: 3px;
}

.persona-mini-avatar,
.persona-watch-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 4px;
}

.persona-watch-avatar {
  width: 24px;
  height: 24px;
}

.short-persona {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c6a3ff;
  font-size: 12px;
  margin-top: 5px;
}

.short-persona img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.watch-persona-identity {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  margin-top: 12px;
  padding-top: 10px;
}

.verified-badge {
  color: #3ea6ff;
  font-size: 12px;
  margin-left: 4px;
}

/* Watch View */
.watch-view {
  display: flex;
  gap: 24px;
  max-width: 1750px;
  margin: 0 auto;
  width: 100%;
}

#watch-view.watch-state-only {
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 720px);
}

#watch-view > [hidden],
#watch-state-panel[hidden] {
  display: none !important;
}

.watch-state-panel {
  width: min(100%, 720px);
  min-height: 300px;
  padding: 32px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 39, 72, 0.96), rgba(4, 21, 45, 0.96));
  color: var(--text-primary);
  text-align: center;
}

.watch-state-panel h1,
.watch-state-panel p {
  margin: 0;
}

.watch-state-panel p {
  max-width: 480px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.watch-state-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent-blue, #3ea6ff);
  border-radius: 50%;
  animation: watch-state-spin 0.8s linear infinite;
}

.watch-state-error-icon {
  color: #f5c542;
  font-size: 30px;
}

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

.watch-main {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.player-wrapper.theater {
  max-height: 80vh;
  aspect-ratio: auto;
  height: 70vh;
  border-radius: 0;
}

.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.google-display-ad-placement[hidden],
.google-ad-slot[hidden],
.google-video-ad-slot[hidden] {
  display: none !important;
}

.google-display-ad-placement {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto 20px;
}

.google-ad-slot {
  display: grid;
  place-items: center;
  max-width: 100%;
  overflow: hidden;
}

.google-ad-slot--leaderboard {
  width: 728px;
  height: 90px;
}

.google-ad-slot--rectangle {
  width: 300px;
  height: 250px;
}

.google-ad-slot--mobile-banner {
  width: 320px;
  height: 50px;
}

.google-video-ad-slot {
  position: absolute;
  z-index: 12;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (min-width: 768px) {
  .google-ad-slot--rectangle,
  .google-ad-slot--mobile-banner {
    display: none !important;
  }
}

@media (min-width: 561px) and (max-width: 767px) {
  .google-ad-slot--leaderboard,
  .google-ad-slot--mobile-banner {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .google-ad-slot--leaderboard,
  .google-ad-slot--rectangle {
    display: none !important;
  }
}

/* Auto-hide cursor and chrome when idle */
.player-wrapper.yt-controls-hidden {
  cursor: none;
}
.player-wrapper.yt-controls-hidden .yt-chrome-bottom {
  opacity: 0;
  pointer-events: none;
}

/* Gesture & Click Layer */
.yt-gesture-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 48px);
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* YouTube Center Bezel Animation */
.yt-bezel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0, 0, 0.2, 1), opacity 0.25s ease;
  z-index: 4;
}

.yt-bezel.yt-bezel-animate {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

/* Quick Seek Ripples (10s jump left / right) */
.yt-seek-ripple {
  position: absolute;
  top: 0;
  height: 100%;
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  transition: opacity 0.2s ease;
  z-index: 4;
}

.yt-seek-left {
  left: 0;
  border-radius: 0 50% 50% 0;
}

.yt-seek-right {
  right: 0;
  border-radius: 50% 0 0 50%;
}

.yt-seek-ripple.yt-seek-animate {
  opacity: 1;
  animation: ytRipplePulse 0.45s ease forwards;
}

@keyframes ytRipplePulse {
  0% { opacity: 0.8; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1); }
}

.yt-seek-arrows {
  font-size: 26px;
}

.yt-seek-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* YouTube Bottom Chrome */
.yt-chrome-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0) 100%);
  padding: 0 14px 8px 14px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(0, 0, 0.2, 1);
  pointer-events: auto;
}

/* Scrubber / Progress Bar Container */
.yt-progress-bar-container {
  position: relative;
  width: 100%;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.yt-progress-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.yt-progress-bar-container:hover .yt-progress-bar,
.yt-progress-bar-container.scrubbing .yt-progress-bar {
  height: 5px;
}

.yt-progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  pointer-events: none;
}

.yt-progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  pointer-events: none;
}

.yt-scrubber-dot {
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) scale(0);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.yt-progress-bar-container:hover .yt-scrubber-dot,
.yt-progress-bar-container.scrubbing .yt-scrubber-dot {
  transform: translateY(-50%) scale(1);
}

.yt-progress-tooltip {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(28, 28, 28, 0.95);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-progress-bar-container:hover .yt-progress-tooltip {
  opacity: 1;
}

/* Controls Row */
.yt-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.yt-left-controls, .yt-right-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.yt-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.yt-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.yt-btn:active {
  transform: scale(0.92);
}

/* Volume Slider Area (Expanding on hover) */
.yt-volume-area {
  display: flex;
  align-items: center;
}

.yt-volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.yt-volume-area:hover .yt-volume-slider-wrap,
.yt-volume-area:focus-within .yt-volume-slider-wrap,
.yt-volume-slider-wrap.active {
  width: 60px;
  margin-right: 6px;
}

.yt-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 58px;
  height: 3px;
  background: #ffffff;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.yt-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Time Display */
.yt-time-display {
  color: #ddd;
  font-size: 12px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin-left: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  font-weight: 500;
}

.yt-time-separator {
  margin: 0 4px;
  color: #888;
}

/* CC Badge Button */
.yt-badge-btn .yt-cc-badge {
  border: 1.5px solid #fff;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 3px;
  line-height: 1;
}

.yt-badge-btn.active .yt-cc-badge {
  border-color: #ff0000;
  color: #ff0000;
  border-bottom: 2px solid #ff0000;
}

/* Autoplay miniature toggle */
.yt-autoplay-toggle {
  width: 32px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  position: relative;
  display: inline-block;
  transition: background 0.2s ease;
}

.yt-autoplay-toggle.active {
  background: rgba(255, 255, 255, 0.55);
}

.yt-autoplay-handle {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -2px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yt-autoplay-toggle.active .yt-autoplay-handle {
  transform: translateX(16px);
}

.yt-autoplay-handle i {
  font-size: 8px;
  color: #0f0f0f;
  margin-left: 1px;
}

/* Settings Popover Menu */
.yt-settings-menu {
  position: absolute;
  bottom: 52px;
  right: 14px;
  width: 250px;
  background: rgba(28, 28, 28, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  z-index: 12;
  color: #fff;
  font-size: 13px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: ytFadeIn 0.15s ease-out;
}

@keyframes ytFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.yt-settings-panel {
  display: flex;
  flex-direction: column;
}

.yt-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yt-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.yt-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eee;
}

.yt-menu-item-left i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: #aaa;
}

.yt-menu-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 12px;
}

.yt-submenu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.yt-submenu-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.yt-options-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.yt-option-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
  position: relative;
}

.yt-option-row:hover {
  background: rgba(255, 255, 255, 0.12);
}

.yt-option-row .yt-opt-check {
  font-size: 12px;
  margin-right: 12px;
  color: transparent;
  width: 14px;
}

.yt-option-row.active .yt-opt-check {
  color: #fff;
}

.yt-hd-badge {
  margin-left: auto;
  background: #ff0000;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.autoplay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 600;
}

.autoplay-actions {
  display: flex;
  gap: 12px;
}

.watch-title {
  font-size: 20px;
  font-weight: 700;
  margin: 14px 0 10px;
}

.watch-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.channel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.channel-avatar-lg:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.channel-avatar-lg:active {
  transform: scale(0.95);
}

.channel-meta h3 {
  font-size: 16px;
  font-weight: 600;
}

.channel-meta span {
  font-size: 12px;
  color: var(--text-secondary);
}

.subscribe-btn {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-left: 12px;
  transition: opacity 0.2s;
}

.subscribe-btn.subscribed {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.interaction-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  background-color: #383838;
}

.pill-btn.active {
  background-color: rgba(62, 166, 255, 0.2);
  color: #3ea6ff;
}

.description-box {
  background-color: var(--bg-secondary);
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.description-header {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Comments */
.comments-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.add-comment-box {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.comment-avatar:hover {
  transform: scale(1.12);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.comment-avatar:active {
  transform: scale(0.95);
}

.comment-input-wrap {
  flex: 1;
}

.comment-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.comment-input-wrap input:focus {
  border-bottom: 2px solid var(--text-primary);
}

.comment-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 18px;
  font-weight: 500;
  cursor: pointer;
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: #3ea6ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background-color: #3ea6ff;
  color: #0f0f0f;
  border: none;
  padding: 8px 18px;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:disabled {
  background-color: #303030;
  color: #717171;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #ff4e45;
  color: #ff4e45;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-item {
  display: flex;
  gap: 14px;
}

.comment-content h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.comment-content h4 span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 6px;
}

.comment-content p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Comment Actions, Likes & Replies */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.comment-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 16px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.comment-action-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.comment-action-btn.active {
  color: #3ea6ff;
}

.comment-action-btn.dislike-btn.active {
  color: #ff4e45;
}

.comment-action-btn i {
  font-size: 13px;
}

.comment-reply-box {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid #3ea6ff;
}

.comment-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.comment-avatar-sm:hover {
  transform: scale(1.1);
}

.comment-reply-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  padding: 6px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-reply-input:focus {
  border-bottom-color: #3ea6ff;
}

.comment-reply-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
}

.btn-text-sm:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.btn-primary-sm {
  background: #3ea6ff;
  border: none;
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary-sm:hover {
  background: #65b8ff;
}

.replies-toggle-btn {
  background: transparent;
  border: none;
  color: #3ea6ff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  transition: background 0.15s ease;
}

.replies-toggle-btn:hover {
  background: rgba(62, 166, 255, 0.12);
}

.nested-replies-list {
  margin-left: 20px;
  margin-top: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reply-item {
  display: flex;
  gap: 12px;
}

/* Watch Sidebar (Up Next) */
.watch-sidebar {
  width: 400px;
  flex-shrink: 0;
}

.up-next-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.autoplay-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.related-videos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.related-thumb {
  width: 168px;
  height: 94px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.related-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none !important;
}

.related-meta h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Shorts Vertical Feed */
.shorts-view {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.shorts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 500px;
}

.short-card {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.short-video-wrapper {
  position: relative;
  width: 360px;
  height: 640px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  cursor: pointer;
  user-select: none;
}

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

.related-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-sound-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s ease, background 0.2s ease;
  backdrop-filter: blur(8px);
}

.short-sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.9);
}

.short-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.short-play-indicator.pulse {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.short-unmute-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  animation: bounce 2s infinite;
}

.short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.short-overlay > * {
  pointer-events: auto;
}

.short-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.short-creator img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.short-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
}

.short-sound {
  font-size: 12px;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.short-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.short-action-btn {
  background: var(--bg-hover);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.short-action-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* Channel Profile Page */
.channel-view {
  max-width: 1280px;
  margin: 0 auto;
}

.channel-banner-wrap {
  position: relative;
  width: 100%;
  height: clamp(180px, 16.523vw, 423px);
  min-height: 180px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #04152d url('/vyora-channel-banner.svg') center / cover no-repeat;
  border: 1px solid rgba(141, 184, 223, 0.2);
  box-shadow: 0 24px 60px rgba(0, 7, 18, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.channel-banner-wrap::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 13, 32, 0.02) 48%, rgba(2, 13, 32, 0.36) 100%);
}

.channel-banner-wrap img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-header-info {
  display: flex;
  gap: 28px;
  padding: 0 30px 24px;
  margin-top: -62px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.channel-header-info > img {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 5px solid #071b36;
  box-shadow: 0 0 0 1px rgba(255, 212, 59, 0.72), 0 14px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.channel-header-info > img:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px #ffd43b, 0 16px 38px rgba(0, 0, 0, 0.45);
}

.channel-header-info > img:active {
  transform: scale(0.97);
}

.channel-header-details {
  min-width: 0;
  flex: 1;
  padding: 0 0 6px;
}

.channel-header-details h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.1;
  text-wrap: balance;
}

#channel-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #c0cddd;
  font-size: 13px;
  line-height: 1.5;
}

#channel-page-meta > span {
  padding: 4px 10px;
  border: 1px solid rgba(148, 181, 216, 0.16);
  border-radius: 999px;
  background: rgba(8, 28, 53, 0.66);
}

.channel-bio-text {
  font-size: 14px;
  color: #c0cddd;
  margin: 10px 0 16px;
  max-width: 700px;
  line-height: 1.6;
}

.channel-header-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-header-btns .subscribe-btn {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: #081a32;
  background: linear-gradient(135deg, #ffe57a, #ffd43b 58%, #f2ad00);
  box-shadow: 0 8px 22px rgba(255, 195, 26, 0.18);
  font-weight: 800;
}

.channel-header-btns .btn-outline {
  min-height: 42px;
  border: 1px solid rgba(170, 198, 226, 0.28);
  border-radius: 999px;
  background: rgba(11, 36, 69, 0.8);
  color: #f7f9fc;
}

.channel-header-btns .btn-outline:hover {
  border-color: rgba(255, 212, 59, 0.65);
  background: rgba(22, 65, 110, 0.9);
}

.channel-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.channel-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.channel-tab.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
}

.channel-about-card {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
  max-width: 700px;
}

.about-stats-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
}

/* Library & History Views */
.library-section {
  margin-bottom: 36px;
}

.library-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.horizontal-scroll-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.horizontal-scroll-grid .video-card {
  width: 260px;
  flex-shrink: 0;
}

.history-page-layout {
  display: flex;
  gap: 30px;
}

.history-main {
  flex: 1 1 0%;
  min-width: 0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.history-item {
  display: flex;
  gap: 16px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

.history-item:hover {
  background: var(--bg-hover);
}

.history-thumb {
  width: 220px;
  height: 125px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  position: relative;
}

.history-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-meta h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.history-meta p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.history-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.history-actions-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Playlists Grid */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.playlist-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.playlist-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.playlist-thumb-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-badge-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.playlist-meta {
  padding: 14px;
}

.playlist-meta h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.playlist-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Creator Studio & Admin */
.page-title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.admin-title-area {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-title-area h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-title-area p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.metric-icon.blue { background-color: rgba(62, 166, 255, 0.15); color: #3ea6ff; }
.metric-icon.red { background-color: rgba(255, 0, 0, 0.15); color: #ff4e45; }
.metric-icon.green { background-color: rgba(43, 166, 64, 0.15); color: #2ba640; }
.metric-icon.orange { background-color: rgba(255, 165, 0, 0.15); color: #ffa500; }

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

.metric-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 2px 0;
}

.trend-badge {
  font-size: 11px;
  font-weight: 600;
}

.trend-badge.green { color: #2ba640; }

.chart-wrapper {
  padding: 20px;
  background: var(--bg-secondary);
}

.chart-wrapper canvas {
  width: 100% !important;
  max-height: 260px;
}

.admin-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.admin-table th {
  padding: 14px 18px;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: var(--bg-hover);
}

.action-btn-group {
  display: flex;
  gap: 8px;
}

.action-btn {
  background-color: var(--bg-hover);
  border: none;
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.action-btn.delete-btn { color: #ff4e45; }
.action-btn.delete-btn:hover { background-color: rgba(255, 78, 69, 0.2); }

.admin-comments-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-comment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.admin-card-body {
  padding: 20px;
}

/* Superadmin Enterprise Sub-navigation */
.admin-subnav-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-subnav-bar::-webkit-scrollbar {
  display: none;
}

.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-subtab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-subtab-btn.active {
  background: #ff4e45;
  color: #fff;
  border-color: #ff4e45;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 78, 69, 0.3);
}

/* Superadmin Grids */
.admin-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.admin-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 1024px) {
  .admin-grid-2col,
  .admin-grid-3col,
  .admin-grid-4col {
    grid-template-columns: 1fr;
  }
}

/* Stat Box Inner */
.stat-box-inner {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-box-inner h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-box-inner p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Admin Setting Row */
.admin-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-setting-row:last-child {
  border-bottom: none;
}

.admin-setting-row h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-setting-row p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Telemetry Bars */
.telemetry-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.telemetry-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.telemetry-bar-fill.blue { background-color: #3ea6ff; }
.telemetry-bar-fill.green { background-color: #2ba640; }
.telemetry-bar-fill.orange { background-color: #ffa500; }
.telemetry-bar-fill.red { background-color: #ff4e45; }

/* Status Badges */
.status-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(43, 166, 64, 0.15);
  color: #2ba640;
  border: 1px solid #2ba640;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 78, 69, 0.15);
  color: #ff4e45;
  border: 1px solid #ff4e45;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Buttons */
.btn-outline-danger {
  background: transparent;
  border: 1px solid #ff4e45;
  color: #ff4e45;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: rgba(255, 78, 69, 0.15);
}

.btn-outline {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-text-sm {
  background: none;
  border: none;
  color: #3ea6ff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-text-sm:hover {
  background: rgba(62, 166, 255, 0.1);
}

/* Fee Split Display */
.fee-split-display {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

.fee-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.fee-badge.creator {
  background: rgba(43, 166, 64, 0.15);
  color: #2ba640;
  border: 1px solid #2ba640;
}

.fee-badge.platform {
  background: rgba(62, 166, 255, 0.15);
  color: #3ea6ff;
  border: 1px solid #3ea6ff;
}

/* Blacklist Chips */
.blacklist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 40px;
}

.blacklist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-primary);
}

.blacklist-chip .remove-word-btn {
  cursor: pointer;
  color: #ff4e45;
  font-weight: bold;
}

.blacklist-chip .remove-word-btn:hover {
  opacity: 0.8;
}

.ad-config-item {
  margin: 6px 0;
  font-size: 13px;
  color: var(--text-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-card {
  background-color: var(--bg-secondary);
  width: 580px;
  max-width: 90vw;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.modal-header h2 { font-size: 18px; }

#upload-form { padding: 20px; }

.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: var(--bg-primary);
  margin-bottom: 20px;
}

.dropzone-icon {
  font-size: 40px;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.file-name-preview {
  margin-top: 10px;
  font-size: 13px;
  color: #3ea6ff;
  font-weight: 500;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.form-row { display: flex; gap: 16px; }
.form-row .half { flex: 1; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* Auth Modal Tabs & Sign-In Controls */
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.auth-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
}

.auth-tab-btn.active {
  color: #fff;
  border-bottom-color: #ff0000;
  font-weight: 600;
}

/* Profile Switcher List */
.profile-switch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}

.profile-card-item:hover {
  border-color: #3ea6ff;
}

.profile-card-item.active {
  border-color: #2ba640;
  background: rgba(43, 166, 64, 0.08);
}

.profile-card-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Playlist choice list */
.playlist-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.playlist-choice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
}

.playlist-choice-item:hover {
  background: var(--bg-hover);
}

/* Shorts Shelf on Home Feed */
.shorts-shelf {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  overflow: hidden;
}

.shorts-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.shorts-shelf-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shorts-shelf-title h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.shorts-shelf-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.short-shelf-card {
  position: relative;
  width: 175px;
  height: 310px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.short-shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.short-shelf-card video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none !important;
}

.short-shelf-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none !important;
}

.short-shelf-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.short-shelf-overlay h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-shelf-overlay span {
  font-size: 11px;
  color: #ccc;
}

/* Settings View */
.settings-view {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.settings-container {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  min-height: 560px;
  width: 100%;
}

.settings-nav-sidebar {
  width: 250px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  flex-shrink: 0;
}

.settings-nav-sidebar h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}

.settings-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.settings-tab-btn.active {
  background: var(--bg-hover);
  color: #ff4e45;
  font-weight: 600;
}

.settings-content-pane {
  flex: 1 1 0%;
  min-width: 0;
  padding: 30px;
  overflow-y: auto;
}

.tab-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.tab-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tab-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
}

.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-toggle-row h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-toggle-row p {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 480px;
}

.settings-select {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
}

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3ea6ff;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Keyboard shortcuts guide box */
.shortcuts-guide-box {
  margin-top: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
}

.shortcuts-guide-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.shortcut-item kbd {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================
   14. SHOP & MERCH MARKETPLACE STYLES
   ========================================== */
.store-view {
  padding: 24px;
}

.store-hero {
  background: linear-gradient(135deg, rgba(255, 78, 69, 0.15) 0%, rgba(62, 166, 255, 0.1) 100%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 78, 69, 0.2);
  color: #ff4e45;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.store-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.store-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 650px;
}

.store-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.store-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-cat-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.store-cat-btn:hover {
  background: var(--bg-hover);
}

.store-cat-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.store-select {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.product-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.05);
}

.product-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.8);
  color: #ff4e45;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.product-creator-row img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.product-current-price {
  font-size: 18px;
  font-weight: 700;
  color: #3ea6ff;
}

.product-orig-price {
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
}

.product-buy-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.product-buy-btn:hover {
  opacity: 0.9;
}

/* Creator Merch Shelf under Watch Player */
.creator-merch-shelf {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  max-width: 100%;
  overflow: hidden;
}

.merch-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.merch-shelf-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.merch-shelf-title h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.merch-creator-tag {
  font-size: 11px;
  color: var(--text-secondary);
}

.merch-shelf-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.merch-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.merch-card-item:hover {
  background: var(--bg-hover);
}

.merch-card-item img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.merch-item-meta h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.merch-item-meta span {
  font-size: 12px;
  font-weight: 700;
  color: #3ea6ff;
}

/* ==========================================
   15. MOVIES & SHOWS STYLES
   ========================================== */
.movies-view {
  padding: 24px;
}

.movies-hero {
  background: linear-gradient(to right, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.3) 100%), url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1400&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 60px 48px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.movies-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f44336;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.movies-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.movies-hero p {
  color: #ddd;
  font-size: 15px;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.movies-hero-actions {
  display: flex;
  gap: 14px;
}

.movies-nav-bar {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.movies-tabs {
  display: flex;
  gap: 10px;
}

.movies-tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.movies-tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.movie-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.movie-poster-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
}

.movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.85);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}

.movie-price-tag.free {
  background: #2e7d32;
  color: #fff;
}

.movie-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.movie-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.movie-rating {
  border: 1px solid var(--border-color);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

/* ==========================================
   16. GAMING HUB STYLES
   ========================================== */
.gaming-view {
  padding: 24px;
}

.gaming-section {
  margin-bottom: 36px;
}

.gaming-sec-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.gaming-sec-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot-pulse {
  width: 10px;
  height: 10px;
  background-color: #f44336;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

.gaming-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.game-stream-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-color);
}

.game-stream-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.stream-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.stream-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.viewers-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.stream-meta {
  padding: 12px;
  display: flex;
  gap: 12px;
}

.streamer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.stream-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

.trending-games-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.trending-game-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.trending-game-card:hover {
  transform: translateY(-4px);
}

.game-cover-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.game-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-meta {
  padding: 10px;
}

.game-card-meta h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================
   17. TOPICS & CATEGORIES STYLES
   ========================================== */
.topics-view {
  padding: 24px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.topic-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.topic-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.topic-tile-banner {
  height: 100px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.topic-tile-icon {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.topic-tile-body {
  padding: 28px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topic-tile-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.topic-tile-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.topic-tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* ==========================================
   CHECKOUT MODAL STYLES
   ========================================== */
.checkout-product-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}

.checkout-product-summary img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 14px;
  font-size: 15px;
}

.checkout-receipt-box {
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid #2e7d32;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  color: #fff;
}

/* ==========================================
   18. RESPONSIVE DESIGN & ADAPTIVE LAYOUT
   ========================================== */
@media (max-width: 1200px) {
  .watch-view {
    flex-direction: column;
  }
  .watch-sidebar {
    width: 100%;
  }
  .history-page-layout {
    flex-direction: column;
  }
  .history-sidebar {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .settings-container {
    flex-direction: column;
  }
  .settings-nav-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }
  .settings-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .settings-tabs::-webkit-scrollbar {
    display: none;
  }
  .settings-tab-btn {
    white-space: nowrap;
    width: auto;
  }
  .nav-center {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 999;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.collapsed {
    transform: translateX(-100%);
    width: 240px;
  }
  .content-area {
    padding: 12px 14px 30px 14px;
  }
  .store-hero, .movies-hero {
    padding: 24px 20px;
  }
  .store-hero h1, .movies-hero h1 {
    font-size: 24px;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .gaming-streams-grid {
    grid-template-columns: 1fr;
  }
  .channel-header-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px 20px;
    margin-top: -54px;
  }
  .channel-header-details {
    width: 100%;
    padding-bottom: 0;
  }
  #channel-page-meta {
    justify-content: center;
  }
  .channel-bio-text {
    margin-left: auto;
    margin-right: auto;
  }
  .channel-header-btns {
    justify-content: center;
  }
  .modal-card {
    width: 95vw;
    max-height: 90vh;
  }
}

@media (max-width: 520px) {
  .channel-banner-wrap {
    height: clamp(180px, 48vw, 220px);
    border-radius: 16px;
  }
  .channel-header-info {
    margin-top: -48px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .channel-header-info > img {
    width: 104px;
    height: 104px;
  }
  .channel-header-details h1 {
    font-size: 27px;
  }
  .channel-header-btns {
    gap: 8px;
  }
  .channel-header-btns .subscribe-btn,
  .channel-header-btns .btn-outline {
    min-height: 40px;
  }
  .logo-text, .badge {
    display: none;
  }
  .nav-center {
    flex: 1;
    margin: 0 8px;
  }
  .create-btn span {
    display: none;
  }
  .create-btn {
    padding: 8px 12px;
  }
  .watch-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .interaction-buttons {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .short-video-wrapper {
    width: 300px;
    height: 533px;
  }
}

/* ============================================================
   17. 9-PILLAR ENTERPRISE COMPONENTS & MEDIA ENGINE STYLES
   ============================================================ */

/* Media Engine Quick Controls Bar under Watch Player */
.player-quick-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.quick-ctrl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.quick-ctrl-item i {
  color: #ff4e45;
  font-size: 14px;
}

.player-select-sm {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.player-select-sm:focus, .player-select-sm:hover {
  border-color: #ff4e45;
}

/* Merged Like / Dislike Pill Button Group */
.btn-group-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.btn-group-pill .pill-btn {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 8px 14px;
}

.btn-group-pill #like-btn {
  border-right: 1px solid var(--border-color);
}

.btn-group-pill .pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Storage Quota Gauge Bar */
.quota-bar-wrap {
  width: 100%;
  height: 12px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #333;
  margin: 10px 0;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 60%, #f59e0b 85%, #ef4444 100%);
  border-radius: 6px;
  transition: width 0.5s ease-in-out;
}

/* RBAC Permissions Matrix Table */
.rbac-matrix-table th, .rbac-matrix-table td {
  text-align: center;
  vertical-align: middle;
}

.rbac-matrix-table th:first-child, .rbac-matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.rbac-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ff4e45;
  cursor: pointer;
}

/* Studio Demographics Progress Bars */
.stat-prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}

.stat-prog-label {
  width: 140px;
  color: var(--text-secondary);
}

.stat-prog-track {
  flex: 1;
  height: 8px;
  background: #252525;
  border-radius: 4px;
  margin: 0 12px;
  overflow: hidden;
}

.stat-prog-fill {
  height: 100%;
  border-radius: 4px;
  background: #3b82f6;
}

.stat-prog-val {
  width: 50px;
  text-align: right;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   16. MONETIZATION SUITE: ADS, SUBSCRIPTIONS, PPV & PARTNERSHIPS
   ============================================================ */

/* Top Navigation Premium Button */
.premium-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-right: 8px;
}
.premium-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}
.premium-nav-btn.is-active-member {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

/* Video Player Ad Overlay */
.player-ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.92) 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
}

/* YouTube Player Center Toast Notification */
.yt-player-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 28, 0.95);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.yt-player-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.ad-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ad-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-tag {
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-sponsor-badge {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ad-why-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ad-why-btn:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

.ad-overlay-card {
  align-self: center;
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ad-brand-icon {
  font-size: 26px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-card-brand h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.ad-card-brand p {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.ad-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ad-visit-btn:hover {
  background: #0369a1;
}

.ad-overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ad-timer-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  padding: 6px 14px;
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
}

.skip-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.skip-ad-btn:not(.disabled):hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: scale(1.02);
}
.skip-ad-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.15);
}

/* Pay-Per-View Paywall Overlay */
.player-ppv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.94);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.ppv-paywall-modal {
  background: #181820;
  border: 1px solid #2e2e3e;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.ppv-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.ppv-tag {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.ppv-paywall-modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.ppv-paywall-modal p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.ppv-price-box {
  background: #111116;
  border: 1px solid #252530;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.ppv-price-val {
  font-size: 28px;
  font-weight: 800;
  color: #10b981;
}

.ppv-price-val small {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.ppv-split-notice {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

.ppv-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #ff4e45, #e02424);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 78, 69, 0.4);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 78, 69, 0.55);
}

.btn-outline-gold {
  background: transparent;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline-gold:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

/* In-Stream Native Sponsor Banner */
.watch-banner-ad {
  background: #141419;
  border: 1px solid #2a2a35;
  border-radius: 10px;
  padding: 12px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-ad-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-ad-badge {
  background: #334155;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.banner-ad-left img {
  width: 72px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.banner-ad-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
}

.banner-ad-content p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.banner-ad-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-ad-code {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.banner-ad-cta {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.banner-ad-cta:hover {
  background: #1d4ed8;
}

.banner-ad-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.banner-ad-close:hover {
  color: #fff;
}

/* Creator Studio Partner Hub Card */
.partner-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}


.partner-progress-card {
  background: #16161d;
  border: 1px solid #282834;
  border-radius: 10px;
  padding: 16px 18px;
}

.progress-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #252530;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.text-success {
  color: #10b981 !important;
  font-size: 11px;
  font-weight: 600;
}

.monetization-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}


.stream-card {
  background: #171720;
  border: 1px solid #282838;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.stream-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stream-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stream-icon.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stream-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.stream-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.stream-meta .stream-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stream-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 2px 0;
}

.stream-meta p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.settlement-summary-banner {
  background: linear-gradient(135deg, #131b2e, #1a162b);
  border: 1px solid #273559;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}


.settlement-item span {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.settlement-item strong {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.settlement-item.highlight strong {
  font-size: 24px;
}

/* Subscription Plans Modal Grid */
.subscription-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px;
}

.plan-card {
  background: #16161f;
  border: 1px solid #2c2c3e;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover {
  transform: translateY(-2px);
  border-color: #3e3e56;
}
.plan-card.recommended {
  border: 2px solid #3b82f6;
  background: #141724;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}
.plan-card.vip-gold {
  border: 2px solid #ffd700;
  background: #1a1810;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.8px;
}
.plan-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
}

.plan-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.plan-price {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.plan-price small {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.plan-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px 0;
}

.plan-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.plan-perks li {
  font-size: 12px;
  color: #cbd5e1;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.plan-perks li i {
  margin-top: 2px;
  font-size: 13px;
}

.perk-disabled {
  color: #64748b !important;
  opacity: 0.6;
}

.text-gold {
  color: #ffd700 !important;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
  transition: all 0.2s;
}
.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

.subscription-footer {
  padding: 16px 24px;
  border-top: 1px solid #242432;
  text-align: center;
}

.subscription-footer p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Interactive Clickable Profile Pictures & Channel Avatars */
.short-creator img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
}

.short-creator:hover img {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

.streamer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.streamer-avatar:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

.product-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.product-creator-row img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-creator-row:hover img {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

.related-channel-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0;
  cursor: pointer;
}

.related-channel-row:hover span {
  color: var(--text-primary);
}

.related-channel-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.related-channel-row:hover .related-channel-avatar {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.history-channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  cursor: pointer;
}

.history-channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.history-channel-row:hover .history-channel-avatar {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.admin-user-avatar {
  transition: transform 0.2s ease;
}

.admin-user-avatar:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent-red, #ff0000);
}

/* =========================================================
   LABEL ENGINE: MAKE MORE FROM YOUR MUSIC SUITE
========================================================= */

.label-engine-view {
  padding: 24px 32px 60px;
}

.label-hero-banner {
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.12) 0%, rgba(30, 10, 40, 0.8) 50%, rgba(18, 18, 18, 0.95) 100%), #141414;
  border: 1px solid rgba(255, 0, 85, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.label-hero-content {
  max-width: 650px;
}

.label-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  border: 1px solid rgba(255, 0, 85, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.label-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.label-hero-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: #bbb;
  margin-bottom: 20px;
}

.label-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.label-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  min-width: 320px;
}

.label-stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.label-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.label-stat-lbl {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tabs Bar */
.label-tabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.label-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.label-tab-btn:hover {
  color: #fff;
}

.label-tab-btn.active {
  color: #fff;
  border-bottom-color: #ff0055;
}

.label-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.label-section-header h2 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.label-section-header p {
  font-size: 13px;
  color: #aaa;
}

/* Stores Grid */
.label-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.label-store-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.label-store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.label-store-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.label-store-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.label-store-reach {
  font-size: 11px;
  color: #888;
}

.label-store-tier {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  color: #aaa;
}

/* Split Sheet Card & Sliders */
.split-sheet-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.split-slider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.split-slider-item input[type="range"] {
  flex: 1;
  accent-color: #00ff7f;
}

/* Demos List Cards */
.demo-card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}

.demo-card-item:hover {
  border-color: rgba(255, 215, 0, 0.4);
}

.demo-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffd700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.demo-play-btn:hover {
  transform: scale(1.1);
}

.demo-tag-pill {
  display: inline-block;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

/* Support Tickets */
.ticket-card-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Platform Brand & Copyrights */
.label-brand-footer {
  margin-top: 36px;
  padding: 24px;
  background: rgba(18, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.label-brand-footer:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.brand-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 255, 127, 0.12);
  color: #00ff7f;
  border: 1px solid rgba(0, 255, 127, 0.25);
}

.brand-preview-box {
  background: #0d0d14;
  border: 1px solid #28283d;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
/* ==========================================
   MONETIZATION ELIGIBILITY & CONTENT POLICY GATE
   ========================================== */

/* Policy Warning Alert Banner */
.monetization-policy-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.5;
}

.monetization-policy-alert i {
  color: #ef4444;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Policy Requirements Grid */
.policy-requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* Individual Requirement Card */
.policy-req-card {
  background: #16161d;
  border: 1px solid #282834;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.policy-req-card.met {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.policy-req-card.unmet {
  border-color: rgba(239, 68, 68, 0.25);
}

/* Requirement Card Header Row */
.policy-req-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-req-header > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

/* Requirement Icon */
.policy-req-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  flex-shrink: 0;
}

.policy-req-card.met .policy-req-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.policy-req-card.unmet .policy-req-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Requirement Labels */
.policy-req-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.policy-req-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Requirement Status Icon */
.policy-req-status {
  font-size: 20px;
  flex-shrink: 0;
}

/* Policy Compliance Summary Footer */
.policy-compliance-summary {
  background: linear-gradient(135deg, #0f1421, #1a1330);
  border: 1px solid #2d3257;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.policy-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.policy-summary-stat span {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.policy-summary-stat label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* Policy fully met state */
#studio-monetization-policy-card.all-met .monetization-policy-alert {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

#studio-monetization-policy-card.all-met .monetization-policy-alert i {
  color: #10b981;
}

/* ==========================================
   PLATFORM-WIDE SPACING & OVERLAP FIXES
   ========================================== */

/* Admin thumb mini — consistent max-height prevents row overflow */
.admin-thumb-mini {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  flex-shrink: 0;
}

/* Chart wrapper — prevent canvas overflow on small screens */
.chart-wrapper {
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Subscription plans grid — responsive on smaller screens */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 12px 0;
  }
  .subscription-plans-grid {
    grid-template-columns: 1fr 1fr;
  }
  .monetization-streams-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0;
  }
  .subscription-plans-grid {
    grid-template-columns: 1fr;
  }
  .monetization-streams-grid {
    grid-template-columns: 1fr;
  }
  .partner-progress-grid {
    grid-template-columns: 1fr;
  }
  .policy-requirements-grid {
    grid-template-columns: 1fr;
  }
  .settlement-summary-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-compliance-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}



/* ==========================================
   TOAST NOTIFICATION SYSTEM (site-wide)
   ========================================== */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}
.toast-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #1e1e2e;
  border: 1px solid #2d2d42;
  border-radius: 12px;
  padding: 14px 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  position: relative;
  pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
  overflow: hidden;
  max-width: 420px;
  word-break: break-word;
}
.toast-notification.toast-hide {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); max-height: 200px; }
  to   { opacity: 0; transform: translateX(40px) scale(0.9); max-height: 0; padding: 0; margin: 0; }
}
.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-body {
  flex: 1;
  min-width: 0;
}
.toast-message {
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f1f1;
  line-height: 1.5;
}
.toast-close {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}
.toast-close:hover { color: #fff; }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
}
.toast-progress-bar {
  height: 100%;
  width: 100%;
  animation: toastProgress linear forwards;
  transform-origin: left;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
.toast-success { border-left: 3px solid #10b981; }
.toast-error   { border-left: 3px solid #ef4444; }
.toast-warning { border-left: 3px solid #f59e0b; }
.toast-info    { border-left: 3px solid #3b82f6; }
@media (max-width: 520px) {
  #toast-container { bottom: 16px; right: 12px; left: 12px; width: auto; }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #2d2d42;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
}

/* ============================================================
   FINAL RESPONSIVE OVERLAP GUARDS
   Keep shared flex components readable at every viewport width.
   ============================================================ */
.nav-left,
.nav-center,
.nav-right,
.watch-view,
.watch-main,
.watch-sidebar,
.watch-info,
.watch-actions-bar,
.channel-bar,
.watch-banner-ad,
.banner-ad-left,
.banner-ad-content,
.banner-ad-right,
.related-card,
.related-meta,
.short-card,
.admin-card-header,
.admin-header,
.page-title-header,
.form-row,
.checkout-product-summary {
  min-width: 0;
}

.banner-ad-content {
  flex: 1 1 auto;
}

.banner-ad-content h4,
.banner-ad-content p,
.related-meta h4,
.related-meta p,
.watch-title,
.channel-meta h3,
.ad-sponsor-badge,
.ad-card-brand h4,
.ad-card-brand p {
  overflow-wrap: anywhere;
  word-break: normal;
}

.ad-card-brand > div {
  min-width: 0;
}

.watch-banner-ad {
  flex-wrap: wrap;
}

.player-ad-overlay {
  min-width: 0;
}

.ad-overlay-top,
.ad-badge-group,
.ad-overlay-bottom {
  min-width: 0;
}

.ad-badge-group {
  flex-wrap: wrap;
}

.ad-sponsor-badge {
  min-width: 0;
}

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

@media (max-width: 768px) {
  .navbar {
    gap: 6px;
    padding-inline: 10px;
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-center {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin-inline: 2px;
  }

  .search-box,
  .search-box input {
    min-width: 0;
  }

  .watch-sidebar {
    width: 100%;
  }

  .watch-banner-ad {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .banner-ad-left,
  .banner-ad-right {
    width: 100%;
  }

  .banner-ad-left {
    align-items: flex-start;
  }

  .banner-ad-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .banner-ad-code {
    flex: 1 1 120px;
    min-width: 0;
  }

  .banner-ad-cta {
    flex: 0 1 auto;
  }

  .ad-overlay-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    width: min(100%, 520px);
  }

  .ad-card-brand {
    align-items: flex-start;
    width: 100%;
  }

  .ad-visit-btn {
    justify-content: center;
    width: 100%;
  }

  .ad-overlay-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ad-timer-pill {
    justify-content: center;
    text-align: center;
  }

  .skip-ad-btn {
    align-self: flex-end;
  }

  .related-card {
    align-items: flex-start;
  }

  .related-thumb {
    width: clamp(112px, 34vw, 168px);
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .related-meta {
    flex: 1 1 auto;
  }

  .short-card {
    width: 100%;
    justify-content: center;
  }

  .short-video-wrapper {
    width: min(360px, calc(100vw - 28px));
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: calc(100dvh - 92px);
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 12px;
    overflow-y: auto;
  }

  .modal-card {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

/* VYORA membership preview — creator-first dark / gold / electric blue */
.subscription-modal-card {
  width: min(1260px, calc(100vw - 32px)) !important;
  max-width: 1260px !important;
  max-height: min(94dvh, 980px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(239, 190, 83, .38);
  border-radius: 22px;
  color: #f5f1e8;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(26, 91, 162, .22), transparent 35%),
    radial-gradient(ellipse at 92% 0%, rgba(211, 160, 55, .12), transparent 32%),
    #10141c;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .76), 0 0 0 1px rgba(255,255,255,.035) inset;
}
.subscription-modal-card .modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(225, 198, 143, .16);
  background: transparent;
}
.subscription-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.subscription-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #121820;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffe39b, #c8942d);
  box-shadow: 0 8px 22px rgba(211, 160, 55, .2);
}
.subscription-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.subscription-eyebrow {
  margin: 0 0 4px;
  color: #e6bb62;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em;
}
.subscription-modal-card #subscription-modal-title {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.subscription-modal-card .icon-btn {
  color: #e8e1d3;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
}
.subscription-preview-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 24px 0;
  padding: 13px 16px;
  border: 1px solid rgba(234, 188, 82, .42);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(222, 168, 59, .13), rgba(20, 36, 53, .72));
}
.preview-notice-icon {
  color: #f1c86b;
  font-size: 18px;
  line-height: 1.3;
}
.subscription-preview-notice strong,
.subscription-preview-notice span:not(.preview-notice-icon) {
  display: block;
}
.subscription-preview-notice strong {
  color: #ffe6a9;
  font-size: 13px;
  letter-spacing: .025em;
}
.subscription-preview-notice div span {
  margin-top: 3px;
  color: #c7d0db;
  font-size: 12px;
  line-height: 1.5;
}
.plan-billing-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin: 14px auto 0;
  padding: 4px;
  border: 1px solid rgba(186, 199, 215, .18);
  border-radius: 9px;
  background: rgba(4, 10, 18, .42);
}
.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  color: #e2e8ef;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.billing-option.is-selected {
  color: #fff3d2;
  background: rgba(205, 156, 54, .2);
  box-shadow: 0 0 0 1px rgba(231, 187, 87, .3) inset;
}
.billing-option:focus-visible {
  outline: 2px solid #e7bd61;
  outline-offset: 2px;
}
.billing-option small {
  color: #91a0b0;
  font-size: 10px;
  font-weight: 500;
}
.subscription-modal-card .subscription-plans-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 24px 20px;
}
.subscription-modal-card .plan-card.vyora-plan {
  min-width: 0;
  padding: 19px 16px 15px;
  overflow: hidden;
  border: 1px solid rgba(186, 199, 215, .19);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(31, 41, 53, .98), rgba(19, 25, 34, .98) 68%);
  box-shadow: 0 12px 25px rgba(0,0,0,.16);
  transition: transform .2s ease, border-color .2s ease;
}
.subscription-modal-card .plan-card.vyora-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 187, 87, .56);
}
.subscription-modal-card .plan-card.vyora-plan-featured {
  border-color: rgba(65, 157, 255, .76);
  background:
    linear-gradient(155deg, rgba(25, 53, 78, .98), rgba(19, 29, 42, .98) 65%);
  box-shadow: 0 12px 28px rgba(13, 87, 160, .18), 0 0 0 1px rgba(62, 156, 255, .12) inset;
}
.subscription-modal-card .plan-card.vyora-plan-ultra {
  border-color: rgba(222, 177, 79, .44);
  background: linear-gradient(155deg, rgba(53, 44, 29, .7), rgba(24, 27, 32, .98) 66%);
}
.plan-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.subscription-modal-card .plan-header h3 {
  color: #fff9ed;
  margin: 0;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.plan-draft-tag {
  padding: 4px 6px;
  border: 1px solid rgba(255, 211, 110, .34);
  border-radius: 5px;
  color: #f0ca70;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  white-space: nowrap;
}
.plan-kicker {
  min-height: 34px;
  margin: 6px 0 14px;
  color: #aebccc;
  font-size: 12px;
  line-height: 1.45;
}
.subscription-modal-card .plan-price {
  margin: 0;
  color: #fff8e9;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.subscription-modal-card .plan-price span {
  color: #b9c4d0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}
.subscription-modal-card .plan-price .plan-price-value {
  color: #fff8e9;
  font-size: inherit;
  font-weight: inherit;
}
.plan-after-price {
  margin: 4px 0 0;
  color: #8bc8ff;
  font-size: 12px;
  font-weight: 750;
}
.subscription-modal-card .plan-desc {
  margin: 8px 0 0;
  color: #b6c0ca;
  font-size: 11px;
  line-height: 1.45;
}
.subscription-modal-card .plan-perks {
  margin: 15px 0 16px;
  flex: 1 0 auto;
}
.subscription-modal-card .plan-perks li {
  gap: 8px;
  padding: 7px 0;
  color: #e0e6ec;
  font-size: 12px;
  line-height: 1.4;
}
.subscription-modal-card .plan-perks li i {
  flex: 0 0 13px;
  margin-top: 1px;
  color: #e8bd5e;
  font-size: 11px;
}
.subscription-modal-card .plan-card-featured .plan-perks li i,
.subscription-modal-card .vyora-plan-featured .plan-perks li i {
  color: #69baff;
}
.featured-ribbon {
  margin: -19px -16px 13px;
  padding: 7px 10px;
  color: #eaf6ff;
  background: linear-gradient(90deg, #1265a8, #1786d7);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  text-align: center;
}
.plan-preview-btn {
  min-height: 37px;
  padding: 9px 12px;
  border: 1px solid rgba(224, 188, 106, .38);
  border-radius: 8px;
  color: #dfc986;
  background: rgba(199, 151, 52, .08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 1;
}
.vyora-plan-featured .plan-preview-btn {
  border-color: rgba(88, 176, 255, .45);
  color: #a8d8ff;
  background: rgba(25, 119, 194, .12);
}
.subscription-modal-card .subscription-footer {
  padding: 13px 24px 18px;
  border-top: 1px solid rgba(225, 198, 143, .16);
}
.subscription-modal-card .subscription-footer p {
  color: #aeb9c5;
  font-size: 11px;
  line-height: 1.55;
}
.subscription-modal-card .subscription-footer i {
  color: #e7bd61;
}
@media (max-width: 1050px) {
  .subscription-modal-card .subscription-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .subscription-modal-card {
    width: calc(100vw - 20px) !important;
    max-height: 94dvh;
    border-radius: 17px;
  }
  .subscription-modal-card .modal-header {
    padding: 17px 15px 15px;
  }
  .subscription-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }
  .subscription-heading {
    gap: 10px;
  }
  .subscription-modal-card #subscription-modal-title {
    font-size: 18px;
  }
  .subscription-preview-notice {
    margin: 13px 12px 0;
    padding: 11px;
  }
  .subscription-modal-card .subscription-plans-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px 16px;
  }
  .subscription-modal-card .plan-card.vyora-plan {
    padding: 16px;
  }
  .subscription-modal-card .plan-kicker {
    min-height: 0;
    margin-bottom: 10px;
  }
  .featured-ribbon {
    margin: -16px -16px 12px;
  }
  .subscription-modal-card .subscription-footer {
    padding: 12px 14px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subscription-modal-card .plan-card.vyora-plan {
    transition: none;
  }
}

@media (max-width: 600px) {
  .content-area {
    padding-inline: 10px;
  }

  .player-ad-overlay {
    bottom: 0;
    z-index: 26;
    padding: 10px;
    overflow: hidden;
  }

  .ad-overlay-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    align-items: flex-start;
    gap: 8px;
  }

  .ad-overlay-top .ad-badge-group {
    flex: 1 1 auto;
  }

  .ad-overlay-bottom {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .player-ad-overlay {
    justify-content: flex-start;
  }

  .ad-overlay-card {
    align-self: stretch;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    margin-bottom: 78px;
    width: auto;
    max-width: none;
    padding: 12px;
  }

  .ad-card-brand {
    flex: 1 1 auto;
    gap: 10px;
  }

  .ad-brand-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .ad-card-brand h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
  }

  .ad-card-brand p {
    display: none;
  }

  .ad-visit-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 11px;
  }

  .ad-card-brand h4 {
    font-size: 14px;
  }

  .banner-ad-left {
    gap: 10px;
  }

  .banner-ad-left img {
    width: 56px;
    height: 36px;
  }

  .banner-ad-content h4 {
    font-size: 12px;
  }

  .banner-ad-content p {
    font-size: 11px;
    line-height: 1.35;
  }

  .banner-ad-right {
    justify-content: stretch;
  }

  .banner-ad-code,
  .banner-ad-cta {
    justify-content: center;
    text-align: center;
  }

  .banner-ad-close {
    margin-left: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-product-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cookie-banner {
    max-height: 38dvh;
    overflow-y: auto;
  }

  .cookie-content {
    width: 100%;
    align-items: flex-start;
    line-height: 1.4;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .table-responsive,
  .admin-table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 620px;
  }

  .admin-card-body {
    padding: 14px;
  }

  .action-btn-group {
    flex-wrap: wrap;
  }

  .admin-comment-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .voice-btn,
  .create-btn {
    display: none;
  }

  .navbar {
    padding-inline: 8px;
  }

  .nav-left,
  .nav-right {
    gap: 4px;
  }

  .premium-nav-btn {
    margin-right: 0;
    padding-inline: 10px;
  }

  .player-ad-overlay {
    justify-content: flex-start;
  }

  .ad-overlay-card {
    align-self: stretch;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 8px;
    margin-top: 38px;
    margin-bottom: 42px;
    width: auto;
    max-width: none;
  }

  .ad-card-brand {
    flex: 1 1 auto;
    gap: 8px;
  }

  .ad-brand-icon {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .ad-card-brand h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    margin-bottom: 2px;
  }

  .ad-card-brand p {
    display: none;
  }

  .ad-visit-btn {
    width: auto;
    flex: 0 0 auto;
    padding-block: 6px;
    font-size: 11px;
  }

  .ad-overlay-bottom {
    gap: 6px;
  }

  .ad-timer-pill,
  .skip-ad-btn {
    font-size: 10px;
    padding-block: 5px;
  }
}

/* ============================================================
   DIGITAL OFFERS WORKSPACE
   ============================================================ */
.digital-offers-manager,
.digital-review-card,
.digital-catalog-view {
  --offers-ink: #f4f1ec;
  --offers-muted: #9e9a95;
  --offers-line: rgba(255, 255, 255, 0.1);
  --offers-panel: #171718;
  --offers-panel-raised: #1d1d1f;
  --offers-accent: #f0b35e;
  --offers-accent-soft: rgba(240, 179, 94, 0.12);
  color: var(--offers-ink);
  max-width: 1200px;
  margin: 0 auto 34px;
}

.offers-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0 20px;
}

.offers-page-heading h1,
.offers-page-heading h2 {
  color: var(--offers-ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.8px;
  margin: 4px 0 10px;
}

.offers-page-heading p,
.offers-catalog-hero p {
  color: var(--offers-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 660px;
}

.offers-eyebrow,
.offers-product-label,
.offers-catalog-type {
  color: var(--offers-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.offers-manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 30px;
}

.offers-form-card,
.offers-product-card,
.offers-review-row,
.offers-catalog-card,
.offers-empty,
.offers-error {
  background: linear-gradient(145deg, var(--offers-panel-raised), var(--offers-panel));
  border: 1px solid var(--offers-line);
  border-radius: 18px;
}

.offers-form-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
}

.offers-form-card h3,
.offers-product-card h4,
.offers-review-row h3 {
  color: var(--offers-ink);
  font-size: 18px;
  margin: 2px 0 0;
}

.offers-card-kicker {
  align-self: flex-start;
  border: 1px solid rgba(240, 179, 94, .35);
  border-radius: 100px;
  color: var(--offers-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .9px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.offers-muted,
.offers-product-description,
.offers-offer-row p,
.offers-review-row p,
.offers-catalog-card p {
  color: var(--offers-muted);
  font-size: 13px;
  line-height: 1.55;
}

.offers-form-card label {
  color: #d8d3cc;
  font-size: 12px;
  font-weight: 700;
  margin-top: 7px;
}

.offers-form-card label span {
  color: #77736e;
  font-weight: 500;
}

.offers-form-card input,
.offers-form-card textarea,
.offers-form-card select {
  appearance: none;
  background: #111112;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  color: var(--offers-ink);
  font: inherit;
  font-size: 13px;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.offers-form-card textarea {
  min-height: 72px;
  resize: vertical;
}

.offers-form-card input:focus,
.offers-form-card textarea:focus,
.offers-form-card select:focus {
  border-color: var(--offers-accent);
  box-shadow: 0 0 0 3px rgba(240,179,94,.11);
}

.offers-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.offers-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  padding: 10px 14px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}

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

.offers-button-primary {
  background: var(--offers-accent);
  color: #24180a;
}

.offers-button-secondary {
  background: transparent;
  border-color: rgba(240,179,94,.5);
  color: var(--offers-accent);
}

.offers-button-danger {
  background: rgba(221, 95, 82, .12);
  border-color: rgba(221, 95, 82, .35);
  color: #ee9a8d;
}

.offers-button-small {
  font-size: 11px;
  padding: 8px 10px;
}

.offers-inline-status {
  color: var(--offers-muted);
  font-size: 12px;
  min-height: 18px;
  padding: 0 0 10px;
}

.offers-inline-status.is-error {
  color: #efaaa0;
}

.offers-list-section {
  border-top: 1px solid var(--offers-line);
  padding-top: 20px;
}

.offers-section-heading h3 {
  color: var(--offers-ink);
  font-size: 21px;
  margin: 4px 0 16px;
}

.offers-mine-list,
.offers-review-list {
  display: grid;
  gap: 13px;
}

.offers-product-card,
.offers-review-row {
  padding: 18px;
}

.offers-product-heading,
.offers-review-heading,
.offers-offer-title-line,
.offers-catalog-footer {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.offers-product-heading h4 {
  margin-top: 5px;
}

.offers-product-description {
  margin: 7px 0 14px;
}

.offers-status {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  color: #c2bdb5;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-published,
.status-approved {
  background: rgba(103, 193, 133, .1);
  border-color: rgba(103,193,133,.3);
  color: #99d9ab;
}

.status-pending_review {
  background: rgba(240, 179, 94, .12);
  border-color: rgba(240,179,94,.35);
  color: var(--offers-accent);
}

.status-rejected,
.status-disabled {
  background: rgba(221, 95, 82, .1);
  border-color: rgba(221,95,82,.3);
  color: #efa097;
}

.offers-offer-stack {
  display: grid;
  gap: 9px;
}

.offers-offer-row {
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.offers-offer-main {
  min-width: 0;
}

.offers-offer-title-line {
  align-items: center;
}

.offers-offer-title-line strong {
  color: #eee9e1;
  font-size: 14px;
}

.offers-offer-row p {
  margin: 6px 0 8px;
}

.offers-offer-meta {
  color: #8d8984;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 13px;
}

.offers-offer-meta span:first-child {
  color: #e0c28f;
  font-weight: 800;
}

.offers-offer-actions,
.offers-review-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 7px;
  justify-content: center;
}

.digital-offers-manager [hidden] {
  display: none !important;
}

.offers-blockers {
  background: rgba(221,95,82,.08);
  border-left: 2px solid #d85f52;
  color: #e8aaa2;
  font-size: 11px;
  margin-top: 11px;
  padding: 8px 10px;
}

.offers-blockers strong {
  color: #f0b1a8;
}

.offers-blockers ul {
  margin: 4px 0 0 15px;
}

.offers-ready {
  color: #91ce9f;
  font-size: 11px;
  margin-top: 10px;
}

.offers-empty,
.offers-error {
  align-items: center;
  color: var(--offers-muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  padding: 28px;
  text-align: center;
}

.offers-empty i,
.offers-error i {
  color: var(--offers-accent);
  font-size: 25px;
  margin-bottom: 10px;
}

.offers-empty h3,
.offers-empty h4,
.offers-error h3,
.offers-error h4 {
  color: var(--offers-ink);
  margin-bottom: 6px;
}

.offers-empty p,
.offers-error p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 420px;
}

.offers-empty-small {
  align-items: flex-start;
  background: transparent;
  border: 0;
  min-height: auto;
  padding: 10px 0 0;
  text-align: left;
}

.offers-empty-wide {
  grid-column: 1 / -1;
}

.offers-skeleton {
  animation: offersPulse 1.4s ease-in-out infinite;
  background: var(--offers-panel);
  border: 1px solid var(--offers-line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 20px;
}

.offers-skeleton span {
  background: rgba(255,255,255,.08);
  border-radius: 5px;
  height: 12px;
}

.offers-skeleton span:first-child { width: 42%; height: 16px; }
.offers-skeleton span:last-child { width: 68%; }

@keyframes offersPulse {
  0%, 100% { opacity: .52; }
  50% { opacity: 1; }
}

.offers-catalog-hero {
  align-items: flex-end;
  background: radial-gradient(circle at 90% 10%, rgba(240,179,94,.2), transparent 42%), #191817;
  border: 1px solid rgba(240,179,94,.22);
  border-radius: 22px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 5px auto 18px;
  max-width: 1200px;
  padding: clamp(24px, 5vw, 48px);
}

.offers-catalog-hero h1 {
  color: #f5efe6;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -1.7px;
  line-height: .98;
  margin: 8px 0 14px;
  max-width: 720px;
}

.offers-catalog-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin: 0 auto;
  max-width: 1200px;
}

.offers-catalog-card {
  display: flex;
  min-height: 230px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.offers-catalog-card:hover {
  border-color: rgba(240,179,94,.42);
  transform: translateY(-3px);
}

.offers-catalog-mark {
  align-items: center;
  background: var(--offers-accent-soft);
  color: var(--offers-accent);
  display: flex;
  font-size: 19px;
  justify-content: center;
  min-width: 48px;
}

.offers-catalog-card-body {
  display: flex;
  flex-direction: column;
  padding: 19px;
  width: 100%;
}

.offers-catalog-type span {
  color: #797570;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 5px;
  text-transform: none;
}

.offers-catalog-card h3 {
  color: #f0ece6;
  font-size: 20px;
  line-height: 1.15;
  margin: 12px 0 8px;
}

.offers-catalog-card p {
  flex: 1;
}

.offers-catalog-footer {
  align-items: center;
  border-top: 1px solid var(--offers-line);
  margin-top: 18px;
  padding-top: 13px;
}

.offers-catalog-footer strong {
  color: var(--offers-accent);
  font-size: 16px;
}

.offers-catalog-footer span {
  color: #96908a;
  font-size: 11px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offers-review-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.offers-review-main {
  min-width: 0;
}

.offers-review-heading {
  align-items: center;
}

.offers-review-heading h3 {
  margin-top: 5px;
}

.offers-review-row p {
  margin: 10px 0;
}

@media (max-width: 780px) {
  .offers-manager-grid {
    grid-template-columns: 1fr;
  }
  .offers-page-heading,
  .offers-catalog-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .offers-review-row {
    flex-direction: column;
  }
  .offers-review-actions,
  .offers-offer-actions {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .offers-review-actions .offers-button,
  .offers-offer-actions .offers-button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .offers-form-row {
    grid-template-columns: 1fr;
  }
  .offers-product-heading,
  .offers-offer-row,
  .offers-review-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .offers-offer-row {
    gap: 12px;
  }
  .offers-catalog-hero {
    border-radius: 15px;
    padding: 26px 20px;
  }
  .offers-page-heading {
    padding-top: 18px;
  }
}

/* ==========================================
   NATIVE VYORA AI COPILOT & CREATOR TOOLS
   ========================================== */
.btn-ai-magic {
  background: linear-gradient(135deg, #8b5cf6, #d946ef, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.25s ease;
}

.btn-ai-magic:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.45);
  filter: brightness(1.1);
}

.btn-ai-sm {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ai-sm:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

.ai-assist-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(217, 70, 239, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ai-assist-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-sparkle-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ai-assist-info strong {
  color: #fff;
  font-size: 13px;
  display: block;
}

.ai-assist-info p {
  color: #a1a1aa;
  font-size: 11px;
  margin: 2px 0 0 0;
}

.ai-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-pill {
  background: #181824;
  border: 1px solid #2e2e42;
  color: #e4e4e7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-pill:hover {
  border-color: #8b5cf6;
  color: #c084fc;
  background: #202030;
}

.ai-chat-output {
  background: #121218;
  border: 1px solid #232334;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d8;
  white-space: pre-wrap;
  margin-top: 14px;
  max-height: 280px;
  overflow-y: auto;
}

/* Biometric Face Recognition Laser Scanning Effect */
.biometric-scan-container {
  position: relative;
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #ec4899, transparent);
  box-shadow: 0 0 15px #a855f7;
  animation: scanLaser 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.biometric-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffcc;
  box-shadow: 0 0 8px #00ffcc;
  animation: pulsePoint 1.5s infinite alternate;
}

@keyframes pulsePoint {
  from { transform: scale(0.8); opacity: 0.6; }
  to { transform: scale(1.4); opacity: 1; }
}

.content-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.accountability-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================
   CASHOUT BANK, N.A. P2P WALLET STYLES (Cash App Inspired)
   ========================================================== */
#cashout-view {
  width: 100%;
  min-height: calc(100vh - 56px);
  background-color: #0a0a0a;
  color: #fff;
  overflow-y: auto;
}

.co-dock-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.co-dock-btn:active {
  transform: translateY(0);
}

.co-preset-pill:hover,
.co-preset-pill.active {
  background: #00D632 !important;
  color: #000 !important;
  border-color: #00D632 !important;
}

.co-quick-partner:hover {
  background: rgba(0, 214, 50, 0.18) !important;
  border-color: #00D632 !important;
}

.co-tab-btn {
  transition: color 0.2s, border-color 0.2s;
}

.co-tab-btn:hover {
  color: #00D632 !important;
}

.co-tab-btn.active {
  color: #00D632 !important;
  border-bottom: 2px solid #00D632 !important;
}

.co-virtual-card-front {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.co-virtual-card-front::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 214, 50, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.co-virtual-card-front:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 20px 48px rgba(0, 214, 50, 0.15) !important;
}

.co-ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #161616;
  border: 1px solid #242424;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.co-ledger-item:hover {
  background: #1c1c1c;
  border-color: rgba(0, 214, 50, 0.3);
  transform: translateX(4px);
}

.co-filter-pill {
  transition: background 0.2s, color 0.2s;
}

.co-filter-pill:hover {
  background: #252525 !important;
  color: #fff !important;
}

.co-filter-pill.active {
  background: #00D632 !important;
  color: #000 !important;
  border-color: #00D632 !important;
}

/* Switch styling for Card Controls */
.switch .slider.round {
  border-radius: 24px;
}

.switch .slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #00D632 !important;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* ============================================================
   DEVICE-SAFE LAYOUT + MEDIA SNAP BEHAVIOR
   Keep one scroll owner per view and reserve space for touch targets.
   ============================================================ */
html,
body {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-x: none;
}

html.mobile-nav-open,
body.mobile-nav-open {
  overflow: hidden;
}

.navbar,
.main-container,
.content-area,
.view-panel,
.video-grid,
.watch-view,
.watch-main,
.watch-info,
.watch-sidebar,
.channel-bar,
.short-card {
  min-width: 0;
}

.content-area {
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  scroll-padding-top: 12px;
}

.content-area.is-shorts-view {
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
}

.view-panel {
  overflow-x: clip;
}

.video-card,
.related-card,
.short-card,
.co-ledger-item {
  contain: layout paint;
}

.video-card {
  content-visibility: auto;
  contain-intrinsic-size: 300px 220px;
}

.shorts-view {
  min-height: calc(100dvh - 56px);
  padding-block: 0;
  scroll-snap-align: start;
}

.shorts-container {
  gap: 0;
  max-width: 620px;
}

.short-card {
  width: 100%;
  min-height: calc(100dvh - 56px);
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 12px 0;
}

.short-video-wrapper {
  flex: 0 1 360px;
  max-width: calc(100% - 64px);
}

.short-actions {
  flex: 0 0 auto;
}

.watch-view {
  scroll-margin-top: 12px;
}

@media (max-width: 1024px) {
  .navbar {
    padding-inline: 12px;
  }

  .watch-sidebar {
    width: 100%;
  }

  .related-videos-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .related-thumb {
    width: clamp(112px, 30vw, 168px);
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 56px;
    padding-inline: 8px;
  }

  .nav-left,
  .nav-right {
    flex: 0 1 auto;
  }

  .nav-center {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-inline: 4px;
  }

  .search-box {
    width: 100%;
  }

  .sidebar {
    top: 56px;
    width: min(280px, 86vw);
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.18s ease-out;
    will-change: transform;
  }

  .sidebar.open {
    transform: translate3d(0, 0, 0);
  }

  .sidebar.collapsed {
    transform: translate3d(-105%, 0, 0);
    width: min(280px, 86vw);
  }

  .main-container {
    height: calc(100dvh - 56px);
  }

  .content-area {
    padding: 12px 12px 28px;
    width: 100%;
  }

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

  .video-meta {
    gap: 8px;
  }

  .card-avatar {
    width: 32px;
    height: 32px;
  }

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

  .watch-view {
    gap: 16px;
  }

  .watch-actions-bar {
    align-items: flex-start;
  }

  .channel-bar {
    flex: 1 1 280px;
  }

  .interaction-buttons {
    flex: 1 1 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .interaction-buttons::-webkit-scrollbar {
    display: none;
  }

  .interaction-buttons .pill-btn {
    flex: 0 0 auto;
  }

  .related-videos-list {
    display: flex;
    flex-direction: column;
  }

  .shorts-view {
    min-height: calc(100dvh - 56px);
  }

  .short-card {
    min-height: calc(100dvh - 56px);
    padding-block: 8px;
  }

  .short-video-wrapper {
    flex-basis: min(360px, calc(100vw - 76px));
    max-width: calc(100% - 64px);
    max-height: calc(100dvh - 76px);
  }

  .short-actions {
    gap: 10px;
  }

  .short-action-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .short-action-label {
    font-size: 11px;
  }

  #cashout-view {
    min-height: calc(100dvh - 56px);
  }
}

@media (max-width: 520px) {
  .nav-left {
    gap: 4px;
  }

  .nav-right {
    gap: 2px;
  }

  .nav-center {
    margin-inline: 2px;
  }

  .search-box {
    height: 36px;
  }

  .search-box input {
    padding-inline: 10px;
    font-size: 13px;
  }

  .search-box button {
    width: 44px;
  }

  .premium-nav-btn {
    margin-right: 0;
    padding: 7px 10px;
  }

  .premium-nav-btn #nav-premium-label {
    display: none;
  }

  .user-avatar img {
    width: 32px;
    height: 32px;
  }

  .content-area {
    padding-inline: 10px;
  }

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

  .watch-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .channel-bar {
    width: 100%;
  }

  .subscribe-btn {
    margin-left: auto;
    padding-inline: 14px;
  }

  .short-card {
    min-height: calc(100dvh - 56px);
    padding-inline: 0;
  }

  .short-video-wrapper {
    flex-basis: min(360px, calc(100vw - 66px));
    max-width: calc(100% - 54px);
    border-radius: 12px;
  }

  .short-actions {
    gap: 8px;
  }

  .short-action-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .navbar {
    height: 52px;
  }

  .main-container {
    height: calc(100dvh - 52px);
  }

  .sidebar {
    top: 52px;
  }

  .shorts-view,
  .short-card,
  #cashout-view {
    min-height: calc(100dvh - 52px);
  }
}

/* ============================================================
   RESPONSIVE SYSTEM — final layout contract
   These rules intentionally live last so generated studio/admin
   markup and older breakpoint snapshots cannot re-introduce
   viewport overflow.
   ============================================================ */
:root {
  --touch-target: 44px;
  --content-gutter: clamp(10px, 2.2vw, 32px);
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

button,
a,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #ff4e45;
  outline-offset: 2px;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.navbar {
  width: 100%;
  min-width: 0;
  padding-inline: clamp(8px, 1.5vw, 24px);
  gap: clamp(6px, 1.2vw, 20px);
}

.nav-left,
.nav-center,
.nav-right {
  min-width: 0;
}

.nav-left {
  flex: 0 1 auto;
}

.nav-center {
  flex: 1 1 min(650px, 50vw);
  width: auto;
  min-width: 0;
}

.nav-right {
  flex: 0 1 auto;
}

.search-box input {
  min-width: 0;
  text-overflow: ellipsis;
}

.icon-btn,
.create-btn,
.premium-nav-btn,
.user-avatar,
.chip,
.nav-item,
.pill-btn,
.subscribe-btn,
.btn-primary,
.btn-primary-sm,
.btn-outline,
.btn-outline-gold,
.btn-text,
.btn-text-sm,
.short-action-btn,
.modal-header .icon-btn {
  min-height: var(--touch-target);
}

.icon-btn {
  min-width: var(--touch-target);
}

.main-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100dvh - 56px);
  height: calc(100dvh - 56px);
}

.sidebar {
  overscroll-behavior: contain;
}

.content-area {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: var(--content-gutter);
  overscroll-behavior-y: contain;
}

.category-chips {
  max-width: 100%;
  padding-inline: 1px;
  scroll-padding-inline: var(--content-gutter);
  overscroll-behavior-x: contain;
}

.video-grid {
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
  gap: clamp(16px, 1.7vw, 28px);
}

.video-card,
.thumbnail-wrap,
.video-meta,
.meta-details {
  min-width: 0;
}

.video-card-title,
.channel-name,
.video-stats {
  overflow-wrap: anywhere;
}

.shorts-shelf,
.shorts-shelf-row {
  max-width: 100%;
  min-width: 0;
}

.shorts-shelf-row {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.short-shelf-card {
  flex: 0 0 clamp(168px, 18vw, 238px);
  scroll-snap-align: start;
}

.watch-view {
  width: 100%;
  max-width: 1750px;
  min-width: 0;
  margin-inline: auto;
}

.watch-main,
.watch-sidebar,
.watch-info,
.watch-actions-bar,
.interaction-buttons,
.comments-section,
.watch-description {
  min-width: 0;
  max-width: 100%;
}

.player-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.yt-controls-row,
.yt-left-controls,
.yt-right-controls {
  min-width: 0;
}

.yt-right-controls {
  overflow-x: auto;
  scrollbar-width: none;
}

.yt-right-controls::-webkit-scrollbar {
  display: none;
}

.watch-actions-bar {
  align-items: flex-start;
}

.channel-bar {
  min-width: min(100%, 270px);
  max-width: 100%;
}

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

.channel-meta h3 {
  overflow-wrap: anywhere;
}

.interaction-buttons {
  min-width: 0;
  max-width: 100%;
}

.related-videos-list {
  min-width: 0;
}

.related-card,
.related-meta {
  min-width: 0;
}

.admin-view,
.studio-view,
.settings-view,
.label-engine-view,
.cashout-view,
.store-view,
.movies-view,
.gaming-view,
.topics-view {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-header,
.admin-card-header,
.page-title-header,
.settings-container,
.admin-grid-2col,
.metrics-grid,
.subscription-plans-grid,
.monetization-streams-grid {
  min-width: 0;
  max-width: 100%;
}

.admin-card,
.stat-card,
.metric-card,
.settings-content-pane,
.settings-nav-sidebar,
.checkout-product-summary {
  min-width: 0;
  max-width: 100%;
}

.admin-card-header > *,
.admin-header > *,
.settings-toggle-row > *,
.admin-setting-row > * {
  min-width: 0;
}

.table-responsive,
.admin-table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table,
.admin-table-container > table {
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.form-row {
  min-width: 0;
}

.form-group {
  min-width: 0;
}

.form-group input,
.form-group select,
.form-group textarea,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  max-width: 100%;
  min-width: 0;
}

.modal-overlay {
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: clamp(10px, 3vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-card {
  width: min(580px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 2 * clamp(10px, 3vw, 28px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-secondary);
}

.modal-header h2,
.modal-header h3,
.modal-header p {
  overflow-wrap: anywhere;
}

.modal-header .icon-btn {
  flex: 0 0 var(--touch-target);
}

.modal-card form,
.modal-card > form {
  min-width: 0;
}

.cookie-banner {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 2 * var(--content-gutter)));
  max-width: calc(100vw - 2 * var(--content-gutter));
}

.mobile-nav-scrim {
  display: none;
}

@media (min-width: 1400px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1100px) {
  .watch-view {
    flex-direction: column;
  }

  .watch-sidebar {
    width: 100%;
  }

  .related-videos-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .related-card {
    width: 100%;
  }

  .related-thumb {
    width: clamp(112px, 28vw, 168px);
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 56px;
    position: sticky;
  }

  .nav-center {
    flex: 1 1 auto;
    max-width: none;
  }

  .sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 2100;
    height: calc(100dvh - 56px);
    width: min(290px, 86vw);
    transform: translate3d(-105%, 0, 0);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.38);
  }

  .sidebar.open {
    transform: translate3d(0, 0, 0);
  }

  .sidebar.collapsed {
    width: min(290px, 86vw);
    transform: translate3d(-105%, 0, 0);
  }

  .mobile-nav-scrim {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    z-index: 2050;
    width: 100%;
    height: calc(100dvh - 56px);
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.56);
    cursor: pointer;
  }

  .mobile-nav-scrim[hidden] {
    display: none;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .main-container {
    height: calc(100dvh - 56px);
    min-height: calc(100dvh - 56px);
  }

  .content-area {
    padding-block: 12px 28px;
  }

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

  .video-meta {
    gap: 8px;
  }

  .card-avatar {
    width: 34px;
    height: 34px;
  }

  .watch-view {
    display: block;
  }

  .watch-sidebar {
    margin-top: 24px;
  }

  .watch-actions-bar {
    flex-direction: column;
    gap: 14px;
  }

  .channel-bar,
  .interaction-buttons {
    width: 100%;
  }

  .interaction-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 2px 6px;
    scrollbar-width: none;
  }

  .interaction-buttons::-webkit-scrollbar {
    display: none;
  }

  .interaction-buttons > * {
    flex: 0 0 auto;
  }

  .settings-container {
    display: block;
  }

  .settings-nav-sidebar {
    width: 100%;
    overflow-x: auto;
  }

  .settings-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .settings-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-header,
  .admin-card-header {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .related-videos-list {
    grid-template-columns: 1fr;
  }

  .short-video-wrapper {
    max-width: calc(100vw - 72px);
  }
}

@media (max-width: 520px) {
  :root {
    --content-gutter: 10px;
  }

  .logo-text,
  .badge,
  .voice-btn,
  .premium-nav-btn {
    display: none;
  }

  .navbar {
    gap: 4px;
    padding-inline: 6px;
  }

  .nav-left,
  .nav-right {
    gap: 2px;
  }

  .nav-center {
    margin-inline: 2px;
  }

  .search-box {
    height: 38px;
  }

  .search-box input {
    padding-inline: 10px;
    font-size: 13px;
  }

  .search-box button {
    width: 44px;
  }

  .nav-right .icon-btn {
    min-width: 40px;
    width: 40px;
  }

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

  .thumbnail-wrap {
    border-radius: 10px;
  }

  .watch-title {
    font-size: clamp(17px, 5vw, 20px);
    line-height: 1.28;
  }

  .player-wrapper {
    border-radius: 8px;
  }

  .yt-chrome-bottom {
    padding-inline: 8px;
  }

  .yt-controls-row {
    height: 42px;
  }

  .yt-btn {
    width: 38px;
    height: 38px;
  }

  .yt-time-display {
    margin-left: 2px;
    font-size: 11px;
  }

  .yt-left-controls,
  .yt-right-controls {
    gap: 0;
  }

  .yt-right-controls .yt-autoplay-btn,
  .yt-right-controls #yt-cc-btn {
    display: none;
  }

  .channel-bar {
    gap: 9px;
  }

  .channel-avatar-lg {
    width: 40px;
    height: 40px;
  }

  .subscribe-btn {
    padding-inline: 12px;
  }

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

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 8px;
  }

  .modal-card {
    border-radius: 12px;
    max-height: calc(100dvh - 16px);
  }

  .modal-header,
  #upload-form,
  .modal-card > form {
    padding-inline: 14px;
  }

  .modal-header {
    padding-block: 12px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

  .cookie-banner {
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

  .short-video-wrapper {
    width: min(360px, calc(100vw - 58px));
    max-width: calc(100vw - 58px);
  }
}

@media (max-width: 360px) {
  .navbar {
    height: 52px;
  }

  .main-container {
    height: calc(100dvh - 52px);
    min-height: calc(100dvh - 52px);
  }

  .sidebar {
    top: 52px;
    height: calc(100dvh - 52px);
  }

  .mobile-nav-scrim {
    inset: 52px 0 0;
    height: calc(100dvh - 52px);
  }

  .shorts-view,
  .short-card,
  #cashout-view {
    min-height: calc(100dvh - 52px);
  }

  .search-box input {
    padding-inline: 7px;
    font-size: 12px;
  }

  .search-box button {
    width: 40px;
  }

  .nav-right .icon-btn {
    min-width: 36px;
    width: 36px;
  }

  .user-avatar img {
    width: 30px;
    height: 30px;
  }
}

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

/* Global bottom navigation: original dark surface clipped to a pill shape. */
html,
body {
  height: 100%;
}

body {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navbar {
  flex: 0 0 auto;
}

.main-container {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}

.bottom-navigation {
  display: none;
  position: static;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  width: min(820px, calc(100% - 32px));
  margin: 10px auto max(12px, env(safe-area-inset-bottom, 0px));
  padding: 7px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-secondary);
  box-shadow: none;
}

.bottom-nav-item {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.bottom-nav-item i {
  font-size: 16px;
  line-height: 1;
}

.bottom-nav-item span {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.bottom-nav-item:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.bottom-nav-link.active {
  background: rgba(245, 197, 66, 0.14);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.3);
}

.bottom-nav-link.active i {
  color: var(--accent-yellow);
}

.bottom-nav-create {
  background: var(--accent-red);
  color: #fff;
}

.bottom-nav-create:hover {
  background: #e60000;
  color: #fff;
}

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

@media (max-width: 768px) {
  .bottom-navigation {
    display: grid;
  }
}

@media (max-width: 560px) {
  .bottom-navigation {
    width: calc(100% - 20px);
    gap: 2px;
    margin-top: 8px;
    padding: 5px;
  }

  .bottom-nav-item {
    min-height: 46px;
    gap: 3px;
    padding-inline: 3px;
  }

  .bottom-nav-item i {
    font-size: 15px;
  }

  .bottom-nav-item span {
    font-size: 10px;
  }

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

  .bottom-nav-label-short {
    display: block;
  }
}

@media (max-width: 360px) {
  .bottom-navigation {
    width: calc(100% - 12px);
    gap: 1px;
    padding: 4px;
  }

  .bottom-nav-item {
    min-height: 44px;
  }

  .bottom-nav-item span {
    font-size: 9px;
  }
}

.cookie-banner {
  bottom: 20px;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

.share-platform-label {
  margin: 0 0 10px;
  color: #aaa;
}

.share-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.share-platform-btn {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-color, #333);
  border-radius: 9px;
  background: var(--bg-secondary, #171717);
  color: var(--text-primary, #fff);
  font: inherit;
  cursor: pointer;
}

.share-platform-btn:hover,
.share-platform-btn:focus-visible {
  border-color: var(--accent-red, #f00);
  outline: none;
}

.share-platform-btn i {
  width: 18px;
  color: var(--accent-red, #f00);
  font-size: 17px;
  text-align: center;
}

.communications-modal {
  width: min(880px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
}

.communications-header-actions,
.direct-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.communications-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.5fr);
  min-height: 390px;
  border-top: 1px solid var(--border-color, #333);
}

.communications-contacts,
.communications-thread {
  min-width: 0;
  padding: 14px;
}

.communications-contacts {
  border-right: 1px solid var(--border-color, #333);
}

.communications-contacts label,
.call-settings-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary, #aaa);
  font-size: 13px;
}

#message-user-search,
#direct-message-input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  background: var(--bg-primary, #111);
  color: var(--text-primary, #fff);
}

.communications-contact {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #fff);
  text-align: left;
  cursor: pointer;
}

.communications-contact:hover {
  background: var(--bg-hover, #222);
}

.communications-contact img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.communications-contact span,
.communications-contact small {
  display: block;
}

.communications-contact small,
.communications-hint {
  color: var(--text-secondary, #aaa);
  font-size: 12px;
}

.direct-thread-heading {
  min-height: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.direct-messages-list {
  display: flex;
  height: 260px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-primary, #111);
}

.direct-message {
  max-width: 85%;
  align-self: flex-start;
  padding: 8px 10px;
  border-radius: 10px 10px 10px 2px;
  background: #242424;
  overflow-wrap: anywhere;
}

.direct-message.mine {
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
  background: rgba(255, 0, 0, 0.2);
}

.direct-message p {
  margin: 0 0 4px;
}

.direct-message time {
  color: var(--text-secondary, #aaa);
  font-size: 10px;
}

.direct-message-form {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.call-settings-panel,
.active-call-panel,
.incoming-call-banner {
  margin: 12px 14px;
  padding: 12px;
  border: 1px solid var(--border-color, #333);
  border-radius: 10px;
  background: var(--bg-secondary, #181818);
}

.call-settings-panel[hidden],
.active-call-panel[hidden],
.incoming-call-banner[hidden] {
  display: none;
}

.call-settings-panel label {
  color: var(--text-primary, #eee);
}

.call-video-stage {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #050505;
}

#remote-call-video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

#local-call-video {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(25%, 180px);
  border: 1px solid #777;
  border-radius: 8px;
}

.incoming-call-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .communications-layout {
    grid-template-columns: 1fr;
  }

  .communications-contacts {
    border-right: 0;
    border-bottom: 1px solid var(--border-color, #333);
  }

  .communications-contacts #message-contact-results {
    display: flex;
    overflow-x: auto;
  }

  .communications-contact {
    min-width: 170px;
  }
}

/* Matching inset header treatment without fixed or sticky positioning. */
.navbar {
  position: relative;
  top: auto;
  z-index: 1000;
  width: min(1440px, calc(100% - 32px));
  margin: 10px auto 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background-color: var(--bg-secondary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 16px);
    margin-block: 8px;
  }

  .sidebar {
    top: 72px;
    height: calc(100dvh - 72px);
  }

  .mobile-nav-scrim {
    inset: 72px 0 0;
    height: calc(100dvh - 72px);
  }
}

@media (max-width: 360px) {
  .navbar {
    width: calc(100% - 10px);
    margin-block: 6px 8px;
  }

  .sidebar {
    top: 66px;
    height: calc(100dvh - 66px);
  }

  .mobile-nav-scrim {
    inset: 66px 0 0;
    height: calc(100dvh - 66px);
  }
}

/* Keep header controls in distinct, non-shrinking groups. */
.navbar {
  flex-wrap: nowrap;
  gap: clamp(10px, 1.2vw, 16px);
  padding-inline: clamp(12px, 1.4vw, 20px);
}

.nav-left,
.nav-right {
  flex: 0 0 auto;
  min-width: max-content;
}

.nav-left {
  gap: clamp(8px, 1vw, 12px);
}

.nav-right {
  gap: clamp(8px, 1vw, 12px);
}

.nav-left > *,
.nav-right > * {
  flex-shrink: 0;
}

.nav-center {
  flex: 1 1 0%;
  width: auto;
  min-width: 0;
  max-width: 650px;
  margin-inline: 0;
}

.search-box,
.search-box input {
  min-width: 0;
}

.search-box {
  flex: 1 1 0%;
}

.search-box input {
  flex: 1 1 0%;
  width: 0;
}

@media (max-width: 768px) {
  .premium-nav-btn {
    display: none;
  }

  .create-btn span {
    display: none;
  }

  .create-btn {
    padding-inline: 12px;
  }
}

@media (max-width: 560px) {
  .navbar {
    gap: 8px;
    padding-inline: 10px;
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-center {
    margin-inline: 0;
  }

  .logo-text,
  .badge,
  .voice-btn,
  .premium-nav-btn {
    display: none;
  }

  .create-btn span {
    display: none;
  }

  .create-btn {
    padding-inline: 10px;
  }
}

@media (max-width: 360px) {
  .navbar {
    gap: 6px;
    padding-inline: 8px;
  }

  .nav-left,
  .nav-right {
    gap: 4px;
  }
}

/* Give search a dedicated row on tablet and smaller screens. */
@media (max-width: 900px) {
  :root {
    --responsive-header-height: 113px;
  }

  .navbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    column-gap: 10px;
    padding: 8px clamp(8px, 2vw, 16px);
  }

  .nav-left {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(6px, 1.2vw, 12px);
  }

  .nav-right {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
    gap: clamp(4px, 1vw, 8px);
  }

  .premium-nav-btn {
    display: none;
  }

  .create-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .create-btn span {
    display: none;
  }

  .nav-center {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  .search-box {
    width: 100%;
    height: 44px;
  }

  .search-box input {
    min-width: 0;
    padding-inline: 14px;
    font-size: 16px;
  }

  .search-box button {
    flex: 0 0 48px;
    width: 48px;
  }

  .sidebar {
    top: var(--responsive-header-height);
    height: calc(100dvh - var(--responsive-header-height));
  }

  .mobile-nav-scrim {
    inset: var(--responsive-header-height) 0 0;
    height: calc(100dvh - var(--responsive-header-height));
  }
}

/* Stable navigation columns prevent the brand, search, actions, and avatar from colliding. */
.navbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(300px, min(45vw, 600px)) max-content;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.nav-left { justify-self: start; }
.nav-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  width: 100%;
  min-width: 0;
  max-width: 600px;
  justify-self: center;
}
.nav-right { justify-self: end; min-width: max-content; }
.header-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.search-box { min-width: 0; }
.search-box input { min-width: 0; width: 0; }
.search-box button {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  color: var(--text-primary);
}
.nav-right .icon-btn,
.create-btn,
.user-avatar { flex: 0 0 40px; }

@media (max-width: 1100px) {
  :root { --responsive-header-height: 116px; }
  .navbar {
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "search search";
    gap: 8px 12px;
    padding: 9px 14px 11px;
    border-radius: 0 0 18px 18px;
  }
  .nav-left { grid-area: brand; min-width: 0; gap: 9px; }
  .nav-right { grid-area: actions; gap: 8px; }
  .nav-center { grid-area: search; display: flex; width: 100%; max-width: none; gap: 8px; }
  .logo-text { display: inline; font-size: clamp(15px, 2vw, 18px); }
  .premium-nav-btn,
  .voice-btn { display: none; }
  .create-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }
  .create-btn span { display: none; }
  .search-box { height: 44px; }
  .search-box input { padding-inline: 14px; font-size: 16px; }
  .search-box button { flex-basis: 48px; width: 48px; }
  .sidebar { top: var(--responsive-header-height); height: calc(100dvh - var(--responsive-header-height)); }
  .mobile-nav-scrim { inset: var(--responsive-header-height) 0 0; height: calc(100dvh - var(--responsive-header-height)); }
}

@media (max-width: 380px) {
  :root { --responsive-header-height: 110px; }
  .navbar { gap: 7px 8px; padding: 8px 10px 10px; }
  .logo-text { display: none; }
  .nav-right { gap: 4px; }
  .nav-right .icon-btn { width: 36px; min-width: 36px; height: 36px; }
  .create-btn { width: 38px; height: 38px; }
}

/* The site masthead uses the VYORA channel artwork as its full-width canvas. */
.navbar {
  width: 100%;
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  margin: 0;
  padding: 12px clamp(12px, 2vw, 36px);
  border-radius: 0;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(2, 13, 30, 0.94) 0%, rgba(2, 13, 30, 0.72) 18%, rgba(2, 13, 30, 0.04) 60%, rgba(2, 13, 30, 0.13) 100%),
    url('/vyora-channel-banner.png') center center / cover no-repeat,
    var(--bg-primary);
}

@media (max-width: 1100px) {
  :root {
    --navbar-height: clamp(280px, 16.523vw, 423px);
    --responsive-header-height: var(--navbar-height);
  }

  .navbar {
    height: var(--navbar-height);
    min-height: var(--navbar-height);
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "search search";
    row-gap: 8px;
    padding: 10px clamp(10px, 2vw, 20px);
  }
}

@media (max-width: 380px) {
  :root {
    --responsive-header-height: var(--navbar-height);
  }

  .navbar {
    padding: 8px 8px 10px;
  }
}

/* Keep the watch page in a predictable order and prevent hidden controls
   from leaving oversized flex gaps, especially on narrow screens. */
.watch-view {
  align-items: flex-start;
}

.watch-actions-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.watch-actions-bar .channel-bar {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.watch-actions-bar .subscribe-btn {
  margin-left: auto;
}

.watch-actions-bar .interaction-buttons {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-info,
.description-box,
.comments-section {
  min-width: 0;
  width: 100%;
}

.watch-view.youtube-external-video .interaction-buttons,
.watch-view.youtube-external-video .comments-section {
  display: flex;
}

.watch-view.youtube-external-video .comments-section {
  display: block;
}

@media (max-width: 768px) {
  .watch-view {
    display: block;
  }

  .watch-actions-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .watch-actions-bar .channel-bar {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
  }

  .watch-actions-bar .interaction-buttons {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

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

  .watch-actions-bar .interaction-buttons > * {
    flex: 0 0 auto;
  }

  .watch-info {
    display: block;
  }

  .watch-title {
    margin: 12px 0 8px;
    overflow-wrap: anywhere;
  }

  .description-box {
    margin-top: 8px;
  }

  .comments-section {
    margin-top: 24px;
  }
}

/* VYORA visual system: navy surfaces, white text, yellow highlights. */
.logo-text {
  display: inline !important;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-icon-img {
  width: 40px;
  height: 34px;
  max-width: 40px;
  object-fit: contain;
}

.nav-item.active,
.bottom-nav-link.active {
  background-color: rgba(255, 212, 59, 0.16);
  color: var(--text-primary);
}

.nav-item.active i,
.bottom-nav-link.active i {
  color: var(--accent-yellow);
}

.category-chip.active,
.category-chip.selected {
  background: var(--accent-yellow) !important;
  border-color: var(--accent-yellow) !important;
  color: var(--chip-active-text) !important;
}

.navbar {
  background-color: rgba(4, 21, 45, 0.86);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.bottom-navigation {
  background-color: rgba(4, 21, 45, 0.9);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.video-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(32px, 6vw, 64px) 20px;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.video-empty-state i {
  color: var(--accent-yellow);
  font-size: 38px;
}

.video-empty-state h2 {
  margin: 4px 0 0;
  color: var(--text-primary);
}

.video-empty-state p {
  max-width: 560px;
  margin: 0;
}

/* Keep remaining legacy dark inline panels within the navy palette. */
body [style*="background: #0f0f0f"],
body [style*="background:#0f0f0f"],
body [style*="background: #181818"],
body [style*="background:#181818"],
body [style*="background: #121212"],
body [style*="background:#121212"],
body [style*="background: #111111"],
body [style*="background:#111111"],
body [style*="background: #1a1a1a"],
body [style*="background:#1a1a1a"],
body [style*="background: #202020"],
body [style*="background:#202020"],
body [style*="background: #222"],
body [style*="background:#222"] {
  background-color: var(--bg-secondary) !important;
}

/* Consistent translucent glass treatment across the app's modal system. */
.modal-overlay,
#avatar-lightbox-modal {
  background: rgba(2, 10, 25, 0.72) !important;
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

.modal-card,
.modal-content,
.ppv-paywall-modal,
.communications-modal {
  background: rgba(10, 34, 64, 0.84) !important;
  border: 1px solid rgba(198, 222, 248, 0.24) !important;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.modal-header {
  background: rgba(11, 36, 69, 0.72) !important;
  border-bottom-color: rgba(255, 212, 59, 0.24) !important;
}

.modal-footer {
  border-top: 1px solid rgba(255, 212, 59, 0.2);
}

.modal-card .btn-primary,
.modal-card .file-label {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #04152d;
  font-weight: 700;
}

.modal-card .btn-primary:hover,
.modal-card .file-label:hover {
  background: #ffe46b;
  border-color: #ffe46b;
  color: #04152d;
}

@media (prefers-reduced-transparency: reduce) {
  .modal-card,
  .modal-content,
  .ppv-paywall-modal,
  .communications-modal {
    background: #0b2445 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.vyora-video-watermark {
  display: none;
  position: absolute;
  z-index: 15;
  width: 144px;
  max-width: min(28vw, 240px);
  max-height: 28%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.vyora-video-watermark.is-visible {
  display: block;
}

.vyora-video-watermark[data-position="top-left"] {
  top: 16px;
  left: 16px;
}

.vyora-video-watermark[data-position="top-right"] {
  top: 16px;
  right: 16px;
}

.vyora-video-watermark[data-position="bottom-left"] {
  bottom: 48px;
  left: 16px;
}

.vyora-video-watermark[data-position="bottom-right"] {
  right: 16px;
  bottom: 48px;
}

.short-video-wrapper {
  position: relative;
}

.short-vyora-watermark {
  display: none;
  position: absolute;
  z-index: 15;
  width: 144px;
  max-width: 38%;
  max-height: 22%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.short-vyora-watermark.is-visible {
  display: block;
}

.short-vyora-watermark[data-position="top-left"] {
  top: 12px;
  left: 12px;
}

.short-vyora-watermark[data-position="top-right"] {
  top: 12px;
  right: 12px;
}

.short-vyora-watermark[data-position="bottom-left"] {
  bottom: 86px;
  left: 12px;
}

.short-vyora-watermark[data-position="bottom-right"] {
  right: 12px;
  bottom: 86px;
}

.settings-watermark-card {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 212, 59, 0.26);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 48, 83, 0.82), rgba(7, 25, 48, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settings-watermark-heading {
  margin-bottom: 12px;
}

.settings-watermark-heading h4 {
  color: var(--accent-yellow);
  font-size: 16px;
}

.settings-watermark-heading p,
.settings-watermark-card .settings-toggle-row p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.settings-watermark-card input[type="range"] {
  width: 100%;
  accent-color: var(--accent-yellow);
}

.settings-watermark-card output {
  float: right;
  color: var(--accent-yellow);
  font-variant-numeric: tabular-nums;
}

.watermark-preview-stage {
  position: relative;
  display: grid;
  min-height: 128px;
  margin-top: 12px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(193, 220, 250, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(41, 119, 198, 0.32), transparent 46%),
    linear-gradient(135deg, #04152d, #102d4e);
}

.watermark-preview-stage::after {
  position: absolute;
  inset: auto 12px 9px auto;
  color: rgba(237, 243, 252, 0.62);
  content: "VYORA PLAYER PREVIEW";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#watermark-preview-image {
  position: absolute;
  z-index: 1;
  width: 144px;
  max-width: 40%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

#watermark-preview-image[data-position="top-left"] {
  top: 10px;
  left: 10px;
}

#watermark-preview-image[data-position="top-right"] {
  top: 10px;
  right: 10px;
}

#watermark-preview-image[data-position="bottom-left"] {
  bottom: 10px;
  left: 10px;
}

#watermark-preview-image[data-position="bottom-right"] {
  right: 10px;
  bottom: 10px;
}

@media (max-width: 600px) {
  .settings-watermark-card {
    padding: 14px;
  }

  .vyora-video-watermark[data-position^="bottom-"] {
    bottom: 42px;
  }
}

/* Keep the masthead overrides last so earlier navigation breakpoints cannot shrink it. */
.navbar {
  position: relative;
  display: grid;
  width: 100%;
  height: var(--navbar-height) !important;
  min-height: var(--navbar-height);
  margin: 0;
  padding: 8px clamp(12px, 2vw, 36px);
  align-items: start;
  border: 0;
  border-bottom: 1px solid rgba(153, 193, 230, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: 0 16px 45px rgba(0, 7, 18, 0.32);
}

.navbar::before,
.navbar::after {
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  content: "";
  pointer-events: none;
}

.navbar::before {
  top: var(--navbar-controls-height);
  height: var(--navbar-art-height);
  border-top: 1px solid rgba(153, 193, 230, 0.16);
  background:
    linear-gradient(180deg, rgba(2, 13, 30, 0.1), rgba(2, 13, 30, 0.12)),
    url('/vyora-channel-banner.png') center / cover no-repeat,
    var(--bg-primary);
}

.navbar::after {
  top: 0;
  height: var(--navbar-controls-height);
  background: linear-gradient(180deg, #04152d 0%, rgba(4, 21, 45, 0.98) 75%, rgba(4, 21, 45, 0.86) 100%);
  border-bottom: 1px solid rgba(153, 193, 230, 0.18);
}

.navbar > .nav-left,
.navbar > .nav-center,
.navbar > .nav-right {
  z-index: 1;
}

@media (max-width: 1100px) {
  :root {
    --navbar-controls-height: 64px;
    --navbar-art-height: clamp(160px, 16.523vw, 423px);
    --navbar-height: calc(var(--navbar-controls-height) + var(--navbar-art-height));
    --responsive-header-height: var(--navbar-height);
  }

  .navbar {
    height: var(--navbar-height) !important;
    min-height: var(--navbar-height);
    align-items: center;
    align-content: start;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 56px;
    grid-template-areas: "brand search actions";
    column-gap: clamp(4px, 1vw, 10px);
    row-gap: 0;
    padding: 4px clamp(8px, 1.5vw, 16px);
  }

  .navbar > .nav-left,
  .navbar > .nav-center,
  .navbar > .nav-right {
    min-width: 0;
    padding: 3px 5px;
    border-radius: 14px;
  }

  .nav-left {
    grid-area: brand;
    gap: clamp(3px, 0.8vw, 8px);
  }

  .nav-center {
    grid-area: search;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 0;
  }

  .nav-right {
    grid-area: actions;
    gap: clamp(2px, 0.6vw, 6px);
  }

  .search-box {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  .search-box input {
    min-width: 0;
    padding-inline: clamp(7px, 1.6vw, 14px);
    font-size: 14px;
  }

  .search-box button {
    flex: 0 0 40px;
    width: 40px;
  }
}

@media (max-width: 560px) {
  .navbar {
    column-gap: 4px;
    padding-inline: 8px;
  }

  .navbar > .nav-left,
  .navbar > .nav-center,
  .navbar > .nav-right {
    padding-inline: 3px;
  }

  .search-box input {
    font-size: 13px;
  }

  .logo-text {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .nav-left {
    gap: 2px;
  }

  .nav-right {
    gap: 2px;
  }

  .search-box button {
    flex-basis: 36px;
    width: 36px;
  }

  .search-box input {
    padding-inline: 5px;
    font-size: 12px;
  }
}

/* Keep video content immediately below the compact, pinned header. */
:root {
  --navbar-controls-height: 56px;
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  height: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  overflow-y: visible;
}

body.mobile-nav-open {
  overflow: hidden;
}

.navbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 2200;
  flex: 0 0 var(--navbar-controls-height);
  height: var(--navbar-controls-height) !important;
  min-height: var(--navbar-controls-height);
  align-items: center;
  align-content: center;
  grid-template-rows: minmax(0, 1fr);
  padding-block: 4px;
}

.navbar::before {
  content: none;
}

.navbar::after {
  top: 0;
  height: 100%;
}

.related-card a {
  color: inherit;
  text-decoration: none;
}

button.related-channel-row {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.recommendation-status {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.main-container {
  flex: 1 0 auto;
  align-items: flex-start;
  height: auto;
  min-height: calc(100dvh - var(--navbar-controls-height));
  overflow: visible;
}

.sidebar {
  position: sticky;
  inset-block-start: var(--navbar-controls-height);
  align-self: flex-start;
  height: calc(100dvh - var(--navbar-controls-height));
  max-height: calc(100dvh - var(--navbar-controls-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.content-area {
  height: auto;
  min-height: calc(100dvh - var(--navbar-controls-height));
  overflow: visible;
  overscroll-behavior-y: auto;
}

@media (max-width: 768px) {
  .navbar {
    flex-basis: 56px;
    height: 56px !important;
    min-height: 56px;
  }

  .main-container {
    min-height: calc(100dvh - 56px);
  }

  .sidebar {
    position: fixed;
    inset: 56px auto 0 0;
    z-index: 2300;
    height: calc(100dvh - 56px);
    max-height: none;
    overflow-y: auto;
  }

  .sidebar.collapsed {
    transform: translate3d(-105%, 0, 0);
  }

  .mobile-nav-scrim {
    inset: 56px 0 0;
    height: calc(100dvh - 56px);
    z-index: 2250;
  }
}
