:root {
  --bg: #120F0C;
  --panel: #1D1712;
  --panel-deep: #0E0B08;
  --line: #3A2E20;
  --line-soft: #2A2119;
  --sepia: #B8894C;
  --sepia-light: #E8C888;
  --cream: #F4ECDD;
  --cream-soft: #C8BBA6;
  --red: #D8503C;

  --sidebar-w: 248px;
  --content-max: 1040px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sepia-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sepia-light);
  color: #241B12;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================
   1. 사이드바 (Sidebar)
============================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--panel-deep);
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
  z-index: 50;
}

/* 필름 퍼포레이션: 사이드바 오른쪽 가장자리 */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 7px;
  background-image: repeating-linear-gradient(to bottom, #000 0 9px, transparent 9px 24px);
  opacity: 0.55;
  pointer-events: none;
}

.sidebar-inner {
  height: 100%;
  overflow-y: auto;
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
  display: block;
}
.brand span { color: var(--sepia-light); }

.brand-tag {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--sepia);
  font-size: 0.875rem;
  margin: -18px 0 0;
  line-height: 1.4;
  text-wrap: balance;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  min-height: 52px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.nav-ico {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.side-nav a.ext::after {
  content: '↗';
  color: var(--sepia);
  font-size: 0.9rem;
  margin-left: auto;
}

.side-nav a:hover {
  border-color: var(--sepia);
  background: rgba(244, 236, 221, 0.05);
  color: var(--cream);
}

.side-nav a.active {
  border-color: var(--sepia-light);
  background: rgba(232, 200, 136, 0.12);
  color: var(--cream);
  font-weight: 700;
}

.side-nav a:focus-visible,
.cat-nav a:focus-visible {
  outline: 2px solid var(--sepia-light);
  outline-offset: 2px;
}

.side-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--cream-soft);
  margin: 0 0 10px 4px;
}

.cat-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.cat-nav a:hover {
  border-color: var(--sepia);
  color: var(--cream);
  background: rgba(244, 236, 221, 0.05);
}

.cat-nav a.active {
  border-color: var(--sepia-light);
  background: rgba(232, 200, 136, 0.09);
  color: var(--cream);
  font-weight: 600;
}

.cat-count {
  font-family: 'Space Mono', monospace;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 236, 221, 0.08);
  color: var(--cream);
  font-size: 0.875rem;
  text-align: center;
}

.side-block { border-top: 1px solid var(--line-soft); padding-top: 22px; }

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.side-foot .btn { width: 100%; }

/* ============================
   2. 모바일 상단 바 & 드로어
============================ */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--panel-deep);
  border-bottom: 1px solid var(--line-soft);
  z-index: 45;
}

.brand-sm { font-size: 1.15rem; }

.menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 48;
}
.scrim[hidden] { display: none; }

/* ============================
   3. 본문 영역
============================ */
.main { margin-left: var(--sidebar-w); }

.main section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter);
}

.about-section { padding-top: 34px; padding-bottom: 10px; }
.featured-section { padding-top: 34px; }

.section-head { margin-bottom: 20px; }

.section-head .eyebrow {
  font-family: 'Space Mono', monospace;
  color: var(--red);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: 'Anton', sans-serif;
  font-size: 1.95rem;
  margin: 5px 0 6px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.section-head p {
  color: var(--cream-soft);
  margin: 0;
  max-width: 62ch;
  font-size: 0.98rem;
}

/* ============================
   4. 히어로 (Hero)
============================ */
.film-strip {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background: var(--panel-deep);
}

.film-strip::before,
.film-strip::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(to right, #000 0 10px, transparent 10px 24px);
}
.film-strip::before { top: 0; }
.film-strip::after { bottom: 0; }

.hero {
  position: relative;
  padding: 92px 24px 96px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(14, 11, 8, 0.6), #0E0B08),
    url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
}

.hero .script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--sepia-light);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin: 10px 0 6px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero .sub {
  color: var(--cream-soft);
  max-width: 46ch;
  margin: 16px auto 28px;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   5. 버튼
============================ */
.btn {
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid var(--sepia-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  cursor: pointer;
}

.btn-primary { background: var(--sepia-light); color: #241B12; }
.btn-ghost { color: var(--cream); background: transparent; }
.btn-sm { font-size: 0.92rem; padding: 9px 16px; min-height: 40px; }
.back-link { margin-bottom: 22px; }

/* ============================
   6. About
============================ */
.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 24px;
  gap: 20px;
}

@media (min-width: 768px) {
  .about-card {
    flex-direction: row;
    text-align: left;
    padding: 36px 44px;
    gap: 36px;
  }
}

.about-avatar {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sepia-light);
  background: var(--cream);
}

.about-text h2 {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.about-text p {
  color: var(--cream-soft);
  font-size: 1rem;
  margin: 0 0 12px;
  max-width: 62ch;
}

.about-text strong { color: var(--sepia-light); }

.about-link {
  color: #F07A66;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
}
.about-link:hover { opacity: 0.8; }

/* ============================
   7. 가로 스크롤 릴 & 카드
============================ */
.reel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.reel::-webkit-scrollbar { height: 6px; }
.reel::-webkit-scrollbar-track { background: transparent; }
.reel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* 항목이 적을 땐 가로 스크롤 대신 그리드로 배치 */
.reel.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  overflow: visible;
  padding-bottom: 0;
}
.reel.is-grid .frame { flex: none; width: auto; }

.frame {
  flex: 0 0 clamp(260px, 78vw, 320px);
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}

.frame .sprocket {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: var(--panel-deep);
}

.frame .sprocket i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.frame-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #3A2E1D, #12100C);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  position: relative;
}

.frame-thumb .num {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.frame-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.frame-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame-body p {
  font-size: 0.92rem;
  color: var(--cream-soft);
  margin: 0 0 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   레슨 카드 & 그리드 (Lessons Grid)
============================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  margin: 0 0 22px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip:hover {
  border-color: var(--sepia);
  color: var(--cream);
  background: rgba(244, 236, 221, 0.04);
}
.chip.active {
  background: var(--sepia-light);
  border-color: var(--sepia-light);
  color: #241B12;
  font-weight: 600;
}
.chip .cat-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  opacity: .7;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s, box-shadow 0.22s;
  height: 100%;
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: var(--sepia-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 200, 136, 0.25);
}

.frame-thumb-link {
  display: block;
  text-decoration: none;
  position: relative;
}

.empty-note {
  border: 1px dashed var(--line);
  padding: 28px 24px;
  text-align: center;
  color: var(--cream-soft);
  border-radius: 6px;
  background: rgba(244, 236, 221, 0.02);
  line-height: 1.7;
}
.empty-note a {
  color: var(--sepia-light);
  text-decoration: underline;
}

/* ============================
   Card Action Row & Buttons
============================ */
.frame-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-card-video {
  background: rgba(244, 236, 221, 0.06);
  border: 1px solid var(--line);
  color: var(--cream-soft);
}
.btn-card-video:hover {
  background: rgba(244, 236, 221, 0.15);
  color: #fff;
  border-color: var(--cream-soft);
}

.btn-card-practice {
  background: rgba(184, 137, 76, 0.15);
  border: 1px solid var(--sepia);
  color: var(--sepia-light);
}
.btn-card-practice:hover {
  background: var(--sepia-light);
  color: #1a130c;
  font-weight: 700;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}









/* ============================
   🔥 매일 복습 훈련실 (Practice Hub)
============================ */
.practice-header-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.practice-ep-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.selector-label {
  font-weight: 700;
  color: var(--sepia-light);
  font-size: 0.95rem;
  white-space: nowrap;
}

.ep-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ep-pill {
  background: var(--panel-deep);
  border: 1px solid var(--line);
  color: var(--cream-soft);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ep-pill:hover {
  border-color: var(--sepia);
  color: #fff;
  transform: translateY(-1px);
}

.ep-pill.active {
  background: var(--sepia-light);
  border-color: var(--sepia-light);
  color: #1a130c;
  font-weight: 700;
}

.ep-pill.done {
  border-color: #56D364;
}

.ep-pill .pill-check {
  color: #56D364;
  font-weight: 900;
}

.ep-pill.active .pill-check {
  color: #0d4a1b;
}

.practice-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.practice-ep-tag {
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 0.85rem;
  color: var(--sepia);
  font-weight: 500;
}

.practice-heading {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  margin: 6px 0 0;
  color: var(--cream);
  line-height: 1.3;
}

.practice-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 진도율 대시보드 */
.progress-dashboard-card {
  background: rgba(14, 11, 8, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.progress-stat .highlight-num {
  color: #56D364;
  font-size: 1.2rem;
}

.progress-rate {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rate-badge {
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sepia-light);
  background: rgba(232, 200, 136, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 200, 136, 0.25);
}

.progress-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.875rem;
  color: #8C8578;
}

.progress-tip {
  color: #8C8578;
}

.btn-reset-progress {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8C8578;
  font-size: 0.875rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reset-progress:hover {
  background: rgba(216, 80, 60, 0.15);
  border-color: var(--red);
  color: var(--cream);
}

.progress-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sepia) 0%, #56D364 100%);
  border-radius: 6px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(86, 211, 100, 0.4);
}

/* 훈련 탭 전환기 */
.practice-tab-nav {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.practice-tab-btn {
  flex: 1;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  color: var(--cream-soft);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.practice-tab-btn:hover {
  border-color: var(--sepia);
  color: #fff;
}

.practice-tab-btn.active {
  background: rgba(184, 137, 76, 0.2);
  border-color: var(--sepia-light);
  color: var(--sepia-light);
  font-weight: 700;
}

.label-short {
  display: none;
}

@media (max-width: 640px) {
  .ep-pill-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 2px 4px 6px;
  }
  .ep-pill-list::-webkit-scrollbar {
    display: none;
  }
  .ep-pill {
    flex: none;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .practice-tab-btn {
    padding: 12px 10px;
    font-size: 0.98rem;
  }
  .progress-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-reset-progress {
    white-space: nowrap;
    min-height: 36px;
  }
  .practice-quick-actions {
    width: 100%;
  }
  .practice-quick-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* 스피킹 훈련 모드 바 */
.drill-mode-bar {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  gap: 12px;
}

.mode-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.mode-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mode {
  background: var(--panel-deep);
  border: 1px solid var(--line);
  color: var(--cream-soft);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode:hover {
  border-color: var(--sepia);
  color: #fff;
}

.btn-mode.active {
  background: var(--sepia-light);
  border-color: var(--sepia-light);
  color: #1a130c;
  font-weight: 700;
}

/* 🔲 블라인드 가리기 버튼군 */
.blind-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

.blind-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sepia);
  margin-right: 4px;
}

.btn-blind {
  background: transparent;
  border: 1px solid transparent;
  color: var(--cream-soft);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-blind:hover {
  color: #fff;
  background: rgba(232, 200, 136, 0.1);
}

.btn-blind.active {
  background: #B8894C;
  color: #1a130c;
  font-weight: 700;
}

.mode-tip {
  font-size: 0.88rem;
  color: var(--cream-soft);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}

/* 🔲 청크 세그먼트 (블라인드 훈련 상호작용) */
.chunk-seg {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

/* 영어 가리기 모드 */
.viewport-blind-en .chunk-seg.chunk-en {
  filter: blur(6px);
  background: rgba(232, 200, 136, 0.15);
  color: transparent !important;
  text-shadow: 0 0 10px rgba(232, 200, 136, 0.6);
  cursor: pointer;
  user-select: none;
}
.viewport-blind-en .chunk-seg.chunk-en:hover {
  filter: blur(4px);
  background: rgba(232, 200, 136, 0.25);
}
.viewport-blind-en .chunk-seg.chunk-en.revealed {
  filter: none !important;
  color: var(--sepia-light) !important;
  text-shadow: none !important;
  background: rgba(86, 211, 100, 0.15) !important;
  box-shadow: inset 0 0 0 1px rgba(86, 211, 100, 0.4);
}

/* 해석 가리기 모드 */
.viewport-blind-ko .chunk-seg.chunk-ko {
  filter: blur(6px);
  background: rgba(244, 236, 221, 0.12);
  color: transparent !important;
  text-shadow: 0 0 10px rgba(244, 236, 221, 0.5);
  cursor: pointer;
  user-select: none;
}
.viewport-blind-ko .chunk-seg.chunk-ko:hover {
  filter: blur(4px);
  background: rgba(244, 236, 221, 0.2);
}
.viewport-blind-ko .chunk-seg.chunk-ko.revealed {
  filter: none !important;
  color: var(--cream) !important;
  text-shadow: none !important;
  background: rgba(86, 211, 100, 0.15) !important;
  box-shadow: inset 0 0 0 1px rgba(86, 211, 100, 0.4);
}

/* ============================
   문장 확장 스피킹 훈련 (Drill Styles)
============================ */
.drill-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.drill-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  transition: all 0.2s ease;
}

.drill-block.is-completed {
  border-left-color: #56D364;
  background: rgba(86, 211, 100, 0.03);
}

.drill-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
}

.drill-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  letter-spacing: .06em;
  color: var(--sepia);
  font-weight: 700;
  background: rgba(184, 137, 76, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

.drill-step {
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--line-soft);
  margin-bottom: 8px;
}

.drill-step:last-of-type {
  margin-bottom: 0;
}

.drill-en {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream);
}

.drill-en span.new, .drill-ko span.new { color: var(--sepia-light); font-weight: 700; }
.drill-en span.highlight-green, .drill-ko span.highlight-green { color: #56D364; font-weight: 700; }
.drill-en span.highlight-blue, .drill-ko span.highlight-blue { color: #73C2FB; font-weight: 700; }

.drill-ko {
  font-size: .9rem;
  color: var(--cream-soft);
  margin-top: 3px;
  line-height: 1.5;
}

.drill-full {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(232, 200, 136, .07);
  border: 1px solid rgba(232, 200, 136, .25);
  border-left: 4px solid var(--sepia-light);
  border-radius: 8px;
}

.drill-full.drill-chunk-only,
.lp-drill-full.lp-drill-chunk-only {
  margin-top: 6px;
  background: rgba(232, 200, 136, .09);
  border: 1px solid rgba(232, 200, 136, .35);
  border-left: 4px solid #E8C888;
}

.drill-full .full-en {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sepia-light);
  line-height: 1.5;
}

.drill-full .full-ko {
  font-size: 0.98rem;
  color: var(--cream);
  margin-top: 6px;
}

.btn-check-drill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 236, 221, 0.05);
  border: 1px solid var(--line);
  color: var(--cream-soft);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-check-drill .check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-check-drill:hover {
  border-color: var(--sepia);
  color: #fff;
}

.btn-check-drill.checked {
  background: rgba(86, 211, 100, 0.15);
  border-color: #56D364;
  color: #56D364;
}

.btn-check-drill.checked .check-box {
  background: #56D364;
  border-color: #56D364;
  color: #0c3314;
  font-weight: 900;
}

/* 1문장 집중 훈련 카드 */
.focus-drill-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.focus-drill-card.is-completed {
  border-color: #56D364;
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
}

.focus-counter {
  font-size: 1.2rem;
  color: var(--sepia-light);
}

.focus-counter .orig-idx {
  font-size: 0.85rem;
  color: var(--cream-soft);
  margin-left: 8px;
}

.focus-step {
  margin-bottom: 26px;
}

.focus-step .drill-en {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
}

.focus-step .drill-ko {
  font-size: 1.15rem;
}

.focus-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.focus-control-bar .btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
}







/* ============================
   단어 플래시카드 (3D Flip Deck)
============================ */
.flashcard-deck-header {
  margin-bottom: 20px;
}

.deck-tip {
  background: rgba(184, 137, 76, 0.08);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--sepia-light);
  font-size: 0.92rem;
}

.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.flash {
  perspective: 1000px;
  height: 190px;
  cursor: pointer;
  outline: none;
  border-radius: 10px;
}

.flash:focus-visible .flash-face {
  border-color: var(--sepia-light);
  box-shadow: 0 0 0 2px var(--sepia-light);
}

.flash-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}

.flash.flipped .flash-inner {
  transform: rotateY(180deg);
}

.flash-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  text-align: center;
}

.flash:hover .flash-face {
  border-color: var(--sepia);
}

.flash-front {
  background: var(--panel);
}

.flash-front .card-idx {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--sepia);
  font-weight: 700;
}

.flash-front .word {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-break: keep-all;
}

.flash-front .tap {
  font-size: 0.875rem;
  color: var(--cream-soft);
  font-weight: 500;
  align-self: flex-end;
  position: absolute;
  bottom: 14px;
  opacity: .7;
}

.flash-back {
  background: linear-gradient(160deg, #241B12, var(--panel-deep));
  transform: rotateY(180deg);
  border-color: var(--sepia);
}

.flash-back .flash-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 700;
}

.flash-back .mean {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sepia-light);
  line-height: 1.4;
}

.flash-back .ex {
  font-size: .85rem;
  color: var(--cream-soft);
  font-style: italic;
  line-height: 1.55;
  margin-top: 4px;
}

/* ============================
   1. 영상 레슨 상세 — 유튜브 플레이어 & 헤더
============================ */
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}







/* ============================
   2. 홈 — 새로 올라온 에피소드
============================ */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
@media (max-width: 720px) {
  .featured { grid-template-columns: 1fr; }
}

.featured-thumb-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}
.featured-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}
.featured-thumb > .num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .65);
  color: var(--sepia-light);
}

.featured-body h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 6px 0 8px;
  word-break: keep-all;
}
.featured-body p {
  color: var(--cream-soft);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.ep-label {
  font-family: 'IBM Plex Sans KR', sans-serif;
  font-size: 0.85rem;
  color: var(--sepia);
  font-weight: 500;
}

/* ============================
   3. 레슨 목록 — 칩 필터 / 카드 / 더보기 타일
============================ */







.lessons-grid .frame {
  flex: initial;
  width: auto;
  display: flex;
  flex-direction: column;
}

.lessons-grid .frame-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lessons-grid .frame-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lessons-grid .frame-action-row { margin-top: auto; }



.more-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--cream-soft);
  text-decoration: none;
  text-align: center;
  transition: border-color .15s ease;
}
.more-tile:hover { border-color: var(--sepia); }
.more-tile strong { color: var(--sepia-light); font-size: 1rem; }
.more-tile span { font-size: .84rem; line-height: 1.5; }




/* ============================
   4. 복습 훈련실 — 문장 확장 스피킹 훈련
============================ */
.practice-tab-content { margin-top: 18px; }












.full-en {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sepia-light);
}
.full-ko {
  font-size: .92rem;
  color: var(--cream-soft);
  margin-top: 6px;
}

.focus-body { margin: 6px 0 24px; }
.focus-full { margin-top: 20px; }
.check-text { font-size: 0.875rem; }

/* ============================
   5. 단어 플래시카드 (3D Flip Deck)
============================ */



.flash:focus-visible { outline: 2px solid var(--sepia-light); outline-offset: 3px; }






.flash-front .card-idx,
.flash-back .flash-tag {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--sepia);
}







/* ============================
   6. 기타 잔여 클래스
============================ */
.stat-icon { margin-right: 4px; }
.stat-text { font-size: .95rem; }


/* PDF 영역 */
.btn-pdf { background: var(--red); color: #fff; border-color: var(--red); }
.btn-pdf:hover { background: #B64332; border-color: #B64332; }

/* ============================
   7. 푸터 & 뷰 전환
============================ */
footer {
  padding: 52px var(--gutter) 48px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  margin-top: 24px;
}

footer > p { color: var(--cream-soft); font-size: 0.98rem; }
footer .btn { margin-top: 10px; margin-bottom: 22px; }

.footer-fine {
  font-size: 0.875rem;
  color: #8C8578;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.footer-fine p { margin: 0 0 8px; }
.footer-fine p:last-child { margin-bottom: 0; }
.footer-fine a { color: #8C8578; text-decoration: underline; }

.view.hidden { display: none !important; }

/* ============================
   8. 반응형 미디어쿼리 (모바일)
============================ */
@media (max-width: 980px) {
  .topbar { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    width: min(290px, 84vw);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open { transform: translateX(0); }

  .main { margin-left: 0; padding-top: 58px; }

  :root { --gutter: 18px; }

  .hero { padding: 64px 20px 68px; }
  .section-head h2 { font-size: 1.6rem; }
  .drill-en { font-size: 1.05rem; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================
   유틸리티 클래스 & 완주 축하 배너
   ========================================== */

.focus-celebration {
  background: linear-gradient(135deg, rgba(86, 211, 100, 0.15) 0%, rgba(224, 86, 36, 0.15) 100%);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeInScale 0.3s ease-out;
}
.focus-celebration h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #56D364;
}
.focus-celebration p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   🎬 Upcoming / 곧 공개 예정 스타일
   ========================================== */
.badge-upcoming-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(216, 80, 60, 0.15);
  border: 1px solid rgba(216, 80, 60, 0.4);
  color: #ff9b8a;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.featured-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.featured-upcoming-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border: 1px dashed rgba(232, 200, 136, 0.25);
  border-radius: 6px;
}

.upcoming-pulsing-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(232, 200, 136, 0.35);
  color: var(--sepia-light);
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5e48;
  box-shadow: 0 0 8px #ff5e48;
  animation: pulse-dot-anim 1.8s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.upcoming-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upcoming-center-box .huge-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.upcoming-main-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.upcoming-schedule-desc {
  font-size: 0.875rem;
  color: var(--sepia-light);
  opacity: 0.9;
}

.featured-upcoming-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(184, 137, 76, 0.08);
  border: 1px solid rgba(184, 137, 76, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cream-soft);
}

.featured-upcoming-notice .notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.featured-upcoming-notice strong {
  color: var(--sepia-light);
}

.btn-upcoming-ghost {
  border-color: rgba(232, 200, 136, 0.35);
  color: var(--sepia-light);
}

/* 레슨 카드 내 곧 공개 예정 */
.upcoming-thumb-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.upcoming-thumb-content .upcoming-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.upcoming-thumb-content .upcoming-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cream);
}

.upcoming-thumb-content .upcoming-badge-sub {
  font-size: 0.875rem;
  color: var(--sepia-light);
  opacity: 0.9;
}

.btn-card-upcoming {
  opacity: 0.85;
}











/* 실시간 라이브 카운트다운 박스 */
.live-countdown-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 8, 0.75);
  border: 1px solid rgba(232, 200, 136, 0.35);
  border-radius: 8px;
  padding: 12px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.countdown-head-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sepia-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown-digits-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
}

.digit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 200, 136, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 48px;
}

.digit-box .cd-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFE29F;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 226, 159, 0.35);
}

.digit-box .unit {
  font-size: 0.875rem;
  color: var(--cream-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.countdown-digits-row .colon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sepia-light);
  animation: colonBlink 1s infinite;
}

@keyframes colonBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.countdown-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--cream-soft);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 10px;
}



@media (max-width: 640px) {
  .featured-thumb .countdown-local-badge,
  .featured-thumb .countdown-head-label {
    display: none;
  }
  .featured-thumb .live-countdown-clock {
    padding: 8px 12px;
    gap: 4px;
  }
  .featured-thumb .digit-box {
    min-width: 44px;
    padding: 3px 6px;
  }
  .featured-thumb .digit-box .cd-num {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .featured-actions {
    flex-direction: column;
  }
  .featured-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.countdown-live-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(86, 211, 100, 0.15);
  border: 1px solid rgba(86, 211, 100, 0.5);
  color: #56D364;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.countdown-live-banner:hover {
  background: rgba(86, 211, 100, 0.25);
  border-color: #56D364;
}






/* ==========================================
   8. 개별 정적 레슨 페이지 전용 스타일 (lp- prefix)
   ========================================== */
.lp-body {
  margin: 0;
  padding: 0;
  background: #0E0B08;
  color: var(--cream);
  font-family: 'IBM Plex Sans KR', sans-serif;
  line-height: 1.6;
}

.lp-navbar {
  position: sticky;
  top: 0;
  background: rgba(23, 18, 13, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 100;
}

.lp-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-brand-logo {
  border-radius: 4px;
}

.lp-brand-text {
  font-family: 'Anton', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lp-nav-link {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.lp-nav-link:hover {
  color: var(--sepia-light);
}

.lp-nav-link.lp-highlight {
  color: var(--sepia-light);
  font-weight: 700;
}

.lp-nav-link.lp-yt {
  color: #ff6b6b;
}

.lp-main {
  padding: 36px 0 64px;
}

.lp-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.lp-breadcrumb {
  font-size: 0.85rem;
  color: var(--sepia);
  margin-bottom: 20px;
}

.lp-breadcrumb a {
  color: var(--cream-soft);
  text-decoration: none;
}

.lp-breadcrumb a:hover {
  color: var(--sepia-light);
  text-decoration: underline;
}

.lp-lesson-header {
  margin-bottom: 28px;
}

.lp-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lp-level-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sepia-light);
  background: rgba(184, 137, 76, 0.15);
  border: 1px solid var(--sepia);
  padding: 3px 8px;
  border-radius: 4px;
}

.lp-ep-sub {
  font-size: 0.9rem;
  color: var(--cream-soft);
}

.lp-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
  word-break: keep-all;
}

.lp-lead {
  font-size: 1.05rem;
  color: var(--cream-soft);
  margin: 0;
  line-height: 1.6;
}

.lp-video-section {
  margin-bottom: 32px;
}

.lp-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.lp-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lp-video-cover {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-video-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.lp-video-cover:hover .lp-video-cover-img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.lp-play-btn {
  position: absolute;
  width: 68px;
  height: 48px;
  background: rgba(216, 80, 60, 0.92);
  color: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lp-video-cover:hover .lp-play-btn {
  background: var(--red);
  transform: scale(1.12);
}

.lp-action-banner {
  margin-bottom: 48px;
}

.lp-action-card {
  background: linear-gradient(135deg, rgba(184, 137, 76, 0.18) 0%, rgba(216, 80, 60, 0.15) 100%);
  border: 1.5px solid var(--sepia-light);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-action-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.lp-action-text h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.35;
}

.lp-action-text p {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.96rem;
}

.lp-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lp-btn-primary {
  background: var(--sepia-light);
  color: #1A130C;
}

.lp-btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.lp-btn-secondary {
  background: rgba(244, 236, 221, 0.08);
  border: 1px solid var(--line);
  color: var(--cream);
}

.lp-btn-secondary:hover {
  background: rgba(244, 236, 221, 0.16);
  border-color: var(--cream-soft);
}

.lp-section {
  margin-bottom: 56px;
}

.lp-section-head {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.lp-sec-eyebrow {
  font-family: 'Space Mono', monospace;
  color: var(--red);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-section-head h2 {
  font-size: 1.45rem;
  margin: 6px 0 6px;
  color: #fff;
}

.lp-section-head p {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.92rem;
}

.lp-expr-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.lp-expr-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-expr-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sepia);
}

.lp-expr-body {
  display: flex;
  flex-direction: column;
}

.lp-expr-en {
  font-size: 1.02rem;
  color: var(--cream);
}

.lp-expr-ko {
  font-size: 0.86rem;
  color: var(--cream-soft);
}

.lp-drills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-drill-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
}

.lp-drill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lp-drill-idx {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: var(--sepia);
  font-weight: 700;
}

.lp-drill-practice-link {
  font-size: 0.875rem;
  color: var(--sepia-light);
  text-decoration: none;
  background: rgba(184, 137, 76, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(184, 137, 76, 0.25);
  transition: all 0.2s ease;
}

.lp-drill-practice-link:hover {
  background: var(--sepia-light);
  color: #1A130C;
}

.lp-drill-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.lp-step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  row-gap: 2px;
  column-gap: 12px;
  font-size: 0.92rem;
  padding-left: 10px;
  border-left: 2px solid var(--line-soft);
}

.lp-step-bullet {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--sepia);
  grid-row: 1 / span 2;
  align-self: center;
}

.lp-step-en {
  color: var(--cream);
  font-weight: 500;
}

.lp-step-ko {
  color: var(--cream-soft);
  font-size: 0.85rem;
}

.lp-drill-full {
  background: rgba(232, 200, 136, 0.07);
  border: 1px solid rgba(232, 200, 136, 0.25);
  border-radius: 6px;
  padding: 14px 18px;
}

.lp-full-en {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sepia-light);
  margin: 0 0 4px;
}

.lp-full-ko {
  font-size: 0.92rem;
  color: var(--cream-soft);
  margin: 0;
}

.lp-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.lp-other-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lp-other-card:hover {
  transform: translateY(-3px);
  border-color: var(--sepia-light);
}

.lp-other-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.lp-other-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--sepia-light);
  padding: 2px 6px;
  border-radius: 3px;
}

.lp-other-info {
  padding: 12px 14px;
}

.lp-other-sub {
  display: block;
  font-size: 0.875rem;
  color: var(--sepia);
  margin-bottom: 4px;
}

.lp-other-title {
  display: block;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.4;
}

.lp-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--cream-soft);
}

.lp-foot-brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 4px;
}

.lp-foot-desc {
  margin: 0 0 16px;
}

.lp-foot-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.lp-foot-links a {
  color: var(--cream-soft);
  text-decoration: none;
}

.lp-foot-links a:hover {
  color: var(--sepia-light);
  text-decoration: underline;
}

.lp-foot-copy {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .lp-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
  .lp-action-card {
    padding: 20px;
  }
  .lp-action-buttons {
    flex-direction: column;
  }
  .lp-btn {
    width: 100%;
    box-sizing: border-box;
  }
  .lp-step-row {
    grid-template-columns: 1fr;
  }
  .lp-step-bullet {
    grid-row: auto;
    margin-bottom: 2px;
  }
}

/* ==========================================
   9. 성장 기능 전용 스타일 (gr- prefix: G-3, G-4, G-5)
   ========================================== */

/* G-4: 연속 연습일 (Streak Badge) */
.gr-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 94, 72, 0.18) 0%, rgba(232, 200, 136, 0.15) 100%);
  border: 1px solid rgba(255, 94, 72, 0.4);
  color: #FFE29F;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

/* G-3: 다음 레슨 카드 & 구독 배너 */
.gr-next-section {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gr-next-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gr-next-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sepia-light);
  letter-spacing: 0.06em;
}

.gr-next-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.gr-next-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background-color: #000;
}

.gr-thumb-num {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--sepia-light);
  padding: 2px 6px;
  border-radius: 3px;
}

.gr-next-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gr-next-sub {
  font-size: 0.875rem;
  color: var(--sepia);
}

.gr-next-title {
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.35;
}

.gr-next-desc {
  font-size: 0.88rem;
  color: var(--cream-soft);
  margin: 0;
  line-height: 1.5;
}

.gr-next-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gr-subscribe-banner {
  background: linear-gradient(135deg, rgba(216, 80, 60, 0.12) 0%, rgba(184, 137, 76, 0.12) 100%);
  border: 1px dashed rgba(232, 200, 136, 0.35);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gr-sub-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gr-sub-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.gr-sub-text strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.gr-sub-text p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--cream-soft);
}

.gr-sub-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* G-5: 공유 버튼 및 토스트 알림 */
.lp-btn-share {
  background: rgba(232, 200, 136, 0.12);
  border: 1px solid rgba(232, 200, 136, 0.35);
  color: var(--sepia-light);
  cursor: pointer;
}

.lp-btn-share:hover {
  background: rgba(232, 200, 136, 0.25);
  border-color: var(--sepia-light);
  color: #fff;
}

.gr-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(23, 18, 13, 0.95);
  color: #fff;
  border: 1px solid var(--sepia-light);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
  z-index: 9999;
}

.gr-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 680px) {
  .gr-next-content {
    grid-template-columns: 1fr;
  }
  .gr-subscribe-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .gr-sub-text {
    flex-direction: column;
    gap: 8px;
  }
  .gr-sub-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ===================================================================
   R-1: 내 학습 기록판 및 다시 연습 목록 (rv-)
   =================================================================== */
.rv-container {
  max-width: 1100px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.rv-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-card {
  background: var(--bg-card, #1c150e);
  border: 1px solid var(--border, #3a2b1c);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rv-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.rv-card-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rv-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sepia-light, #f4ecd8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv-title-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
}

/* 글자 높이에 맞춘 작은 인라인 아이콘 */
.rv-icon-inline {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  margin-right: 4px;
}

.rv-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted, #a89882);
}

.rv-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.rv-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, #3a2b1c);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rv-stat-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.rv-stat-info {
  display: flex;
  flex-direction: column;
}

.rv-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sepia-light, #E8C888);
  line-height: 1.2;
}

.rv-stat-label {
  font-size: 0.9rem;
  color: var(--cream-soft, #a89882);
}

/* V-1: 다음 배지 진행 바 */
.rv-goal-row {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #3a2b1c);
  border-radius: 8px;
}

.rv-goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--cream-soft, #F4ECDD);
}

.rv-goal-title {
  display: block;
}

.rv-goal-badge-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 2px;
}

.rv-goal-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  color: var(--sepia-light, #E8C888);
  font-weight: 600;
}

.rv-goal-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rv-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8894c, #e8c888);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.rv-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rv-badges-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted, #a89882);
}

.rv-badges-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

.rv-badge-img-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.rv-badge-img {
  width: 36px;
  height: 36px;
  display: block;
}

.rv-badge-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  background: #1d1712;
  border-radius: 50%;
  padding: 1px;
}

.rv-badge-earned {
  background: rgba(229, 169, 60, 0.15);
  border-color: rgba(229, 169, 60, 0.4);
  color: var(--sepia-light, #f4ecd8);
}

.rv-badge-locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #7a6e60;
}

.rv-badge-locked .rv-icon {
  filter: grayscale(1);
  opacity: 0.35;
}

.rv-review-card {
  border-color: rgba(229, 169, 60, 0.35);
  background: linear-gradient(180deg, #221a12 0%, #1a130b 100%);
}

.rv-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rv-review-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border, #3a2b1c);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.rv-review-item:hover {
  border-color: var(--accent, #e5a93c);
}

.rv-review-text {
  flex: 1;
  min-width: 0;
}

.rv-review-en {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--sepia-light, #f4ecd8);
  margin-bottom: 4px;
  word-break: break-word;
}

.rv-review-ko {
  font-size: 0.92rem;
  color: var(--text-muted, #a89882);
  word-break: break-word;
}

.rv-review-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rv-btn-done {
  background: var(--accent, #e5a93c);
  color: #1a130b;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.rv-btn-done:hover {
  background: #f0b955;
  transform: translateY(-1px);
}

.rv-review-link {
  font-size: 0.85rem;
  color: var(--text-muted, #a89882);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.rv-review-link:hover {
  color: var(--accent, #e5a93c);
  border-color: var(--accent, #e5a93c);
}

@media (max-width: 640px) {
  .rv-card {
    padding: 16px 14px;
  }
  .rv-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .rv-stat-box {
    padding: 8px 6px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .rv-stat-img {
    width: 32px;
    height: 32px;
  }
  .rv-stat-num {
    font-size: 1.25rem;
  }
  .rv-stat-label {
    font-size: 0.875rem;
  }
  .rv-badges-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .rv-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: 0.875rem;
    gap: 6px;
  }
  .rv-review-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rv-review-action {
    width: 100%;
    justify-content: space-between;
  }
  .rv-btn-done {
    flex: 1;
    text-align: center;
  }
}

/* ==============================================
   문장 듣기 버튼 (L-1): 손가락으로 누르기 쉽게 44px 이상
=============================================== */
.say-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: 8px;
  border: 1px solid var(--border-color, #44372c);
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.say-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}
.say-btn:active {
  transform: scale(0.95);
}

/* ==============================================
   오늘의 생활 영어 코너 (A-1): art- 접두사 격리 스타일
=============================================== */
.art-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.art-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub, #b5a999);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}
.art-back-nav:hover {
  color: var(--gold, #E8C888);
}

.art-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #44372c);
}

.art-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.art-date-badge {
  background: rgba(232, 200, 136, 0.12);
  color: var(--gold, #E8C888);
  border: 1px solid rgba(232, 200, 136, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.art-topic-badge {
  background: rgba(77, 166, 255, 0.12);
  color: #80c0ff;
  border: 1px solid rgba(77, 166, 255, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.art-title-ko {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main, #f5eedc);
  line-height: 1.35;
  margin: 0 0 8px;
  word-break: keep-all;
}

.art-title-en {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-sub, #b5a999);
  margin: 0;
  line-height: 1.4;
}

.art-section {
  margin-top: 32px;
}

.art-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold, #E8C888);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.art-sentences-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.art-sentence-card {
  background: #1D1712;
  border: 1px solid var(--border-color, #44372c);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-sentence-en {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.art-sentence-en span.highlight-blue {
  color: #4da6ff;
  font-weight: 800;
}

.art-sentence-ko {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream, #f5eedc);
  line-height: 1.5;
  padding-left: 2px;
}

.art-sentence-ko span.highlight-blue {
  color: #80c0ff;
  font-weight: 700;
}

/* 끊어 읽기 "/" — 문장보다 흐리게 */
.chunk-sep {
  color: var(--cream-soft);
  opacity: 0.6;
  font-weight: 400;
}

/* 숨기기 버튼을 누르면 "/"만 사라짐 (띄어쓰기는 그대로) */
.hide-chunks .chunk-sep {
  display: none;
}

/* 자연스러운 한국어 해석 — 끊어 읽기 줄 아래에 작게 (휴대폰 최소 14px) */
.art-sentence-full-ko {
  font-size: 0.875rem;
  color: var(--cream-soft);
  line-height: 1.5;
  margin-top: 4px;
  padding-left: 2px;
}

/* 끊어 읽기 보기·숨기기 버튼 */
.btn-chunk-toggle {
  min-height: 44px;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream, #f5eedc);
  font-size: 0.875rem;
  cursor: pointer;
}

.art-sentence-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.art-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.art-btn-listen {
  background: #2B2117;
  color: var(--cream, #f5eedc);
  border: 1px solid var(--border-color, #44372c);
}
.art-btn-listen:hover {
  background: #3a2e20;
  border-color: var(--sepia-light, #E5B869);
  color: #fff;
}

.art-btn-loop {
  background: #251B12;
  color: var(--gold, #E8C888);
  border: 1px solid var(--gold, #E8C888);
}
.art-btn-loop:hover {
  background: rgba(232, 200, 136, 0.15);
}
.art-btn-loop.is-active {
  background: var(--gold, #E8C888) !important;
  color: #1a140f !important;
  border-color: var(--gold, #E8C888) !important;
}

.art-btn-stop {
  background: transparent;
  color: #e07a7a;
  border: 1px solid rgba(224, 122, 122, 0.4);
}
.art-btn-stop:hover {
  background: rgba(224, 122, 122, 0.15);
  border-color: #ff5252;
  color: #ff5252;
}

.art-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.art-word-card {
  background: #1D1712;
  border: 1px solid var(--border-color, #44372c);
  border-radius: 8px;
  padding: 14px 16px;
}

.art-word-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.art-word-en {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold, #E8C888);
}

.art-word-ko {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream, #f5eedc);
}

.art-word-ex {
  font-size: 0.88rem;
  color: var(--text-sub, #b5a999);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}

/* AS-1: 짐의 표현 노트 스타일 (모바일 14px 이상 유지, 다크 테마 일관성) */
.art-notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.art-note-card {
  background: #1D1712;
  border: 1px solid var(--border-color, #44372c);
  border-left: 4px solid var(--gold, #E8C888);
  border-radius: 8px;
  padding: 18px 20px;
}

.art-note-expr {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold, #E8C888);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.art-note-explain {
  font-size: 0.95rem; /* ~15.2px */
  color: var(--text-main, #f5eedc);
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.art-note-examples {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-note-examples li {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.92rem; /* ~14.7px */
  line-height: 1.55;
  border-left: 2px solid rgba(232, 200, 136, 0.4);
}

.art-note-examples li [lang="en"] {
  font-weight: 700;
  color: var(--gold, #E8C888);
  display: inline-block;
  margin-bottom: 2px;
}

.art-note-examples li span:not([lang="en"]) {
  color: var(--text-sub, #b5a999);
}

.art-note-mistake {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.25);
  border-radius: 6px;
  font-size: 0.88rem; /* 14.08px */
  color: #ff9e9e;
  line-height: 1.5;
}

.art-speak-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(29, 23, 18, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 18px 20px;
}

.art-speak-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #f5eedc);
  line-height: 1.45;
  margin: 0;
}

.art-refs-box {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color, #44372c);
  font-size: 0.875rem;
  color: var(--text-sub, #b5a999);
  line-height: 1.6;
}

.art-refs-box a {
  color: var(--text-sub, #b5a999);
  text-decoration: underline;
  word-break: break-all;
}
.art-refs-box a:hover {
  color: var(--gold, #E8C888);
}

/* 목록 화면 (/life) */
.art-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.art-list-item {
  background: #1D1712;
  border: 1px solid var(--border-color, #44372c);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
  text-decoration: none;
}
.art-list-item:hover {
  border-color: var(--gold, #E8C888);
  transform: translateY(-2px);
}

.art-list-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #f5eedc);
  margin: 8px 0 6px;
  line-height: 1.35;
}
.art-list-item:hover .art-list-title {
  color: var(--gold, #E8C888);
}

.art-list-sub {
  font-size: 0.95rem;
  color: var(--text-sub, #b5a999);
  margin: 0;
  line-height: 1.4;
}

/* 홈 화면 섹션 */
.art-home-section {
  margin: 40px 0;
}

.art-card-featured {
  background: linear-gradient(135deg, rgba(29, 23, 18, 0.95) 0%, rgba(20, 16, 12, 0.95) 100%);
  border: 1px solid var(--border-color, #44372c);
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color 0.2s ease;
}
.art-card-featured:hover {
  border-color: rgba(232, 200, 136, 0.4);
}

.art-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 8px 0 6px;
  line-height: 1.35;
}
.art-card-title a {
  color: var(--text-main, #f5eedc);
  text-decoration: none;
}
.art-card-title a:hover {
  color: var(--gold, #E8C888);
}

.art-card-sub {
  font-size: 0.95rem;
  color: var(--text-sub, #b5a999);
  margin: 0 0 16px;
}

.art-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .art-title-ko {
    font-size: 1.35rem;
  }
  .art-sentence-en {
    font-size: 1rem;
  }
  .art-words-grid {
    grid-template-columns: 1fr;
  }
  .art-card-featured {
    padding: 16px 18px;
  }
}

/* ===================================================================
   B-1 & A-2: 블로그 레이아웃 & 본문 전체 읽기 스타일
   =================================================================== */

/* 블로그 길 안내 (Breadcrumb) */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-sub, #b5a999);
  margin-bottom: 24px;
}
.blog-breadcrumb a {
  color: var(--gold, #E8C888);
  text-decoration: none;
}
.blog-breadcrumb a:hover {
  text-decoration: underline;
}
.blog-breadcrumb .current {
  color: var(--text-main, #f5eedc);
}

/* 블로그 홈 상단 헤더 */
.blog-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 32px 20px;
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 12px;
}
.blog-header-media {
  margin-bottom: 16px;
}
.blog-header-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main, #f5eedc);
  margin: 0 0 8px;
}

/* 화면에는 안 보이지만 검색엔진과 화면낭독기는 읽는 글자 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* P-2: 홈과 생활 영어 목록의 대표 표지. 이미지 비율을 유지해 휴대폰에도 맞춥니다. */
.life-corner-cover {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.life-corner-link {
  display: block;
  margin-bottom: 20px;
}
.blog-header-desc {
  font-size: 1.05rem;
  color: var(--text-sub, #b5a999);
  margin: 0;
}

/* 주제 필터 버튼 바 */
.blog-topic-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.blog-topic-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #3A2E20);
  background: var(--bg-card, #1D1712);
  color: var(--text-sub, #b5a999);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-topic-btn:hover {
  border-color: var(--gold, #E8C888);
  color: var(--cream, #F4ECDD);
}
.blog-topic-btn.active {
  background: var(--gold, #E8C888);
  border-color: var(--gold, #E8C888);
  color: #1a140f;
  font-weight: 700;
}

/* B-2: 블로그 목록 래퍼 (홈과 동일한 폭으로 PC 좌우 정렬 일치) */
.blog-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

/* 최신 글 큰 카드 (Featured) */
.blog-featured-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 36px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.blog-featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #E8C888);
}
.blog-featured-media {
  position: relative;
  background: #14100c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-content {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main, #f5eedc);
  margin: 10px 0 6px;
  line-height: 1.35;
}
.blog-featured-sub {
  font-size: 1rem;
  color: var(--gold, #E8C888);
  margin: 0 0 12px;
}
.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-sub, #b5a999);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-meta {
  font-size: 0.875rem;
  color: var(--sepia, #B8894C);
  margin: 0;
}

/* 글 카드 그리드 (B-2: 세로 1열 가로 카드 스택) */
.blog-card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #E8C888);
}
.blog-card-media {
  aspect-ratio: 16 / 9;
  position: relative;
  background: #14100c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 24px 24px 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #f5eedc);
  margin: 10px 0 6px;
  line-height: 1.35;
}
.blog-card-sub {
  font-size: 0.98rem;
  color: var(--gold, #E8C888);
  margin: 0 0 10px;
}
.art-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold, #E8C888);
  color: #1a140e;
}

/* 글 상세 대표 이미지 */
.art-post-media {
  max-width: 640px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle, #3A2E20);
  background: #14100c;
}
.art-post-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

/* A-2: 전체 읽기 카드 */
.art-passage-card {
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.art-passage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle, #3A2E20);
}
.art-passage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold, #E8C888);
  margin: 0;
}
.art-passage-en {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-main, #f5eedc);
  margin-bottom: 20px;
}
.art-passage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.art-passage-actions .btn {
  min-height: 48px;
  font-size: 1rem;
  padding: 10px 20px;
  font-weight: 700;
}
.art-passage-actions .btn-passage-loop {
  background: #2B2117;
  color: var(--gold, #E8C888);
  border-color: var(--gold, #E8C888);
}
.art-passage-actions .btn-passage-loop:hover {
  background: rgba(232, 200, 136, 0.15);
}
.art-passage-actions .btn-passage-loop.is-active {
  background: var(--gold, #E8C888);
  color: #241B12;
  border-color: var(--gold, #E8C888);
}

/* A-2: 한국어 해석 보기 토글 (<details>) */
.art-passage-ko-toggle {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.art-passage-ko-toggle summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sepia-light, #E8C888);
  cursor: pointer;
  user-select: none;
}
.art-passage-ko-content {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-sub, #b5a999);
}

/* A-2: 한 문장씩 공부하기 큰 버튼 */
.btn-study-mode {
  display: block;
  width: 100%;
  min-height: 52px;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sepia, #B8894C) 0%, var(--gold, #E8C888) 100%);
  color: #1a140f;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 28px 0 36px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-study-mode:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* 글 하단 공유 바 & 이전/다음 네비게이션 */
.blog-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle, #3A2E20);
  border-bottom: 1px solid var(--border-subtle, #3A2E20);
}
.blog-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.blog-prev-next a {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 8px;
  color: var(--text-main, #f5eedc);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.2s ease;
}
.blog-prev-next a:hover {
  border-color: var(--gold, #E8C888);
}
.blog-prev-next a.next {
  text-align: right;
}

.blog-related-section {
  margin-bottom: 40px;
}
.blog-related-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #f5eedc);
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-content {
    padding: 0 18px 20px 18px;
  }
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card-body {
    padding: 0 18px 20px 18px;
  }
  .blog-prev-next {
    flex-direction: column;
  }
}




/* ===================================================================
   홈 오늘의 한 문장 (Daily Key Sentence with Audio)
   =================================================================== */
.home-daily-quote {
  max-width: 860px;
  margin: 10px auto 32px;
  padding: 0 16px;
}
.daily-quote-card {
  background: var(--panel);
  border: 1px solid rgba(232, 200, 136, 0.28);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.daily-quote-card:hover {
  border-color: rgba(232, 200, 136, 0.55);
}
.daily-quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.daily-quote-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: #E8C888;
  background: rgba(232, 200, 136, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 136, 0.2);
}
.daily-quote-date {
  font-size: 0.875rem;
  color: var(--cream-soft);
}
.daily-quote-body {
  margin-bottom: 16px;
}
.daily-quote-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.daily-quote-ko-toggle {
  display: inline-block;
}
.daily-quote-ko-toggle summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.daily-quote-ko-toggle summary::-webkit-details-marker {
  display: none;
}
.daily-quote-en {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.01em;
}
.daily-quote-ko {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--cream-soft);
  line-height: 1.5;
}
.daily-quote-foot {
  border-top: 1px dashed rgba(232, 200, 136, 0.18);
  padding-top: 14px;
  text-align: right;
}
.daily-quote-more {
  font-size: 0.875rem;
  color: #E8C888;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.daily-quote-more:hover {
  text-decoration: underline;
}

/* ===================================================================
   글 끝 다음 글 바로 읽기 (Next Post Quick Read CTA)
   =================================================================== */
.blog-next-cta {
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(232, 200, 136, 0.12), rgba(232, 200, 136, 0.04));
  border: 1px solid rgba(232, 200, 136, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
}
.blog-next-cta-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.blog-next-cta-tag {
  font-size: 0.875rem;
  font-weight: 700;
  color: #E8C888;
}
.blog-next-cta-topic {
  font-size: 0.875rem;
  color: var(--cream-soft);
}
.blog-next-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  gap: 16px;
}
.blog-next-cta-text {
  flex: 1;
  min-width: 0;
}
.blog-next-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 4px;
  line-height: 1.35;
}
.blog-next-cta-sub {
  font-size: 0.92rem;
  color: var(--cream-soft);
  margin: 0;
}
.blog-next-cta-btn {
  background: #E8C888;
  color: #1D1712;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.blog-next-cta-card:hover .blog-next-cta-btn {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .blog-next-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-next-cta-btn {
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }
}

/* ===================================================================
   X-1: 연속 듣기 (Continuous Listening UI)
   =================================================================== */
.listen-loop-bar {
  background: var(--bg-card, #1D1712);
  border: 1px solid var(--border-subtle, #3A2E20);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.listen-loop-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.listen-loop-play-btn {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.listen-loop-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--cream-soft, #b5a999);
}
.listen-loop-opt-label {
  font-weight: 500;
}
.listen-loop-opt .opt-btn {
  background: #14100c;
  border: 1px solid var(--border-subtle, #3A2E20);
  color: var(--cream-soft, #b5a999);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.listen-loop-opt .opt-btn:hover {
  border-color: var(--gold, #E8C888);
  color: var(--gold, #E8C888);
}
.listen-loop-opt .opt-btn.active {
  background: var(--gold, #E8C888);
  border-color: var(--gold, #E8C888);
  color: #1a140e;
  font-weight: 700;
}
.listen-loop-note {
  font-size: 0.85rem;
  color: #8C8578;
  line-height: 1.4;
}

/* 재생 중 카드 하이라이트 */
.playing-now {
  border: 2px solid var(--gold, #E8C888) !important;
  box-shadow: 0 0 16px rgba(232, 200, 136, 0.3) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 하단 고정 멈춤 바 */
.listen-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(26, 20, 15, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--gold, #E8C888);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  padding: 12px 24px;
}
@media (min-width: 981px) {
  .listen-bottom-bar {
    left: var(--sidebar-w, 260px);
  }
}
.listen-bottom-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.listen-bottom-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream, #f5eedc);
  font-size: 0.95rem;
}
.listen-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseListenDot 1.5s infinite;
}
@keyframes pulseListenDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.listen-bottom-stop-btn {
  background: #ff5252;
  color: #fff;
  border-color: #ff5252;
  font-weight: 700;
  white-space: nowrap;
}
.listen-bottom-stop-btn:hover {
  background: #e03131;
  border-color: #e03131;
  color: #fff;
}

/* ===================================================================
   N-1. "여행 이야기" 전용 스타일 (.tv-*)
   40~60대 독자를 위한 편안하고 품격 있는 타이포그래피 (16px+, 줄간격 1.8, 카드 뷰)
   =================================================================== */

.tv-detail-wrap,
.tv-wrap {
  max-width: var(--content-max, 1024px);
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.tv-article {
  background: var(--panel, #181c24);
  border: 1px solid var(--line, #2c3545);
  border-radius: 12px;
  padding: 40px;
}

@media (max-width: 768px) {
  .tv-detail-wrap,
  .tv-wrap {
    padding: 16px 12px 40px;
  }
  .tv-article {
    padding: 20px 16px;
    border-radius: 8px;
  }
}

.tv-header {
  margin-bottom: 24px;
}

.tv-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tv-kind-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.tv-kind-famous {
  background: rgba(232, 200, 136, 0.15);
  color: var(--sepia-light, #e8c888);
  border: 1px solid rgba(232, 200, 136, 0.4);
}

.tv-kind-hidden {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.tv-date {
  font-size: 0.9rem;
  color: var(--cream-soft, #a0aec0);
}

.tv-title {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--cream, #f5eedc);
  margin: 0 0 16px;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .tv-title {
    font-size: 1.5rem;
  }
}

.tv-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #d1d5db;
  margin: 0 0 20px;
  word-break: keep-all;
}

/* 📖 영어로 읽어 보기 상자 */
.tv-enbox {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #3b82f6;
  border-left: 5px solid #3b82f6;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}

.tv-enbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tv-enbox-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: #60a5fa;
}

.tv-enbox-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.tv-enbox-btn:hover {
  background: #1d4ed8;
}

.tv-enbox-line {
  margin-bottom: 12px;
}

.tv-enbox-line:last-child {
  margin-bottom: 0;
}

.tv-enbox-en {
  font-size: 1.12rem;
  font-weight: 600;
  color: #f3f4f6;
  margin: 0 0 4px;
  line-height: 1.6;
}

.tv-enbox-ko {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

/* 연재 상자 (Series Box) */
.tv-series-box {
  background: rgba(24, 28, 36, 0.9);
  border: 1px solid var(--sepia-light, #e8c888);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.tv-series-box-bottom {
  margin-top: 40px;
}

.tv-series-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tv-series-badge {
  background: var(--sepia-light, #e8c888);
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.tv-series-name {
  font-size: 1.2rem;
  color: var(--sepia-light, #e8c888);
  margin: 0;
}

.tv-series-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-series-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.tv-series-num {
  font-weight: 700;
  color: var(--sepia-light, #e8c888);
  min-width: 34px;
}

.tv-series-link {
  color: #60a5fa;
  text-decoration: underline;
}

.tv-series-tag {
  font-size: 0.8rem;
  background: rgba(232, 200, 136, 0.2);
  color: var(--sepia-light, #e8c888);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.tv-series-item.is-future {
  color: #6b7280;
}

.tv-series-next {
  font-size: 0.95rem;
  color: var(--cream, #f5eedc);
  padding-top: 10px;
  border-top: 1px dashed var(--line, #2c3545);
}

/* 대표 커버 이미지 */
.tv-cover-wrap {
  width: 100%;
  margin: 0 0 32px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #11141a;
}

.tv-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 한눈에 보기 표 */
.tv-glance-wrap {
  margin-bottom: 40px;
}

.tv-glance {
  width: 100%;
  border-collapse: collapse;
  background: rgba(17, 20, 26, 0.6);
  border: 1px solid var(--line, #2c3545);
  border-radius: 8px;
  overflow: hidden;
}

.tv-glance th,
.tv-glance td {
  padding: 12px 18px;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--line, #2c3545);
}

.tv-glance tr:last-child th,
.tv-glance tr:last-child td {
  border-bottom: none;
}

.tv-glance th {
  width: 160px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sepia-light, #e8c888);
  font-weight: 700;
  text-align: left;
}

.tv-glance td {
  color: #e5e7eb;
}

.tv-map-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
}

/* 본문 섹션 및 문단 */
.tv-section {
  margin-bottom: 44px;
}

.tv-section-title {
  font-size: 1.45rem;
  color: var(--sepia-light, #e8c888);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-p {
  font-size: 1.18rem;
  line-height: 1.9;
  font-weight: 400;
  color: #e2e8f0;
  margin: 0 0 20px;
  word-break: keep-all;
}

.tv-p strong {
  font-weight: 700;
  color: #f8fafc;
}

/* 본문 중간 삽화 (3장 구성) */
.tv-figure {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #11141a;
  border: 1px solid var(--line, #2c3545);
}

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

.tv-figure-cap {
  font-size: 0.84rem;
  color: var(--cream-soft, #94a3b8);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tv-figure-disclaimer {
  font-size: 0.78rem;
  color: #a0aec0;
  margin-left: 6px;
}

/* 카드 그리드 (꼭 볼 곳, 먹거리) - 1열 세로 배치 */
.tv-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}

.tv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line, #2c3545);
  border-radius: 8px;
  padding: 20px;
}

.tv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.tv-card-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sepia-light, #e8c888);
}

.tv-card-title {
  font-size: 1.15rem;
  color: var(--cream, #f5eedc);
  margin: 0;
}

.tv-card-sub {
  font-size: 0.85rem;
  color: #9ca3af;
  display: block;
}

.tv-card-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #d1d5db;
  margin: 0 0 12px;
  word-break: keep-all;
}

.tv-card-en-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 10px;
}

.tv-card-en {
  font-size: 0.95rem;
  color: #93c5fd;
  margin: 0;
  font-style: italic;
}

.tv-mini-speak-btn {
  background: transparent;
  color: #60a5fa;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

/* 팁 상자 */
.tv-tip-box,
.tv-easy-box {
  background: rgba(17, 20, 26, 0.7);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 30px;
}

.tv-tip-box {
  border-left: 4px solid #f59e0b;
}

.tv-easy-box {
  border-left: 4px solid #10b981;
}

.tv-tip-title,
.tv-easy-title {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.tv-tip-title { color: #fbbf24; }
.tv-easy-title { color: #34d399; }

.tv-tip-list,
.tv-easy-list {
  padding-left: 20px;
  margin: 0;
  color: #e5e7eb;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* 영어 5문장 섹션 */
.tv-phrases-section {
  background: rgba(232, 200, 136, 0.05);
  border: 1px solid rgba(232, 200, 136, 0.25);
  border-radius: 10px;
  padding: 28px;
}

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

.tv-section-sub {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
}

.tv-loop-btn {
  background: var(--sepia-light, #e8c888);
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tv-loop-btn:hover {
  opacity: 0.9;
}

.tv-phrases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-phrase-card {
  background: var(--panel, #181c24);
  border: 1px solid var(--line, #2c3545);
  border-radius: 8px;
  padding: 14px 18px;
  transition: border-color 0.2s, background 0.2s;
}

.tv-phrase-card.is-active {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.tv-phrase-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tv-phrase-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sepia-light, #e8c888);
}

.tv-phrase-texts {
  flex: 1;
}

.tv-phrase-en {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream, #f5eedc);
  margin: 0 0 4px;
}

.tv-phrase-ko {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
}

.tv-phrase-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line, #2c3545);
  color: var(--cream, #f5eedc);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.tv-phrase-btn:hover {
  background: rgba(232, 200, 136, 0.2);
  color: var(--sepia-light, #e8c888);
}

/* 짐의 한마디 */
.tv-jim-tip {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line, #2c3545);
  border-radius: 8px;
  padding: 22px;
  margin: 30px 0;
}

.tv-jim-avatar {
  font-size: 1.8rem;
  line-height: 1;
}

.tv-jim-title {
  font-size: 1.1rem;
  color: var(--sepia-light, #e8c888);
  margin: 0 0 8px;
}

.tv-jim-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e5e7eb;
  margin: 0;
}

/* 출처 박스 */
.tv-refs-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line, #2c3545);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-top: 30px;
}

.tv-refs-box a {
  color: #60a5fa;
  word-break: break-all;
}

.tv-notice-line {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* 이전/다음 네비게이션 */
.tv-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #2c3545);
}

.tv-nav-link {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line, #2c3545);
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.tv-nav-link:hover {
  border-color: var(--sepia-light, #e8c888);
}

.tv-nav-link small {
  display: block;
  font-size: 0.85rem;
  color: var(--sepia-light, #e8c888);
  margin-bottom: 4px;
}

.tv-nav-link strong {
  font-size: 1rem;
  color: var(--cream, #f5eedc);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-nav-next { text-align: right; }

/* /travel 목록 페이지 스타일 */
.tv-index-header {
  margin-bottom: 36px;
  text-align: center;
}

.tv-index-title {
  font-size: 2.2rem;
  color: var(--sepia-light, #e8c888);
  margin: 0 0 10px;
}

.tv-index-sub {
  font-size: 1.1rem;
  color: var(--cream-soft, #a0aec0);
  margin: 0;
}

.tv-list-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tv-list-card {
  display: flex;
  background: var(--panel, #181c24);
  border: 1px solid var(--line, #2c3545);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.tv-list-card:hover {
  transform: translateY(-2px);
  border-color: var(--sepia-light, #e8c888);
}

.tv-list-thumb-link {
  flex: 0 0 320px;
  aspect-ratio: 16 / 9;
  background: #11141a;
  overflow: hidden;
  display: block;
}

.tv-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tv-list-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tv-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tv-card-series-tag {
  font-size: 0.85rem;
  background: rgba(232, 200, 136, 0.15);
  color: var(--sepia-light, #e8c888);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.tv-list-date {
  font-size: 0.85rem;
  color: #9ca3af;
}

.tv-list-title {
  font-size: 1.35rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.tv-list-title a {
  color: var(--cream, #f5eedc);
  text-decoration: none;
}

.tv-list-title a:hover {
  color: var(--sepia-light, #e8c888);
}

.tv-list-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.tv-list-phrases-count {
  font-size: 0.9rem;
  color: #93c5fd;
  font-weight: 600;
}

.tv-list-read-btn {
  font-size: 0.95rem;
  color: var(--sepia-light, #e8c888);
  font-weight: 700;
  text-decoration: none;
}

.tv-empty-box {
  background: var(--panel, #181c24);
  border: 1px dashed var(--line, #2c3545);
  border-radius: 10px;
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .tv-list-card {
    flex-direction: column;
  }
  .tv-list-thumb-link {
    flex: none;
    width: 100%;
  }
  .tv-list-body {
    padding: 18px;
  }
  .tv-prev-next {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   AS-3: 광고 영역 예약 자리 (고정 높이 및 레이아웃 이동 방지 CLS 0)
   ADS_ENABLED = false일 때는 화면에서 숨겨집니다.
   =================================================================== */
.ad-slot-placeholder {
  display: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

body.ads-enabled .ad-slot-placeholder {
  display: block;
}

/* 1. 홈 맨 아래 (푸터 바로 위 배너) */
.ad-slot-home-bottom {
  min-height: 100px;
  max-width: 970px;
  margin: 32px auto 16px;
  padding: 8px 0;
}

/* 2. 레슨 영상 바로 아래 배너 */
.ad-slot-lesson-video {
  min-height: 90px;
  max-width: 728px;
  margin: 16px auto 24px;
  padding: 6px 0;
}

/* 3. 복습 훈련 완주 축하 카드 안 */
.ad-slot-practice-done {
  min-height: 100px;
  max-width: 468px;
  margin: 16px auto 0;
  padding: 6px 0;
}

