/* ── Home ────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 60px 0 48px;
}
.home-hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.home-hero p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.media-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.media-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.media-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.media-card-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9ca3af;
  font-weight: 700;
}
.media-card-body { padding: 12px; }
.media-card-body h3 { font-size: .95rem; margin-bottom: 6px; }
.media-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Badges ──────────────────────────── */
.type-badge {
  font-size: .7rem;
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 99px;
}
.cefr-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.cefr-a1,.cefr-a2 { background: #dcfce7; color: #16a34a; }
.cefr-b1,.cefr-b2 { background: #dbeafe; color: #1d4ed8; }
.cefr-c1,.cefr-c2 { background: #fae8ff; color: #9333ea; }

.year,.genre { font-size: .75rem; color: var(--text-muted); }

/* ── Media detail ────────────────────── */
.media-hero {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}
.media-poster {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-info { flex: 1; }
.media-meta-top { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.media-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.media-description { color: var(--text-muted); line-height: 1.7; }

.season-block { margin-bottom: 32px; }
.season-title {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.episode-list { display: flex; flex-direction: column; gap: 4px; }
.episode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
}
.episode-row:hover { border-color: var(--primary); background: #eff6ff; }
.episode-info { display: flex; align-items: center; gap: 10px; }
.ep-num { font-weight: 700; color: var(--text-muted); font-size: .85rem; min-width: 32px; }
.ep-title { font-size: .95rem; }
.episode-meta { display: flex; align-items: center; gap: 12px; }
.word-count { font-size: .8rem; color: var(--text-muted); }
.arrow { color: var(--text-muted); }

/* ── Episode page ────────────────────── */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }

.episode-header { margin-bottom: 24px; }
.episode-header h1 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-label {
  font-size: 1rem;
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.ep-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.ep-subtitle { color: var(--text-muted); }
.ep-study-btn { font-size: .85rem; padding: 7px 16px; white-space: nowrap; }

.summary-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}
.summary-box h3 { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }

/* ── Words section ───────────────────── */
.words-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.words-header h2 { font-size: 1.2rem; }

.words-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: .8rem;
  color: var(--text-muted);
  transition: all .15s;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.login-prompt {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .9rem;
  margin-bottom: 20px;
}
.login-prompt a { color: var(--primary); }

.word-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.word-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s;
  position: relative;
}
.word-card.in-list { border-color: #bfdbfe; background: #f0f7ff; }

.word-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 28px; }
.word-item { font-weight: 600; font-size: .95rem; }
.word-basic { color: var(--text-muted); font-size: .8rem; }
.word-level {
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.level-a1,.level-a2 { background: #dcfce7; color: #16a34a; }
.level-b1,.level-b2 { background: #dbeafe; color: #1d4ed8; }
.level-c1,.level-c2 { background: #fae8ff; color: #9333ea; }

.word-meaning { font-size: .85rem; color: var(--text-muted); }

/* + butonu — sağ üst köşe */
.btn-my-list-sm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  line-height: 1;
}
.btn-my-list-sm:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.btn-my-list-sm.active { border-color: var(--primary); color: var(--primary); background: #eff6ff; font-size: .8rem; }

.empty-state { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ── Mobile genel ────────────────────────── */
@media (max-width: 600px) {

  /* ── Home ── */
  .home-hero { padding: 32px 0 24px; }
  .home-hero h1 { font-size: 1.4rem; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ── Media detail ── */
  .media-hero { flex-direction: column; }
  .media-poster { width: 120px; }
  .media-info h1 { font-size: 1.4rem; }

  /* ── Episode ── */
  .episode-header h1 { font-size: 1.2rem; }
  .word-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .word-card { padding: 10px 10px 8px; }
  .word-item { font-size: .88rem; }
  .word-meaning { font-size: .78rem; }

  /* ── Study ── */
  .flashcard { height: 240px; }
  .card-word { font-size: 1.6rem; }
  .card-meaning { font-size: 1.2rem; }
  /* 4 select → 2×2 grid */
  .study-filter-row { flex-wrap: wrap; }
  .study-filter-row select {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--border);
    border-right: none;
  }
  .study-filter-row select:nth-child(odd)  { border-right: 1px solid var(--border); }
  .study-filter-row select:nth-last-child(-n+2) { border-bottom: none; }

  /* ── My List ── */
  .mylist-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mylist-header > div { width: 100%; }
  .mylist-filters { flex-direction: column; gap: 8px; }
  .mylist-filters select { width: 100%; }
  /* Tablo → kart */
  .mylist-head { display: none; }
  .mylist-row {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto auto;
    gap: 4px 8px;
    padding: 12px;
  }
  /* word */
  .mylist-row > span:nth-child(1) { grid-column: 1; grid-row: 1; font-size: .95rem; }
  /* level badge */
  .mylist-row > span:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; }
  /* remove btn — spans 3 rows, sağ en üst */
  .mylist-row > span:nth-child(6) { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  /* meaning */
  .mylist-row > span:nth-child(3) { grid-column: 1 / 3; grid-row: 2; font-size: .85rem; color: var(--text-muted); }
  /* source */
  .mylist-row > span:nth-child(4) { grid-column: 1 / 3; grid-row: 3; font-size: .8rem; }
  /* status */
  .mylist-row > span:nth-child(5) { display: none; }

  /* ── Dashboard ── */
  .dash-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
  .dash-grid  { grid-template-columns: 1fr; }
  .dash-stat-num { font-size: 1.4rem; }
  .dash-stat-card { padding: 12px; }

  /* ── Sticky study bar ── */
  .ssticky-btn { font-size: .78rem; padding: 8px 4px; }
}

/* ── Study ───────────────────────────── */
.study-page { max-width: 680px; margin: 0 auto; padding: 0 4px; }

.study-filters {
  margin-bottom: 20px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.study-filter-row {
  display: flex;
  gap: 0;
}

.study-filter-row select {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-right: 1px solid var(--border);
  background: #f9fafb;
  font-size: .82rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: background .15s;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}
.study-filter-row select:last-child { border-right: none; }
.study-filter-row select:focus,
.study-filter-row select:hover { background: #eff6ff; }
.study-filter-row select:disabled { color: #ccc; background: #f9fafb; cursor: default; }

.study-filter-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: #fff;
}
.study-filter-meta .dot { color: #d1d5db; }
.study-filter-meta .clr-blue  { color: var(--primary); font-weight: 600; }
.study-filter-meta .clr-green { color: var(--success); font-weight: 600; }

.flashcard-area { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.flashcard {
  width: 100%;
  max-width: 560px;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}
.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .4s;
}
.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.flashcard-back {
  transform: rotateY(180deg);
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.card-level { font-size: .75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.card-word { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.card-basic { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }
.card-source { font-size: .75rem; color: var(--text-muted); }
.card-hint { font-size: .75rem; color: #c4c4c4; position: absolute; bottom: 16px; }

.card-word-small { font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; }
.card-meaning { font-size: 1.4rem; font-weight: 600; text-align: center; margin-bottom: 8px; }
.card-en-meaning { font-size: .9rem; color: var(--text-muted); text-align: center; }

.card-counter {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin: 10px 0 14px;
  font-variant-numeric: tabular-nums;
}

.flashcard-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.btn-nav {
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-size: .9rem;
  cursor: pointer;
  color: var(--text);
  transition: all .15s;
}
.btn-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-nav:disabled { opacity: .35; cursor: default; }

.btn-learned {
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
}
.btn-learned:hover { border-color: #86efac; color: #16a34a; }
.btn-learned-toggle.active-learned {
  border-color: #16a34a;
  background: #dcfce7;
  color: #16a34a;
}

.btn-gold-toggle:hover { border-color: #f59e0b; color: #b45309; }
.btn-gold-toggle.active-gold {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

/* ── Sticky study bar ────────────────── */
.study-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  z-index: 200;
  padding: 10px 16px 12px;
}

.study-sticky-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.ssticky-btn {
  flex: 1;
  max-width: 120px;
  padding: 10px 6px;
  border: 1px solid var(--border);
  background: #f9fafb;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: all .15s;
  min-height: 44px;
  white-space: nowrap;
}
.ssticky-btn:hover { background: #eff6ff; border-color: var(--primary); color: var(--primary); }

.ssticky-readall.playing {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.ssticky-gold.active-gold {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}
.ssticky-learned.active-learned {
  background: #dcfce7;
  border-color: #16a34a;
  color: #16a34a;
}

.study-sticky-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ssticky-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #f9fafb;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.ssticky-nav:hover { background: #eff6ff; border-color: var(--primary); color: var(--primary); }

.ssticky-counter {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

/* Öğrenilmiş kart — yeşil çerçeve */
.flashcard.is-learned .flashcard-front,
.flashcard.is-learned .flashcard-back {
  border-color: #86efac;
  box-shadow: 0 0 0 2px #86efac;
}

/* Gold yıldız — sağ üst köşe */
.card-gold-star {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.1rem;
}

.study-progress { width: 100%; max-width: 560px; }
.progress-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width .3s;
}
#progressText { font-size: .8rem; color: var(--text-muted); }

/* ── Dashboard ───────────────────────── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dash-header h1 { font-size: 1.5rem; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}
.dash-stat-card.gold  { border-color: #fde68a; background: #fffdf0; }
.dash-stat-card.learned { border-color: #86efac; background: #f0fdf4; }
.dash-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.dash-stat-card.gold .dash-stat-num { color: #b45309; }
.dash-stat-card.learned .dash-stat-num { color: #16a34a; }
.dash-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.dash-stat-limit { font-size: .75rem; color: #d1d5db; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.dash-card h3 { font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }

.cefr-bars { display: flex; flex-direction: column; gap: 10px; }
.cefr-bar-row { display: flex; align-items: center; gap: 10px; }
.cefr-bar-label { min-width: 32px; text-align: center; }
.cefr-bar-track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 99px; overflow: hidden; }
.cefr-bar-fill { height: 100%; border-radius: 99px; transition: width .5s; }
.cefr-fill-a1, .cefr-fill-a2 { background: #16a34a; }
.cefr-fill-b1, .cefr-fill-b2 { background: #2563eb; }
.cefr-fill-c1, .cefr-fill-c2 { background: #9333ea; }
.cefr-bar-count { font-size: .8rem; color: var(--text-muted); min-width: 24px; text-align: right; }

.visit-list { display: flex; flex-direction: column; gap: 4px; }
.visit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  transition: background .15s;
}
.visit-row:hover { background: #f9fafb; }
.visit-title { font-weight: 500; }
.visit-ep { font-size: .8rem; color: var(--text-muted); margin-left: 6px; }
.visit-time { font-size: .75rem; color: var(--text-muted); }

.recent-words { display: flex; flex-direction: column; gap: 6px; }
.recent-word-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.recent-word-row:last-child { border-bottom: none; }
.recent-word-left { display: flex; align-items: center; gap: 6px; }
.gold-star { font-size: .85rem; }
.recent-word { font-weight: 500; }
.recent-word-right { display: flex; align-items: center; gap: 8px; text-align: right; }
.recent-source { font-size: .75rem; color: var(--text-muted); }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-new      { background: #d1d5db; }
.status-studying { background: #60a5fa; }
.status-learned  { background: #4ade80; }

/* ── My List sayfası ─────────────────── */
.mylist-page { max-width: 900px; margin: 0 auto; }
.mylist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.mylist-header h1 { font-size: 1.4rem; }

.mylist-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mylist-filters select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
}

.mylist-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mylist-head, .mylist-row {
  display: grid;
  grid-template-columns: 2fr 60px 2fr 2fr 100px 40px;
  gap: 12px;
  padding: 10px 16px;
  align-items: center;
  font-size: .88rem;
}
.mylist-head {
  background: #f9fafb;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mylist-row { border-bottom: 1px solid var(--border); }
.mylist-row:last-child { border-bottom: none; }
.mylist-row:hover { background: #f9fafb; }

.ml-word { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ml-meaning { color: var(--text-muted); }
.ml-source { font-size: .8rem; }

.status-pill {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.status-pill.status-new      { background: #f3f4f6; color: #6b7280; }
.status-pill.status-studying { background: #dbeafe; color: #1d4ed8; }
.status-pill.status-learned  { background: #dcfce7; color: #16a34a; }

.btn-remove {
  background: transparent;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: .8rem;
  transition: all .15s;
}
.btn-remove:hover { background: #fee2e2; }

/* Study filter bar */
.study-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.study-filter-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.study-filter-btn {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
}
.study-filter-btn.active,
.study-filter-btn:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }

/* ── Speaking ────────────────────────── */
.speak-page {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px - 48px);
  min-height: 480px;
  padding-bottom: 90px; /* sticky mic için boşluk */
}

.speak-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.speak-title { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

.speak-score-wrap { text-align: center; }
.speak-score { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.speak-score-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* Kelimeler */
.speak-words {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.speak-words-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; padding-top: 2px; white-space: nowrap; }
.speak-words-list  { display: flex; gap: 4px; flex-wrap: wrap; }

.speak-word-chip {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
}
.chip-gold { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
.speak-chip-a1,.speak-chip-a2 { border-color: #86efac; color: #16a34a; }
.speak-chip-b1,.speak-chip-b2 { border-color: #93c5fd; color: #1d4ed8; }
.speak-chip-c1,.speak-chip-c2 { border-color: #d8b4fe; color: #9333ea; }

/* Zorluk seçimi */
.speak-difficulty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  flex: 1;
}
.speak-diff-label { font-size: .95rem; color: var(--text-muted); font-weight: 600; }
.speak-diff-options { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.speak-diff-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  min-width: 120px;
}
.speak-diff-btn:hover { border-color: var(--primary); background: #eff6ff; }
.diff-icon { font-size: 1.8rem; }
.diff-name { font-size: .95rem; font-weight: 700; }
.diff-desc { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* Chat */
.speak-chat {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
  margin-bottom: 10px;
}

.speak-bubble { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.speak-bubble.ai   { align-self: flex-start; }
.speak-bubble.user { align-self: flex-end; align-items: flex-end; }

.speak-bubble-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.55;
}
.speak-bubble.ai .speak-bubble-text {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.speak-bubble.user .speak-bubble-text {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.speak-bubble-score {
  font-size: .78rem;
  font-weight: 700;
  color: var(--success);
  padding: 0 4px;
  align-self: flex-end;
}

.speak-bubble-correction {
  font-size: .78rem;
  color: var(--text-muted);
  padding: 4px 8px;
  background: #f0fdf4;
  border-radius: 6px;
  border-left: 2px solid #86efac;
  margin-top: 2px;
}

.speak-completed {
  text-align: center;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #16a34a;
}
.speak-completed-title { font-size: 1.1rem; font-weight: 700; }

/* Input */
.speak-input-area { flex-shrink: 0; }
.speak-input-row  { display: flex; gap: 8px; align-items: flex-end; }
.speak-textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.4;
}
.speak-textarea:focus { border-color: var(--primary); }
.speak-input-btns { display: flex; flex-direction: column; gap: 6px; }
.speak-send-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s;
  white-space: nowrap;
}
.speak-send-btn:hover    { background: var(--primary-hover); }
.speak-send-btn:disabled { opacity: .5; cursor: default; }
/* Sticky mic */
.speak-sticky-mic {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
}

.speak-repeat-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
}
.speak-repeat-btn.visible { opacity: 1; pointer-events: auto; }
.speak-repeat-btn:hover { background: #eff6ff; border-color: var(--primary); }

.speak-hold-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transition: all .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.speak-hold-btn:active,
.speak-hold-btn.holding {
  background: #991b1b;
  box-shadow: 0 4px 24px rgba(220,38,38,.7);
  transform: scale(1.1);
}
.hold-icon  { font-size: 1.6rem; line-height: 1; }
.hold-label { font-size: .6rem; font-weight: 600; letter-spacing: .02em; }

@media (max-width: 600px) {
  .speak-sticky-mic { bottom: 16px; }
  .speak-hold-btn { padding: 12px 28px; }
}

/* +X puan animasyonu */
.score-popup {
  position: fixed;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0) translateX(-50%);
  z-index: 9999;
  transition: none;
}
.score-popup.animate {
  animation: floatUp .9s ease-out forwards;
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0)     translateX(-50%); }
  80%  { opacity: 1; transform: translateY(-60px)  translateX(-50%); }
  100% { opacity: 0; transform: translateY(-80px)  translateX(-50%); }
}

@media (max-width: 600px) {
  .speak-page { height: calc(100vh - 52px - 28px); }
  .speak-bubble { max-width: 90%; }
  .speak-diff-options { gap: 8px; }
  .speak-diff-btn { min-width: 90px; padding: 16px 14px; }
}
.speak-page {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px - 40px);
  min-height: 500px;
}

.speak-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.speak-title { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

.speak-score-wrap { text-align: center; }
.speak-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.speak-score-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

.speak-words {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.speak-words-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; padding-top: 3px; white-space: nowrap; }
.speak-words-list  { display: flex; gap: 6px; flex-wrap: wrap; }

.speak-word-chip {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: var(--text-muted);
  transition: all .2s;
}
.speak-word-chip.used { background: #dcfce7; border-color: #86efac; color: #16a34a; }
.speak-chip-a1,.speak-chip-a2 { border-color: #86efac; color: #16a34a; }
.speak-chip-b1,.speak-chip-b2 { border-color: #93c5fd; color: #1d4ed8; }
.speak-chip-c1,.speak-chip-c2 { border-color: #d8b4fe; color: #9333ea; }

.speak-chat {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
  margin-bottom: 12px;
}

.speak-bubble {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.speak-bubble.ai   { align-self: flex-start; }
.speak-bubble.user { align-self: flex-end; }

.speak-bubble-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.5;
}
.speak-bubble.ai .speak-bubble-text {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.speak-bubble.user .speak-bubble-text {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.speak-bubble-note {
  font-size: .75rem;
  color: var(--success);
  font-weight: 600;
  padding: 0 4px;
}
.speak-bubble-note.muted { color: var(--text-muted); font-weight: 400; }

.speak-completed {
  text-align: center;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 600;
  color: #16a34a;
}

.speak-input-area { flex-shrink: 0; }
.speak-input-row  { display: flex; gap: 8px; align-items: flex-end; }

.speak-textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.4;
}
.speak-textarea:focus { border-color: var(--primary); }

.speak-input-btns { display: flex; flex-direction: column; gap: 6px; }

.speak-send-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background .15s;
}
.speak-send-btn:hover    { background: var(--primary-hover); }
.speak-send-btn:disabled { opacity: .5; cursor: default; }

.speak-mic-btn {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  min-height: 40px;
  min-width: 44px;
  transition: all .15s;
}
.speak-mic-btn:hover    { background: #e5e7eb; }
.speak-mic-btn.recording { background: #fee2e2; border-color: #fca5a5; }

@media (max-width: 600px) {
  .speak-page { height: calc(100vh - 52px - 28px); }
  .speak-bubble { max-width: 92%; }
  .speak-title { font-size: 1rem; }
}

/* ── Speaking Report ─────────────────── */
.report-page { max-width: 680px; margin: 0 auto; }

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}
.report-header h1 { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }

.report-summary { text-align: center; flex-shrink: 0; }
.report-score { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.report-score span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.report-score-label { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.report-meta { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

.report-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }

.report-turn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.report-turn-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.report-turn-body {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.report-ai-q {
  padding: 10px 14px;
  background: #f9fafb;
  font-size: .85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.report-user-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}
.report-user-ans { font-size: .92rem; line-height: 1.5; flex: 1; }

.report-score-badge {
  font-size: .8rem;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  padding-top: 2px;
}
.report-score-badge.zero { color: #d1d5db; }

.report-correction {
  padding: 8px 14px;
  background: #f0fdf4;
  border-top: 1px solid #86efac;
  font-size: .82rem;
  color: #166534;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}
.report-correction-icon { flex-shrink: 0; }

.report-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 32px;
}

@media (max-width: 600px) {
  .report-header { flex-direction: column; }
  .report-summary { align-self: flex-start; flex-direction: row; display: flex; gap: 16px; align-items: center; }
}

/* ── Pricing ─────────────────────────── */
.pricing-page {
  max-width: 860px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  padding: 40px 0 32px;
}
.pricing-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.pricing-header p  { color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 6px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.muted { color: var(--text-muted); }

.pricing-current {
  text-align: center;
  font-size: .85rem;
  color: var(--success);
  font-weight: 600;
  padding: 10px;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Profile ─────────────────────────── */
.profile-page {
  max-width: 560px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-header-info { display: flex; flex-direction: column; gap: 4px; }
.profile-name  { font-size: 1.1rem; font-weight: 600; }
.profile-email { font-size: .85rem; color: var(--text-muted); }

.profile-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.profile-usage-row {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.profile-usage-item { flex: 1; }
.profile-usage-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }

.profile-usage-bar-wrap { margin-bottom: 4px; }
.profile-usage-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 99px;
  overflow: hidden;
}
.profile-usage-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width .3s;
}
.profile-usage-fill-gold { background: #f59e0b; }
.profile-usage-text { font-size: .8rem; color: var(--text-muted); }

.profile-upgrade-note {
  font-size: .85rem;
  color: var(--primary);
  margin-top: 4px;
}

.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .profile-usage-row { flex-direction: column; gap: 14px; }
  .profile-section { padding: 16px; }
}
.study-filter-btn.episode-btn { font-size: .75rem; padding: 3px 10px; }
