:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1e293b;
  --border-color: #243247;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-yellow: #facc15;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

#app-view {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  flex: 1;
  position: relative;
}

#app-view.hidden,
#app-view[style*="display: none"] {
  display: none !important;
}

#landing-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

#landing-view.hidden,
#landing-view[style*="display: none"] {
  display: none !important;
}

/* Sidebar */
.sidebar {
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 24px 16px;
  box-sizing: border-box;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.logo-text h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-yellow);
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.nav-item.active {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05));
  color: var(--accent-yellow);
  border-color: rgba(250, 204, 21, 0.3);
  font-weight: 600;
}

.nav-badge {
  margin-left: auto;
  background-color: var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

.account-status-badge {
  padding: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: auto;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-indicator.offline {
  background-color: var(--accent-red);
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.4);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-desc {
  font-size: 12px;
  color: var(--accent-yellow);
  margin-top: 6px;
}

/* Cards & Sections */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

.input-row {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #334155;
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: var(--accent-red);
  color: #fff;
}

.btn-success {
  background-color: var(--accent-green);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

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

.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.4);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
}

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

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}

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

.video-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  margin-bottom: 14px;
}

/* Shorts Cards (Vertical 9:16) */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.short-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.short-card:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.short-preview-area {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 ratio */
  background-color: #050811;
  overflow: hidden;
}

.short-preview-img, .short-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(250, 204, 21, 0.9);
  color: #050811;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  opacity: 0.88;
  cursor: pointer;
}

.short-preview-area:hover .short-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FFE500;
  opacity: 1;
  box-shadow: 0 0 25px rgba(255, 229, 0, 0.8);
}

.virality-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
}

.status-pill.ready {
  background-color: rgba(59, 130, 246, 0.85);
  color: #fff;
}

.status-pill.published {
  background-color: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.status-pill.scheduled {
  background-color: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.short-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.short-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.short-card-reason {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.short-actions {
  display: flex;
  gap: 8px;
}

/* Candidate Clip item */
.candidate-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.candidate-left {
  flex: 1;
}

.candidate-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent-yellow);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--accent-green);
}

.toast.error {
  border-color: var(--accent-red);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ================= Landing Page Styles ================= */
.landing-page {
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0a0e17 50%);
  color: var(--text-primary);
  line-height: 1.6;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Landing Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

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

.landing-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-link:hover {
  color: var(--accent-yellow);
}

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

/* Hero Section */
.landing-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: var(--accent-yellow);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.landing-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-gradient-text {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.landing-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.landing-btn-google {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #dadce0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.landing-btn-google:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.landing-btn-studio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.landing-btn-studio:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

/* Stats Row */
.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.landing-stat-card {
  background: rgba(22, 32, 50, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.landing-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: 4px;
}

.landing-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
.landing-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.landing-section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 8px;
  display: block;
}

.landing-section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.landing-section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Feature Cards Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.landing-feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.landing-feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Workflow Steps */
.landing-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.landing-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.landing-step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

.landing-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 10px;
}

.landing-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Architecture Showcase */
.landing-arch-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.landing-arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-arch-node {
  flex: 1;
  min-width: 170px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.landing-arch-arrow {
  color: var(--accent-yellow);
  font-size: 20px;
  font-weight: bold;
}

/* Bottom CTA */
.landing-cta-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.landing-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 30px;
  font-size: 13px;
  color: var(--text-muted);
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==================== PWA & Mobile App Layout ==================== */

/* Safe Area Inset Support */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* Standalone PWA adjustments */
@media all and (display-mode: standalone) {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-top-bar {
    padding-top: max(8px, var(--sat));
    height: calc(56px + max(0px, var(--sat)));
  }
  .mobile-bottom-nav {
    padding-bottom: max(10px, var(--sab));
    height: calc(64px + max(0px, var(--sab)));
  }
}

/* Mobile Top App Bar (Native App Header) */
.mobile-top-bar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.mobile-icon-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Sidebar Drawer Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-color);
  z-index: 95;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px max(4px, var(--sab));
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  border-radius: 8px;
  padding: 4px 0;
}

.mobile-nav-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 3px;
  position: relative;
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.mobile-nav-item.active {
  color: var(--accent-yellow);
}

.mobile-nav-item.active .mobile-nav-label {
  font-weight: 700;
}

.mobile-create-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.5);
  margin-top: -16px;
  font-size: 22px;
  color: #000;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item:active .mobile-create-fab {
  transform: scale(0.9);
}

.mobile-badge-dot {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  box-shadow: 0 0 6px var(--accent-yellow);
}

/* ==================== Tablet View (769px to 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 220px;
    padding: 18px 12px;
  }
  .main-content {
    padding: 24px 20px;
  }
  .stat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }
  .landing-hero-title {
    font-size: 42px;
  }
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== Mobile App View (max-width: 768px) ==================== */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    display: block;
    overflow-x: hidden;
    width: 100%;
  }

  /* App View Layout on Phone Screens */
  #app-view {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
  }

  #app-view[style*="display: none"],
  #app-view.hidden {
    display: none !important;
  }

  #landing-view[style*="display: none"],
  #landing-view.hidden {
    display: none !important;
  }

  /* Slide-out Drawer Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -310px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    z-index: 99;
    background: #0b1120;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.65);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 20px 14px;
  }

  .sidebar.open {
    left: 0;
  }

  /* Show mobile top & bottom nav inside app-view */
  .mobile-top-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 90;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    height: calc(56px + max(0px, env(safe-area-inset-top, 0px)));
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + max(0px, env(safe-area-inset-bottom, 0px)));
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    z-index: 95;
  }

  /* Main content layout */
  .main-content {
    padding: 14px 12px 28px 12px;
    height: auto;
    overflow-y: visible;
    width: 100%;
    box-sizing: border-box;
  }

  /* Cards */
  .card {
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Form & Input Rows */
  .input-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .input-row .btn {
    width: 100% !important;
    white-space: normal !important;
  }

  /* 2-Column form grid stacks to 1 column on phone */
  .form-grid-2,
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Page Header */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-header h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .page-header p {
    font-size: 13px;
    line-height: 1.4;
  }

  .page-header .btn,
  .page-header > div:last-child {
    width: 100%;
  }

  .page-header > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* 2-column stats cards with last card spanning across */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 12px 10px !important;
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .stat-value {
    font-size: 22px !important;
  }

  .stat-label {
    font-size: 11px !important;
  }

  .stat-desc {
    font-size: 10px !important;
  }

  /* Video & Shorts Grids */
  .shorts-grid,
  .clips-grid,
  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Candidate Clip items */
  .candidate-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 12px !important;
  }

  .candidate-item .btn {
    width: 100% !important;
  }

  /* Modals: bottom-sheet appearance on mobile */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    padding: 20px 14px !important;
    margin: 0 !important;
    border-radius: 20px 20px 10px 10px !important;
    box-sizing: border-box !important;
  }

  /* Toasts */
  .toast-container {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    left: 12px !important;
    align-items: center !important;
  }

  .toast {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Touch targets >= 44px */
  .btn, button {
    min-height: 42px;
    touch-action: manipulation;
  }

  input, select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Landing Page Mobile */
  .landing-container {
    padding: 0 16px !important;
  }

  .landing-nav-actions {
    gap: 6px;
  }

  .landing-nav-actions .landing-btn-google span#landing-auth-text {
    display: none;
  }

  .landing-nav-actions .landing-btn-google {
    padding: 6px 10px !important;
  }

  .landing-btn-studio {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }

  .landing-hero {
    padding: 44px 16px 32px;
  }

  .landing-hero-title {
    font-size: 28px !important;
    line-height: 1.25;
  }

  .landing-hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .landing-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .landing-cta-group button {
    width: 100% !important;
    justify-content: center !important;
  }

  .landing-features-grid,
  .landing-workflow-grid,
  .landing-schedule-grid,
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* iOS Safari Install Modal styling */
.ios-install-box {
  max-width: 440px !important;
  text-align: center;
  padding: 24px 20px !important;
  border-radius: 18px !important;
}
.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 16px 0;
}
.ios-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ==================== YouTube Analytics & Multi-Channel UI ==================== */
.yt-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.yt-upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.yt-upload-row:hover {
  border-color: rgba(250, 204, 21, 0.4);
  transform: translateX(2px);
}

.yt-upload-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.yt-upload-thumb-wrap {
  position: relative;
  width: 96px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.yt-upload-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-badge-format {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yt-badge-short {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.5);
}

.yt-badge-video {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.yt-upload-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.yt-metric-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.yt-channel-picker-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
}

/* ==================== YouTube Channel & Videos Studio UI ==================== */
.yt-channel-hero-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.yt-channel-banner {
  height: 140px;
  background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #450a0a 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.yt-channel-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.yt-channel-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 24px 20px 24px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.yt-channel-profile-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  min-width: 0;
}

.yt-channel-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
}

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

.yt-channel-meta {
  margin-bottom: 4px;
  min-width: 0;
}

.yt-channel-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.yt-channel-handle {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-channel-stats-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.yt-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

/* Toolbar & Filters */
.yt-video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

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

.yt-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yt-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.yt-filter-pill.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.yt-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-search-input-wrap {
  position: relative;
  min-width: 220px;
}

.yt-search-input-wrap input {
  padding-left: 32px;
  font-size: 13px;
  height: 36px;
}

.yt-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.yt-view-switcher {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.yt-view-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yt-view-btn.active {
  background: var(--accent-yellow);
  color: #0f172a;
}

/* YouTube Video Grid View */
.yt-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

.yt-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.yt-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.yt-card-thumb-wrap.is-short {
  aspect-ratio: 16 / 9;
}

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

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

.yt-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.yt-badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.yt-badge-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.yt-badge-privacy {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yt-badge-privacy.public {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.yt-badge-privacy.scheduled {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.yt-badge-privacy.private {
  background: rgba(100, 116, 139, 0.9);
  color: #fff;
}

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

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

.yt-play-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
  transform: scale(0.9);
  transition: transform 0.15s ease;
}

.yt-card-thumb-wrap:hover .yt-play-circle-btn {
  transform: scale(1);
}

.yt-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yt-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.yt-card-title:hover {
  color: var(--accent-yellow);
}

.yt-card-metrics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.yt-card-metrics-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yt-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* Video Player Modal */
.yt-player-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.yt-player-modal-backdrop.active {
  display: flex;
}

.yt-player-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

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

.yt-player-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px;
}

.yt-player-iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.yt-player-iframe-wrap.is-short-mode {
  padding-top: 0;
  height: 540px;
  display: flex;
  justify-content: center;
  background: #000;
}

.yt-player-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-player-iframe-wrap.is-short-mode iframe {
  position: relative;
  width: 320px;
  height: 100%;
}

.yt-player-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .yt-analytics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .yt-upload-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }
  .yt-upload-metrics {
    justify-content: space-between !important;
    width: 100% !important;
  }
  .yt-channel-banner {
    height: 100px;
  }
  .yt-channel-header-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: -36px;
    padding: 0 16px 16px 16px;
  }
  .yt-channel-profile-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .yt-channel-avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .yt-videos-grid {
    grid-template-columns: 1fr !important;
  }
}


