.cl-page {
  --cl-paper: #fffefa;
  --cl-line: #dedfd8;
  --cl-ink: #252820;
  --cl-muted: #666b61;
  --cl-orange: #e9632b;
  --cl-tint: #f9ede4;
  color: var(--cl-ink);
  width: min(100%, 1392px);
  margin-inline: auto;
  padding-block: 24px 64px;
  font-family: inherit;
  text-align: left;
}
.cl-page *, .cl-page *::before, .cl-page *::after { box-sizing: border-box; }
.cl-page svg { flex: none; width: 19px; height: 19px; }
.cl-page h1, .cl-page h2, .cl-page h3, .cl-page p { margin: 0; }
.cl-page button, .cl-page input { font: inherit; }
.cl-page button { cursor: pointer; }
.cl-page button:focus-visible, .cl-page input:focus-visible {
  outline: 2px solid var(--cl-orange); outline-offset: 3px;
}
.cl-page button:disabled { cursor: default; opacity: .47; }
.cl-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.cl-title-group { display: grid; gap: 8px; }
.cl-title-group h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.cl-title-group p { color: var(--cl-muted); font-size: 15px; line-height: 1.5; }
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-height: 42px; padding: 8px 14px; border: 1px solid var(--cl-line); border-radius: 8px;
  color: var(--cl-ink); background: #fff; line-height: 1.3; font-weight: 550; font-size: 14px;
}
.cl-btn:hover { background: #efefe9; }
.cl-btn.cl-primary { border-color: var(--cl-orange); background: var(--cl-orange); color: #fff; font-weight: 650; }
.cl-btn.cl-primary:hover { background: #d45724; border-color: #d45724; }
.cl-btn.cl-icon-only { width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--cl-muted); }
.cl-btn.cl-icon-only:hover, .cl-btn.cl-text-btn:hover { background: #f4f0e9; color: var(--cl-ink); }
.cl-icon-only > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cl-empty { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 50px 20px; min-height: 258px; text-align: center; border: 1px dashed #cccec4; border-radius: 12px; background: rgba(255,255,255,.48); }
.cl-empty-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--cl-tint); color: #bb5428; margin-bottom: 4px; }
.cl-empty-icon svg { width: 25px; height: 25px; }
.cl-empty h2 { font-size: 22px; letter-spacing: -.04em; }
.cl-empty p, .cl-detail { color: var(--cl-muted); font-size: 15px; line-height: 1.7; }
.cl-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(282px, 100%), 1fr)); gap: 22px; }
.cl-video-card { position: relative; min-width: 0; border: 1px solid var(--cl-line); border-radius: 12px; background: var(--cl-paper); overflow: hidden; }
.cl-video-card:focus-within, .cl-video-card:hover { border-color: #b8bcb1; }
.cl-video-select { display: block; width: 100%; height: 100%; padding: 0; text-align: left; color: inherit; background: transparent; border: 0; }
.cl-video-select:focus-visible { outline-offset: -3px !important; }
.cl-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: #3c4844; color: #d5dbd5; overflow: hidden; }
.cl-thumb > svg { width: 42px; height: 42px; }
.cl-poster { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.cl-duration { position: absolute; right: 12px; bottom: 12px; color: white; background: #1e241ed9; padding: 4px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 550; }
.cl-play { display: grid; place-items: center; border-radius: 50%; width: 42px; height: 42px; background: #fffefaed; color: #24271f; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .15s; }
.cl-play svg { margin-left: 2px; }
.cl-video-select:hover .cl-play, .cl-video-select:focus-visible .cl-play { opacity: 1; }
.cl-video-details { display: grid; gap: 8px; padding: 19px; }
.cl-category, .cl-video-meta, .cl-source { color: var(--cl-muted); font-size: 13px; }
.cl-category { color: #a24b25; font-weight: 620; }
.cl-video-details h2 { overflow-wrap: anywhere; letter-spacing: -.035em; font-size: 23px; line-height: 1.28; font-weight: 620; }
.cl-video-meta, .cl-source { display: flex; align-items: center; gap: 7px; }
.cl-video-meta svg, .cl-source svg { width: 15px; height: 15px; }
.cl-video-card .cl-remove-video { position: absolute; bottom: 4px; right: 7px; }
.cl-search { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); margin-bottom: 20px; padding: 0 12px; color: var(--cl-muted); background: #fff; border: 1px solid var(--cl-line); border-radius: 8px; }
.cl-search input { width: 100%; height: 42px; border: 0; background: transparent; color: var(--cl-ink); }
.cl-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.cl-tab { border-radius: 99px; min-height: 36px; padding: 6px 14px; color: var(--cl-muted); }
.cl-tab[aria-pressed="true"] { background: var(--cl-ink); color: white; border-color: var(--cl-ink); }
.cl-word-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cl-word-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 20px; border: 1px solid var(--cl-line); border-radius: 12px; background: var(--cl-paper); }
.cl-word-heading, .cl-term, .cl-word-footer, .cl-word-tools, .cl-actions { display: flex; align-items: center; }
.cl-word-heading, .cl-word-footer { justify-content: space-between; gap: 10px; }
.cl-term { min-width: 0; gap: 2px; }
.cl-term h2, .cl-term h3 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.04em; overflow-wrap: anywhere; }
.cl-btn.cl-status { min-height: 32px; font-size: 12px; padding: 4px 8px; border: 0; background: var(--cl-tint); color: #8f4220; }
.cl-btn.cl-status:hover { background: #f1dccb; }
.cl-status svg { width: 14px; height: 14px; }
.cl-btn.cl-mastered { background: #e8efe4; color: #3d6044; }
.cl-context-en { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.cl-context-en mark { background: #ffebd8; color: inherit; border-radius: 2px; }
.cl-context-zh { color: var(--cl-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.cl-word-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #ecece6; }
.cl-source { min-width: 0; overflow-wrap: anywhere; }
.cl-word-tools { flex: none; }
.cl-btn.cl-text-btn { border: 0; padding: 5px; min-height: 38px; gap: 4px; background: transparent; font-size: 13px; color: var(--cl-muted); }
.cl-text-btn svg { width: 15px; height: 15px; }
.cl-dialog { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--cl-line); border-radius: 16px; padding: 24px; color: var(--cl-ink); background: var(--cl-paper); box-shadow: 0 24px 96px #19201c30; }
.cl-dialog::backdrop { background: #20281d66; }
.cl-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.cl-dialog-header h2 { font-size: 22px; font-weight: 650; letter-spacing: -.045em; }
.cl-dialog-content { display: grid; gap: 16px; }
.cl-dialog-content .cl-empty { min-height: 180px; padding: 16px; border: 0; background: transparent; }
.cl-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.cl-flashcard { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 170px; padding: 20px; border: 1px solid var(--cl-line); border-radius: 12px; background: #f5f5ee; }
.cl-flashcard h3 { font-size: 29px; }
.cl-practice-progress { display: flex; justify-content: space-between; color: var(--cl-muted); font-size: 14px; }
.cl-dialog progress { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 5px; background: #e4e5dc; color: var(--cl-orange); accent-color: var(--cl-orange); overflow: hidden; }
.cl-dialog progress::-webkit-progress-bar { background: #e4e5dc; }
.cl-dialog progress::-webkit-progress-value { background: var(--cl-orange); }
.cl-dialog progress::-moz-progress-bar { background: var(--cl-orange); }
.cl-error { color: #9f3f28; font-size: 14px; }
@media (max-width: 720px) {
  .cl-page { padding-block: 10px 42px; }
  .cl-heading { margin-bottom: 24px; }
  .cl-word-list { grid-template-columns: 1fr; }
  .cl-word-card { padding: 16px; }
  .cl-word-footer { align-items: flex-start; }
  .cl-source { align-self: center; }
  .cl-video-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 15px; }
}
@media (max-width: 389px) {
  .cl-word-footer { flex-wrap: wrap; }
  .cl-word-heading { gap: 4px; }
  .cl-word-card { padding: 14px; }
}
.cl-video-card{display:flex;flex-direction:column}
.cl-video-select{height:auto}
.cl-card-credit{align-self:flex-start;margin:-3px 19px 17px;color:var(--cl-muted);font-size:13px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#afb2a8}
.cl-card-credit:hover{color:var(--cl-orange)}
