/* JavaGoat Video Sharing Platform Stylesheet */
:root {
  /* Light Mode Palette */
  --primary: #3ea6ff;
  --primary-dark: #065fd4;
  --secondary: #eef4ff;
  --accent-red: #ff4e45;
  --accent-green: #00c851;
  --accent-purple: #a855f7;
  --accent-yellow: #ffbb33;
  --accent-orange: #ff8800;
  --white: #ffffff;
  --black: #0f0f0f;
  --text-main: #222222;
  --text-light: #606060;
  --border: #e0e0e0;
  --bg-body: #f9f9f9;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --bg-studio: #f4f6f8;
  --card-gradient: #ffffff;
  --card-border-hover: rgba(237, 23, 76, 0.22);

  /* Layout Constants */
  --sidebar-w: 250px;
  --header-h: 64px;
  --max-content-w: 1100px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Auto-inverted */
body.dark-mode {
  --primary: #3ea6ff;
  --primary-dark: #6ab5ff;
  --secondary: #262626;
  --white: #1f1f1f;
  --black: #ffffff;
  --text-main: #f1f1f1;
  --text-light: #aaaaaa;
  --border: #333333;
  --bg-body: #0f0f0f;
  --bg-nav: rgba(20, 20, 20, 0.95);
  --bg-studio: #121212;
  --card-gradient: #1e1e1e;
  --card-border-hover: rgba(255, 69, 107, 0.28);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease forwards;
}

.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Top Navbar */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo-icon-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4e45, #ff8800, #ff007f);
  box-shadow: 0 2px 10px rgba(255, 78, 69, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover .logo-icon-wrap {
  transform: scale(1.08) rotate(6deg);
}

.logo-play-svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  margin-left: 2px;
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
}

.brand-text span {
  color: var(--primary);
}

/* Center Search */
.nav-center {
  flex: 1;
  max-width: 600px;
  margin: 0 24px;
  display: flex;
}

.search-form {
  width: 100%;
  display: flex;
  height: 44px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 166, 255, 0.2);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
}

.search-btn {
  width: 64px;
  background: var(--primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-voice-btn {
  flex: 0 0 44px;
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-voice-btn.is-listening {
  color: var(--primary-dark);
  background: rgba(62, 166, 255, .14);
}

.search-btn:hover {
  background: var(--primary-dark);
}

.search-back-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

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

.upload-btn-icon {
  color: var(--accent-red);
}

.notif-bell-icon {
  color: var(--accent-yellow);
}

.notif-btn-wrap {
  position: relative;
}

.notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border: 2px solid var(--white);
  border-radius: 50%;
  display: none;
}

.btn-sign-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-sign-in:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(6, 95, 212, 0.2);
  transition: transform 0.2s ease;
}

.user-avatar-btn:hover {
  transform: scale(1.08);
}

.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Notification Dropdown */
.notif-dropdown {
  position: absolute;
  top: 60px;
  right: 10px;
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 2000;
  display: none;
  flex-direction: column;
}

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

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

.notif-item:last-child {
  border-bottom: none;
}

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

.notif-thumb {
  width: 64px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.notif-info {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.notif-meta {
  font-size: 11px;
  color: var(--text-light);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-body);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
}

.sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.sidebar-item:hover {
  background: var(--secondary);
  transform: translateX(3px);
}

.sidebar-item.active {
  background: var(--secondary);
  font-weight: 600;
  color: var(--primary-dark);
}

body.dark-mode .sidebar-item.active {
  color: var(--primary);
}

.sidebar-item .material-symbols-rounded {
  font-size: 22px;
}

.icon-home { color: var(--accent-red); }
.icon-studio { color: var(--accent-yellow); }
.icon-history { color: var(--accent-purple); }
.icon-liked { color: var(--primary); }
.icon-logout { color: var(--text-light); }

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

.sidebar-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 8px 16px;
}

.sub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.sub-list-item:hover {
  background: var(--secondary);
}

.sub-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.sub-empty-msg {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 850;
}

/* Main Content Area */
.main-content {
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
  padding: 20px 30px 40px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: calc(100vh - var(--header-h));
}

.main-content.full {
  margin-left: 0;
}

/* Category Bubble Bar */
.category-bar-wrapper {
  margin-bottom: 24px;
  position: sticky;
  top: var(--header-h);
  background: var(--bg-body);
  z-index: 100;
  padding: 8px 0;
  transition: background-color 0.3s ease;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  padding: 4px 0;
}

.category-bar::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.category-bubble {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.category-bubble:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.category-bubble.active {
  transform: scale(1.05);
  border-color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}

/* Category Specific Color Gradients */
.bubble-all {
  background: var(--black) !important;
  color: var(--white) !important;
}

.bubble-music {
  background: linear-gradient(135deg, #FF9A9E, #FECFEF);
  color: #0f0f0f;
}

.bubble-gaming {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: #0f0f0f;
}

.bubble-code {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  color: #0f0f0f;
}

.bubble-news {
  background: linear-gradient(135deg, #cfd9df, #e2ebf0);
  color: #0f0f0f;
}

.bubble-sports {
  background: linear-gradient(135deg, #a6c0fe, #f68084);
  color: #0f0f0f;
}

.bubble-live {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
  color: #0f0f0f;
}

.bubble-learning {
  background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
  color: #0f0f0f;
}

.bubble-java {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #0f0f0f;
}

.bubble-python {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #0f0f0f;
}

.bubble-vlogs {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #0f0f0f;
}

.bubble-comedy {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
  color: #0f0f0f;
}

/* Section Header for History/Liked */
.page-section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
}

.history-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  font: 600 13px/1.2 Poppins, sans-serif;
  cursor: pointer;
}

.history-clear-btn .material-symbols-rounded { font-size: 19px; }

/* Video Grid Layout */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 24px;
}

/* Video Card Design */
.video-card {
  background: var(--card-gradient);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--card-border-hover);
}

.video-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail-img {
  transform: scale(1.05);
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.video-metadata {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding: 0 4px;
}

.channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
}

.video-info {
  flex: 1;
  min-width: 0;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.channel-name {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.video-stats {
  font-size: 13px;
  color: var(--text-light);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .material-symbols-rounded {
  font-size: 54px;
  color: var(--border);
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Video Watch Page (Overlay) */
.watch-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-body);
  z-index: 1100;
  overflow-y: auto;
  display: none;
  padding: 30px;
  transition: background-color 0.3s ease;
}

.watch-container {
  max-width: var(--max-content-w);
  margin: 0 auto;
}

.back-to-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.back-to-home-btn:hover {
  color: var(--primary);
  background: var(--secondary);
}

.player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.player-box iframe,
.player-box video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.watch-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 12px;
  color: var(--black);
}

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

.channel-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-meta-watch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.channel-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.channel-meta-watch .name {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
}

.channel-subs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1;
  transition: all 0.25s ease;
  user-select: none;
}

.channel-subs-badge .sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green, #00c851);
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 200, 81, 0.5);
  animation: pulseSubDot 2s infinite ease-in-out;
}

@keyframes pulseSubDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.8);
  }
}

.channel-subs-badge .subs-count-inline {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.channel-meta-watch .subs {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.2;
}

.btn-subscribe {
  background: var(--black);
  color: var(--bg-body);
  height: 44px;
  padding: 0 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-subscribe.subscribed {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

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

.pill-action-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--secondary);
  border: 1px solid transparent;
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-action-btn:hover {
  background: var(--border);
}

.pill-action-btn.active {
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.15), rgba(6, 95, 212, 0.25));
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

.pill-action-btn .icon-blue { color: var(--primary); }
.pill-action-btn .icon-red { color: var(--accent-red); }
.pill-action-btn .icon-orange { color: var(--accent-orange); }

/* Real-Time Watch Views Pill */
.watch-views-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  border: 1px solid var(--border);
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
  transition: all 0.2s ease;
}

.watch-views-pill .icon-view {
  color: var(--primary);
  font-size: 20px;
}

/* Real Video Player Component */
.real-video-player {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #000000;
  object-fit: contain;
  outline: none;
}

.bloom-upload-guidelines-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.bloom-upload-guidelines-confirm input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

/* Clear Sample Videos Button */
.btn-clear-samples {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--accent-red, #ff4e45);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-samples:hover {
  background: rgba(255, 78, 69, 0.12);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

/* Description Box */
.watch-desc-box {
  background: var(--secondary);
  padding: 20px;
  border-radius: 16px;
  margin-top: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.desc-meta-line {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  font-size: 14px;
}

.desc-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Comments Section */
.comments-section {
  margin-top: 32px;
}

.comments-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
}

.comment-input-area {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.comment-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.comment-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

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

.btn-comment-submit {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-comment-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.comment-body {
  flex: 1;
}

.comment-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.comment-meta span {
  font-weight: 400;
  color: var(--text-light);
  margin-left: 8px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

/* Studio (Creator Dashboard) */
.studio-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-studio);
  z-index: 1200;
  display: none;
  overflow: hidden;
}

.studio-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}

.studio-nav {
  width: 250px;
  background: var(--bg-body);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.studio-brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}

.studio-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-nav-item:hover {
  background: var(--secondary);
}

.studio-nav-item.active {
  background: var(--secondary);
  color: var(--primary-dark);
}

body.dark-mode .studio-nav-item.active {
  color: var(--primary);
}

.studio-main {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
}

.btn-channel-analytics {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-channel-analytics:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 95, 212, 0.3);
}

/* Studio Statistics Cards */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h2 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.stat-card p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-blue {
  background: linear-gradient(135deg, #3ea6ff, #065fd4);
}

.stat-card-orange {
  background: linear-gradient(135deg, #ff8800, #ff4e45);
}

.stat-card-green {
  background: linear-gradient(135deg, #00c851, #007e33);
}

/* Studio Table */
.studio-table-card {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.studio-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.studio-table th {
  text-align: left;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.studio-table td {
  background: var(--secondary);
  padding: 14px 15px;
  font-size: 14px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

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

.studio-table td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.studio-table td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.studio-video-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.studio-video-thumb {
  width: 100px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.studio-video-cell-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.studio-video-cell-info p {
  font-size: 12px;
  color: var(--text-light);
}

.studio-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  transition: all 0.2s ease;
}

.action-analytics {
  background: rgba(0, 200, 81, 0.12);
  color: var(--accent-green);
}

.action-analytics:hover {
  background: rgba(0, 200, 81, 0.25);
  transform: scale(1.1);
}

.action-edit {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
}

.action-edit:hover {
  background: rgba(168, 85, 247, 0.25);
  transform: scale(1.1);
}

.action-delete {
  background: rgba(255, 78, 69, 0.12);
  color: var(--accent-red);
}

.action-delete:hover {
  background: rgba(255, 78, 69, 0.25);
  transform: scale(1.1);
}

/* Studio Settings Tab */
.studio-settings-card {
  max-width: 600px;
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--secondary);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 166, 255, 0.15);
}

.btn-primary-block {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary-block:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Modals Overlay Base */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--secondary);
  color: var(--black);
}

/* Upload / Edit Modal */
.upload-modal-card {
  max-width: 620px;
  padding: 28px 32px;
}

.upload-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.upload-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-tab-btn:hover {
  color: var(--text-main);
  background: var(--secondary);
}

.upload-tab-btn.active {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Video Dropzone */
.video-dropzone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  background: var(--secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.video-dropzone:hover,
.video-dropzone.drag-active {
  border-color: var(--primary);
  background: rgba(62, 166, 255, 0.08);
  transform: scale(1.005);
}

.dropzone-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(62, 166, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.dropzone-icon-wrap .material-symbols-rounded {
  font-size: 32px;
}

.video-dropzone h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.video-dropzone p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.btn-browse-file {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-browse-file:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Processing and Preview */
.upload-processing-box {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.upload-preview-player-wrap {
  width: 100%;
  max-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 14px;
}

.upload-preview-player-wrap video {
  width: 100%;
  max-height: 240px;
  display: block;
}

.upload-file-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.file-info-col .file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  word-break: break-all;
}

.file-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.upload-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.badge-green {
  color: var(--accent-green, #00c851);
  border-color: rgba(0, 200, 81, 0.3);
}

.btn-change-file {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-file:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Progress track */
.upload-progress-container {
  margin-top: 8px;
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.upload-progress-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Thumbnail Picker */
.thumb-selector-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.thumb-preview-box {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.thumb-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-overlay-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
}

.thumb-actions-col {
  flex: 1;
}

.btn-custom-thumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-thumb:hover {
  background: var(--border);
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 5px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 30px;
  background: var(--black);
  color: var(--bg-body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-pill.success {
  border-left: 4px solid var(--accent-green, #00c851);
}

.toast-pill.error {
  border-left: 4px solid var(--accent-red, #ff4e45);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
}

/* Analytics Modal */
.analytics-modal-card {
  max-width: 800px;
  padding: 32px;
}

.chart-container-card {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  height: 280px;
  margin-bottom: 30px;
  position: relative;
}

.chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.chart-canvas-wrap {
  height: 220px;
  width: 100%;
}

/* Auth Modal */
.auth-modal-card {
  max-width: 400px;
  padding: 36px 32px;
  text-align: center;
}

.auth-icon-wrap {
  margin-bottom: 10px;
  color: var(--primary);
}

.auth-modal-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}

.google-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s ease;
}

.google-auth-btn:hover {
  background: var(--secondary);
}

.demo-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed var(--primary);
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.demo-login-btn:hover {
  background: rgba(62, 166, 255, 0.2);
}

.auth-toggle-text {
  margin-top: 20px;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.auth-toggle-text:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .nav-center {
    display: none;
  }

  .nav-center.mobile-active {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 16px;
    background: var(--bg-nav);
    z-index: 1500;
    align-items: center;
    gap: 10px;
  }

  .search-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-trigger {
    display: flex !important;
  }

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

  .studio-wrapper {
    flex-direction: column;
  }

  .studio-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }

  #studio-back-btn {
    order: -1;
    margin: 0 !important;
  }

  .studio-brand {
    display: none;
  }

  .studio-main {
    padding: 20px 16px;
  }

  .watch-overlay {
    padding: 16px;
  }

  .notif-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

@media (min-width: 769px) {
  .mobile-search-trigger {
    display: none !important;
  }
}

/* ==========================================
   CHANNEL PAGE STYLES
   ========================================== */
.channel-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 9000;
  overflow-y: auto;
  padding: 0 0 60px 0;
}

body.channel-page-active .top-navbar,
body.channel-page-active .sidebar,
body.channel-page-active .sidebar-overlay,
body.channel-page-active .main-content,
body.about-page-active .top-navbar,
body.about-page-active .sidebar,
body.about-page-active .sidebar-overlay,
body.about-page-active .main-content {
  visibility: hidden !important;
  pointer-events: none !important;
}

.channel-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
}

.channel-top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-btn-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn-round:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.channel-top-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.channel-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.channel-banner-container {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #111;
}

@media (max-width: 768px) {
  .channel-banner-container {
    height: 130px;
  }
}

.channel-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.channel-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #990000 0%, #cc0000 35%, #ff3333 70%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-news-overlay {
  text-align: center;
  color: #ffffff;
  padding: 16px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.banner-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0000;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.banner-news-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.banner-news-sub {
  margin: 4px 0 0 0;
  font-size: 12px;
  letter-spacing: 0.8px;
  opacity: 0.9;
  font-weight: 500;
}

.btn-banner-edit {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  transition: all 0.2s ease;
}

.btn-banner-edit:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.04);
}

.channel-profile-row {
  display: flex;
  align-items: flex-start;
  padding: 20px 28px 24px 28px;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.channel-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #880000);
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  margin-top: -55px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* YouTube Theme Ring around Channel Avatar */
.channel-profile-avatar.yt-ring-avatar {
  border: 4px solid #cc0000;
  box-shadow: 0 0 0 4px var(--bg-card), 0 6px 20px rgba(204, 0, 0, 0.35);
}

.channel-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-profile-details {
  flex: 1;
  min-width: 260px;
}

.channel-page-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.channel-page-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.channel-page-stats .dot {
  color: var(--border);
  font-size: 12px;
}

.channel-bio-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 720px;
}

.channel-page-bio {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-channel-more {
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-channel-more:hover {
  color: var(--accent-red);
}

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

.btn-channel-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-channel-action:hover {
  background: var(--bg-hover);
  border-color: var(--text-light);
}

.btn-channel-action.primary {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.btn-channel-action.primary:hover {
  background: #cc0000;
}

/* YouTube Subscribed Pill Button */
.btn-yt-subscribed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-yt-subscribed:hover {
  background: var(--bg-hover);
}

.btn-yt-subscribed.active-sub {
  background: rgba(204, 0, 0, 0.1);
  color: var(--accent-red);
  border-color: rgba(204, 0, 0, 0.3);
}

.yt-bell-icon {
  font-size: 18px;
}

.yt-caret-icon {
  font-size: 18px;
  opacity: 0.7;
}

/* Channel Navigation Tabs Bar */
.channel-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}

.channel-tabs-bar::-webkit-scrollbar {
  display: none;
}

.channel-tab-item {
  padding: 12px 18px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.channel-tab-item:hover {
  color: var(--text-main);
}

.channel-tab-item.active {
  color: var(--text-main);
}

.channel-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
}

.channel-tab-search-btn {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.channel-tab-search-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.channel-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  margin-left: auto;
}

.channel-search-bar input {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  width: 160px;
}

.channel-search-bar button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  display: flex;
}

.channel-section-heading {
  margin: 12px 0 16px 0;
}

.channel-section-heading h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* ==========================================
   SETTINGS MODAL STYLES
   ========================================== */
.settings-modal-card {
  max-width: 540px;
  width: 92%;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.settings-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.settings-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-of-type {
  border-bottom: none;
}

.settings-section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

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

.settings-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-yellow));
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.settings-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-controls {
  flex: 1;
}

.settings-upload-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-photo-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-photo-upload:hover {
  background: var(--bg-hover);
}

.btn-remove-photo {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-remove-photo:hover {
  background: rgba(255, 0, 0, 0.08);
}

.theme-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-choice-btn:hover {
  border-color: var(--text-light);
}

.theme-choice-btn.active {
  border-color: var(--accent-red);
  background: rgba(255, 0, 0, 0.06);
  color: var(--accent-red);
}

/* ==========================================
   SHARE MODAL STYLES
   ========================================== */
.share-modal-card {
  max-width: 480px;
  width: 90%;
}

.share-preview-card {
  display: block;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 20px 0;
}

.share-preview-card > .share-preview-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.share-preview-info {
  padding: 12px;
}

.share-preview-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-preview-info p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-preview-source {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-light);
  font-size: 12px;
}

.share-preview-source img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.share-preview-source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.share-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-icon-btn:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.share-icon-btn.whatsapp span:first-child { color: #25D366; }
.share-icon-btn.twitter span:first-child { color: #1DA1F2; }
.share-icon-btn.facebook span:first-child { color: #4267B2; }
.share-icon-btn.email span:first-child { color: #EA4335; }

.share-icon-btn span:last-child {
  font-size: 12px;
  font-weight: 500;
}

.share-link-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.share-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.share-input-group input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-copy-link:hover {
  background: #cc0000;
}

.btn-secondary-block {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary-block:hover {
  background: var(--bg-hover);
}

/* Settings Channel Stats Summary Bar */
.settings-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.settings-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.settings-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.settings-stat-sub {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.settings-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Settings Banner Preview Box */
.settings-banner-preview-box {
  height: 110px;
  width: 100%;
  border-radius: 12px;
  border: 2px dashed var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-main);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-preview-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
}

.settings-banner-controls {
  margin-bottom: 12px;
}

/* Banner Preset Chips */
.banner-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.banner-presets-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
}

.banner-preset-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-preset-chip:hover {
  background: var(--bg-hover);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

/* Safe Delete Confirmation Modal */
.delete-modal-card {
  max-width: 440px;
  width: 90%;
  padding: 24px;
  text-align: center;
}

.delete-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.delete-modal-icon span {
  font-size: 36px;
}

.delete-video-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
}

.delete-video-preview-card img {
  width: 72px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.delete-preview-info {
  flex: 1;
  overflow: hidden;
}

.delete-preview-info h4 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delete-preview-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-light);
}

.btn-danger-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger-block:hover {
  background: #cc0000;
}

/* Avatar Photo Images across App */
.avatar-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Official Bloom Creator Badge & SVG */
.bloom-logo-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.bloom-avatar-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Navbar "Your Creator" Quick Button */
.btn-your-creator-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-your-creator-nav:hover {
  background: var(--bg-hover);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .nav-creator-label {
    display: none;
  }
  .btn-your-creator-nav {
    padding: 6px 8px;
  }
}

/* ==========================================
   BLOOM PARTNERSHIP PROGRAM & MONETIZATION
   ========================================== */

.bloom-partner-dash-card {
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.08) 0%, rgba(255, 153, 0, 0.08) 100%);
  border: 1px solid rgba(204, 0, 0, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bloom-partner-dash-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.12);
}

.bloom-dash-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bloom-dash-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #cc0000, #ff6600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bloom-dash-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bloom-dash-mini-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bloom-mini-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-dash-earn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-dash-earn:hover {
  background: #aa0000;
}

/* Monetization Tab Main View */
.monetization-view-container {
  padding: 4px 0;
}

.monetize-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.monetize-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #cc0000, #ff6600, #2ba640);
}

.monetize-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.monetize-title-group h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.monetize-title-group p {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
  max-width: 640px;
  line-height: 1.5;
}

.partner-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 700;
}

.partner-status-tag.in-progress {
  background: rgba(255, 170, 0, 0.12);
  color: #d97706;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.partner-status-tag.approved {
  background: rgba(43, 166, 64, 0.12);
  color: #2ba640;
  border: 1px solid rgba(43, 166, 64, 0.3);
}

/* Requirements Grid (800 Subscribers & 8,500 Views in 5 Months) */
.monetize-reqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.monetize-req-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.2s ease;
}

.monetize-req-card.completed {
  border-color: rgba(43, 166, 64, 0.4);
  background: linear-gradient(180deg, rgba(43, 166, 64, 0.04) 0%, var(--bg-main) 100%);
}

.req-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.monetize-req-card.completed .req-badge {
  color: #2ba640;
  border-color: rgba(43, 166, 64, 0.3);
  background: rgba(43, 166, 64, 0.1);
}

.req-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.req-current {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.req-target {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* Gaming Style Loading Progress Bar */
.game-loading-bar-wrap {
  width: 100%;
  position: relative;
}

.game-loading-bar {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

body.dark-mode .game-loading-bar {
  background: rgba(255, 255, 255, 0.08);
}

.game-loading-fill {
  height: 100%;
  background: linear-gradient(90deg, #cc0000 0%, #ff6600 70%, #ffcc00 100%);
  border-radius: 9px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.4);
}

.game-loading-fill.completed {
  background: linear-gradient(90deg, #2ba640 0%, #34d399 100%);
  box-shadow: 0 0 12px rgba(43, 166, 64, 0.4);
}

.game-loading-stripes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: gameStripesMove 1.2s linear infinite;
}

@keyframes gameStripesMove {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.req-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.cycle-timeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* Creator Milestone Simulator Controls */
.bloom-sim-toolbar {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.sim-toolbar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.sim-buttons-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sim-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sim-action:hover {
  background: var(--bg-hover);
  border-color: var(--accent-red);
}

.btn-sim-action.primary {
  background: rgba(204, 0, 0, 0.1);
  color: var(--accent-red);
  border-color: rgba(204, 0, 0, 0.3);
}

.btn-sim-action.success {
  background: rgba(43, 166, 64, 0.1);
  color: #2ba640;
  border-color: rgba(43, 166, 64, 0.3);
}

/* ==========================================
   UNLOCKED BLOOM PARTNERSHIP PROGRAM VIEW
   ========================================== */

.bloom-partner-unlocked-card {
  background: linear-gradient(135deg, rgba(204, 0, 0, 0.05) 0%, rgba(255, 204, 0, 0.08) 50%, rgba(43, 166, 64, 0.05) 100%);
  border: 2px solid rgba(255, 204, 0, 0.4);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.unlocked-trophy-crest {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.4);
  font-size: 48px;
}

.unlocked-headline {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.unlocked-subtext {
  font-size: 15px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

/* Partner Benefits 4-Column Grid */
.partner-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(204, 0, 0, 0.1);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.benefit-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Monetization Revenue Stats Overview */
.monetization-revenue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.rev-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rev-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.rev-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.rev-stat-val.green {
  color: #2ba640;
}

/* ==========================================
   MILESTONE CELEBRATION MODALS
   ========================================== */

.bloom-milestone-card {
  max-width: 480px;
  width: 90%;
  padding: 32px 24px;
  text-align: center;
}

.milestone-badge-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc0000 0%, #ff8c00 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
}

.milestone-star-icon {
  font-size: 38px;
}

.milestone-confetti-decor {
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.milestone-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

.milestone-message-box {
  background: rgba(204, 0, 0, 0.08);
  border: 1px solid rgba(204, 0, 0, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.milestone-highlight-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0;
}

.milestone-sub-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.milestone-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-milestone-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 24px;
  border: none;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-milestone-primary:hover {
  background: #aa0000;
}

.btn-milestone-secondary {
  background: none;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 24px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Partnership Congrats Modal */
.bloom-partner-modal-card {
  max-width: 520px;
  width: 90%;
  padding: 34px 26px;
  text-align: center;
}

.partner-gold-trophy-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.4);
}

.gold-trophy-icon {
  font-size: 46px;
}

.partner-congrats-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2ba640;
  background: rgba(43, 166, 64, 0.12);
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.partner-congrats-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.partner-congrats-sub {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 18px 0;
}

.partner-perks-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.partner-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.partner-perk-pill span.material-symbols-rounded {
  font-size: 16px;
  color: #2ba640;
}

.btn-partner-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(90deg, #cc0000 0%, #ff6600 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-partner-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 0, 0, 0.45);
}




/* BLOOM supplied logo replacement: keeps the existing navbar structure and interactions. */
.brand-logo {
  gap: 0;
  min-width: 220px;
  min-height: 58px;
  display: flex;
  align-items: center;
}

.bloom-header-logo {
  width: 210px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
}
.bloom-header-logo-dark { display: none; }
.dark-mode .bloom-header-logo-light { display: none; }
.history-clear-btn { margin-left: auto; }
.dark-mode .bloom-header-logo-dark { display: block; }

.bloom-studio-logo {
  width: 92px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 4px;
  flex: 0 0 auto;
}

.bubble-entertainment {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  color: #0f0f0f;
}

.bubble-technology {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  color: #0f0f0f;
}

/* Full-page About Us surface */
#bloom-about-modal { z-index: 100000 !important; }
#bloom-about-modal .bloom-about-card { max-height: 94vh; overflow-y: auto; }

/* BLOOM full-page creator/about navigation hardening */
body.channel-page-active,
body.about-page-active { overflow: hidden !important; }

body.channel-page-active .channel-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 30000 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.channel-page-active .channel-page-wrapper {
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

body.about-page-active #bloom-about-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  z-index: 40000 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#bloom-about-modal .bloom-about-card {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: auto !important;
  background: #fff !important;
  box-shadow: none !important;
}

#bloom-about-modal .bloom-about-image {
  display: block !important;
  width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: #fff !important;
  margin: 0 auto !important;
}

#bloom-about-modal .bloom-about-back {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 40002 !important;
}


/* Final About Us reliability fix: the supplied image is a public Vite asset,
   and the About surface must always fill the viewport without an empty card. */
body.about-page-active #bloom-about-modal {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  z-index: 40000 !important;
  align-items: center !important;
  justify-content: center !important;
}

body.about-page-active #bloom-about-modal .bloom-about-card {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

body.about-page-active #bloom-about-modal .bloom-about-image {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}


/* BLOOM cross-device/mobile hardening */
html, body {
  width: 100%;
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
}

#bloom-about-modal {
  width: 100vw;
  height: 100dvh;
  overflow: auto;
}

.bloom-about-card {
  width: min(1200px, calc(100vw - 24px));
  max-width: 1200px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 12px auto;
}

.bloom-about-card .bloom-about-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Phone layouts */
@media (max-width: 768px) {
  .top-navbar {
    height: 58px;
    padding: 0 10px;
  }

  .nav-left {
    gap: 6px;
    min-width: 0;
  }

  .brand-logo {
    gap: 6px;
  }

  .brand-text {
    font-size: 19px;
  }

  .logo-icon-wrap {
    width: 30px;
    height: 30px;
  }

  .nav-right {
    gap: 4px;
    min-width: 0;
  }

  .nav-right .btn-sign-in {
    padding: 7px 10px;
    font-size: 12px;
  }

  .upload-btn-icon,
  .notif-btn-wrap,
  .mobile-search-trigger {
    flex-shrink: 0;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    margin-top: 58px;
    padding: 12px 10px 28px;
  }

  .category-bar-wrapper {
    top: 58px;
    margin-left: -2px;
    margin-right: -2px;
    margin-bottom: 14px;
  }

  .video-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .video-card {
    width: 100%;
    min-width: 0;
    padding: 7px;
    border-radius: 13px;
  }

  .video-thumbnail-box {
    border-radius: 9px;
  }

  .video-metadata {
    gap: 10px;
    margin-top: 9px;
  }

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

  .channel-avatar {
    width: 34px;
    height: 34px;
  }

  .search-form {
    height: 40px;
  }

  .bloom-about-card {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
    padding: 5px;
    border-radius: 12px;
  }

  .bloom-about-card .bloom-about-back {
    top: 8px;
    left: 8px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .bloom-about-card .bloom-about-image {
    border-radius: 8px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand-text {
    display: none;
  }

  .btn-sign-in {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .main-content {
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* BLOOM mobile-phone UI refinements: keep desktop/tablet UI unchanged. */
@media (max-width: 767px) {
  /* Keep exactly one visible Settings entry on phones: the top-navbar button. */
  #sidebar #menu-settings { display: flex !important; }

  .top-navbar {
    width: 100%;
    box-sizing: border-box;
    min-height: 58px;
  }

  .nav-right { overflow: hidden; }
  .nav-right .btn-your-creator-nav { display: none; }

  .settings-modal-card {
    width: calc(100vw - 20px);
    max-width: 540px;
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    overflow-y: auto;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .settings-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg-card);
    padding: 4px 0 12px;
  }

  .settings-summary-bar {
    overflow-x: auto;
  }

  .settings-avatar-flex {
    align-items: flex-start;
  }

  .settings-avatar-controls { min-width: 0; }
  .settings-upload-row { width: 100%; }
  .settings-upload-row > button { flex: 1; min-width: 0; }

  .theme-toggle-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .theme-choice-btn {
    min-height: 50px;
    padding: 10px 8px;
    font-size: 13px;
  }
}


/* BLOOM final mobile top bar: search + camera upload + bell + circular profile. */
@media (max-width: 767px) {
  .nav-right .btn-your-creator-nav,
  .nav-right .settings-btn-icon { display:none !important; }
  .nav-right .upload-btn-icon,
  .nav-right .notif-btn-wrap,
  .nav-right .user-avatar-btn,
  .nav-right .mobile-search-trigger,
  .nav-right .btn-sign-in { flex-shrink:0; }
  .user-avatar-btn { border-radius:50% !important; overflow:hidden !important; }
  .user-avatar-btn img { border-radius:50% !important; object-fit:cover !important; }
}

/* BLOOM mobile menu reliability */
@media (max-width: 767px) {
  #sidebar-toggle-btn {
    display: flex !important;
    position: relative;
    z-index: 2001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #sidebar {
    z-index: 2000 !important;
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  #sidebar-overlay {
    z-index: 1999 !important;
    touch-action: manipulation;
  }
  #sidebar #menu-settings {
    display: flex !important;
  }
  .bloom-mobile-bottom-nav #mobile-nav-settings {
    display: none !important;
  }
  #thumb-file-input, #settings-photo-file, #settings-banner-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
}

/* BLOOM channel page — YouTube-style responsive layout */
.channel-top-spacer { flex: 1; }
.channel-top-search, .channel-top-more { flex: 0 0 auto; }
.channel-mobile-filters { display: none; }

@media (min-width: 769px) {
  .channel-top-nav { height: 44px; }
  .channel-top-search, .channel-top-more { display: none; }
  .channel-banner-card { border-radius: 18px; }
}

@media (max-width: 768px) {
  body.channel-page-active .channel-overlay { background: #fff !important; color: #0f0f0f; }
  body.channel-page-active .channel-page-wrapper {
    max-width: none;
    width: 100%;
    padding: 0 0 80px;
    box-sizing: border-box;
  }
  .channel-top-nav {
    height: 64px;
    margin: 0;
    padding: 0 22px;
    gap: 12px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
  }
  .channel-top-title { display: none; }
  .channel-top-spacer { flex: 1; }
  .channel-top-nav .icon-btn-round {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #111;
  }
  .channel-top-nav .icon-btn-round:hover { background: #f2f2f2; transform: none; }
  .channel-banner-card {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .channel-banner-container {
    height: 180px;
    border-radius: 0;
    background: #eee;
  }
  .channel-banner-img { object-position: center; }
  .channel-banner-fallback { background: #eee; }
  .banner-news-overlay { transform: scale(.85); }
  .btn-banner-edit { top: 10px; right: 12px; }
  .channel-profile-row {
    display: grid;
    grid-template-columns: 138px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding: 22px 32px 12px;
    background: #fff;
  }
  .channel-profile-avatar {
    width: 138px;
    height: 138px;
    margin-top: -70px;
    border-width: 4px;
    box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(0,0,0,.18);
  }
  .channel-profile-details { min-width: 0; }
  .channel-page-name {
    font-size: 30px;
    line-height: 1.15;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .channel-page-stats {
    color: #666;
    font-size: 14px;
    gap: 6px;
    margin-top: 8px;
  }
  .channel-bio-wrap { display: none; }
  .channel-profile-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
    margin-top: 2px;
  }
  .channel-profile-actions .btn-channel-action,
  .channel-profile-actions .btn-yt-subscribed { display: none !important; }
  .channel-profile-actions #channel-studio-btn { display: flex !important; grid-column: 1 / -1; }
  .channel-profile-actions .btn-yt-subscribed {
    display: flex !important;
    width: 100%;
    min-height: 64px;
    justify-content: center;
    border: 0;
    border-radius: 34px;
    background: #f1f1f1;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0 16px;
  }
  .channel-tabs-bar {
    margin: 0;
    padding: 0 18px;
    gap: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
  }
  .channel-tab-item {
    flex: 0 0 auto;
    padding: 14px 18px 13px;
    color: #666;
    font-size: 18px;
    font-weight: 600;
  }
  .channel-tab-item.active { color: #111; }
  .channel-tab-item.active::after { height: 3px; background: #111; }
  .channel-tab-search-btn { display: none; }
  .channel-search-bar { display: none !important; }
  #channel-overlay .channel-search-bar.is-open {
    position: fixed !important;
    top: 72px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 50020 !important;
    display: flex !important;
    width: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.16) !important;
  }
  #channel-overlay .channel-search-bar.is-open input { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
  .channel-content-area { padding: 0 32px; }
  .channel-section-heading { display: none; }
  .channel-mobile-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 0 14px;
    scrollbar-width: none;
  }
  .channel-mobile-filters::-webkit-scrollbar { display: none; }
  .channel-filter-btn {
    border: 0;
    background: #f1f1f1;
    color: #111;
    border-radius: 12px;
    padding: 10px 18px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
  }
  .channel-filter-btn.active { background: #111; color: #fff; }
  .channel-content-area .video-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .channel-content-area .video-card {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .channel-content-area .video-thumbnail-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
  }
  .channel-content-area .video-metadata {
    margin: 0;
    padding: 2px 24px 0 0;
    gap: 0;
    align-items: flex-start;
  }
  .channel-content-area .video-metadata .channel-avatar { display: none; }
  .channel-content-area .video-info { min-width: 0; }
  .channel-content-area .video-title {
    color: #111;
    font-size: 17px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 7px;
  }
  .channel-content-area .channel-name { display: none; }
  .channel-content-area .video-stats {
    color: #666;
    font-size: 14px;
    line-height: 1.35;
  }
  .channel-content-area .duration-badge {
    right: 6px;
    bottom: 6px;
  }
}

@media (max-width: 520px) {
  .channel-profile-row { grid-template-columns: 120px minmax(0,1fr); padding-left: 32px; padding-right: 32px; gap: 16px; }
  .channel-profile-avatar { width: 120px; height: 120px; margin-top: -60px; }
  .channel-page-name { font-size: 27px; }
  .channel-tab-item { font-size: 17px; padding-left: 16px; padding-right: 16px; }
  .channel-content-area { padding: 0 32px; }
  .channel-content-area .video-card { grid-template-columns: 51% 49%; gap: 14px; }
  .channel-content-area .video-title { font-size: 16px; }
}

/* BLOOM Settings fixes: supplied light/dark logos + working Rules viewer. */
.bloom-rules-guidelines-modal {
  z-index: 120000 !important;
  background: rgba(0,0,0,.72) !important;
  align-items: center;
  justify-content: center;
}
.bloom-rules-guidelines-card {
  position: relative;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 20px;
}
.bloom-rules-guidelines-heading {
  margin: 0 46px 14px 4px;
  font: 700 24px/1.2 'Poppins', sans-serif;
}
.bloom-rules-guidelines-image-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.bloom-rules-guidelines-image {
  display: block;
  width: 100%;
  height: auto;
}
.bloom-rules-guidelines-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.bloom-rules-guidelines-actions button { min-height: 54px; }
.theme-choice-btn.active {
  border-color: var(--primary) !important;
  background: var(--secondary) !important;
  box-shadow: 0 0 0 2px rgba(62,166,255,.14) inset;
}
@media (max-width: 767px) {
  .bloom-rules-guidelines-card { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); padding: 12px; }
  .bloom-rules-guidelines-heading { font-size: 20px; margin-bottom: 10px; }
  .bloom-rules-guidelines-actions { grid-template-columns: 1fr; }
}


/* BLOOM supplied Community Guidelines artwork: do not redraw or alter the image. */
.bloom-guidelines-exact-card,
.bloom-rules-guidelines-card { position:relative; width:min(1200px,calc(100vw - 24px)); max-height:calc(100vh - 24px); padding:0; overflow:auto; background:transparent; border:0; box-shadow:none; }
.bloom-guidelines-image-stage { position:relative; width:100%; line-height:0; }
.bloom-guidelines-exact-image { display:block; width:100%; height:auto; max-width:100%; border-radius:14px; user-select:none; -webkit-user-drag:none; }
.bloom-image-hit { position:absolute; top:79.45%; height:9.35%; border:0; background:transparent !important; box-shadow:none !important; padding:0; margin:0; cursor:pointer; z-index:20; opacity:0; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.bloom-image-hit-accept { left:19.5%; width:28.8%; }
.bloom-image-hit-reject { left:52.0%; width:28.8%; }
.bloom-image-hit:focus-visible { outline:3px solid rgba(37,99,235,.9); outline-offset:2px; opacity:.08; }
.bloom-guidelines-exact-card .bloom-guidelines-close,
.bloom-rules-guidelines-card .bloom-guidelines-close { z-index:30; }
.bloom-rules-guidelines-modal { z-index:110000 !important; }
.bloom-rules-guidelines-modal .bloom-guidelines-image-stage { border-radius:14px; overflow:hidden; }
@media(max-width:767px){
  .bloom-guidelines-exact-card,.bloom-rules-guidelines-card{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);margin:5px;}
  .bloom-guidelines-exact-image{border-radius:10px;}
}

/* Extra-large BLOOM header logos for both themes. The source artwork is tightly cropped so the logo itself fills the header. */
.brand-logo {
  min-width: 270px;
  min-height: 64px;
  height: 64px;
  overflow: visible;
}
.bloom-header-logo {
  width: 258px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.08);
  transform-origin: left center;
}
@media (max-width: 768px) {
  .brand-logo {
    min-width: 196px;
    min-height: 58px;
    height: 58px;
  }
  .bloom-header-logo {
    width: 190px;
    height: 52px;
    transform: scale(1.04);
  }
}

/* Final homepage logo zoom: BOTH light and dark BLOOM logos are intentionally large. */
:root { --header-h: 88px; }
.brand-logo {
  min-width: 380px;
  width: 380px;
  height: 84px;
  overflow: visible;
  flex: 0 0 380px;
}
.bloom-header-logo {
  width: 368px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.08);
  transform-origin: left center;
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .brand-logo {
    min-width: 245px;
    width: 245px;
    height: 62px;
    flex-basis: 245px;
  }
  .bloom-header-logo {
    width: 238px;
    height: 60px;
    transform: scale(1.06);
    transform-origin: left center;
  }
}
/* Final logo crop/zoom: use tightly cropped artwork so the logo fills the marked header area. */
.brand-logo {
  min-width: 380px;
  width: 380px;
  height: 84px;
  flex: 0 0 380px;
  overflow: visible;
}
.bloom-header-logo {
  width: 368px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
  transform: none;
}
@media (max-width: 768px) {
  .brand-logo { min-width: 245px; width: 245px; height: 62px; flex-basis: 245px; }
  .bloom-header-logo { width: 238px; height: 60px; }
}

.dark-mode .bloom-rules-toggle{background:#172554;border-color:#60a5fa;color:#bfdbfe}.dark-mode .bloom-rules-toggle:hover{background:#1e3a8a}

/* Final BLOOM visual and upload fixes */
.brand-logo { min-width: 320px !important; width: 320px !important; height: 70px !important; flex-basis: 320px !important; overflow: visible !important; }
.bloom-header-logo { width: 310px !important; height: 68px !important; object-fit: contain !important; object-position: left center !important; }
.settings-avatar-preview img { object-fit: cover !important; object-position: center !important; }
.settings-banner-preview-box { background-size: cover !important; background-position: center !important; }
@media (max-width: 767px) { .brand-logo { min-width: 210px !important; width: 210px !important; height: 52px !important; flex-basis: 210px !important; } .bloom-header-logo { width: 205px !important; height: 50px !important; } }

/* Definitive homepage logo zoom: enlarge the actual artwork in place for both themes. */
.brand-logo { min-width: 380px !important; width: 380px !important; height: 84px !important; flex: 0 0 380px !important; overflow: visible !important; }
.bloom-header-logo { width: 368px !important; height: 84px !important; object-fit: contain !important; object-position: left center !important; transform: scale(1.28) !important; transform-origin: left center !important; }
@media (max-width: 767px) { .brand-logo { min-width: 245px !important; width: 245px !important; height: 62px !important; flex-basis: 245px !important; } .bloom-header-logo { width: 238px !important; height: 60px !important; transform: scale(1.18) !important; } }
/* FINAL ACTUAL ARTWORK ZOOM: logo files are tightly cropped, then enlarged in place. */
.brand-logo { min-width: 430px !important; width: 430px !important; height: 88px !important; flex: 0 0 430px !important; overflow: visible !important; }
.bloom-header-logo { width: 420px !important; height: 82px !important; object-fit: contain !important; object-position: left center !important; transform: scale(1.18) !important; transform-origin: left center !important; }
@media (max-width: 767px) {
  .brand-logo { min-width: 270px !important; width: 270px !important; height: 62px !important; flex-basis: 270px !important; }
  .bloom-header-logo { width: 260px !important; height: 58px !important; transform: scale(1.12) !important; }
}


/* ==========================================================
   BLOOM FINAL RESPONSIVE HEADER / MOBILE NAV FIX
   - Desktop/tablet: keep the enlarged BLOOM logo.
   - Phone: restore a compact, non-zoomed BLOOM header logo.
   - Phone bottom navigation: exactly five columns so the +
     upload button is mathematically centered.
   ========================================================== */
@media (max-width: 767px) {
  :root { --header-h: 58px; }

  .top-navbar {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 10px !important;
  }

  .nav-left {
    gap: 6px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  /* IMPORTANT: no mobile logo zoom. Keep the complete supplied
     BLOOM artwork inside a normal phone-sized header area. */
  .brand-logo {
    min-width: 185px !important;
    width: 185px !important;
    height: 56px !important;
    flex: 0 0 185px !important;
    overflow: hidden !important;
  }

  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 180px !important;
    height: 52px !important;
    max-width: 180px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  .nav-right {
    gap: 3px !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .main-content {
    margin-top: 58px !important;
    padding: 14px 10px 98px !important;
  }

  .category-bar-wrapper {
    top: 58px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding: 8px 0 !important;
  }

  /* Five visible destinations: Home / About / + / Watch / You. */
  .bloom-mobile-bottom-nav {
    height: 76px !important;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-items: center !important;
    column-gap: 0 !important;
  }

  .bloom-mobile-nav-item {
    width: 100% !important;
    height: 66px !important;
    padding: 4px 2px !important;
    font-size: 10px !important;
  }

  .bloom-mobile-nav-item .material-symbols-rounded {
    font-size: 25px !important;
  }

  /* Settings remains in the three-line/sidebar menu on phones. */
  #mobile-nav-settings {
    display: none !important;
  }

  /* + is the exact middle item of the five-column navigation. */
  .bloom-mobile-upload-button {
    width: 58px !important;
    height: 58px !important;
    justify-self: center !important;
    align-self: center !important;
    transform: translateY(-4px) !important;
  }

  .bloom-mobile-upload-button .material-symbols-rounded {
    font-size: 34px !important;
  }

  .bloom-mobile-you-avatar {
    width: 27px !important;
    height: 27px !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    min-width: 176px !important;
    width: 176px !important;
    flex-basis: 176px !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 171px !important;
    max-width: 171px !important;
  }
}


/* ==========================================================
   BLOOM FINAL PROFILE / NAVIGATION FIXES — 2026-09-15
   Desktop: professional YouTube-style header with a clearly
   visible BLOOM logo. Mobile: compact logo that never crowds
   the search/upload/account controls.
   ========================================================== */

/* The supplied BLOOM artwork is the source of truth; only its
   display size is changed here. */
@media (min-width: 768px) {
  :root { --header-h: 64px; }
  .top-navbar { height: 64px !important; min-height: 64px !important; }
  .brand-logo {
    min-width: 190px !important;
    width: 190px !important;
    height: 52px !important;
    flex: 0 0 190px !important;
    overflow: hidden !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 184px !important;
    height: 50px !important;
    max-width: 184px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: scale(1.06) !important;
    transform-origin: left center !important;
  }
}

@media (max-width: 767px) {
  :root { --header-h: 58px; }
  .top-navbar {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 9px !important;
  }
  .nav-left {
    gap: 5px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }
  .brand-logo {
    min-width: 132px !important;
    width: 132px !important;
    height: 44px !important;
    flex: 0 0 132px !important;
    overflow: hidden !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 128px !important;
    height: 40px !important;
    max-width: 128px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  /* Keep all header controls usable on narrow phones. */
  .nav-right {
    gap: 3px !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .nav-right > * { flex-shrink: 0 !important; }
  .upload-btn-icon, .notif-bell-icon, .mobile-search-trigger { width: 34px !important; height: 34px !important; }
  .user-avatar-btn { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; }

  /* Settings stays a full desktop-style settings card on mobile,
     but Save/Cancel remain reachable at the top while scrolling. */
  .settings-modal-card {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    max-height: calc(100dvh - 12px) !important;
    margin: 6px auto !important;
    border-radius: 16px !important;
  }
  .settings-modal-card .settings-modal-header {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -1px -1px 14px !important;
    padding: 12px 44px 12px 12px !important;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .settings-modal-card .settings-actions-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin: 12px -1px -1px !important;
    padding: 10px !important;
    background: color-mix(in srgb, var(--white) 94%, transparent) !important;
    border-top: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .settings-modal-card .settings-actions-bar button { min-height: 44px !important; }
  .settings-modal-card .settings-actions-bar .settings-save-btn { flex: 2 !important; }
  .settings-modal-card .settings-summary-bar { margin-bottom: 8px !important; }
}

.settings-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.settings-actions-bar .settings-save-btn { flex: 2; }

/* Reliable touch targets for the Creator and Studio destinations. */
#nav-your-creator-btn,
#menu-channel,
#menu-studio {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* The Creator page is intentionally above every normal page layer. */
#channel-overlay {
  z-index: 30000 !important;
  pointer-events: auto !important;
}
#channel-overlay .channel-page-wrapper,
#channel-overlay button,
#channel-overlay a { pointer-events: auto; }

/* Creator Studio remains a true full-screen app on phones and desktop. */
#studio-overlay {
  z-index: 29000 !important;
  pointer-events: auto !important;
}
#studio-overlay .studio-wrapper,
#studio-overlay button,
#studio-overlay a { pointer-events: auto; }

/* ==========================================================
   BLOOM FINAL LOGO + YOUR CREATOR FIX — 2026-09-15
   Desktop: enlarge BOTH supplied light/dark logos.
   Mobile: compact professional logo without crowding controls.
   ========================================================== */
@media (min-width: 768px) {
  .brand-logo {
    min-width: 220px !important;
    width: 220px !important;
    height: 58px !important;
    flex: 0 0 220px !important;
    overflow: visible !important;
    cursor: pointer !important;
  }

  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 214px !important;
    height: 56px !important;
    max-width: 214px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: scale(1.16) !important;
    transform-origin: left center !important;
  }
}

@media (max-width: 767px) {
  /* Small, clean YouTube-style header logo on phones. */
  .brand-logo {
    min-width: 112px !important;
    width: 112px !important;
    height: 42px !important;
    flex: 0 0 112px !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }

  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 108px !important;
    height: 38px !important;
    max-width: 108px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    min-width: 100px !important;
    width: 100px !important;
    flex-basis: 100px !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 96px !important;
    max-width: 96px !important;
  }
}

/* Make Your Creator a reliable, keyboard/touch-friendly navigation control. */
#nav-your-creator-btn {
  position: relative !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
#nav-your-creator-btn * {
  pointer-events: none !important;
}

/* BLOOM final visual polish: responsive professional logo sizing.
   The full supplied artwork stays visible in both themes. */
@media (min-width: 768px) {
  .top-navbar { height: 72px !important; min-height: 72px !important; padding: 0 24px !important; }
  :root { --header-h: 72px; }
  .nav-left { gap: 18px !important; }
  .brand-logo {
    width: 220px !important;
    min-width: 220px !important;
    height: 62px !important;
    flex: 0 0 220px !important;
    overflow: visible !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 214px !important;
    height: 58px !important;
    max-width: 214px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
  .main-content { margin-top: 72px !important; }
  .category-bar-wrapper { top: 72px !important; }
}

@media (max-width: 767px) {
  :root { --header-h: 58px; }
  .top-navbar { height: 58px !important; min-height: 58px !important; padding: 0 10px !important; }
  .brand-logo {
    width: clamp(128px, 35vw, 245px) !important;
    min-width: clamp(128px, 35vw, 245px) !important;
    height: 52px !important;
    flex: 0 1 clamp(128px, 35vw, 245px) !important;
    overflow: hidden !important;
  }
  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 100% !important;
    height: 50px !important;
    max-width: 100% !important;
    max-height: 50px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
  .nav-left { gap: 6px !important; min-width: 0 !important; }
  .nav-right { gap: 3px !important; min-width: 0 !important; }
  .main-content { margin-top: 58px !important; padding-bottom: 98px !important; }
  .category-bar-wrapper { top: 58px !important; }
}

/* DESKTOP BLOOM LOGO EXTRA ZOOM - mobile layout remains unchanged */
@media (min-width: 768px) {
  .brand-logo {
    min-width: 480px !important;
    width: 480px !important;
    height: 92px !important;
    flex: 0 0 480px !important;
    overflow: visible !important;
  }

  .bloom-header-logo,
  .bloom-header-logo-light,
  .bloom-header-logo-dark {
    width: 468px !important;
    height: 88px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: scale(1.30) !important;
    transform-origin: left center !important;
  }
}

/* BLOOM theme logo: show the supplied light artwork in light mode and
   the supplied dark artwork in dark mode on both desktop and mobile. */
.top-navbar .brand-logo {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  overflow: visible !important;
}
.top-navbar .bloom-header-logo {
  display: block !important;
  visibility: visible !important;
}
.top-navbar .bloom-header-logo-dark { display: none !important; }
body.dark-mode .top-navbar .bloom-header-logo-light { display: none !important; }
body.dark-mode .top-navbar .bloom-header-logo-dark { display: block !important; }

@media (min-width: 768px) {
  .top-navbar .brand-logo {
    width: 220px !important;
    min-width: 220px !important;
    height: 62px !important;
    flex: 0 0 220px !important;
  }
  .top-navbar .bloom-header-logo {
    width: 214px !important;
    height: 58px !important;
    max-width: 214px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .top-navbar .brand-logo {
    width: clamp(128px, 35vw, 185px) !important;
    min-width: clamp(128px, 35vw, 185px) !important;
    height: 52px !important;
    flex: 0 1 clamp(128px, 35vw, 185px) !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo {
    width: 100% !important;
    height: 50px !important;
    max-width: 100% !important;
    max-height: 50px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .top-navbar .brand-logo {
    width: 128px !important;
    min-width: 128px !important;
    flex-basis: 128px !important;
  }
}

/* Desktop BLOOM logo size refinement: reduced from the previous oversized header logo. */
@media (min-width: 768px) {
  .top-navbar .brand-logo {
    width: 190px !important;
    min-width: 190px !important;
    height: 56px !important;
    flex: 0 0 190px !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    width: 184px !important;
    height: 50px !important;
    max-width: 184px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}

/* BLOOM final correction: genuinely zoom OUT the navbar artwork.
   The earlier oversized rules are overridden here. Keep the complete supplied logo visible. */
@media (min-width: 768px) {
  .top-navbar .nav-left { flex: 0 0 auto !important; min-width: 0 !important; gap: 10px !important; }
  .top-navbar .brand-logo {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    flex: 0 0 150px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 146px !important;
    min-width: 146px !important;
    max-width: 146px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 146px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .top-navbar .nav-left { flex: 0 0 auto !important; min-width: 0 !important; gap: 5px !important; }
  .top-navbar .brand-logo {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 118px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 114px !important;
    min-width: 114px !important;
    max-width: 114px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 114px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}


/* BLOOM final responsive logo sizing — 2026-09-18 */
@media (min-width: 768px) {
  .top-navbar .brand-logo { min-width: 238px !important; width: 238px !important; height: 58px !important; flex: 0 0 238px !important; overflow: visible !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width: 230px !important; height: 56px !important; max-width: 230px !important; max-height: 56px !important; object-fit: contain !important; object-position: left center !important; transform: scale(1.16) !important; transform-origin: left center !important; }
}
@media (max-width: 767px) {
  .top-navbar .brand-logo { min-width: 94px !important; width: 94px !important; height: 36px !important; flex: 0 0 94px !important; overflow: hidden !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width: 90px !important; height: 32px !important; max-width: 90px !important; max-height: 32px !important; object-fit: contain !important; object-position: left center !important; transform: none !important; }
}
@media (max-width: 380px) {
  .top-navbar .brand-logo { min-width: 88px !important; width: 88px !important; flex-basis: 88px !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width: 84px !important; max-width: 84px !important; }
}


/* ==========================================================
   BLOOM — EXACT HEADER LOGO SIZE (2026-09-18)
   Desktop matches the supplied reference screenshot.
   Light and dark modes use the same rendered logo box.
   Mobile intentionally uses a smaller logo.
   This block is the final override and must remain last.
   ========================================================== */
@media (min-width: 768px) {
  .top-navbar .nav-left {
    gap: 18px !important;
  }
  .top-navbar .brand-logo {
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex: 0 0 205px !important;
    overflow: visible !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    object-fit: fill !important;
    object-position: left center !important;
    transform: none !important;
    transform-origin: left center !important;
  }
}

@media (max-width: 767px) {
  .top-navbar .nav-left {
    gap: 5px !important;
  }
  .top-navbar .brand-logo {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 108px !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    object-fit: fill !important;
    object-position: left center !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .top-navbar .brand-logo {
    width: 98px !important;
    min-width: 98px !important;
    max-width: 98px !important;
    flex-basis: 98px !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
  }
}


/* BLOOM AUTHORITATIVE LOGO SIZE — exact desktop reference / compact mobile — 2026-09-18 */
@media (min-width: 768px) {
  .top-navbar .brand-logo { width:190px !important; min-width:190px !important; max-width:190px !important; height:48px !important; min-height:48px !important; max-height:48px !important; flex:0 0 190px !important; overflow:visible !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width:190px !important; min-width:190px !important; max-width:190px !important; height:48px !important; min-height:48px !important; max-height:48px !important; object-fit:contain !important; object-position:left center !important; transform:none !important; }
}
@media (max-width: 767px) {
  .top-navbar .brand-logo { width:105px !important; min-width:105px !important; max-width:105px !important; height:32px !important; min-height:32px !important; max-height:32px !important; flex:0 0 105px !important; overflow:hidden !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width:102px !important; min-width:102px !important; max-width:102px !important; height:32px !important; min-height:32px !important; max-height:32px !important; object-fit:contain !important; object-position:left center !important; transform:none !important; }
}
@media (max-width: 380px) {
  .top-navbar .brand-logo { width:96px !important; min-width:96px !important; max-width:96px !important; flex-basis:96px !important; }
  .top-navbar .bloom-header-logo, .top-navbar .bloom-header-logo-light, .top-navbar .bloom-header-logo-dark { width:93px !important; min-width:93px !important; max-width:93px !important; }
}


/* BLOOM FINAL PROFILE + RESPONSIVE LOGO FIX — 2026-09-18
   Desktop: visibly larger supplied logo.
   Mobile: compact logo so it does not crowd header controls.
   Keep light/dark artwork unchanged. */
@media (min-width: 768px) {
  .top-navbar .brand-logo {
    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    flex: 0 0 238px !important;
    overflow: visible !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: scale(1.08) !important;
    transform-origin: left center !important;
  }
}
@media (max-width: 767px) {
  .top-navbar .brand-logo {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 94px !important;
    overflow: hidden !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    display: block !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
}
@media (max-width: 380px) {
  .top-navbar .brand-logo {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    flex-basis: 88px !important;
  }
  .top-navbar .bloom-header-logo,
  .top-navbar .bloom-header-logo-light,
  .top-navbar .bloom-header-logo-dark {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
  }
}

/* ==========================================================
   BLOOM SETTINGS — FINAL MOBILE-FIRST CONTROLS FIX
   Phones get a real app-style settings screen with a sticky header,
   large touch controls and an always-visible Save Changes / Cancel bar.
   Desktop keeps the normal modal/card presentation.
   ========================================================== */
.settings-save-btn:disabled { opacity: .65 !important; cursor: wait !important; }
.settings-actions-bar { position: sticky; bottom: 0; z-index: 20; background: var(--bg-card); padding: 14px 0 4px; border-top: 1px solid var(--border); }

@media (max-width: 767px) {
  #settings-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    z-index: 100000 !important;
    background: var(--bg-main) !important;
  }
  #settings-modal .settings-modal-card {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card) !important;
  }
  #settings-modal .modal-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 40 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
  }
  #settings-modal .settings-modal-header {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 16px 58px 14px 16px !important;
    min-height: 72px !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
  }
  #settings-modal .settings-header-icon { width: 42px !important; height: 42px !important; }
  #settings-modal .settings-modal-header h2 { font-size: 19px !important; }
  #settings-modal .settings-modal-header p { font-size: 11px !important; line-height: 1.35 !important; }
  #settings-modal > .settings-modal-card > form,
  #settings-modal .settings-modal-card > form {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 16px 106px !important;
  }
  #settings-modal .settings-summary-bar {
    margin: 14px 0 4px !important;
    padding: 10px 4px !important;
    border-radius: 14px !important;
  }
  #settings-modal .settings-section {
    padding: 18px 0 !important;
  }
  #settings-modal .settings-section-label,
  #settings-modal .form-group label {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
  #settings-modal .settings-avatar-flex {
    display: grid !important;
    grid-template-columns: 82px minmax(0,1fr) !important;
    gap: 14px !important;
    align-items: center !important;
  }
  #settings-modal .settings-avatar-preview {
    width: 82px !important;
    height: 82px !important;
  }
  #settings-modal .settings-upload-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  #settings-modal .btn-photo-upload,
  #settings-modal .btn-remove-photo,
  #settings-modal .banner-preset-chip,
  #settings-modal .theme-choice-btn {
    min-height: 48px !important;
    font-size: 13px !important;
    touch-action: manipulation !important;
  }
  #settings-modal .btn-photo-upload,
  #settings-modal .btn-remove-photo { justify-content: center !important; padding: 10px !important; }
  #settings-modal .form-control {
    min-height: 48px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
  #settings-modal textarea.form-control { min-height: 100px !important; padding-top: 12px !important; }
  #settings-modal .settings-banner-preview-box {
    height: 155px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }
  #settings-modal .settings-banner-controls .settings-upload-row { margin-bottom: 8px !important; }
  #settings-modal .banner-presets-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #settings-modal .banner-preset-chip { flex: 0 0 auto !important; white-space: nowrap !important; padding: 9px 12px !important; }
  #settings-modal .theme-toggle-row { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  #settings-modal .settings-actions-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100010 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1.55fr) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -6px 18px rgba(0,0,0,.10) !important;
  }
  #settings-modal .settings-actions-bar button {
    min-height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  #settings-modal .settings-save-btn { width: 100% !important; }
  #settings-modal .settings-cancel-btn { width: 100% !important; }
}

/* BLOOM mobile video/watch reference layout */
.mobile-watch-header,.mobile-watch-actions,.mobile-up-next{display:none}
@media (max-width:767px){
.watch-overlay{top:0!important;padding:0!important;background:var(--bg-body,#fff)!important;z-index:50000!important}
.watch-container{max-width:none!important;margin:0!important;padding:0 0 88px!important;background:var(--bg-body,#fff)}
.mobile-watch-header{height:72px;display:flex;align-items:center;gap:6px;padding:env(safe-area-inset-top) 10px 0;background:var(--bg-card,#fff);border-bottom:1px solid var(--border,#e5e7eb);box-sizing:content-box;position:sticky;top:0;z-index:20}
.mobile-watch-back,.mobile-watch-head-btn{width:42px;height:42px;min-width:42px;border:0;background:transparent;color:var(--text-main,#101828);display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0;touch-action:manipulation}.mobile-watch-back .material-symbols-rounded{font-size:28px}.mobile-watch-head-btn .material-symbols-rounded{font-size:25px}
.mobile-watch-logo{width:122px;height:42px;object-fit:contain;object-position:left center;margin-right:auto}body.dark-mode .mobile-watch-logo{content:url('./bloom-logo-dark.png')}.back-to-home-btn{display:none!important}
.player-box{width:100%!important;aspect-ratio:16/9!important;border-radius:0!important;box-shadow:none!important;background:#000!important;overflow:hidden;position:relative}.player-box iframe,.player-box video,.real-video-player{border-radius:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
.bloom-mobile-player{position:relative;width:100%;height:100%;background:#000;overflow:hidden}.bloom-mobile-player .real-video-player{display:block;background:#000}.bloom-player-topbar{position:absolute;left:0;right:0;top:0;display:flex;justify-content:flex-end;gap:7px;padding:12px 12px 28px;background:linear-gradient(to bottom,rgba(0,0,0,.58),transparent);z-index:4}.bloom-player-icon{width:40px;height:40px;border:0;border-radius:10px;background:rgba(10,24,42,.38);color:#fff;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px);padding:0}.bloom-player-icon .material-symbols-rounded{font-size:24px}.bloom-player-center-controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:48px;z-index:4;pointer-events:none}.bloom-player-round{width:58px;height:58px;border:0;border-radius:50%;background:rgba(5,23,45,.48);color:#fff;display:flex;align-items:center;justify-content:center;padding:0;backdrop-filter:blur(5px);pointer-events:auto}.bloom-player-round .material-symbols-rounded{font-size:31px}.bloom-player-play{width:68px;height:68px;background:rgba(10,30,55,.55)}.bloom-player-play .material-symbols-rounded{font-size:38px}.bloom-player-bottom{position:absolute;left:0;right:0;bottom:0;z-index:5;padding:28px 14px 11px;background:linear-gradient(to top,rgba(0,0,0,.72),transparent);display:flex;align-items:center;gap:10px;color:#fff}.bloom-player-time{font:600 12px/1 Poppins,sans-serif;white-space:nowrap;min-width:72px;text-align:left}.bloom-player-fullscreen{border:0;background:transparent;color:#fff;padding:0;width:34px;height:28px;display:flex;align-items:center;justify-content:center}.bloom-player-fullscreen .material-symbols-rounded{font-size:23px}.bloom-player-progress{position:absolute;left:14px;right:14px;bottom:7px;width:calc(100% - 28px);height:4px;appearance:none;background:rgba(255,255,255,.25);border-radius:10px;accent-color:#ff1744}.bloom-player-progress::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:0}.bloom-player-progress::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:0}
@media (min-width:768px){.bloom-player-topbar,.bloom-player-center-controls,.bloom-player-bottom{display:none}}
.mobile-watch-meta{display:none}
.watch-title{font-size:18px!important;font-weight:700!important;line-height:1.35!important;margin:16px 16px 7px!important;color:var(--text-main,#15244a)!important}#watch-desc-meta{font-size:13px!important;margin:0 16px 12px!important}
.mobile-watch-meta{display:block!important;font-size:12px!important;color:var(--text-light,#65748b);margin:0 16px 12px!important}
.mobile-watch-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:2px 14px 12px;border-bottom:1px solid var(--border,#e5e7eb)}.mobile-watch-action{min-width:0;min-height:54px;border:0;background:var(--secondary,#eef5ff);border-radius:26px;color:var(--text-main,#172b5b);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font:600 11px/1.1 Poppins,sans-serif;text-decoration:none;touch-action:manipulation}.mobile-watch-action .material-symbols-rounded{font-size:22px;color:var(--primary,#1677ff)}
.mobile-watch-action b{font-weight:700;font-size:10px}.mobile-watch-action.active{background:#e6f0ff;color:#1261d8}.mobile-watch-action.active .material-symbols-rounded{font-variation-settings:'FILL' 1}.btn-subscribe #watch-support-count-inline{font-size:11px;margin-left:4px;opacity:.8}
.watch-actions-bar{padding:10px 16px!important;background:transparent!important;border-bottom:0!important;display:flex!important;gap:12px!important;align-items:center!important}.channel-actions-left{gap:10px!important;min-width:0!important;flex:1!important}.channel-meta-watch .name{font-size:14px!important}.channel-meta-watch .subs{font-size:11px!important}.btn-subscribe{height:38px!important;padding:0 15px!important;font-size:12px!important}.actions-right{display:none!important}
.watch-desc-box{margin:0 14px 14px!important;padding:14px!important;border-radius:16px!important;background:var(--secondary,#f2f7ff)!important;border:1px solid var(--border,#e1e9f5)!important}.watch-desc-box .desc-meta-line{font-size:12px!important}.watch-desc-box .desc-text{font-size:13px!important;line-height:1.55!important}
.comments-section{margin:0 14px 16px!important;padding:14px!important;border-radius:16px!important;background:var(--secondary,#f2f7ff)!important;border:1px solid var(--border,#e1e9f5)!important}.comments-header{font-size:17px!important;margin-bottom:12px!important}.comment-input-area{gap:8px!important}.comment-field{font-size:12px!important}.btn-comment-submit{padding:8px 12px!important;font-size:11px!important}.comment-item{gap:10px!important}.comment-text{font-size:12px!important}.comment-meta{font-size:12px!important}
.mobile-up-next{display:block;padding:0 14px}.mobile-up-next-head{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 10px;color:var(--text-main,#122247)}.mobile-up-next-head strong{font-size:19px}.mobile-up-next-head label{font-size:12px;color:var(--text-light,#65748b);display:flex;align-items:center;gap:8px}.mobile-autoplay-dot{display:inline-block;width:32px;height:18px;border-radius:12px;background:#d9e9ff;position:relative}.mobile-autoplay-dot:after{content:'';position:absolute;width:16px;height:16px;right:1px;top:1px;border-radius:50%;background:#1677ff}.mobile-up-next-item{width:100%;display:flex;gap:10px;align-items:center;border:0;background:transparent;color:inherit;padding:7px 0;text-align:left;touch-action:manipulation}.mobile-up-next-item img{width:42%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:#e7edf5}.mobile-up-next-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-up-next-info strong{font-size:13px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mobile-up-next-info small{font-size:10px;color:var(--text-light,#66748a)}.mobile-up-next-item>.material-symbols-rounded{font-size:20px;color:var(--text-light,#66748a)}
body.dark-mode .watch-title,body.dark-mode .mobile-up-next-head{color:#f4f7fb!important}body.dark-mode .mobile-watch-header{background:#111820;border-color:#27313e}
#auth-modal{z-index:60000!important;padding:0!important;background:rgba(0,0,0,.58)!important;backdrop-filter:blur(5px)!important}#auth-modal .auth-modal-card{width:calc(100% - 24px)!important;max-width:430px!important;max-height:calc(100vh - 24px)!important;border-radius:22px!important;padding:28px 20px!important;margin:auto!important;overflow-y:auto!important}#auth-modal .modal-close-btn{z-index:3;width:44px!important;height:44px!important;right:8px!important;top:8px!important}#auth-modal .form-control{font-size:16px!important;min-height:48px!important}#auth-modal .btn-primary-block,#auth-modal .google-auth-btn{min-height:50px!important;font-size:14px!important}
}
@media (min-width:768px){#watch-overlay .watch-actions-bar .btn-subscribe{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap}}

/* =========================================================
   BLOOM SIGN-IN REFERENCE UI — responsive, functional auth page
   ========================================================= */
#auth-modal.bloom-auth-page{
  position:fixed!important;
  inset:0!important;
  display:none;
  align-items:stretch!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
  z-index:60000!important;
  overflow:hidden!important;
  backdrop-filter:none!important;
}
#auth-modal.bloom-auth-page .bloom-auth-shell{
  position:relative;
  width:100%;
  min-height:100%;
  overflow:hidden!important;
  overflow-x:hidden!important;
  background:linear-gradient(180deg,#ffffff 0%,#ffffff 83%,#fffafd 100%);
  color:#10214a;
  font-family:Poppins,sans-serif;
  box-sizing:border-box;
}
.bloom-auth-close{
  position:absolute;
  right:18px;
  top:18px;
  z-index:20;
  width:42px;
  height:42px;
  border:1px solid #dbe4f3;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:#10214a;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(20,50,100,.08);
}
.bloom-auth-close .material-symbols-rounded{font-size:22px}
.bloom-auth-header{
  position:relative;
  z-index:5;
  max-width:1150px;
  margin:0 auto;
  padding:32px 42px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  box-sizing:border-box;
}
.bloom-auth-brand{display:block;width:min(306px,31vw);text-decoration:none}
.bloom-auth-logo{display:block;width:100%;height:auto;object-fit:contain}
.bloom-auth-logo.dark-logo{display:none}
body.dark-mode #auth-modal.bloom-auth-page .light-logo{display:none}
body.dark-mode #auth-modal.bloom-auth-page .dark-logo{display:block}
.bloom-auth-nav{display:flex;align-items:center;gap:22px;color:#304673;font-size:17px;font-weight:500;padding-right:22px}
.bloom-auth-nav i{font-style:normal;color:#7083a6}
.bloom-auth-content{
  position:relative;
  z-index:3;
  width:min(1150px,100%);
  margin:0 auto;
  padding:42px 42px 150px;
  box-sizing:border-box;
}
.bloom-auth-intro{
  min-height:335px;
  display:grid;
  grid-template-columns:minmax(310px,.9fr) minmax(360px,1.1fr);
  align-items:center;
  gap:18px;
}
.bloom-auth-copy{position:relative;z-index:5;padding-left:6px}
.bloom-auth-copy h1,
.bloom-auth-copy h2{margin:0;font-weight:700;letter-spacing:-1.6px;line-height:.98}
.bloom-auth-copy h1{font-size:54px;color:#101e40}
.bloom-auth-copy h2{font-size:66px;color:#f8174d;margin-top:7px}
.bloom-auth-copy p{margin:20px 0 0;color:#5d79aa;font-size:20px;line-height:1.42;font-weight:400}
.bloom-auth-visual{height:330px;position:relative;overflow:hidden;border-radius:42% 42% 48% 48%;background:radial-gradient(circle at 47% 44%,rgba(255,44,95,.14),rgba(255,255,255,0) 52%);}
.bloom-auth-hero-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;mix-blend-mode:multiply;}

.bloom-auth-glow{position:absolute;border-radius:50%;filter:blur(2px);opacity:.75}
.bloom-auth-glow-a{width:260px;height:260px;right:74px;top:15px;background:rgba(255,55,105,.12)}
.bloom-auth-glow-b{width:200px;height:200px;left:55px;bottom:-55px;background:rgba(255,157,195,.16)}
.bloom-auth-playmark{position:absolute;right:88px;top:32px;width:235px;height:118px;border-radius:58px 58px 58px 14px;transform:rotate(18deg);background:linear-gradient(135deg,#ff102e 0%,#ff174e 58%,#d500a8 100%);box-shadow:0 22px 42px rgba(242,21,78,.18);display:flex;align-items:center;justify-content:center}
.bloom-auth-playmark span{font-size:67px;color:#fff;transform:rotate(-18deg);font-variation-settings:'FILL' 1}
.bloom-auth-person{position:absolute;left:50%;bottom:-14px;transform:translateX(-50%);width:210px;height:250px}
.bloom-auth-head{position:absolute;left:67px;top:30px;width:78px;height:88px;border-radius:48% 48% 45% 45%;background:radial-gradient(circle at 40% 35%,#263047,#070c16 64%);z-index:4;box-shadow:inset -12px -7px 0 rgba(0,0,0,.2)}
.bloom-auth-headphones{position:absolute;left:49px;top:26px;width:114px;height:102px;border:9px solid #1b263e;border-bottom-color:transparent;border-radius:60px 60px 0 0;z-index:5;box-shadow:0 5px 0 #0b1322}
.bloom-auth-headphones:before,.bloom-auth-headphones:after{content:"";position:absolute;top:39px;width:23px;height:46px;border-radius:10px;background:#14213b;box-shadow:0 3px 8px rgba(0,0,0,.2)}
.bloom-auth-headphones:before{left:-15px}.bloom-auth-headphones:after{right:-15px}
.bloom-auth-body{position:absolute;left:29px;bottom:0;width:154px;height:157px;border-radius:56px 56px 14px 14px;background:linear-gradient(145deg,#1d2b49,#0a1324 72%);z-index:2}
.bloom-auth-body:before{content:"";position:absolute;left:30px;top:0;width:95px;height:120px;border-radius:40px 40px 15px 15px;background:linear-gradient(160deg,#2a3c5f,#111b30)}
.bloom-auth-backpack{position:absolute;left:10px;bottom:5px;width:185px;height:132px;border-radius:52px 52px 18px 18px;border:9px solid #182843;background:linear-gradient(160deg,#253b5e,#0e1b31);z-index:1;opacity:.95}
.bloom-auth-float{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:11px;font-weight:700;box-shadow:0 10px 22px rgba(30,60,120,.1)}
.bloom-auth-float-photo{left:18px;top:117px;width:68px;height:46px;background:linear-gradient(145deg,#5ca4ff,#e4f1ff);color:#fff;transform:rotate(-12deg);font-size:24px}
.bloom-auth-float-like{right:26px;bottom:68px;width:43px;height:43px;background:#ff174b;color:#fff;font-size:22px;transform:rotate(8deg)}
.bloom-auth-float-clap{left:40px;bottom:58px;width:42px;height:42px;background:#fff;color:#334a79;font-size:17px;transform:rotate(-8deg)}
.bloom-auth-form-card{width:min(760px,100%);margin:0 auto;position:relative;z-index:6}
.bloom-auth-field{margin:0 0 12px}
#auth-username-group{display:none!important}
.bloom-auth-field label{display:block;font-size:13px;font-weight:600;margin:0 0 6px;color:#334b7a}
.bloom-auth-field .form-control{width:100%;box-sizing:border-box}
.bloom-auth-input{height:74px;width:100%;box-sizing:border-box;display:flex;align-items:center;gap:16px;border:1.5px solid #d8e4f7;border-radius:40px;background:rgba(255,255,255,.88);padding:0 20px 0 26px;box-shadow:0 4px 18px rgba(45,79,135,.035);margin:0 0 16px}
.bloom-auth-input:focus-within{border-color:#b8cdef;box-shadow:0 0 0 4px rgba(80,132,220,.08)}
.bloom-auth-input>.material-symbols-rounded{font-size:30px;color:#102a59;flex:0 0 auto}
.bloom-auth-input input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:#10214a;font:500 19px Poppins,sans-serif}
.bloom-auth-input input::placeholder{color:#7590bd;opacity:1}
.bloom-auth-password button{width:42px;height:42px;border:0;background:transparent;color:#61779f;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;padding:0;flex:0 0 42px}
.bloom-auth-password button:hover{background:#f2f6fc}
.bloom-auth-password button .material-symbols-rounded{font-size:28px}
.bloom-auth-forgot{display:block;margin:-2px 0 18px auto;border:0;background:transparent;color:#ff174b;font:600 15px Poppins,sans-serif;cursor:pointer;padding:3px 0}
.bloom-auth-submit{width:100%;height:70px;border:0;border-radius:38px;background:linear-gradient(90deg,#ff174b 0%,#ff0d3e 100%);color:#fff;display:flex;align-items:center;justify-content:center;gap:18px;font:600 20px Poppins,sans-serif;cursor:pointer;box-shadow:0 13px 30px rgba(255,23,75,.18);transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.bloom-auth-submit:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(255,23,75,.24);filter:saturate(1.04)}
.bloom-auth-submit:active{transform:translateY(1px)}
.bloom-auth-submit .material-symbols-rounded{font-size:34px}
.bloom-auth-or{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;margin:28px 0 24px;color:#7890ba;font-size:17px}
.bloom-auth-or span{height:1px;background:#d5e0f1}.bloom-auth-or b{font-weight:600}
.bloom-google-btn{width:100%;height:70px!important;margin:0!important;border-radius:38px!important;border:1.5px solid #d8e4f7!important;background:#fff!important;color:#10214a!important;font:600 18px Poppins,sans-serif!important;box-shadow:none!important;cursor:pointer}
.bloom-google-btn:hover{background:#f8fbff!important}
.bloom-google-btn svg{flex:0 0 auto}
.bloom-auth-signup{width:100%;margin:26px 0 0;border:0;background:transparent;color:#6e87b3;font:500 16px Poppins,sans-serif;cursor:pointer;padding:5px}
.bloom-auth-signup span{color:#ff174b;font-weight:600}
.bloom-auth-waves{position:absolute;left:0;right:0;bottom:-1px;height:130px;overflow:hidden;pointer-events:none;z-index:1}
.bloom-auth-waves span{position:absolute;left:-8%;width:116%;height:130px;border-radius:50% 50% 0 0/100% 100% 0 0;transform:translateY(66px) rotate(-2deg)}
.bloom-auth-waves span:nth-child(1){background:rgba(255,65,126,.20);bottom:0}
.bloom-auth-waves span:nth-child(2){background:rgba(255,24,82,.56);bottom:-12px;transform:translateY(74px) rotate(4deg)}
.bloom-auth-waves span:nth-child(3){background:rgba(255,183,205,.45);bottom:9px;transform:translateY(84px) rotate(-5deg)}
body.dark-mode #auth-modal.bloom-auth-page .bloom-auth-shell{background:#0d141e;color:#f4f7fb}
body.dark-mode #auth-modal.bloom-auth-page .bloom-auth-copy h1{color:#f4f7fb}
body.dark-mode #auth-modal.bloom-auth-page .bloom-auth-input{background:#111a26;border-color:#2a394e}
body.dark-mode #auth-modal.bloom-auth-page .bloom-auth-input input{color:#f4f7fb}
body.dark-mode #auth-modal.bloom-auth-page .bloom-google-btn{background:#111a26!important;border-color:#2a394e!important;color:#f4f7fb!important}
body.dark-mode #auth-modal.bloom-auth-page .bloom-auth-close{background:#151f2c;color:#f4f7fb;border-color:#2a394e}

@media (max-width:767px){
  #auth-modal.bloom-auth-page .bloom-auth-shell{min-height:100dvh}
  .bloom-auth-close{top:max(12px,env(safe-area-inset-top));right:12px;width:40px;height:40px}
  .bloom-auth-header{padding:20px 20px 0;align-items:center}
  .bloom-auth-brand{width:310px;max-width:84vw}
  .bloom-auth-nav{gap:12px;padding-right:46px;font-size:13px}
  .bloom-auth-content{padding:38px 22px calc(122px + env(safe-area-inset-bottom));}
  .bloom-auth-intro{display:block;min-height:0;position:relative;padding-bottom:12px}
  .bloom-auth-copy{padding-left:2px;position:relative;z-index:8}
  .bloom-auth-copy h1{font-size:42px;letter-spacing:-1.4px}
  .bloom-auth-copy h2{font-size:52px;letter-spacing:-1.5px;margin-top:5px}
  .bloom-auth-copy p{font-size:16px;line-height:1.4;margin-top:15px}
  .bloom-auth-visual{position:absolute;right:-8px;top:18px;width:58%;height:285px;opacity:1;z-index:2}
  .bloom-auth-hero-image{object-fit:contain;object-position:center bottom;}
  .bloom-auth-playmark{right:-28px;top:10px;width:175px;height:86px}
  .bloom-auth-playmark span{font-size:48px}
  .bloom-auth-person{transform:translateX(-50%) scale(.72);transform-origin:bottom center;left:58%;bottom:-18px}
  .bloom-auth-float-photo{left:0;top:105px;transform:rotate(-12deg) scale(.75)}
  .bloom-auth-float-like{right:0;bottom:47px;transform:rotate(8deg) scale(.75)}
  .bloom-auth-float-clap{left:16px;bottom:37px;transform:rotate(-8deg) scale(.75)}
  .bloom-auth-form-card{position:relative;z-index:10;margin-top:8px}
  .bloom-auth-input{height:62px;border-radius:34px;gap:12px;padding-left:18px;padding-right:10px;margin-bottom:13px}
  .bloom-auth-input>.material-symbols-rounded{font-size:26px}
  .bloom-auth-input input{font-size:16px}
  .bloom-auth-password button{width:38px;flex-basis:38px}
  .bloom-auth-password button .material-symbols-rounded{font-size:24px}
  .bloom-auth-forgot{font-size:14px;margin:-1px 0 14px}
  .bloom-auth-submit{height:61px;border-radius:34px;font-size:17px;gap:12px}
  .bloom-auth-submit .material-symbols-rounded{font-size:29px}
  .bloom-auth-or{gap:14px;margin:22px 0 17px;font-size:14px}
  .bloom-google-btn{height:60px!important;border-radius:32px!important;font-size:15px!important}
  .bloom-auth-signup{font-size:14px;margin-top:19px}
  .bloom-auth-waves{height:92px}
  .bloom-auth-waves span{height:95px}
}

@media (min-width:768px){
  #auth-modal.bloom-auth-page .bloom-auth-shell{max-height:100vh}
}

/* BLOOM mobile auth final polish — reference-matched, no page scrolling */
@media (max-width:767px){
  #auth-modal.bloom-auth-page{
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
  }
  #auth-modal.bloom-auth-page .bloom-auth-shell{
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .bloom-auth-header{
    flex:0 0 auto!important;
    padding:16px 18px 0!important;
    min-height:68px!important;
  }
  .bloom-auth-brand{
    width:340px!important;
    max-width:88vw!important;
  }
  .bloom-auth-nav{
    gap:9px!important;
    padding-right:42px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .bloom-auth-content{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
    padding:18px 18px 64px!important;
    width:100%!important;
  }
  .bloom-auth-intro{
    height:226px!important;
    min-height:226px!important;
    padding-bottom:0!important;
  }
  .bloom-auth-copy h1{font-size:38px!important;line-height:.96!important;}
  .bloom-auth-copy h2{font-size:49px!important;line-height:.96!important;margin-top:4px!important;}
  .bloom-auth-copy p{font-size:14px!important;line-height:1.34!important;margin-top:12px!important;}
  .bloom-auth-visual{
    right:-2px!important;
    top:2px!important;
    width:51%!important;
    height:220px!important;
    border-radius:40%!important;
  }
  .bloom-auth-hero-image{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  .bloom-auth-form-card{
    margin-top:0!important;
    width:100%!important;
  }
  .bloom-auth-input{
    height:56px!important;
    margin-bottom:10px!important;
    padding-left:16px!important;
    padding-right:8px!important;
    gap:10px!important;
  }
  .bloom-auth-input>.material-symbols-rounded{font-size:24px!important;}
  .bloom-auth-input input{font-size:15px!important;}
  .bloom-auth-password button{width:36px!important;flex-basis:36px!important;}
  .bloom-auth-password button .material-symbols-rounded{font-size:22px!important;}
  .bloom-auth-forgot{font-size:13px!important;margin:-1px 0 10px!important;}
  .bloom-auth-submit{height:56px!important;font-size:16px!important;gap:10px!important;}
  .bloom-auth-submit .material-symbols-rounded{font-size:27px!important;}
  .bloom-auth-or{gap:12px!important;margin:15px 0 12px!important;font-size:13px!important;}
  .bloom-google-btn{height:54px!important;border-radius:30px!important;font-size:14px!important;}
  .bloom-google-btn svg{width:21px!important;height:21px!important;}
  .bloom-auth-signup{font-size:13px!important;margin-top:10px!important;}
  .bloom-auth-waves{height:58px!important;}
  .bloom-auth-waves span{height:62px!important;}
}


/* BLOOM auth final: never allow the sign-in/sign-up page itself to scroll.
   The complete auth composition stays inside the viewport. */
html:has(#auth-modal.bloom-auth-page[aria-hidden="false"]),
body:has(#auth-modal.bloom-auth-page[aria-hidden="false"]) {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
#auth-modal.bloom-auth-page,
#auth-modal.bloom-auth-page .bloom-auth-shell,
#auth-modal.bloom-auth-page .bloom-auth-content {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (max-width: 767px) {
  #auth-modal.bloom-auth-page { overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; }
  #auth-modal.bloom-auth-page .bloom-auth-shell { height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important }
  #auth-modal.bloom-auth-page .bloom-auth-content { flex:0 0 auto!important;min-height:0!important;height:auto!important;overflow:visible!important;padding-bottom:calc(160px + env(safe-area-inset-bottom))!important }
}

/* ==========================================================
   BLOOM SETTINGS — REFERENCE MOBILE THEME
   ========================================================== */
@media (max-width: 767px) {
  #settings-modal { background:#f7f9fc !important; }
  #settings-modal .settings-modal-card { background:#f7f9fc !important; }
  #settings-modal .modal-close-btn {
    left:10px !important;
    right:auto !important;
    top:12px !important;
    width:40px !important;
    height:40px !important;
    background:transparent !important;
    color:#15243a !important;
    box-shadow:none !important;
  }
  #settings-modal .settings-modal-header {
    min-height:68px !important;
    padding:0 16px 0 58px !important;
    display:flex !important;
    align-items:center !important;
    border-bottom:0 !important;
    background:#f7f9fc !important;
  }
  #settings-modal .settings-modal-header h2 {
    font-size:21px !important;
    font-weight:750 !important;
    color:#142238 !important;
  }
  #settings-modal .settings-modal-header p,
  #settings-modal .settings-header-icon,
  #settings-modal .settings-summary-bar { display:none !important; }
  #settings-modal > .settings-modal-card > form,
  #settings-modal .settings-modal-card > form {
    background:#f7f9fc !important;
    padding:0 12px 112px !important;
  }
  #settings-modal .settings-section {
    margin:8px 0 !important;
    padding:13px !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 1px 2px rgba(20,34,56,.03) !important;
  }
  #settings-modal .settings-section-label,
  #settings-modal .form-group label {
    color:#17263b !important;
    font-size:14px !important;
    font-weight:650 !important;
  }
  #settings-modal .settings-avatar-flex {
    grid-template-columns:64px minmax(0,1fr) !important;
    min-height:64px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  #settings-modal .settings-avatar-preview {
    width:64px !important;
    height:64px !important;
    border-radius:50% !important;
  }
  #settings-modal .settings-avatar-controls::before {
    content:'Update Profile Picture' !important;
    display:block !important;
    color:#17263b !important;
    font-size:14px !important;
    font-weight:700 !important;
  }
  #settings-modal .settings-avatar-controls::after {
    content:'JPG, PNG (Max 5MB)' !important;
    display:block !important;
    color:#5b7395 !important;
    font-size:12px !important;
    margin-top:3px !important;
  }
  #settings-modal .settings-avatar-controls .settings-upload-row {
    display:block !important;
    margin-top:5px !important;
  }
  #settings-modal .settings-avatar-controls .btn-photo-upload {
    min-height:0 !important;
    padding:0 !important;
    color:#315c93 !important;
    justify-content:flex-start !important;
    font-size:12px !important;
  }
  #settings-modal .settings-avatar-controls .btn-remove-photo { display:none !important; }
  #settings-modal #settings-banner-section {
    padding:12px !important;
  }
  #settings-modal #settings-banner-section > div:first-child { display:none !important; }
  #settings-modal .settings-banner-preview-box {
    height:68px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:10px !important;
  }
  #settings-modal .settings-banner-preview-box[data-has-banner="1"] { background:#fff !important; }
  #settings-modal .settings-banner-controls { display:none !important; }
  #settings-modal .settings-banner-preview-box:after {
    content:'Add channel banner' !important;
    font-size:12px !important;
  }
  #settings-modal .settings-section:has(#settings-name-input) .form-group { margin:0 !important; }
  #settings-modal .settings-section:has(#settings-name-input) .form-group label {
    display:block !important;
    margin-bottom:7px !important;
  }
  #settings-modal #settings-name-input {
    height:44px !important;
    min-height:44px !important;
    background:#f8fafc !important;
    border:1px solid #dce5ef !important;
    color:#142238 !important;
    border-radius:11px !important;
  }
  #settings-modal .theme-toggle-row { gap:10px !important; }
  #settings-modal .theme-choice-btn {
    min-height:54px !important;
    border-radius:12px !important;
    border:1px solid #dce5ef !important;
    background:#fff !important;
  }
  #settings-modal .settings-section:has(#settings-bio-input) { display:none !important; }
  #settings-modal .settings-actions-bar {
    background:#fff !important;
    border-top:1px solid #e2e8f0 !important;
  }
}

/* Account sign-out control: remains available from Settings on desktop and mobile. */
.settings-signout-row {
  padding: 12px 0 2px;
}
.settings-signout-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.settings-signout-btn:hover {
  background: rgba(220, 38, 38, 0.12);
}
.settings-signout-btn:active {
  transform: scale(.98);
}
body.dark-mode .settings-signout-btn {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}
.bloom-mobile-settings-actions { display: none; }

/* ==========================================================
   BLOOM SETTINGS — MOBILE SIGN OUT AND SHORTCUTS
   ========================================================== */
@media (max-width: 767px) {
  #settings-modal #channel-settings-form > .settings-signout-row {
    display: none !important;
  }

  #settings-modal .bloom-mobile-settings-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    order: 6 !important;
  }

  #settings-modal .bloom-mobile-settings-actions > .settings-signout-btn {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
  }

  #settings-modal .bloom-mobile-settings-actions > .bloom-mobile-settings-links {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
  }

  #settings-modal .bloom-mobile-settings-links {
    display: block !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px rgba(20,34,56,.03) !important;
  }

  #settings-modal .bloom-mobile-settings-link {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #17263b !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: left !important;
    font: 500 12px/1.2 Poppins, sans-serif !important;
  }

  #settings-modal .bloom-mobile-settings-link:last-child {
    border-bottom: 0 !important;
  }

  #settings-modal .bloom-mobile-settings-link .material-symbols-rounded:first-child {
    font-size: 19px !important;
    color: #405673 !important;
    flex: 0 0 20px !important;
  }

  #settings-modal .bloom-mobile-settings-link .chevron,
  #settings-modal .settings-signout-btn .chevron {
    margin-left: auto !important;
    font-size: 18px !important;
    color: #8ba0ba !important;
  }

  #settings-modal .settings-signout-row {
    margin: 8px 0 4px !important;
    padding: 0 !important;
  }

  #settings-modal .settings-signout-btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    font: 600 12px/1.2 Poppins, sans-serif !important;
    box-shadow: 0 1px 2px rgba(20,34,56,.03) !important;
    text-align: left !important;
  }

  #settings-modal .settings-signout-btn > .material-symbols-rounded:first-child {
    font-size: 19px !important;
    color: #dc2626 !important;
    flex: 0 0 20px !important;
  }

  #settings-modal .settings-signout-btn:active {
    transform: none !important;
    background: #fff5f5 !important;
  }

  /* Keep the existing Save Changes functionality available below the
     reference UI; it remains the actual persistence control. */
  #settings-modal .settings-actions-bar {
    margin-top: 12px !important;
  }
}

/* Mobile reference card inserted after the channel banner. */
.settings-mobile-profile-reference { display:none; }
@media (max-width: 767px) {
  #settings-modal .settings-modal-card > form {
    display:flex !important;
    flex-direction:column !important;
  }
  #settings-modal .settings-modal-card > form > .settings-section:nth-of-type(1) { order:1 !important; }
  #settings-modal .settings-modal-card > form > #settings-banner-section { order:3 !important; }
  #settings-modal .settings-modal-card > form > .settings-section:has(#settings-name-input) { order:2 !important; }
  #settings-modal .settings-mobile-profile-reference { order:4 !important; }
  #settings-modal .settings-modal-card > form > .settings-section:has(.theme-toggle-row) { order:5 !important; }
  #settings-modal .settings-modal-card > form > .settings-section:has(#settings-bio-input),
  #settings-modal .settings-modal-card > form > .bloom-rules-section { order:6 !important; }
  #settings-modal .settings-modal-card > form > .settings-signout-row { order:7 !important; }
  #settings-modal .settings-modal-card > form > .bloom-mobile-settings-links { order:8 !important; }
  #settings-modal .settings-modal-card > form > .settings-save-progress { order:9 !important; }
  #settings-modal .settings-modal-card > form > .settings-actions-bar { order:10 !important; }

  #settings-modal .settings-mobile-profile-reference {
    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) 28px !important;
    align-items:center !important;
    gap:11px !important;
    min-height:66px !important;
    margin:8px 0 !important;
    padding:9px 10px !important;
    border:1px solid #e2e8f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 1px 2px rgba(20,34,56,.03) !important;
  }
  #settings-modal .settings-mobile-reference-avatar {
    width:48px !important;
    height:48px !important;
    border-radius:50% !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:linear-gradient(135deg,#d9e8ff,#b9cfff) !important;
    color:#315c93 !important;
    font-weight:700 !important;
    font-size:18px !important;
  }
  #settings-modal .settings-mobile-reference-avatar img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
  #settings-modal .settings-mobile-reference-copy {
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:3px !important;
  }
  #settings-modal .settings-mobile-reference-copy strong {
    color:#17263b !important;
    font:700 12px/1.2 Poppins,sans-serif !important;
  }
  #settings-modal .settings-mobile-reference-copy span {
    color:#6d82a0 !important;
    font:500 10px/1.2 Poppins,sans-serif !important;
  }
  #settings-modal .settings-mobile-reference-action {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#7890aa !important;
    cursor:pointer !important;
  }
  #settings-modal .settings-mobile-reference-action .material-symbols-rounded { font-size:20px !important; }

  /* Reference-style channel-name card with the edit affordance. */
  #settings-modal .settings-section:has(#settings-name-input) { position:relative !important; }
  #settings-modal .settings-section:has(#settings-name-input)::after {
    content:'edit' !important;
    font-family:'Material Symbols Rounded' !important;
    position:absolute !important;
    right:22px !important;
    bottom:23px !important;
    font-size:18px !important;
    color:#61799b !important;
    pointer-events:none !important;
  }

  /* Reference-style chevrons on the three top cards. */
  #settings-modal .settings-modal-card > form > .settings-section:nth-of-type(1),
  #settings-modal #settings-banner-section,
  #settings-modal .settings-section:has(#settings-name-input) {
    position:relative !important;
  }
  #settings-modal .settings-modal-card > form > .settings-section:nth-of-type(1)::after,
  #settings-modal #settings-banner-section::after {
    content:'chevron_right' !important;
    font-family:'Material Symbols Rounded' !important;
    position:absolute !important;
    right:13px !important;
    top:18px !important;
    font-size:18px !important;
    color:#7890aa !important;
    pointer-events:none !important;
  }
}

/* =========================================================
   BLOOM VIDEO THREE-DOT MENUS
   Visible on video cards and beside the channel/title area
   on the watch page. The menu never changes the video record
   until the creator explicitly chooses Edit or Delete.
   ========================================================= */
.bloom-video-actions-wrap,
.watch-video-owner-menu-wrap {
  position: absolute;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bloom-video-actions-wrap { top: 9px; right: 9px; }
.watch-video-owner-menu-wrap {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}
.bloom-video-more-btn,
.watch-video-more-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(12, 24, 43, .72);
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  touch-action: manipulation;
}
.bloom-video-more-btn .material-symbols-rounded,
.watch-video-more-btn .material-symbols-rounded { font-size: 24px; }
.bloom-video-more-btn:hover,
.watch-video-more-btn:hover { background: rgba(12, 24, 43, .9); }
.watch-video-more-btn {
  color: var(--text-main, #172b5b);
  background: var(--secondary, #eef5ff);
  box-shadow: none;
}
.watch-video-more-btn:hover { background: #e2edff; }
.bloom-video-actions-menu,
.watch-video-actions-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--border, #dce5f2);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  box-shadow: 0 14px 36px rgba(15, 31, 55, .20);
  display: none;
  z-index: 100;
}
.watch-video-actions-menu { top: 48px; right: 0; }
.bloom-video-actions-menu.is-open,
.watch-video-actions-menu.is-open { display: block; }
.bloom-video-actions-menu button,
.watch-video-actions-menu button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main, #172b5b);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  font: 600 13px/1.2 Poppins, sans-serif;
  text-align: left;
  cursor: pointer;
}
.bloom-video-actions-menu button:hover,
.watch-video-actions-menu button:hover { background: var(--secondary, #eef5ff); }
.bloom-video-actions-menu button.delete,
.watch-video-actions-menu button.delete { color: #e11d48; }
.bloom-video-actions-menu button .material-symbols-rounded,
.watch-video-actions-menu button .material-symbols-rounded { font-size: 21px; }
@media (max-width: 767px) {
  .bloom-video-more-btn { width: 38px; height: 38px; }
  .bloom-video-more-btn .material-symbols-rounded { font-size: 22px; }
  .watch-video-owner-menu-wrap { margin-left: 2px; }
  .watch-video-more-btn { width: 42px; height: 42px; }
  .watch-video-actions-menu { min-width: 174px; }
}
body.dark-mode .watch-video-more-btn { color: #f4f7fb; background: #1b2737; }
body.dark-mode .bloom-video-actions-menu,
body.dark-mode .watch-video-actions-menu { background: #151d27; border-color: #2a3747; }
body.dark-mode .bloom-video-actions-menu button,
body.dark-mode .watch-video-actions-menu button { color: #f4f7fb; }

/* ==========================================================
   BLOOM MOBILE WATCH PLAYER — reference-style red controls
   ========================================================== */
@media (max-width: 767px){
  #watch-overlay{
    background:#fff !important;
    color:#10295b;
  }
  #watch-overlay .mobile-watch-header{
    background:#fff;
    border-bottom:1px solid #edf0f5;
  }
  #watch-overlay .mobile-watch-head-btn .material-symbols-rounded,
  #watch-overlay .mobile-watch-back .material-symbols-rounded{
    color:#0f2858;
  }
  #watch-overlay .player-box{
    background:#000;
    border-radius:0 0 14px 14px !important;
  }
  #watch-overlay .bloom-mobile-player{
    background:#000;
  }
  #watch-overlay .bloom-player-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:rgba(9,23,45,.52);
    border:1px solid rgba(255,255,255,.16);
  }
  #watch-overlay .bloom-player-icon.is-active{
    background:#ff1744;
  }
  #watch-overlay .bloom-player-round{
    background:rgba(8,25,48,.62);
    box-shadow:0 5px 18px rgba(0,0,0,.22);
  }
  #watch-overlay .bloom-player-play{
    width:72px;
    height:72px;
    background:rgba(10,31,57,.68);
  }
  #watch-overlay .bloom-player-progress{
    accent-color:#ff1744;
    background:rgba(255,255,255,.28);
  }
  #watch-overlay .bloom-player-progress::-webkit-slider-thumb{background:#ff1744;width:16px;height:16px;box-shadow:0 0 0 3px #fff}
  #watch-overlay .bloom-player-progress::-moz-range-thumb{background:#ff1744;width:16px;height:16px;border:3px solid #fff}
  #watch-overlay .watch-title{
    color:#10295b !important;
  }
  #watch-overlay .mobile-watch-meta{color:#5873a5 !important}
  #watch-overlay .mobile-watch-actions .mobile-watch-action{
    background:#fff1f4;
    color:#142d5d;
    border:1px solid #ffe0e7;
  }
  #watch-overlay .mobile-watch-actions .mobile-watch-action .material-symbols-rounded{
    color:#ff1744;
  }
  #watch-overlay .watch-actions-bar .btn-subscribe{
    background:#fff0f4 !important;
    color:#ef1745 !important;
    border:1px solid #ffd4df !important;
  }
  #watch-overlay .watch-video-more-btn{
    color:#e91646;
    background:#fff0f4;
    box-shadow:none;
    border:1px solid #ffd4df;
  }
  #watch-overlay .watch-video-more-btn .material-symbols-rounded{color:#e91646}
  #watch-overlay .watch-desc-box,
  #watch-overlay .comments-section{
    background:#fff7f9 !important;
    border-color:#ffe0e7 !important;
  }
  #watch-overlay .mobile-up-next-item .material-symbols-rounded{color:#e91646}

  /* YouTube-like player settings popover */
  #watch-overlay .bloom-player-settings{
    position:absolute;
    right:10px;
    top:58px;
    width:184px;
    padding:8px;
    border-radius:14px;
    background:rgba(13,22,38,.97);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 14px 35px rgba(0,0,0,.38);
    opacity:0;
    transform:translateY(-5px) scale(.98);
    pointer-events:none;
    transition:opacity .16s ease,transform .16s ease;
    z-index:30;
  }
  #watch-overlay .bloom-player-settings.is-open{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
  }
  #watch-overlay .bloom-player-settings-title{
    color:#fff;
    font:600 12px/1.2 Poppins,sans-serif;
    padding:7px 9px 8px;
    opacity:.72;
  }
  #watch-overlay .bloom-player-settings button{
    width:100%;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border:0;
    border-radius:9px;
    padding:0 10px;
    background:transparent;
    color:#fff;
    font:500 13px/1 Poppins,sans-serif;
    text-align:left;
  }
  #watch-overlay .bloom-player-settings button:hover,
  #watch-overlay .bloom-player-settings button.is-selected{
    background:rgba(255,23,68,.2);
    color:#ff5578;
  }
  #watch-overlay .bloom-player-settings button span{color:#ff1744;font-weight:800}
}

@media (min-width:768px){
  #watch-overlay .bloom-player-settings{display:none}
}

/* BLOOM video watch page — closer to the supplied mobile reference. */
@media (max-width:767px){
  #watch-overlay .mobile-watch-header{height:70px!important;padding:env(safe-area-inset-top) 9px 0!important;gap:3px!important;box-sizing:content-box!important}
  #watch-overlay .mobile-watch-logo{width:128px!important;height:42px!important}
  #watch-overlay .mobile-watch-head-btn{width:42px!important;height:42px!important;color:#10295b!important}
  #watch-overlay .mobile-watch-head-btn .material-symbols-rounded{font-size:25px!important}
  #watch-overlay .player-box{aspect-ratio:16/9!important;border-radius:0!important}
  #watch-overlay .bloom-mobile-player{height:100%!important}
  #watch-overlay .bloom-player-topbar{padding:12px 10px 30px!important;justify-content:space-between!important;background:linear-gradient(to bottom,rgba(0,0,0,.62),transparent)!important}
  #watch-overlay .bloom-player-topbar:before{content:'keyboard_arrow_down';font-family:'Material Symbols Rounded';font-size:32px;line-height:40px;color:#fff;width:40px;height:40px;display:flex;align-items:center;justify-content:center}
  #watch-overlay .bloom-player-icon{width:42px!important;height:42px!important;border-radius:9px!important;background:rgba(5,20,38,.42)!important;border:0!important}
  #watch-overlay .bloom-player-icon .material-symbols-rounded{font-size:24px!important}
  #watch-overlay .bloom-player-center-controls{gap:46px!important}
  #watch-overlay .bloom-player-round{width:62px!important;height:62px!important;background:rgba(4,25,49,.58)!important}
  #watch-overlay .bloom-player-round .material-symbols-rounded{font-size:31px!important}
  #watch-overlay .bloom-player-play{width:70px!important;height:70px!important;background:rgba(4,25,49,.64)!important}
  #watch-overlay .bloom-player-play .material-symbols-rounded{font-size:38px!important}
  #watch-overlay .bloom-player-bottom{padding:26px 16px 12px!important}
  #watch-overlay .bloom-player-time{font-size:13px!important;min-width:82px!important}
  #watch-overlay .bloom-player-fullscreen{order:3!important;margin-left:auto!important;width:36px!important}
  #watch-overlay .bloom-player-progress{left:24px!important;right:24px!important;width:calc(100% - 48px)!important;bottom:8px!important;height:5px!important;background:rgba(255,255,255,.3)!important;accent-color:#ff1744!important}
  #watch-overlay .bloom-player-progress::-webkit-slider-thumb{width:18px!important;height:18px!important;background:#ff1744!important;border:3px solid #fff!important;box-shadow:none!important}
  #watch-overlay .watch-title{font-size:20px!important;line-height:1.32!important;margin:18px 24px 7px!important;color:#10295b!important}
  #watch-overlay .mobile-watch-meta{font-size:13px!important;margin:0 24px 12px!important;color:#5873a5!important}
  #watch-overlay .watch-actions-bar{padding:10px 24px!important}
  #watch-overlay .channel-actions-left{gap:9px!important}
  #watch-overlay .channel-meta-watch .name{font-size:16px!important}
  #watch-overlay .channel-meta-watch .subs{font-size:12px!important}
  #watch-overlay .btn-subscribe{height:40px!important;border-radius:22px!important;background:#fff0f4!important;color:#ef1745!important;border:1px solid #ffd4df!important}
  #watch-overlay .watch-video-more-btn{width:40px!important;height:40px!important;background:transparent!important;border:0!important;color:#e91646!important}
  #watch-overlay .watch-video-actions-menu{right:0!important;top:45px!important;min-width:180px!important}
  #watch-overlay .mobile-watch-actions{padding:4px 22px 14px!important;gap:10px!important;border-bottom:0!important}
  #watch-overlay .mobile-watch-action{min-height:52px!important;border-radius:28px!important;background:#fff1f4!important;border:1px solid #ffe0e7!important}
  #watch-overlay .watch-desc-box{margin:0 22px 16px!important;padding:16px!important;border-radius:17px!important;background:#fff7f9!important;border:1px solid #ffe0e7!important}
  #watch-overlay .comments-section{margin:0 22px 16px!important;border-radius:17px!important;background:#fff7f9!important;border:1px solid #ffe0e7!important}
}
@media (min-width:768px){
  #watch-overlay .bloom-player-topbar:before{display:none}
}

/* =========================================================
   BLOOM VIDEO WATCH — FINAL REFERENCE MATCH (MOBILE ONLY)
   ========================================================= */
@media (max-width:767px){
  #watch-overlay{top:0!important;left:0!important;right:0!important;bottom:0!important;padding:0!important;background:#fff!important;z-index:50000!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  #watch-overlay .watch-container{width:100%!important;max-width:none!important;margin:0!important;padding:0 0 28px!important;background:#fff!important}
  .mobile-watch-header{height:72px!important;box-sizing:border-box!important;padding:calc(env(safe-area-inset-top) + 5px) 10px 0!important;background:#fff!important;border:0!important;position:sticky!important;top:0!important;z-index:100!important;box-shadow:0 1px 0 rgba(16,32,74,.04)!important}
  .mobile-watch-back,.mobile-watch-head-btn{color:#0d2453!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important}
  .mobile-watch-back .material-symbols-rounded{font-size:30px!important}.mobile-watch-head-btn .material-symbols-rounded{font-size:25px!important}
  .mobile-watch-logo{width:137px!important;height:48px!important;object-fit:contain!important;object-position:left center!important;margin-right:auto!important}
  .player-box{width:100%!important;aspect-ratio:16/9!important;height:auto!important;border-radius:0!important;background:#000!important;box-shadow:none!important}
  #watch-overlay .player-box.is-portrait-video{width:min(100%,430px)!important;aspect-ratio:9/16!important;height:auto!important;margin:0 auto!important;overflow:hidden!important}
  #watch-overlay .player-box.is-portrait-video .real-video-player{object-fit:contain!important}
  #watch-overlay .bloom-mobile-player:fullscreen,#watch-overlay .bloom-mobile-player:-webkit-full-screen{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;aspect-ratio:auto!important;border-radius:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
  #watch-overlay .bloom-mobile-player:fullscreen.bloom-landscape-fallback,#watch-overlay .bloom-mobile-player:-webkit-full-screen.bloom-landscape-fallback{inset:auto!important;left:50%!important;top:50%!important;width:max(100vw,100vh)!important;height:min(100vw,100vh)!important;transform:translate(-50%,-50%) rotate(90deg)!important;transform-origin:center center!important}
  #watch-overlay .bloom-mobile-player:fullscreen .real-video-player,#watch-overlay .bloom-mobile-player:-webkit-full-screen .real-video-player{width:100vw!important;height:100vh!important;height:100dvh!important;object-fit:contain!important}
  #watch-overlay .bloom-mobile-player:fullscreen.bloom-landscape-fallback .real-video-player,#watch-overlay .bloom-mobile-player:-webkit-full-screen.bloom-landscape-fallback .real-video-player{width:max(100vw,100vh)!important;height:min(100vw,100vh)!important;object-fit:contain!important}
  #watch-overlay .player-box.is-portrait-video .bloom-mobile-player:fullscreen .real-video-player,#watch-overlay .player-box.is-portrait-video .bloom-mobile-player:-webkit-full-screen .real-video-player{object-fit:cover!important}
  .bloom-mobile-player{width:100%!important;height:100%!important;background:#000!important}
  .bloom-mobile-player .real-video-player{width:100%!important;height:100%!important;object-fit:cover!important;background:#000!important;touch-action:none!important;transition:transform .12s ease-out!important;will-change:transform!important}
  .bloom-player-topbar{top:0!important;right:0!important;left:0!important;justify-content:flex-end!important;padding:11px 13px 42px!important;gap:10px!important;background:linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,0))!important}
  .bloom-player-topbar:before{content:'⌄';position:absolute;left:24px;top:8px;color:#fff;font:700 36px/1 Arial,sans-serif;opacity:.96;pointer-events:none}
  .bloom-player-icon{width:38px!important;height:38px!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;color:#fff!important}
  .bloom-player-icon .material-symbols-rounded{font-size:27px!important}
  .bloom-player-center-controls{gap:36px!important}
  .bloom-player-round{width:64px!important;height:64px!important;background:rgba(3,22,45,.54)!important;box-shadow:none!important}
  .bloom-player-round .material-symbols-rounded{font-size:31px!important}
  .bloom-player-play{width:76px!important;height:76px!important;background:rgba(4,28,55,.62)!important}
  .bloom-player-play .material-symbols-rounded{font-size:43px!important}
  .bloom-player-bottom{padding:36px 23px 14px!important;background:linear-gradient(0deg,rgba(0,0,0,.75),transparent)!important}
  .bloom-player-time{font-size:15px!important;min-width:90px!important;text-shadow:0 1px 2px #000!important}
  .bloom-player-fullscreen{width:38px!important;height:32px!important}.bloom-player-fullscreen .material-symbols-rounded{font-size:27px!important}
  .bloom-player-progress{left:24px!important;right:24px!important;width:calc(100% - 48px)!important;bottom:7px!important;height:5px!important;background:rgba(255,255,255,.32)!important;accent-color:#ff1744!important}
  .bloom-player-progress::-webkit-slider-thumb{width:16px!important;height:16px!important;background:#fff!important;border:3px solid #ff1744!important}
  .bloom-player-settings{position:absolute!important;right:12px!important;top:53px!important;min-width:188px!important;padding:8px!important;border-radius:14px!important;background:rgba(8,20,38,.97)!important;box-shadow:0 12px 32px rgba(0,0,0,.35)!important;color:#fff!important;z-index:20!important}
  .bloom-player-settings button{height:38px!important;border:0!important;background:transparent!important;color:#fff!important;width:100%!important;text-align:left!important;padding:0 11px!important;border-radius:9px!important;font:600 13px Poppins,sans-serif!important}
  .bloom-player-settings button:hover,.bloom-player-settings button.active{background:rgba(255,23,68,.22)!important}
  .bloom-player-settings-title{padding:6px 11px 8px!important;color:#fff!important;font:700 13px Poppins,sans-serif!important}
  .watch-title{font-size:20px!important;line-height:1.34!important;margin:20px 24px 7px!important;color:#10285d!important;letter-spacing:-.2px!important}
  .mobile-watch-meta{font-size:13px!important;color:#58709b!important;margin:0 24px 12px!important}
  .watch-actions-bar{padding:8px 24px 10px!important;gap:10px!important}
  .channel-actions-left{gap:11px!important}
  .channel-avatar{width:56px!important;height:56px!important;min-width:56px!important;border-radius:50%!important;background:#082052!important;color:#fff!important;overflow:hidden!important}
  .channel-meta-watch .name{font-size:18px!important;color:#10285d!important;font-weight:700!important}.channel-meta-watch .subs{font-size:14px!important;color:#58709b!important}
  .btn-subscribe{height:44px!important;padding:0 17px!important;border-radius:24px!important;background:#fff0f4!important;color:#ff1744!important;font-size:13px!important;border:0!important}
  .watch-video-owner-menu-wrap{margin-left:auto!important}.watch-video-more-btn{color:#17366f!important}
  .mobile-watch-actions{grid-template-columns:repeat(4,1fr)!important;gap:8px!important;padding:2px 24px 14px!important;border:0!important}
  .mobile-watch-action{min-height:54px!important;border-radius:28px!important;background:#fff2f6!important;color:#122d61!important;font-size:12px!important;border:0!important}
  .mobile-watch-action .material-symbols-rounded{font-size:23px!important;color:#ff1744!important}.mobile-watch-action.active{background:#ffe7ee!important;color:#ff1744!important}
  .watch-desc-box{margin:0 24px 18px!important;padding:16px!important;border-radius:17px!important;background:#fff7fa!important;border:0!important}
  .watch-desc-box .desc-meta-line{display:none!important}.watch-desc-box .desc-text{font-size:14px!important;line-height:1.62!important;color:#173b77!important}
  .comments-section{margin:0 24px 18px!important;padding:16px!important;border-radius:17px!important;background:#fff7fa!important;border:0!important}
  .comments-header{font-size:18px!important;color:#10285d!important}.comment-text{font-size:13px!important;color:#173b77!important}
  .mobile-up-next{padding:0 24px!important}.mobile-up-next-head{margin:20px 0 10px!important}.mobile-up-next-head strong{font-size:21px!important;color:#10285d!important}
  .mobile-autoplay-dot{background:#ff1744!important}.mobile-autoplay-dot:after{background:#fff!important}
  .mobile-autoplay-toggle[aria-pressed="false"] .mobile-autoplay-dot{background:#d4dbe5!important}
  .mobile-autoplay-toggle[aria-pressed="false"] .mobile-autoplay-dot:after{background:#fff!important}
  .mobile-up-next-item{padding:8px 0!important}.mobile-up-next-item img{width:40%!important;border-radius:9px!important}.mobile-up-next-info strong{font-size:14px!important;color:#10285d!important}.mobile-up-next-info small{font-size:12px!important;color:#58709b!important}
}
