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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  flex: 0 0 auto;
  padding: 1rem 2rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 2rem;
}

h1 {
  font-size: 1.3rem;
  color: #fff;
  white-space: nowrap;
}

.search-bar {
  display: flex;
  flex: 1;
  gap: 0.5rem;
}

.search-count {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  align-self: center;
}
.search-count--low {
  color: #e05c5c;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #ccc;
}

#user-info .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#user-info .streak-badge,
#user-info .sentences-badge {
  background: #2a2a2a;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

#user-info .logout-link {
  color: #888;
  text-decoration: none;
  font-size: 0.8rem;
}

#user-info .logout-link:hover {
  color: #ccc;
}

.billing-btn {
  background: none;
  border: 1px solid #555;
  color: #aaa;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.billing-btn:hover {
  border-color: #aaa;
  color: #fff;
}

#search-input {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
}

#search-input:focus {
  outline: none;
  border-color: #4f8ef7;
}

#search-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  border: none;
  background: #4f8ef7;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

#search-btn:hover {
  background: #cc0000;
}

.error {
  flex: 0 0 auto;
  background: #3a1a1a;
  color: #7aaef9;
  padding: 0.7rem 2rem;
  border-left: 4px solid #4f8ef7;
  margin: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

main {
  flex: 1;
  overflow: hidden;
}

/* Results */
#results-section {
  height: 100%;
  overflow-y: auto;
}

#results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  padding: 1.5rem 2rem;
}

/* ── Saved Videos ──────────────────────────────────────────────────────────── */

#saved-section {
  padding: 0.75rem 1.5rem 0;
}

.saved-heading {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

#saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.saved-item:hover {
  background: #252525;
}

.saved-item img {
  width: 80px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.saved-title {
  font-size: 0.82rem;
  color: #ccc;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.saved-remove {
  background: none;
  border: none;
  color: #555;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

.saved-remove:hover {
  color: #ccc;
}

/* ── Result card bookmark button ───────────────────────────────────────────── */

.result-card {
  position: relative;
}

.bookmark-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  filter: grayscale(1);
}

.result-card:hover .bookmark-btn {
  opacity: 1;
}

.bookmark-btn.saved {
  opacity: 1;
  filter: grayscale(0);
}

.result-card {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.result-card:hover {
  transform: translateY(-2px);
  background: #252525;
}

.result-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-info {
  padding: 0.6rem 0.8rem 0.8rem;
}

.card-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #e0e0e0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.card-channel {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.3rem;
}

/* Player section */
#player-section {
  display: flex;
  height: 100%;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  overflow: hidden;
}

#player-container {
  flex: 0 0 56%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#btn-back {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

#btn-back:hover {
  color: #e0e0e0;
  border-color: #555;
}

#btn-add-my-videos {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

#btn-add-my-videos:hover:not(:disabled) {
  color: #e0e0e0;
  border-color: #555;
}

#btn-add-my-videos:disabled {
  color: #4caf50;
  border-color: #2a4a2a;
  cursor: default;
}

#yt-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

#yt-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.controls button {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.controls button:hover:not(:disabled) {
  background: #2a2a2a;
  border-color: #555;
}

.controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.controls button.active,
.controls button.active:hover {
  background: #4f8ef7;
  border-color: #4f8ef7;
  color: #fff;
}

/* Shadow tooltip */
.shadow-tooltip {
  position: fixed;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 260px;
  z-index: 200;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  animation: tooltip-in 0.15s ease;
}
.shadow-tooltip strong {
  display: block;
  font-size: 0.82rem;
  color: #4f8ef7;
  margin-bottom: 0.3rem;
}
.shadow-tooltip p {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.55;
  margin: 0;
}
.shadow-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1c1c1c;
  border-right: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
}
@keyframes tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dictation area */
#dictation-area {
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

#dictation-row {
  display: flex;
  gap: 0.5rem;
}

#dictation-input {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
}

#dictation-input:focus {
  outline: none;
  border-color: #4f8ef7;
}

#btn-check {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

#btn-check:hover {
  background: #2a2a2a;
  border-color: #555;
}

#dictation-feedback {
  font-size: 1rem;
  line-height: 1.8;
  min-height: 1.8em;
}

.word-correct {
  color: #4caf50;
}

.word-wrong {
  color: #4f8ef7;
  text-decoration: underline;
}

/* Transcript */
#transcript-panel {
  flex: 1;
  overflow-y: auto;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

#transcript-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.segment {
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  color: #999;
  transition: background 0.1s, color 0.1s;
  border-left: 3px solid transparent;
}

.segment:hover {
  background: #252525;
  color: #e0e0e0;
}

.segment.active {
  background: #2a1a1a;
  color: #fff;
  border-left-color: #4f8ef7;
}

#transcript-list.blurred .segment {
  color: transparent;
  text-shadow: 0 0 8px rgba(153, 153, 153, 0.8);
}

#transcript-list.blurred .segment.active {
  color: transparent;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Trial banner */
#trial-banner {
  flex: 0 0 auto;
  background: #1a1200;
  border-bottom: 1px solid #3a2800;
  color: #f0a500;
  text-align: center;
  padding: 0.4rem 2rem;
  font-size: 0.82rem;
}

/* Stats button */
#btn-stats,
#btn-my-videos {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

#btn-stats:hover,
#btn-my-videos:hover {
  color: #e0e0e0;
  border-color: #555;
}

#btn-stats.active,
#btn-my-videos.active {
  color: #fff;
  border-color: #4f8ef7;
}

/* ── Stats panel ───────────────────────────────────────────────────────────── */

#stats-panel {
  flex: 0 0 auto;
  max-height: 380px;
  overflow-y: auto;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
}

#stats-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stats-loading {
  color: #555;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
}

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

.stats-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0e0e0;
}

.stats-change-btn {
  background: none;
  border: 1px solid #3a3a3a;
  color: #888;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.stats-change-btn:hover {
  border-color: #555;
  color: #ccc;
}

.journey-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journey-bar {
  flex: 1;
  height: 10px;
  background: #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
}

.journey-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f8ef7, #7aaef9);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.journey-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4f8ef7;
  min-width: 36px;
  text-align: right;
}

.journey-meta {
  font-size: 0.76rem;
  color: #666;
  line-height: 1.4;
}

.milestone-status {
  font-size: 0.82rem;
  color: #aaa;
}

.stat-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.stat-card--journey {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-card--mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
}

.stat-card-lbl {
  font-size: 0.74rem;
  color: #777;
}

.stat-bar {
  height: 4px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: #4f8ef7;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stat-card-val {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 600;
}

.stats-estimate {
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #1e1e1e;
  padding-top: 0.5rem;
}

/* Settings form inside stats panel */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  background: #141414;
  border-radius: 8px;
  border: 1px solid #222;
}

.settings-select {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #e0e0e0;
  font-size: 0.85rem;
  width: 100%;
}

.settings-select:focus {
  outline: none;
  border-color: #4f8ef7;
}

.settings-save-btn {
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: none;
  background: #4f8ef7;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.settings-save-btn:hover:not(:disabled) {
  background: #cc0000;
}

.settings-save-btn:disabled {
  background: #2a2a2a;
  color: #555;
  cursor: not-allowed;
}

/* ── Onboarding modal ──────────────────────────────────────────────────────── */

#onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.onboarding-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.onboarding-card h2 {
  font-size: 1.4rem;
  color: #fff;
  text-align: center;
}

.onboarding-card > p {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  margin-top: -0.75rem;
}

.onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.onboarding-field label {
  font-size: 0.88rem;
  color: #ccc;
}

.onboarding-hint {
  font-size: 0.78rem;
  color: #555;
  margin-top: -0.25rem;
}

.onboarding-field select {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #e0e0e0;
  font-size: 0.9rem;
  width: 100%;
}

.onboarding-field select:focus {
  outline: none;
  border-color: #4f8ef7;
}

.level-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.level-btn {
  padding: 0.38rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #888;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.level-btn:hover {
  border-color: #4f8ef7;
  color: #7aaef9;
}

.level-btn.active {
  background: #4f8ef7;
  border-color: #4f8ef7;
  color: #fff;
}

.onboarding-submit-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: #4f8ef7;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.onboarding-submit-btn:hover:not(:disabled) {
  background: #cc0000;
}

.onboarding-submit-btn:disabled {
  background: #2a2a2a;
  color: #555;
  cursor: not-allowed;
}

/* My Videos panel */
#my-videos-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
}

#my-videos-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}


.my-video-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.my-video-item:hover {
  background: #252525;
}

.my-video-item img {
  width: 80px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #2a2a2a;
}

.my-video-title {
  font-size: 0.82rem;
  color: #ccc;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.my-video-remove {
  background: none;
  border: none;
  color: #555;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

.my-video-remove:hover {
  color: #ccc;
}

.my-videos-empty {
  color: #444;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.75rem 0;
}

/* Paywall screen */
#paywall-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  padding: 2rem;
}

.paywall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.paywall-card h2 {
  font-size: 1.6rem;
  color: #fff;
}

.paywall-card > p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.plan-grid {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.plan-option {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.plan-option.plan-annual {
  border-color: #4f8ef7;
}

.plan-badge {
  background: #4f8ef7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

.plan-note {
  font-size: 0.78rem;
  color: #888;
}

.plan-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: none;
  background: #4f8ef7;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.plan-btn:hover:not(:disabled) {
  background: #cc0000;
}

.plan-btn:disabled {
  background: #2a2a2a;
  color: #555;
  cursor: not-allowed;
}

.paywall-signout {
  color: #555;
  font-size: 0.82rem;
  text-decoration: none;
}

.paywall-signout:hover {
  color: #999;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {

  /* Body: allow natural scroll instead of fixed viewport */
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  main {
    flex: 1;
    overflow: visible;
  }

  /* Header: search moves to its own row */
  header {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  h1 {
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .search-bar {
    order: 10;
    flex: 0 0 100%;
  }

  #btn-my-videos,
  #btn-stats {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  #btn-my-videos {
    margin-left: auto;
  }

  /* User info: hide name and badges, keep avatar + logout */
  #user-info {
    margin-left: 0;
    gap: 0.5rem;
  }

  #user-info .user-name,
  #user-info .streak-badge,
  #user-info .sentences-badge,
  #user-info .billing-btn {
    display: none;
  }

  /* Error message */
  .error {
    margin: 0.5rem 1rem;
    padding: 0.6rem 1rem;
  }

  /* Results */
  #results-section {
    height: auto;
  }

  #results-grid {
    padding: 0.75rem 1rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  /* Bookmark button: always visible on touch */
  .bookmark-btn {
    opacity: 1;
  }

  /* Player: stack vertically */
  #player-section {
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  #player-container {
    flex: none;
    width: 100%;
  }

  /* Controls: wrap to 2 rows */
  .controls {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .controls button {
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 130px;
  }

  /* Dictation */
  #dictation-area {
    margin-top: 0;
  }

  /* Transcript: fixed height below player */
  #transcript-panel {
    flex: none;
    max-height: 38vh;
    overflow-y: auto;
  }

  /* Saved section */
  #saved-section {
    padding: 0.75rem 1rem 0;
  }

  /* Stats panel */
  #stats-content {
    padding: 0.75rem 1rem;
  }

  .stat-val {
    min-width: 100px;
    font-size: 0.72rem;
  }

  .onboarding-card {
    padding: 1.5rem 1.25rem;
  }

  /* My Videos panel */
  #my-videos-list {
    padding: 0.5rem 1rem;
  }

  /* Paywall */
  .plan-grid {
    flex-direction: column;
  }
}
