/* ============================================================
   watch.css — Watch & Learn · สไตล์เฉพาะโมดูล
   ใช้คู่กับ ../assets/css/theme.css (tokens) และ ../assets/css/app.css
   — โทน Emerald Cream · ห้ามพื้นหลังเขียวเข้ม —

   ส่วนที่ 1  LESSON LIBRARY  (หน้า index.html — ของเดิม ไม่แตะ)
   ส่วนที่ 2  LESSON PAGE .wl-*  (หน้า lesson.html — ตามแบบที่อนุมัติแล้ว)
   ============================================================ */

/* ===================== ส่วนที่ 1 · LESSON LIBRARY ===================== */
.grid--lessons { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.tile--lesson { padding: 0; display: flex; flex-direction: column; }
.tile--lesson:focus-visible {
  outline: 3px solid var(--color-accent); outline-offset: 3px;
}
.tile--lesson .thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--color-soft-bg);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.tile--lesson .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-med) var(--ease-out);
}
.tile--lesson:hover .thumb img { transform: scale(1.04); }
.tile--lesson .thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 46px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  opacity: 0.85; transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-snap);
}
.tile--lesson:hover .thumb .play { opacity: 1; transform: scale(1.1); }
.tile--lesson .thumb .dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.72); color: #fff; font-size: 11px; font-weight: 600;
  font-family: var(--font-heading-en); padding: 2px 8px; border-radius: 6px;
}
.tile--lesson .body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile--lesson .t {
  font-family: var(--font-heading-en); font-size: 15.5px; font-weight: 700;
  color: var(--color-ink); line-height: 1.4;
}
.tile--lesson .d { font-size: 12.5px; color: var(--color-ink-soft); line-height: 1.7; }
.tile--lesson .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tile--lesson .thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--color-mute);
}

/* ===================== ส่วนที่ 2 · LESSON PAGE ===================== */
/* โทเคนสีของแบบที่อนุมัติ — จำกัดขอบเขตไว้ที่หน้าบทเรียนเท่านั้น
   (หน้าอื่นของเว็บยังใช้ theme.css เดิมทั้งหมด) */
.wl-body {
  --wl-bg:        #F6F1E3;
  --wl-card:      #FFFDF6;
  --wl-line:      #E7DFC9;
  --wl-line-2:    #EFE8D4;
  --wl-btn-line:  #E1D8BF;
  --wl-chip:      #EDE7D5;
  --wl-chip-2:    #F2ECDB;
  --wl-ink:       #211F1C;
  --wl-ink-2:     #3A362F;
  --wl-ink-3:     #5C5648;
  --wl-mute:      #6F6857;
  --wl-mute-2:    #8B8474;
  --wl-green:     #1F5E3D;
  --wl-green-hi:  #2E7A52;
  --wl-green-dk:  #174A30;
  --wl-green-s:   #DCE9DC;
  --wl-green-s2:  #E7F0E4;
  --wl-green-ln:  #CBDDCC;
  --wl-shadow:    0 2px 10px rgba(60,50,25,0.05);
  --wl-fs-line:   30px;   /* ขนาดตัวอักษรบรรทัด JP/คำแปล — ปรับตามจอด้านล่าง */

  background: var(--wl-bg);
  color: var(--wl-ink);
  font-family: "Noto Sans Thai", "IBM Plex Sans Thai", "Figtree", system-ui, sans-serif;
}
.wl-body ::selection { background: #CFE3D3; }
.wl-body .brand-footer { padding: 3px 20px; margin-top: 0; font-size: 10.5px; }
/* สำคัญ: การ์ด/แถวหลายอันในหน้านี้ตั้ง display:flex|grid ไว้ ซึ่ง specificity
   ชนะกฎ [hidden]{display:none} ของเบราว์เซอร์ — ถ้าไม่บังคับตรงนี้ สิ่งที่ JS
   สั่งซ่อน (การ์ดคำศัพท์เปล่า ๆ, แผงที่ย่อไว้) จะยังโผล่ค้างอยู่บนหน้า */
.wl-body [hidden] { display: none !important; }
.wl-body .jp,
.wl-body .wl-jp { font-family: "Noto Sans JP", "Zen Maru Gothic", system-ui, sans-serif; }

/* ---------- โครงหน้า ---------- */
.wl-main {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px; align-items: stretch;
  max-width: 1920px; margin: 0 auto; padding: 10px 20px 18px;
}
.wl-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* แผงขวาต้องมี "ความสูงที่แน่นอน" ไม่งั้นการ์ดสคริปต์จะยืดตามจำนวนประโยค
   (คลิปหนึ่งมี 100-1,000+ ประโยค = หน้ายาวเป็นหมื่นพิกเซล) จึงล็อกไว้ที่
   ความสูงจอ แล้วให้ sticky ตามลงมาเวลาเลื่อนอ่าน */
.wl-aside { align-self: stretch; display: flex; min-height: 0; }
.wl-side {
  /* ปักหมุดกับหน้าจอ: เลื่อนหน้าลงแล้ว TRANSCRIPT กับ UP NEXT ต้องอยู่นิ่งสนิท
     ความสูงต้องหักส่วนที่ "กินพื้นที่หน้าจอ" ออกให้ครบ (แถบหัว + ขอบ + แถบท้าย)
     ไม่งั้นระยะที่ sticky วิ่งได้จะสั้นกว่าระยะที่หน้าเลื่อน แล้วแผงจะไหลตามตอนใกล้สุดหน้า */
  --wl-chrome: 196px;   /* วัดจากหน้าจริง: แถบหัว+ขอบ+แถบท้าย = 191px (เผื่อ 5) */
  position: sticky; top: 66px; align-self: flex-start;
  width: 340px; display: flex; flex-direction: column; gap: 10px;
  height: calc(100vh - var(--wl-chrome));
  max-height: calc(100vh - var(--wl-chrome));
  min-height: 340px;
}
.wl-error {
  grid-column: 1 / -1;
  background: #FCE9E4; border: 1px solid #E9C4B8; color: #7A3A28;
  border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.7;
}

/* แจ้งเตือนตอนเปิดหน้านี้แบบ file:// (ดับเบิลคลิกไฟล์ตรง ๆ แทนที่จะผ่าน
   local server) — วิดีโอ/สคริปต์ของแต่ละบทเรียนโหลดแบบไดนามิกและฝัง
   YouTube iframe ซึ่งต้องการ origin ที่ถูกต้อง เปิดแบบ file:// บางเบราว์เซอร์
   บางคลิปจะเล่นไม่ได้/โหลดไม่ครบ — ไม่ block หน้า (บางทีก็ยังพอใช้ได้)
   แค่บอกให้ชัดว่าทำไม เผื่อของจริงพัง จะได้รู้สาเหตุทันที ไม่ต้องเดา */
.wl-protocol-warn {
  grid-column: 1 / -1;
  background: #FBF3DF; border: 1px solid #E8D9A8; color: #6B5A22;
  border-radius: 14px; padding: 14px 18px; font-size: 13.5px; line-height: 1.8;
}
.wl-protocol-warn b { color: #4A3D12; }
.wl-protocol-warn .url {
  display: inline-block; margin-top: 6px; font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px; background: #FFFDF6; border: 1px solid #E8D9A8;
  border-radius: 7px; padding: 3px 9px; word-break: break-all;
}

.wl-card {
  background: var(--wl-card); border: 1px solid var(--wl-line);
  border-radius: 20px; box-shadow: var(--wl-shadow);
}
.wl-grow { flex: 1; }

/* ---------- ปุ่ม / ตัวเลือก ---------- */
.wl-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--wl-btn-line); background: var(--wl-card);
  font-family: inherit; font-size: 11.5px; color: var(--wl-ink-2);
  cursor: pointer; white-space: nowrap; flex: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.wl-btn svg { color: var(--wl-green); flex: none; }
.wl-btn:hover { background: var(--wl-chip); }
.wl-btn:active { transform: translateY(1px); }
.wl-btn[disabled] { opacity: 0.45; pointer-events: none; }

.wl-play {
  width: 34px; height: 34px; border-radius: 999px; border: none;
  background: var(--wl-green); color: #F6F1E3; flex: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(31,94,61,0.30);
  transition: background 140ms ease;
}
.wl-play:hover { background: var(--wl-green-hi); }
.wl-play:active { background: var(--wl-green-dk); }
.wl-play .i-pause { display: none; }
.wl-play.is-playing .i-play { display: none; }
.wl-play.is-playing .i-pause { display: block; }

.wl-icon {
  width: 32px; height: 32px; border-radius: 999px; flex: none;
  border: 1px solid var(--wl-btn-line); background: var(--wl-card);
  color: var(--wl-green); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms ease;
}
.wl-icon:hover { background: var(--wl-chip); }

.wl-select {
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--wl-btn-line); background: var(--wl-card);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  color: var(--wl-green); cursor: pointer; flex: none;
}
.wl-langbox {
  display: flex; align-items: center; gap: 5px; flex: none;
  background: var(--wl-chip); color: var(--wl-green);
  padding: 3px 4px 3px 9px; border-radius: 999px;
}
.wl-select--bare { border: none; padding: 3px 7px; }

.wl-body button:focus-visible,
.wl-body select:focus-visible,
.wl-body [tabindex]:focus-visible {
  outline: 2px solid var(--wl-green); outline-offset: 2px;
}

/* ---------- การ์ดวิดีโอ ---------- */
.wl-video-card { padding: 10px; }
.wl-video-box { display: block; min-width: 0; }
.wl-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #1B1A17;
}
.wl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-video-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 20px; background: rgba(27,26,23,0.92); color: #F1EADA;
  font-size: 14px; line-height: 1.8;
}
.wl-video-msg a { color: #A8D5B5; font-weight: 700; text-decoration: underline; }

.wl-ctl { display: flex; flex-direction: column; gap: 7px; padding: 8px 8px 4px; }
.wl-ctl-row { display: flex; align-items: center; gap: 6px; }

.wl-seek-row { display: flex; align-items: center; gap: 10px; }
.wl-seek {
  flex: 1; height: 6px; border-radius: 999px; background: #E4DDC7;
  cursor: pointer; position: relative;
  touch-action: none;
}
.wl-seek::before {   /* พื้นที่กดให้นิ้ว/เมาส์จับง่ายขึ้น โดยแถบยังบางเท่าเดิม */
  content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px;
}
.wl-seek__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 999px; background: var(--wl-green);
}
.wl-seek__fill::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px; border-radius: 999px;
  background: var(--wl-green); box-shadow: 0 1px 4px rgba(31,94,61,0.45);
  opacity: 0; transition: opacity 140ms ease;
}
.wl-seek:hover .wl-seek__fill::after,
.wl-seek:focus-visible .wl-seek__fill::after,
.wl-seek.is-dragging .wl-seek__fill::after { opacity: 1; }
.wl-clock {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 12px; font-weight: 600; color: var(--wl-mute);
  font-variant-numeric: tabular-nums; white-space: nowrap; flex: none;
}

/* ---------- การ์ด NOW SPEAKING ---------- */
.wl-now { overflow: hidden; }
.wl-now-head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-bottom: 1px solid var(--wl-line-2);
  flex-wrap: wrap; row-gap: 6px;
}
.wl-kicker {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 9.5px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--wl-green); white-space: nowrap; flex: none;
}
.wl-kicker--mute { color: var(--wl-mute-2); font-size: 10px; letter-spacing: 0.14em; }
.wl-count, .wl-pill {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 10.5px; font-weight: 600; color: var(--wl-green);
  background: var(--wl-green-s); padding: 2px 8px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap; flex: none;
}
.wl-check {
  display: flex; align-items: center; gap: 5px; flex: none;
  font-size: 11px; color: var(--wl-ink-3); cursor: pointer;
  white-space: nowrap; user-select: none;
}
.wl-check input { width: 13px; height: 13px; accent-color: var(--wl-green); cursor: pointer; }

.wl-now-body { padding: 16px 24px 10px; display: flex; flex-direction: column; gap: 10px; }
.wl-empty { margin: 0; font-size: 13px; color: var(--wl-mute-2); line-height: 1.9; }
.wl-line { display: flex; align-items: flex-start; gap: 12px; }
.wl-tag {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--wl-mute-2); background: var(--wl-chip);
  padding: 4px 8px; border-radius: 8px; margin-top: 8px; flex: none;
}
.wl-tag--jp { color: var(--wl-green); background: var(--wl-green-s); }
.wl-tr {
  margin: 0; font-size: var(--wl-fs-line); line-height: 1.5; font-weight: 600;
  color: var(--wl-ink); text-wrap: pretty; overflow-wrap: anywhere;
}
.wl-jp {
  margin: 0; font-size: var(--wl-fs-line); line-height: 1.6; color: var(--wl-ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0;
  overflow-wrap: anywhere;
}
.wl-hr { height: 1px; background: var(--wl-line-2); }

/* คำที่กดได้ในบรรทัด JP */
/* บรรทัด JP เป็น flex (ตามแบบ) — ต้องคง white-space ไว้ ไม่งั้นช่องว่างจริง
   ในบทพูด เช่น "[音楽] [歌声] ..." จะถูกยุบหายไปหมด */
.wl-jp .plain, .wl-jp button.tok { white-space: pre-wrap; }
/* คำภาษาญี่ปุ่นต้องเรียงชิดกันเป็นประโยคธรรมชาติ — ห้ามมี padding แนวนอน
   (เดิม 2px ต่อคำ ทำให้เห็น "ช่องไฟ" คั่นทุกคำทั้งที่ภาษาญี่ปุ่นไม่มีวรรค)
   ไฮไลท์จึงเป็นพื้นหลังที่กอดตัวอักษรของคำตัวเองพอดี ไม่ล้ำไปทับคำข้างๆ */
.wl-jp .plain { padding: 1px 0; }
button.tok {
  font: inherit; color: inherit; line-height: inherit;
  border: 0; background: transparent; cursor: pointer;
  padding: 1px 0; border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: background 120ms ease;
}
button.tok:hover { background: var(--wl-green-s); }
button.tok.is-open { background: var(--wl-green-s); color: var(--wl-green-dk); border-bottom-color: var(--wl-green); }
button.tok.is-speaking {
  background: var(--wl-green-s); color: var(--wl-green-dk);
  border-bottom-color: var(--wl-green); font-weight: 700;
}

/* การ์ดคำศัพท์ (แทนป็อปอัพลอย — โผล่ในบรรทัดตามแบบ) */
.wl-vocab {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #F1F6EE; border: 1px solid #D3E2D3; border-radius: 16px;
  padding: 14px 18px; margin-top: 4px;
}
.wl-vocab__w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-vocab__w b {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif;
  font-size: 24px; font-weight: 700; color: var(--wl-green-dk);
}
.wl-vocab__w small {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif;
  font-size: 12px; color: var(--wl-mute);
}
.wl-vocab__sep { width: 1px; align-self: stretch; background: #D3E2D3; }
.wl-vocab__g { font-size: 16px; color: var(--wl-ink-2); line-height: 1.7; min-width: 0; }
.wl-vocab__g .note { color: var(--wl-mute-2); font-size: 14px; }
.wl-vocab__acts { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.wl-now-actions { display: flex; align-items: center; gap: 10px; }
.wl-segtime {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 11.5px; font-weight: 700; color: var(--wl-mute-2);
  font-variant-numeric: tabular-nums;
}
.wl-now-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 4px;
  padding: 10px 24px; margin-top: 8px;
  background: var(--wl-chip-2); border-top: 1px solid var(--wl-line-2);
  font-size: 12px; color: var(--wl-mute);
}
.wl-now-foot svg { color: var(--wl-green); flex: none; }
.wl-keys { font-size: 11.5px; color: var(--wl-mute-2); }
.wl-keys kbd {
  font-family: "Figtree", var(--font-heading-en), monospace;
  font-size: 10.5px; font-weight: 700; color: var(--wl-ink-2);
  background: var(--wl-card); border: 1px solid var(--wl-btn-line);
  border-radius: 5px; padding: 1px 5px; margin: 0 1px;
}

/* ---------- สคริปต์ (ขวา) ---------- */
.wl-ts {
  flex: 1 1 auto; min-height: 220px;
  display: flex; flex-direction: column; overflow: hidden;
}
.wl-ts-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 6px;
  padding: 11px 14px; border-bottom: 1px solid var(--wl-line-2); flex: none;
}
.wl-warn {
  flex: none; margin: 10px 12px 0; padding: 9px 12px; border-radius: 12px;
  background: #FBF3DF; border: 1px solid #E8D9A8; color: #6B5A22;
  font-size: 11.5px; line-height: 1.7; overflow-wrap: anywhere;
}
.wl-warn code { background: #FFFDF6; border-radius: 5px; padding: 0 5px; font-size: 11px; }

.wl-scroll { scrollbar-width: thin; scrollbar-color: #D6DBC9 transparent; }
.wl-scroll::-webkit-scrollbar { width: 8px; }
.wl-scroll::-webkit-scrollbar-thumb { background: #D6DBC9; border-radius: 999px; }
.wl-scroll::-webkit-scrollbar-track { background: transparent; }

/* หมายเหตุ: ไม่ตั้ง scroll-behavior ที่นี่ — ให้ lesson.js เลือกเองรายครั้ง
   (ระยะใกล้ = เลื่อนนุ่ม, กระโดดไกล = เลื่อนทันที) ถ้าตั้ง smooth ไว้ใน CSS
   การกระโดดข้ามหลายร้อยประโยคจะกลายเป็นแอนิเมชันยาว และในบางสภาพแวดล้อม
   ที่แท็บไม่ได้วาดภาพอยู่ แอนิเมชันจะไม่เดินเลย = สคริปต์ไม่ตามวิดีโอ */
.wl-ts-pane {
  position: relative; flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 10px 10px 16px;
}

.wl-row {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--wl-ink);
  padding: 10px; margin-bottom: 4px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background 120ms ease;
}
.wl-row__in { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
.wl-row:hover { background: var(--wl-chip-2); }
.wl-row__t {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 11px; font-weight: 700; color: var(--wl-mute);
  background: var(--wl-chip); border-radius: 999px;
  padding: 3px 0; text-align: center; height: 22px;
  font-variant-numeric: tabular-nums;
}
.wl-row__b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wl-row__jp {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif;
  font-size: 15px; line-height: 1.65; color: var(--wl-ink);
  overflow-wrap: anywhere;
}
.wl-row__tr { font-size: 13px; line-height: 1.55; color: var(--wl-mute-2); overflow-wrap: anywhere; }
.wl-row__tr:empty { display: none; }

.wl-row.is-active {
  background: var(--wl-green-s2); border-color: var(--wl-green-ln);
}
.wl-row.is-active .wl-row__t { color: var(--wl-green-dk); background: #CFE0D0; }
.wl-row.is-active .wl-row__jp { color: var(--wl-green-dk); font-weight: 500; }
.wl-row.is-active .wl-row__tr { color: #4C6B52; }

.wl-resume {
  position: sticky; bottom: 0; display: flex; justify-content: center;
  padding-top: 8px; opacity: 0; transform: translateY(6px);
  pointer-events: none; transition: opacity 160ms ease, transform 160ms ease;
}
.wl-resume.show { opacity: 1; transform: none; pointer-events: auto; }
.wl-resume button {
  border: 0; border-radius: 999px; background: var(--wl-green); color: #F6F1E3;
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 7px 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(31,94,61,0.28);
}
.wl-resume button:hover { background: var(--wl-green-hi); }

/* ---------- UP NEXT ---------- */
.wl-rail {
  flex: none; padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.wl-rail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-next {
  display: flex; flex-direction: column; gap: 6px; padding: 5px;
  border-radius: 12px; cursor: pointer; transition: background 140ms ease;
  color: inherit; text-decoration: none;
}
.wl-next:hover { background: var(--wl-chip); color: inherit; }
.wl-next__th {
  position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden;
  background: #DDE6D6; display: flex; align-items: center; justify-content: center;
}
.wl-next__th img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-next__ph { position: absolute; color: #8FA98F; }
.wl-next__dur {
  position: absolute; right: 3px; bottom: 3px;
  background: rgba(24,22,19,0.82); color: #F6F1E3;
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 9px; padding: 1px 4px; border-radius: 5px; pointer-events: none;
}
.wl-next__t {
  font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--wl-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.wl-next__m { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wl-next__m span {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 9px; padding: 1px 6px; border-radius: 999px;
}
.wl-next__lv { font-weight: 700; color: var(--wl-green); background: var(--wl-green-s); }
.wl-next__cat { color: var(--wl-mute); background: var(--wl-chip); }

/* ---------- VOCAB LIST (คำศัพท์ JLPT ที่พบในคลิปนี้) ----------
   ระดับ N มีสีประจำตัวแบบเรียบ ๆ ไล่จากเขียว (ง่าย) ไปแดงอิฐ (ยาก)
   เลือกโทนหม่นให้เข้ากับพื้นครีม ไม่ฉูดฉาดจนแย่งสายตาจากวิดีโอ */
.wl-vocabcol { display: none; min-width: 0; }
.wl-voc { display: flex; flex-direction: column; overflow: hidden; height: 100%; }

.wl-voc-filter {
  display: flex; gap: 4px; flex: none;
  padding: 9px 12px; border-bottom: 1px solid var(--wl-line-2);
}
.wl-voc-tab {
  flex: 1 1 0; min-width: 0; padding: 5px 2px; border-radius: 9px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 11px; font-weight: 700; color: var(--wl-mute);
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15;
  transition: background 130ms ease, color 130ms ease;
}
.wl-voc-tab i { font-style: normal; font-size: 9px; font-weight: 600; opacity: 0.75; }
.wl-voc-tab:hover { background: var(--wl-chip); }
.wl-voc-tab.is-on { background: var(--wl-green); color: #F6F1E3; border-color: var(--wl-green); }
.wl-voc-tab[disabled] { opacity: 0.32; pointer-events: none; }

.wl-voc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 8px 12px; }

.wl-voc-group {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 6px 5px; margin-top: 2px;
  background: var(--wl-card);
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 9.5px; letter-spacing: 0.14em; font-weight: 700; color: var(--wl-mute-2);
}
.wl-voc-group::after { content: ""; flex: 1; height: 1px; background: var(--wl-line-2); }

.wl-voc-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: start;
  width: 100%; text-align: left; font: inherit; color: var(--wl-ink);
  padding: 7px 6px; border-radius: 11px; border: 1px solid transparent;
  background: transparent; cursor: pointer; transition: background 120ms ease;
}
.wl-voc-item:hover { background: var(--wl-chip-2); }
.wl-voc-item.is-active { background: var(--wl-green-s2); border-color: var(--wl-green-ln); }

.wl-voc-lv {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 9px; font-weight: 700; text-align: center;
  padding: 3px 0; border-radius: 6px; margin-top: 2px;
}
.wl-voc-lv.lv5 { color: #1F5E3D; background: #DCE9DC; }
.wl-voc-lv.lv4 { color: #43663F; background: #E5EEDA; }
.wl-voc-lv.lv3 { color: #8A6A1F; background: #F2EAD1; }
.wl-voc-lv.lv2 { color: #A2582A; background: #F5E2D3; }
.wl-voc-lv.lv1 { color: #8C3B39; background: #F3DEDB; }

.wl-voc-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-voc-w {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif;
  font-size: 14.5px; font-weight: 600; color: var(--wl-ink); line-height: 1.4;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.wl-voc-w small {
  font-family: "Noto Sans JP", "Zen Maru Gothic", sans-serif;
  font-size: 10.5px; font-weight: 400; color: var(--wl-mute-2);
}
.wl-voc-g { font-size: 12px; line-height: 1.5; color: var(--wl-mute); overflow-wrap: anywhere; }
.wl-voc-g:empty { display: none; }
.wl-voc-g.is-en { font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif; }
.wl-voc-en {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--wl-mute-2); background: var(--wl-chip); border-radius: 4px;
  padding: 1px 4px; margin-right: 5px; vertical-align: 1px;
}
.wl-voc-t {
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 10px; font-weight: 700; color: var(--wl-green);
  background: var(--wl-green-s); border-radius: 999px; padding: 3px 7px;
  font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap;
}
.wl-voc-item:hover .wl-voc-t { background: var(--wl-green-ln); }
.wl-voc-empty { padding: 16px 14px; }

/* จอกว้างพอ -> โผล่เป็นคอลัมน์ซ้าย · จอกลาง -> ซ่อน (ไม่มีที่)
   จอเดียวคอลัมน์ -> ไหลตามเนื้อหาปกติ (อยู่ท้ายสุด) */
@media (max-width: 1100px) {
  .wl-vocabcol { display: block; }
  .wl-voc { height: auto; }
  .wl-voc-list { max-height: 420px; }
}

/* ---------- แถบแคบตอนย่อแผง ---------- */
.wl-slim {
  position: sticky; top: 66px; align-self: flex-start;
  width: 52px; height: calc(100vh - 78px); min-height: 420px;
  background: var(--wl-card); border: 1px solid var(--wl-line);
  border-radius: 20px; box-shadow: var(--wl-shadow);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 12px 0 18px;
}
.wl-slim-label {
  writing-mode: vertical-rl;
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--wl-green);
}
.wl-slim-count {
  writing-mode: vertical-rl;
  font-family: "Figtree", var(--font-heading-en), system-ui, sans-serif;
  font-size: 11px; color: var(--wl-mute-2);
}

/* ================= โหมด "พอดีจอเดียว" (จอกว้าง+สูงพอ) =================
   ทั้งหน้าไม่เลื่อนเลย ทุกอย่างอยู่ในจอเดียว มีแค่รายการสคริปต์ที่เลื่อนข้างในตัวเอง

   ขอบล่างเสมอกัน: .wl-left กับ .wl-aside เป็น grid item ที่ stretch เท่ากัน
   ในคอลัมน์ซ้ายให้การ์ดวิดีโอเป็นตัวยืด (flex:1) การ์ดประโยคสูงคงที่ปิดท้าย
   ในคอลัมน์ขวาให้สคริปต์เป็นตัวยืด UP NEXT สูงคงที่ปิดท้าย
   -> ก้นการ์ด "ประโยคที่กำลังพูด" กับก้น "UP NEXT" จึงตรงกันพอดีเสมอ

   ความกว้างคอลัมน์ซ้าย = ความกว้างของวิดีโอที่ "สูงพอดีช่องที่เหลือ" (16:9)
   คำนวณจากส่วนสูงที่ถูกใช้ไปด้านอื่นทั้งหมด (--wl-below) จึงไม่มีขอบดำเหลือ
   ปรับ --wl-below เมื่อความสูงของแถบปุ่ม/การ์ดประโยคเปลี่ยน */
@media (min-width: 1101px) and (min-height: 680px) {
  /* ต้องผูกกับ .wl-body (หน้าบทเรียนเท่านั้น) — watch.css ถูกโหลดในหน้า
     library ด้วย ถ้าไม่จำกัดขอบเขต overflow:hidden จะไปทำให้หน้า library
     เลื่อนไม่ได้ทั้งหน้า. ใช้ 100vh แทน 100% จะได้ไม่ต้องแตะ <html> */
  body.wl-body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .wl-body .appbar, .wl-body .brand-footer { flex: none; }

  .wl-main {
    /* --wl-nowh = ความสูง "ขั้นต่ำ" ของการ์ดประโยค (ไม่ใช่ค่าตายตัวแล้ว)
       การ์ดจะยืดเก็บความสูงที่เหลือเองถ้าวิดีโอถูกจำกัดด้วยความกว้าง
       --wl-below = ทุกอย่างที่กินความสูงนอกจากตัววิดีโอ เมื่อการ์ดประโยคอยู่ที่ขั้นต่ำ
       (แถบหัว+ขอบ+แถบท้าย+ปุ่มควบคุม = 233px  บวก --wl-nowh) */
    --wl-nowh: 236px;
    --wl-below: 454px;
    /* เต็มความกว้างจอ ไม่มีขอบขาวซ้าย-ขวา: ปลด max-width ของ base ออก
       width:100% จำเป็น — margin:0 auto จะปิดการยืดเต็มความกว้างใน flex column */
    flex: 1 1 auto; min-height: 0; width: 100%;
    max-width: none; margin: 0; padding: 8px 10px;
    /* คอลัมน์วิดีโอ = ความกว้างตามอัตรา 16:9 ของความสูงที่เหลือ + ขอบการ์ด 20px
       แต่ต้องไม่เกินความกว้างที่เหลือจริง  ส่วนที่เหลือยกให้คอลัมน์สคริปต์ดูดไป
       (1fr) เพื่อให้ขอบขวาชิดจอพอดี ไม่มีช่องว่างค้าง */
    grid-template-columns:
      min(calc((100vh - var(--wl-below)) * 16 / 9 + 20px), 100%)
      minmax(320px, 1fr);
  }

  .wl-left { min-height: 0; }
  /* การ์ดวิดีโอสูงตามเนื้อหา (= ความกว้าง x 9/16) ไม่ยืด
     แล้วการ์ดประโยคเป็นตัวดูดความสูงที่เหลือ -> ก้นสองคอลัมน์ยังเสมอกันเสมอ */
  .wl-video-card { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; }
  .wl-video-box { flex: none; display: flex; align-items: center; justify-content: center; }
  .wl-video { width: 100%; height: auto; }
  .wl-ctl { flex: none; }

  .wl-now { flex: 1 1 auto; min-height: var(--wl-nowh); display: flex; flex-direction: column; }
  .wl-now-body { padding: 10px 20px 8px; gap: 6px; }
  .wl-tag { margin-top: 2px; }
  .wl-now-head, .wl-now-foot { flex: none; }
  .wl-now-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

  .wl-aside { min-height: 0; }
  .wl-side { position: static; height: 100%; max-height: 100%; min-height: 0; width: auto; }
  .wl-ts { flex: 1 1 auto; min-height: 120px; }
  .wl-rail { flex: none; }
}

/* ---------- สามคอลัมน์: VOCAB | วิดีโอ | TRANSCRIPT ----------
   เปิดเฉพาะจอที่กว้างพอจริง ๆ (พื้นที่ว่างด้านข้างเยอะ)
   เกณฑ์ตั้งไว้ที่ 1400px (ไม่ใช่ 1500) เพราะจอแล็ปท็อป FHD (1920x1080) ที่ตั้ง
   Windows scaling 125% — ค่ามาตรฐานของเครื่องส่วนใหญ่ — จะเหลือความกว้างจริง
   แค่ ~1536 CSS px เท่านั้น ถ้าตั้งเกณฑ์ 1500 พอดี ขอบหน้าต่าง/scrollbar เบียด
   นิดเดียวก็หลุดเกณฑ์ทันที คอลัมน์นี้เลยหายไปทั้งที่จอกว้างพอจริง ๆ
   ความกว้างคอลัมน์วิดีโอถูก "จำกัดสองชั้น":
     1) ตามความสูงที่เหลือ (16:9)  2) ไม่เกินที่เหลือหลังหักสองคอลัมน์ข้าง
   ชั้นที่ 2 สำคัญมาก — จอกว้างแต่สูงมาก (เช่น 1600x1200) ถ้าไม่จำกัด
   คอลัมน์กลางจะกว้างเกินจนดันตารางล้นออกนอกจอ */
@media (min-width: 1400px) and (min-height: 680px) {
  .wl-main {
    /* ค่าเหล่านี้คือความกว้าง "ขั้นต่ำ" ของสองคอลัมน์ข้าง
       ที่เหลือจากคอลัมน์วิดีโอจะถูกแบ่งให้ทั้งคู่ตามสัดส่วน 1 : 1.2
       (สคริปต์ได้มากกว่านิดหน่อย เพราะบรรทัดญี่ปุ่น+ไทยยาวกว่า)
       ผลคือขอบซ้ายชิดจอ ขอบขวาชิดจอ ไม่เหลือช่องว่างค้างสองข้าง */
    --wl-vocw: 344px;
    --wl-sidew: 400px;
    grid-template-columns:
      minmax(var(--wl-vocw), 1fr)
      min(calc((100vh - var(--wl-below)) * 16 / 9 + 20px),
          calc(100% - var(--wl-vocw) - var(--wl-sidew) - 20px))
      minmax(var(--wl-sidew), 1.2fr);
  }
  .wl-vocabcol { display: block; grid-column: 1; grid-row: 1; min-height: 0; }
  .wl-left     { grid-column: 2; grid-row: 1; }
  .wl-aside    { grid-column: 3; grid-row: 1; }
  .wl-side     { width: 100%; }
}
@media (min-width: 1400px) and (min-height: 680px) and (max-width: 1700px) {
  .wl-main { --wl-vocw: 300px; --wl-sidew: 360px; }
}
@media (min-width: 1400px) and (min-height: 680px) and (max-width: 1560px) {
  .wl-main { --wl-vocw: 264px; --wl-sidew: 320px; }
}

/* จอเตี้ย: ย่อการ์ดประโยคลง เพื่อคืนความสูงให้วิดีโอ
   (--wl-below ต้องลดเท่ากับที่ --wl-nowh ลด ไม่งั้นสัดส่วนกรอบจะเพี้ยน) */
@media (min-width: 1101px) and (min-height: 680px) and (max-height: 860px) {
  .wl-main { --wl-nowh: 190px; --wl-below: 408px; }
  .wl-now-foot { display: none; }   /* จอเตี้ย: ตัดแถบคีย์ลัดออก เอาที่ให้ประโยค */
  .wl-now-head { padding: 5px 12px; }
}

/* จอเตี้ย: แผงขวามีที่จำกัด — ลดคลิปแนะนำเหลือ 2 คลิป
   เพื่อคืนความสูงให้รายการสคริปต์ (ไม่งั้น UP NEXT จะล้นออกนอกแผง) */
@media (max-height: 840px) and (min-width: 1101px) {
  .wl-rail-grid > .wl-next:nth-child(n+3) { display: none; }
}
@media (max-height: 700px) and (min-width: 1101px) {
  .wl-rail { display: none; }   /* เตี้ยมาก — เอาสคริปต์ไว้ก่อน */
}

/* ---------- responsive ---------- */
@media (max-width: 1400px) { .wl-body { --wl-fs-line: 26px; } }
@media (max-width: 1100px) {
  .wl-body { --wl-fs-line: 24px; }
  .wl-main { grid-template-columns: minmax(0, 1fr); padding: 10px 14px 18px; }
  .wl-aside { align-self: auto; }
  .wl-side { position: static; width: 100%; height: auto; min-height: 0; }
  .wl-ts { flex: none; height: 420px; }
  /* จอเดียวคอลัมน์ — ปุ่มย่อแผงไม่มีประโยชน์ (และถ้าเคยย่อไว้ตอนจอกว้าง
     ค่าที่จำไว้จะทำให้สคริปต์หายไปทั้งแผงบนมือถือ) จึงบังคับกางไว้เสมอ */
  #btn-collapse, #wl-slim { display: none !important; }
  #wl-side { display: flex !important; }
  .wl-rail-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 720px; }
  .wl-slim { align-self: flex-start; }
}
@media (max-width: 700px) {
  .wl-body { --wl-fs-line: 20px; }
  .wl-main { padding: 8px 10px 16px; gap: 10px; }
  .wl-now-body { padding: 14px 14px 8px; }
  .wl-now-head { padding: 8px 12px; }
  .wl-now-foot { padding: 10px 14px; }
  .wl-ctl-row { flex-wrap: wrap; row-gap: 6px; }
  .wl-btn { padding: 6px 11px; font-size: 12px; }
  .wl-play { width: 38px; height: 38px; }
  .wl-tag { margin-top: 4px; }
  .wl-keys { display: none; }
  .wl-vocab { gap: 12px; padding: 12px 14px; }
  .wl-vocab__sep { display: none; }
  .wl-vocab__acts { margin-left: 0; }
}

/* ---------- ขนาดตัวอักษรประโยคในโหมด "พอดีจอเดียว" ----------
   ต้องอยู่ท้ายสุดของไฟล์ เพราะกฎตามความกว้างจอ (@media max-width) ด้านบน
   มี specificity เท่ากัน ตัวที่มาทีหลังจึงชนะ — ถ้าวางไว้กลางไฟล์จะไม่มีผล
   การ์ดประโยคสูงคงที่ ตัวอักษรจึงต้องพอดีกับความสูงนั้น ไม่งั้นข้อความจะล้น */
@media (min-width: 1101px) and (min-height: 861px) {
  .wl-body { --wl-fs-line: 22px; }
}
@media (min-width: 1101px) and (min-height: 680px) and (max-height: 860px) {
  .wl-body { --wl-fs-line: 18px; }
}

/* ============================================================
   แทร็กการเรียน + ตัวกรองระดับ JLPT (หน้า Watch & Learn index)
   สีแต่ละแทร็กอยู่ในระบบ Emerald Cream เดิม — ใช้คู่ เข้ม/อ่อน
   เหมือน --sec-* ของฝั่งข้อสอบ ไม่มีพื้นหลังเขียวเข้มเต็มหน้า
   ============================================================ */
:root {
  --trk-business:      #1A5276;  --trk-business-soft: #E2EDF4;
  --trk-daily:         #006D40;  --trk-daily-soft:    #E6EFE9;
  --trk-travel:        #0E6E77;  --trk-travel-soft:   #E0F0F2;
  --trk-news:          #8C6A1D;  --trk-news-soft:     #F6EFD8;
  --trk-kids:          #C2185B;  --trk-kids-soft:     #FFEAF3;
  --trk-other:         #6B7A72;  --trk-other-soft:    #EDEFEA;
}

/* ---- ช่องค้นหา (กรองจากชื่อเรื่อง+หัวข้อย่อยที่ทีมแท็กไว้ต่อบท) ---- */
.wl-search { margin: 4px 0 14px; }
.wl-search__input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--color-border);
  border-radius: var(--radius-pill, 999px); background: #fff;
  padding: 12px 18px; font: 500 14px/1.3 var(--font-body-th, inherit);
  color: var(--color-ink); transition: border-color .12s ease, box-shadow .12s ease;
}
.wl-search__input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-soft-bg);
}
.wl-search__input::placeholder { color: var(--color-mute); }

/* ---- แถบตัวกรอง ---- */
.wl-filters { margin: 4px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.wl-filters__row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.wl-filters__label {
  flex: 0 0 auto; min-width: 92px; padding-top: 7px;
  font-size: 12px; font-weight: 600; color: var(--color-mute); letter-spacing: .02em;
}
.chipbar { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--color-border); background: #fff; color: var(--color-ink-soft);
  border-radius: var(--radius-pill, 999px); cursor: pointer;
  padding: 7px 14px; font: 600 13px/1.2 var(--font-body-th, inherit);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.chip:hover:not(:disabled) { border-color: var(--color-accent); transform: translateY(-1px); }
.chip.is-on { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.chip:disabled { opacity: .38; cursor: default; }
.chip__n {
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 999px;
  background: var(--color-soft-bg); color: var(--color-accent);
}
.chip.is-on .chip__n { background: rgba(255,255,255,.22); color: #fff; }

/* ---- หัวหมวดแต่ละแทร็ก ---- */
.wl-tracks { display: flex; flex-direction: column; gap: 34px; }
.wl-track__head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; margin-bottom: 14px;
  border-radius: 18px; border-left: 5px solid var(--trk, var(--color-accent));
  background: var(--trk-soft, var(--color-soft-bg));
}
.wl-track__icon { font-size: 26px; line-height: 1; }
.wl-track__head h2 {
  margin: 0; font: 700 17px/1.3 var(--font-heading-th, inherit);
  color: var(--trk, var(--color-accent));
}
.wl-track__head p { margin: 2px 0 0; font-size: 12px; color: var(--color-ink-soft); }
.wl-track__n {
  margin-left: auto; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: var(--trk, var(--color-accent));
  background: #fff; padding: 5px 12px; border-radius: 999px;
}

/* ---- หัวข้อย่อยบนการ์ด (จากทีมแท็ก _tracks.json — ใช้ค้นหาได้ผ่านช่องค้นหา) ---- */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag {
  font-size: 11px; font-weight: 500; color: var(--color-mute);
  background: var(--color-soft-bg); border-radius: 999px; padding: 3px 9px;
}

/* ---- ป้ายแทร็กบนการ์ด ---- */
.pill.trk { background: var(--trk-soft); color: var(--trk); font-weight: 600; }

.trk--business { --trk: var(--trk-business); --trk-soft: var(--trk-business-soft); }
.trk--daily    { --trk: var(--trk-daily);    --trk-soft: var(--trk-daily-soft); }
.trk--travel   { --trk: var(--trk-travel);   --trk-soft: var(--trk-travel-soft); }
.trk--news     { --trk: var(--trk-news);     --trk-soft: var(--trk-news-soft); }
.trk--kids     { --trk: var(--trk-kids);     --trk-soft: var(--trk-kids-soft); }
.trk--other    { --trk: var(--trk-other);    --trk-soft: var(--trk-other-soft); }

/* ---- ป้ายระดับมุมภาพ (อ่านออกตั้งแต่ยังไม่กด) ---- */
.tile--lesson .thumb .lv {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.72); color: #fff;
  font: 700 11px/1 var(--font-body-en, inherit); letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px;
}
.tile--lesson .thumb .lv--Kids { background: rgba(194,24,91,.85); }

.wl-empty {
  padding: 28px; text-align: center; color: var(--color-mute);
  background: var(--color-bg-alt); border-radius: 18px;
}

@media (max-width: 640px) {
  /* เป้ากดบนมือถือ — ชิปสูง ~40px ตามขนาดนิ้วมาตรฐาน */
  .chip { padding: 10px 15px; font-size: 13.5px; }
  .wl-filters__label { min-width: 0; padding-top: 0; }
  .wl-filters__row { flex-direction: column; gap: 6px; }
  .wl-track__head { flex-wrap: wrap; }
  .wl-track__n { margin-left: 0; }
}
