/* FocusLoop 2-Color Minimalist Brand Design System
   Strictly Preserving the Earthy Clay & Obsidian Palette:
   - Primary Base Canvas: Warm Natural Sand / Earthy Clay (#b8b1a5)
   - Secondary / Accent: Solid Obsidian / Deep Charcoal Black (#141414)
   - Card Tone: Refined Earthy Stone (#a7a094)
   - Hover Card: #9e978b
   - Sub-pills & chips: #938c80 / #c2bbb0
   - Zero AI icons, pure typography & clean pills.
*/

:root {
  --brand-bg: #b8b1a5;
  --brand-card: #a7a094;
  --brand-card-hover: #9e978b;
  --brand-card-darker: #968f83;
  --brand-pill: #938c80;
  --brand-pill-light: #c2bbb0;
  --brand-dark: #141414;
  --brand-dark-subtle: #242424;
  --brand-text: #141414;
  --brand-text-muted: #383838;
  --brand-border: rgba(20, 20, 20, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-inner: 14px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-bg);
  color: var(--brand-text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   TOP BRAND NAVBAR
   ======================================================== */
.brand-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--brand-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link.active {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-nav-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Solid Obsidian Pill Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: var(--brand-dark);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--brand-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.pill-btn:hover {
  background-color: var(--brand-dark-subtle);
  transform: translateY(-1px);
}

.pill-btn-outline {
  background-color: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
}

.pill-btn-outline:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.pill-btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.pill-btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ========================================================
   MAIN SIMPLIFIED FLOW CONTAINER
   ======================================================== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.ux-flow-wrapper {
  display: flex;
  flex-direction: column;
}

/* Flow Title Header */
.flow-header {
  text-align: center;
  margin-bottom: 28px;
}

.flow-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.flow-header p {
  font-size: 1.02rem;
  color: var(--brand-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ========================================================
   FLOW CARDS (Steps matching the Notebook Sketch)
   ======================================================== */
.flow-card {
  background-color: var(--brand-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(20, 20, 20, 0.05);
  border: 1px solid rgba(20, 20, 20, 0.08);
  position: relative;
  transition: transform 0.2s ease;
}

.flow-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-badge {
  background-color: var(--brand-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.flow-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.flow-desc {
  font-size: 0.95rem;
  color: var(--brand-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Downward Connector Arrow */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  position: relative;
}

.connector-line {
  width: 2px;
  height: 20px;
  background-color: var(--brand-dark);
  opacity: 0.35;
}

.connector-arrow {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-dark);
  opacity: 0.85;
}

/* Unconnected Prompt Box */
.account-prompt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--brand-card-hover);
  padding: 20px 24px;
  border-radius: var(--radius-inner);
  border: 1.5px dashed var(--brand-dark);
  gap: 16px;
  flex-wrap: wrap;
}

.prompt-icon-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.prompt-avatar-unconnected {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--brand-dark);
  border: 2px dashed var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.prompt-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prompt-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.prompt-sub {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
}

.account-connect-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--brand-card-hover);
  padding: 18px 24px;
  border-radius: var(--radius-inner);
  border: 1.5px solid var(--brand-dark);
}

.account-info-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.account-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand-dark);
}

.account-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-text-muted);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-connected-verified {
  background-color: var(--brand-dark);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ========================================================
   STAGE 3: AUTHENTIC YOUTUBE BROWSING EXPERIENCE (NO SHORTS)
   ======================================================== */

.page-container.wide-mode {
  max-width: 1280px;
  transition: max-width 0.3s ease;
}

.yt-stage-container {
  background-color: var(--brand-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 6px 28px rgba(20, 20, 20, 0.08);
  border: 1px solid rgba(20, 20, 20, 0.12);
  position: relative;
}

/* 1. Sticky Break HUD Banner */
.yt-break-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-inner);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.18);
  position: sticky;
  top: 14px;
  z-index: 40;
}

.sticky-timer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-hud-pulse {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  animation: hudPulse 1.8s infinite ease-in-out;
}

@keyframes hudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sticky-timer-meta {
  display: flex;
  flex-direction: column;
}

.sticky-timer-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.sticky-timer-clock {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.yt-hud-center {
  display: flex;
  align-items: center;
}

.block-shorts-badge {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-btn-finish {
  background-color: #ffffff;
  color: var(--brand-dark);
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pill-btn-finish:hover {
  background-color: #f1ede6;
  color: var(--brand-dark);
}

/* Google Account Status & Direct Launch Bar */
.yt-google-account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--brand-card-hover);
  border: 1.5px solid var(--brand-dark);
  border-radius: var(--radius-inner);
  padding: 14px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.yt-account-badge-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-account-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.yt-account-details {
  display: flex;
  flex-direction: column;
}

.yt-account-email {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.yt-account-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-text-muted);
}

.yt-btn-open-real {
  background-color: var(--brand-dark);
  color: #ffffff;
  border: 1.5px solid var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.15);
  transition: all 0.2s ease;
}

.yt-btn-open-real:hover {
  background-color: var(--brand-dark-subtle);
  border-color: var(--brand-dark-subtle);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 2. YouTube Brand App Bar */
.yt-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  background-color: var(--brand-card-hover);
  border-radius: var(--radius-inner);
  border: 1.5px solid var(--brand-dark);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.yt-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
}

.yt-play-icon {
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1;
}

.yt-logo-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.yt-brand-pill {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: rgba(20, 20, 20, 0.08);
  color: var(--brand-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* YouTube Search Bar */
.yt-search-container {
  flex: 1;
  max-width: 580px;
  min-width: 260px;
}

.yt-search-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.yt-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.yt-search-lens-icon {
  position: absolute;
  left: 14px;
  font-size: 0.88rem;
  color: var(--brand-text-muted);
  pointer-events: none;
}

.yt-search-input {
  width: 100%;
  padding: 10px 38px 10px 38px;
  background-color: #ffffff;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.yt-search-input:focus {
  box-shadow: inset 0 0 0 1px var(--brand-dark);
}

.yt-search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--brand-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px;
}

.yt-search-clear-btn:hover {
  color: var(--brand-dark);
}

.yt-search-submit-btn {
  padding: 10px 20px;
  background-color: var(--brand-dark);
  color: #ffffff;
  border: 1.5px solid var(--brand-dark);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-sans);
}

.yt-search-submit-btn:hover {
  background-color: var(--brand-dark-subtle);
}

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

.yt-btn-test-shorts {
  background-color: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
  font-weight: 800;
}

.yt-btn-test-shorts:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

/* 3. Navigation Bar & Category Chips */
.yt-navigation-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.yt-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background-color: rgba(20, 20, 20, 0.05);
  color: var(--brand-dark);
  border: 1px solid rgba(20, 20, 20, 0.15);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.yt-nav-tab:hover {
  background-color: rgba(20, 20, 20, 0.1);
}

.yt-nav-tab.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.yt-categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.yt-categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.yt-categories-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-dark);
  border-radius: 9999px;
}

.filter-pill {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(20, 20, 20, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

/* 4. Feed View & Responsive Video Grid */
.yt-feed-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yt-feed-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.yt-feed-heading {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.yt-feed-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  margin-left: 8px;
}

.yt-grid-status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-dark);
  color: #ffffff;
}

/* Real YouTube Responsive Video Cards Grid */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px 18px;
  min-height: 280px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  background-color: var(--brand-card-hover);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(20, 20, 20, 0.12);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.12);
  border-color: var(--brand-dark);
}

/* 16:9 Video Thumbnail Wrapper */
.yt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

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

.yt-thumb-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.yt-thumb-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yt-card:hover .yt-thumb-play-overlay {
  opacity: 1;
}

.yt-play-chip {
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Video Card Body */
.yt-card-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  flex: 1;
}

.yt-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

.yt-card-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.yt-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-channel {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.yt-card-verified-check {
  font-size: 0.72rem;
  color: var(--brand-dark);
  font-weight: 900;
}

.yt-card-subline {
  font-size: 0.76rem;
  color: var(--brand-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-card-cat-pill {
  font-weight: 700;
  color: var(--brand-dark);
}

/* Card Action Footer */
.yt-card-footer {
  padding: 8px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.yt-card-save-btn {
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.yt-card-save-btn:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.yt-card-save-btn.saved {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

/* 5. Watch Mode / Theater View */
.yt-watch-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yt-watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.yt-back-btn {
  font-weight: 800;
}

.yt-watch-policy-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-text-muted);
}

.yt-watch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 980px) {
  .yt-watch-layout {
    grid-template-columns: 1fr;
  }
}

.yt-player-aspect-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.inline-iframe-wrap {
  width: 100%;
  height: 100%;
}

.inline-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-video-details-card {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.watch-title-heading {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.yt-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.yt-channel-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.yt-channel-names {
  display: flex;
  flex-direction: column;
}

.yt-channel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.yt-channel-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-text-muted);
}

.yt-video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Video Description Box */
.yt-description-box {
  background-color: var(--brand-card-hover);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(20, 20, 20, 0.1);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-desc-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-desc-pill {
  font-size: 0.76rem;
  font-weight: 700;
  background-color: rgba(20, 20, 20, 0.08);
  color: var(--brand-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.yt-desc-pill-shield {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.yt-desc-text {
  font-size: 0.88rem;
  color: var(--brand-dark);
  line-height: 1.55;
}

.yt-desc-notice {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  border-top: 1px dashed rgba(20, 20, 20, 0.15);
  padding-top: 8px;
}

/* Watch Sidebar / Up Next Queue */
.yt-watch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-sidebar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.yt-sidebar-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.yt-sidebar-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-text-muted);
}

.yt-up-next-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.yt-up-next-item {
  display: flex;
  gap: 10px;
  background-color: var(--brand-card-hover);
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-up-next-item:hover {
  background-color: #ffffff;
  border-color: var(--brand-dark);
  transform: translateX(2px);
}

.yt-up-next-thumb {
  position: relative;
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #000000;
}

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

.yt-up-next-thumb .duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 4px;
  border-radius: 3px;
}

.yt-up-next-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.yt-up-next-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.yt-up-next-channel {
  font-size: 0.74rem;
  color: var(--brand-text-muted);
}

/* 6. Shorts Quarantined Modal */
.modal-quarantine-sheet {
  max-width: 540px;
  border: 2px solid var(--brand-dark);
}

.quarantine-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brand-card-hover);
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.quarantine-hero-box {
  background-color: var(--brand-card-hover);
  border-radius: var(--radius-inner);
  border: 1px solid var(--brand-dark);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.quarantine-shield-badge {
  display: inline-block;
  background-color: var(--brand-dark);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.quarantine-main-msg {
  font-size: 0.95rem;
  color: var(--brand-text);
  line-height: 1.45;
  margin-bottom: 10px;
}

.quarantine-url-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--brand-card);
  color: var(--brand-dark);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--brand-dark);
  word-break: break-all;
}

.quarantine-reasons-card {
  background-color: var(--brand-card-hover);
  border-radius: var(--radius-inner);
  border: 1px solid rgba(20, 20, 20, 0.1);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.quarantine-reasons-card strong {
  font-size: 0.88rem;
  color: var(--brand-dark);
}

.quarantine-reasons-list {
  font-size: 0.82rem;
  color: var(--brand-text-muted);
  line-height: 1.5;
  padding-left: 18px;
  margin-top: 8px;
}

.quarantine-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn-quarantine-dismiss {
  background-color: var(--brand-dark);
  color: #ffffff;
}

/* Bottom Container of Break Card: Break Info & (Timer) widget matching sketch */
.break-timer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
}

.break-duration-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.break-configured-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.break-configured-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-text-muted);
  background-color: var(--brand-card-hover);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* The Signature "(timer)" Pill Widget from the Notebook Diagram */
.timer-pill-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--brand-card-darker);
  border: 1.5px solid var(--brand-dark);
  padding: 6px 8px 6px 18px;
  border-radius: var(--radius-pill);
}

.timer-display-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.timer-caption {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-text-muted);
}

.timer-time {
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--brand-dark);
}

/* ========================================================
   STEP 3: ASK HOW MUCH TIME WILL STUDY & ADD BREAK TIME
   ======================================================== */
.study-setup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.study-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.required-indicator {
  color: var(--brand-dark);
  font-weight: 900;
}

.selected-timer-tag {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.custom-timer-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.subrow-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-text-muted);
}

.break-dur-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-card-hover);
  border: 1.5px solid rgba(20, 20, 20, 0.2);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.break-dur-pill:hover,
.break-dur-pill.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.start-hint-text {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  font-weight: 600;
}

/* Connect Modal Styles */
.connect-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-rules-card {
  background-color: var(--brand-card);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.study-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.brand-input {
  width: 100%;
  padding: 12px 18px;
  background-color: var(--brand-card-hover);
  border: 1.5px solid rgba(20, 20, 20, 0.2);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.brand-input:focus {
  border-color: var(--brand-dark);
}

.brand-input-sm {
  width: 100px;
  padding: 8px 14px;
  font-weight: 800;
}

.duration-presets-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.duration-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.study-dur-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-card-hover);
  border: 1.5px solid rgba(20, 20, 20, 0.2);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.study-dur-pill:hover,
.study-dur-pill.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.study-custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.study-start-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Active Study Banner (When Focus Session is Live) */
.active-study-banner {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-radius: var(--radius-inner);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

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

.study-pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.2);
  animation: pulse 2s infinite;
}

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

.study-banner-task {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.study-banner-lock-notice {
  font-size: 0.82rem;
  color: #d1d5db;
}

.study-banner-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.study-countdown-clock {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.study-banner-actions {
  display: flex;
  gap: 10px;
}

.study-banner-actions .pill-btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.study-banner-actions .pill-btn-outline:hover {
  background-color: #ffffff;
  color: var(--brand-dark);
}

/* ========================================================
   FOOTER TELEMETRY STRIP (Subtle, Clean & Minimal)
   ======================================================== */
.flow-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 10px;
  margin-top: 30px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-stats-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--brand-dark);
  flex-wrap: wrap;
}

.stat-separator {
  color: rgba(20, 20, 20, 0.3);
}

/* ========================================================
   MODALS & VIEWERS (Exact Preserved Design)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background-color: var(--brand-bg);
  border: 2px solid var(--brand-dark);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1.5px solid var(--brand-dark);
}

.modal-header-row h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  line-height: 1;
}

.modal-content-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-footer-row {
  padding: 20px 32px;
  border-top: 1.5px solid var(--brand-dark);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Styled Minimalist Table */
.minimal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.minimal-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border-bottom: 2px solid var(--brand-dark);
  color: var(--brand-dark);
}

.minimal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  color: var(--brand-dark);
}

.minimal-table .bold-val {
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Video Player Modal */
.player-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--brand-dark);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

/* Toast */
.brand-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--brand-dark);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 18px 24px;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.brand-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-copy strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.toast-copy p {
  font-size: 0.85rem;
  color: #d1d5db;
}

.toast-close-x {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ========================================================
   PROGRESSIVE STAGE FLOW STYLES
   ======================================================== */
.flow-stage-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-card);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.stage-step {
  color: var(--brand-text-muted);
  transition: all 0.2s;
}

.stage-step.active {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stage-step.completed {
  color: var(--brand-dark);
  opacity: 0.6;
}

.stage-arrow {
  color: rgba(20, 20, 20, 0.3);
}

.stage-section {
  animation: fadeIn 0.3s ease-out;
}

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

/* Stage 2: Break Choice */
.break-choice-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.break-pill-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.break-choice-pill {
  background-color: var(--brand-card-hover);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.break-choice-pill:hover {
  background-color: var(--brand-card-darker);
  transform: translateY(-2px);
}

.break-choice-pill.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.choice-mins {
  font-size: 1.25rem;
  font-weight: 900;
}

.choice-sub {
  font-size: 0.76rem;
  opacity: 0.8;
}

.custom-break-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-action-bar {
  display: flex;
  margin-top: 10px;
}

/* Stage 3: Sticky / Floating Break Timer Banner */
.sticky-break-timer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--brand-dark);
  color: #ffffff;
  border-radius: var(--radius-inner);
  padding: 16px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

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

.sticky-timer-caption {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d1d5db;
}

.sticky-timer-clock {
  font-size: 1.7rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #ffffff;
}

.sticky-timer-right .pill-btn {
  background-color: #ffffff;
  color: var(--brand-dark);
  border-color: #ffffff;
}

.sticky-timer-right .pill-btn:hover {
  background-color: #e5e7eb;
}

/* Stage 4: Study Hours Container */
.study-hours-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hours-pills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.hour-choice-pill {
  background-color: var(--brand-card-hover);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.hour-choice-pill:hover {
  background-color: var(--brand-card-darker);
  transform: translateY(-2px);
}

.hour-choice-pill.active {
  background-color: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.hour-title {
  font-size: 1.3rem;
  font-weight: 900;
}

.hour-sub {
  font-size: 0.76rem;
  opacity: 0.8;
}

.custom-study-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stage 5: Locked App Screen */
.locked-stage-card {
  text-align: center;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--brand-dark);
}

.locked-icon-emblem {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--brand-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 20px;
}

.locked-hero-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.locked-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.locked-hero-sub {
  font-size: 1rem;
  color: var(--brand-text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.locked-countdown-box {
  background-color: var(--brand-dark);
  color: #ffffff;
  padding: 24px 36px;
  border-radius: var(--radius-inner);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.locked-clock-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.locked-clock-digits {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.locked-test-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .brand-navbar {
    padding: 16px 20px;
  }
  .page-container {
    padding: 16px 16px 40px;
  }
  .flow-card {
    padding: 22px 18px;
  }
  .break-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .active-study-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .study-banner-right {
    width: 100%;
    justify-content: space-between;
  }
  .timer-pill-widget {
    width: 100%;
    justify-content: space-between;
  }
}

/* ========================================================
   YOUTUBE CHANNELS DIRECTORY & MANAGEMENT STYLES
   ======================================================== */
.channels-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 32px;
}

.channel-card {
  background-color: var(--brand-card-hover);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: var(--radius-inner);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.1);
  border-color: var(--brand-dark);
}

.channel-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.channel-card-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-dark);
  background-color: var(--brand-card);
  flex-shrink: 0;
}

.channel-card-meta {
  flex: 1;
  min-width: 0;
}

.channel-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-card-handle {
  font-size: 0.84rem;
  color: var(--brand-text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-card-subs {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.channel-card-body {
  margin-bottom: 16px;
}

.channel-card-desc {
  font-size: 0.84rem;
  color: var(--brand-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.channel-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--brand-dark);
}

.channel-longform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(20, 20, 20, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.78rem;
}

.channel-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 14px;
}

.btn-channel-browse {
  flex: 1;
  text-align: center;
}

.btn-channel-remove {
  background: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  color: var(--brand-text-muted);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-channel-remove:hover {
  background: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

/* Active Channel Focus Banner */
.channel-focus-banner {
  background-color: var(--brand-card-hover);
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-inner);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

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

.channel-focus-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-dark);
}

.channel-focus-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.channel-focus-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.channel-subline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--brand-text-muted);
  margin-top: 4px;
}

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

/* Popular Channels Shelf */
.popular-channels-shelf {
  background-color: rgba(20, 20, 20, 0.04);
  border: 1px dashed rgba(20, 20, 20, 0.2);
  border-radius: var(--radius-inner);
  padding: 18px 20px;
  margin-top: 24px;
}

.popular-channels-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.popular-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-card);
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.popular-channel-chip:hover {
  border-color: var(--brand-dark);
  background-color: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.popular-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.popular-chip-add {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 2px;
}

/* ========================================================
   MOBILE & PWA PHONE-ADAPTIVE ENHANCEMENTS
   ======================================================== */
.brand-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-sub-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: rgba(20, 20, 20, 0.08);
  border: 1px solid var(--brand-dark);
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}

/* Mobile Bottom Bar for Phone Users */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background-color: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99999;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #a7a094;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.mobile-nav-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 66px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .flow-stage-indicator {
    display: none;
  }
  .brand-navbar {
    padding: 14px 16px;
  }
  .page-container {
    padding: 10px 10px 30px;
  }
  .flow-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .yt-navigation-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .yt-nav-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .yt-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .channels-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .channel-focus-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .channel-banner-right {
    width: 100%;
    justify-content: flex-end;
  }
  .stage-action-bar button, .stage-action-bar a {
    width: 100% !important;
  }
}

