*{box-sizing:border-box}body{margin:0;background:#fafaf7;color:#1e2422;font-family:"Inter","Microsoft YaHei UI","PingFang SC",Arial,sans-serif;font-size:16px}.wrap{width:min(1312px,92%);margin:auto}.top{border-bottom:1px solid #dedfd8;background:#fff}.nav,.brand,.nav nav,.hero-stats,.source,.toolbar,.heading,.filters,.search,.pagination,.pagination>div,.player-inner,.timeline{display:flex;align-items:center}.nav{height:70px;justify-content:space-between}.brand{text-decoration:none;color:inherit;gap:10px}.brand b{font-size:23px;letter-spacing:.08em}.brand-en,.kicker{font:700 12px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.12em}.brand-en{border-left:1px solid #c6c8bd;padding-left:12px;color:#576058}.logo{display:flex;align-items:center;justify-content:center;gap:2.5px;background:#e6ed59;border:1px solid #cbd244;width:33px;height:33px;border-radius:9px;transform:rotate(-4deg)}.logo i{width:2.8px;height:8px;background:#242820;border-radius:3px}.logo i:nth-child(2){height:18px}.logo i:nth-child(3){height:23px}.logo i:nth-child(4){height:13px}button,a,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #889300;outline-offset:3px}.nav nav{gap:12px}.nav nav button{background:transparent;border:0;padding:10px 17px;font-size:14px;border-radius:24px}.nav nav button.selected{background:#ecede7;font-weight:700}.hero{position:relative;overflow:hidden;background:#222b27;color:#fff;min-height:240px;border-radius:18px;margin:30px 0 34px;display:flex;align-items:center;isolation:isolate}.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(95deg,#1b2421 14%,#1d2724 40%,rgba(30,40,35,.88) 49%,transparent 65%)}.hero-content{padding:34px 4%;position:relative}.source{gap:10px;color:#e2e7db;font-size:14px;font-weight:600;letter-spacing:.04em}.source i{width:7px;height:7px;background:#e5ed65;transform:rotate(45deg)}.source span{opacity:.45}.hero h1{font-size:clamp(38px,4.8vw,73px);letter-spacing:-.065em;line-height:1.1;margin:18px 0 25px}.hero h1 span{color:#e5ed65;margin-left:4px}.hero-stats{gap:20px;color:#c9cfc7;font-size:14px}.hero-stats span+span{border-left:1px solid #657069;padding-left:20px}.hero-stats b{font:600 17px/1 "Inter",Arial,sans-serif;color:#f2f3e8}.reel{position:absolute;z-index:-2;display:flex;gap:9px;width:56%;right:-3%;top:50%;transform:translateY(-50%) rotate(-9deg);background:#101815;padding:9px}.reel>div{width:50%;border-inline:8px solid #131b17;display:grid;gap:10px}.reel img{width:100%;aspect-ratio:2.3;object-fit:cover;filter:saturate(.7) contrast(.97)}.library{background:white;border:1px solid #dfe1d9;border-radius:14px;overflow:hidden}.toolbar{padding:23px 24px;justify-content:space-between;gap:16px;flex-wrap:wrap}.heading,.filters{gap:10px}.stack{font-size:25px;line-height:1;color:#4c5546}h2{margin:0;font-size:23px;letter-spacing:-.04em}.heading>span:last-child{color:#6c7369;font-size:13px;background:#f1f2ec;padding:4px 9px;border-radius:16px}.search,select{border:1px solid #d8dbd0;border-radius:8px;background:white;height:38px}.search{padding:0 12px;gap:8px;color:#737d71}.search input{border:0;min-width:0;width:190px;color:#262c26;font-size:14px;background:none}.filters select{font-size:14px;padding:0 31px 0 12px;color:#414b41;appearance:none;background:linear-gradient(45deg,transparent 50%,#657063 50%) calc(100% - 15px) 16px/5px 5px no-repeat,linear-gradient(135deg,#657063 50%,transparent 50%) calc(100% - 10px) 16px/5px 5px no-repeat}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{padding:13px 17px;font-size:13px;letter-spacing:.035em;background:#f2f4ee;color:#576050;border-block:1px solid #e0e4da}th:first-child{padding-left:25px;width:36%}th:nth-child(2){width:26%}th:nth-child(3){width:21%}th small{font:11px ui-monospace,Consolas,monospace;color:#777f72;margin-left:6px}td{padding:17px;border-bottom:1px solid #e9eae4;vertical-align:middle}td:first-child{padding-left:23px}tr.active{background:#f7f9e7}tbody tr:hover{background:#fcfcf7}.line-head{display:flex;align-items:flex-start;gap:10px}.star{border:0;background:transparent;color:#90968a;font-size:19px;line-height:23px;padding:0}.star.on{color:#8b8509}.en{border:0;background:none;padding:0;color:#1e2620;font:650 18px/1.32 "Inter",Arial,sans-serif;text-align:left;cursor:pointer}.en:hover{text-decoration:underline;text-underline-offset:3px}.ipa{font-family:"Segoe UI","Arial",sans-serif;font-size:15px;color:#596256;line-height:1.45}.zh{font-size:15px;line-height:1.5}.listen{display:inline-flex;align-items:center;gap:7px;min-height:33px;border-radius:8px;background:#eef1da;color:#3c4928;border:1px solid #dfe5c4;padding:5px 11px;font-size:13px;font-weight:600;white-space:nowrap}.listen:hover{background:#e4ebaf}.playglyph{font-size:10px}.clipcount{font:12px ui-monospace,Consolas,monospace;border-left:1px solid #b8c1a1;padding-left:7px}.pending{font-size:13px;color:#727b70}.pagination{justify-content:space-between;gap:12px;padding:18px 24px;font-size:13px;color:#636c5f}.pagination>div{gap:5px;flex-wrap:wrap}.pagination button,.minor{min-width:31px;height:31px;background:white;border:1px solid #d8ddcf;border-radius:6px;font-size:13px}.pagination button.current{background:#263029;color:white;border-color:#263029}.pagination button:disabled,.minor:disabled{opacity:.35;cursor:default}footer{display:flex;justify-content:space-between;align-items:center;margin:22px 0 100px;font-size:12px;color:#727b70}footer span{font-weight:bold;letter-spacing:.07em}footer b{padding:0 5px;color:#a6ae9f}a{color:inherit}footer a{text-decoration:none}#empty{padding:28px;text-align:center;color:#6a7366}dialog{border:1px solid #d7dccd;border-radius:15px;width:min(440px,92vw);padding:30px;max-height:82vh;color:#253028}dialog::backdrop{background:#17231bb3}.close{float:right;border:0;background:none;font-size:26px}.kicker{color:#646e60}.player{position:fixed;bottom:0;width:100%;background:#202a25;color:white;box-shadow:0 -3px 18px #17231b20}.player-inner{padding:16px 0;gap:10px}.mainplay{border:0;border-radius:50%;background:#e6ed60;width:40px;height:40px;flex-shrink:0}.playing-label{display:grid;gap:3px;min-width:110px;max-width:34%}.playing-label b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playing-label span{color:#bcc7b6;font-size:12px}.minor{background:#324037;color:#f1f4eb;border-color:#566459}.wide{padding:0 10px}.minor[aria-pressed=true]{background:#dfe99b;color:#263022}.timeline{gap:8px;flex:1}.timeline input{accent-color:#e5ed65;width:100%}.timeline span{font:12px monospace}#notice:not(:empty){position:fixed;bottom:86px;left:50%;transform:translateX(-50%);background:#26322b;color:white;padding:9px 17px;border-radius:8px;z-index:3}body:has(.player:not([hidden])) #archive{margin-bottom:max(95px,15vh)}
@media(max-width:760px){.wrap{width:94%}.nav{height:58px}.brand-en{display:none}.nav nav{gap:1px}.hero{min-height:189px;margin:17px 0}.hero-content{padding:22px}.hero:after{background:linear-gradient(90deg,#1c2723 16%,#1c2723ee 44%,#1c27234f 84%)}.reel{width:58%}.hero h1{font-size:42px}.hero-stats{gap:8px;font-size:12px}.hero-stats span+span{padding-left:8px}.hero-stats b{font-size:14px}.toolbar{padding:15px}.filters{width:100%}.search{flex:1}.search input{width:100%}.table-scroll table{min-width:730px}.pagination{padding:13px;flex-wrap:wrap}td{padding:13px 10px}th:first-child,td:first-child{padding-left:14px}.player-inner{flex-wrap:wrap;gap:6px;padding:9px 0}.playing-label{max-width:45%;flex:1}.timeline{order:4;flex-basis:100%}.minor{min-width:26px}.wide{padding:0 5px}footer{align-items:flex-start;gap:14px}.hero h1{margin-block:13px 18px}}
.mainplay{color:#19271e}
.hero-stats button{border:0;padding:0;background:transparent;color:inherit;font-size:inherit}.hero-stats button:hover{text-decoration:underline}.hero-stats button+span{border-left:1px solid #657069;padding-left:20px}#archive{width:min(620px,92vw)}#archiveQuery{margin:16px 0;padding:10px;border:1px solid #cad1c4;border-radius:6px;width:95%}.archive-row{border-top:1px solid #e2e6dc;padding:12px 0;display:flex;gap:10px;align-items:center}.archive-row div{flex:1;min-width:0}.archive-row b,.archive-row small{display:block}.archive-row small{color:#727c6b;margin-top:4px}.archive-row a{white-space:nowrap;font-size:13px}.archive-row b{font-size:15px;overflow-wrap:anywhere}
.phonetic{background:none;border:0;text-align:left;overflow-wrap:anywhere;color:inherit;padding:0;max-width:100%;line-height:1.5}.phonetic:hover{text-decoration:underline}.phonetic img{display:block;height:auto;max-height:22px;max-width:100%;object-fit:contain;object-position:left center}
@media(max-width:600px){.table-scroll table,.table-scroll tbody{display:block;min-width:0}.table-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.table-scroll tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:14px;border-top:1px solid #e7eadf}.table-scroll td,.table-scroll td:first-child{display:block;padding:0;border:0}.table-scroll td:first-child{grid-column:1/3}.en{font-size:17px}.table-scroll .ipa{grid-column:1;grid-row:2;padding-left:28px}.table-scroll .zh{grid-column:1;grid-row:3;padding-left:28px;font-size:14px;color:#48533e}.table-scroll td:last-child{grid-column:2;grid-row:2/4;align-self:center}.phonetic{font-size:14px}.phonetic img{max-height:18px}.hero-stats button+span{padding-left:8px}.listen{padding:5px 8px}.player-inner .timeline{width:100%}}
.new-reel{position:absolute;z-index:-2;width:59%;right:-3%;top:50%;transform:translateY(-50%) rotate(-8deg)}.new-reel img{width:100%;display:block}.source b{font-weight:600}.hero h1 b{font-weight:inherit}footer{gap:15px;flex-wrap:wrap}footer>span{margin-right:auto}.filters{flex-wrap:wrap}.collection-intro,#collectionBar{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:0 0 18px}#collectionCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:14px}.collection-card{display:flex;gap:17px;border:1px solid #dce1d5;border-radius:12px;background:#fff;overflow:hidden;padding:13px;text-decoration:none;align-items:center;min-height:112px}.collection-card:hover{border-color:#879857;background:#fefff7}.collection-card img{width:72px;height:91px;object-fit:cover;border-radius:5px;background:#26332b}.collection-card span{font-size:13px;color:#66705e}.collection-card h3{font-size:18px;margin:0 0 9px}#collectionBar{padding:16px 22px;margin:0;border-bottom:1px solid #dfe3d8;background:#f5f7ed;justify-content:flex-start;flex-wrap:wrap}#collectionBar[hidden],#collections[hidden],#library[hidden]{display:none}#collectionBar button{color:#51653a;background:none;border:0;text-decoration:underline;text-underline-offset:4px}#collectionHeading{font-weight:650}#episodeFilter{margin-left:auto;max-width:320px;padding-inline:8px}.player{z-index:5}.new-reel img{filter:saturate(.85)}@media(max-width:760px){.filters .search{min-width:170px}.hero-content{z-index:1}.collection-intro{flex-wrap:wrap}#collectionBar select{max-width:100%}.nav nav{gap:0}.nav nav button{padding:8px 9px}.toolbar .filters select{max-width:150px}.new-reel{width:63%}}

/* Sentence detail */
#details {
  --detail-pad: clamp(20px, 4vw, 34px);
  width: min(680px, calc(100% - 40px));
  max-width: none;
  max-height: min(90dvh, 960px);
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: #202b24;
  box-shadow: 0 22px 84px #0f1c2542;
}
#details[open] { display: flex; }
#details::backdrop { background: rgb(14 24 20 / 62%); }
body:has(#details[open]) { overflow: hidden; }
.detail-scroll { width: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.detail-intro {
  padding: 32px calc(var(--detail-pad) + 43px) 27px var(--detail-pad);
  color: #f7f8ef;
  background: #23352e;
}
#detEn {
  margin: 0;
  font: 650 clamp(32px, 4.5vw, 46px)/1.1 "Inter", Arial, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
#detIpa {
  margin: 10px 0 0;
  color: #e0e9a0;
  font: 400 17px/1.5 "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}
#detZh { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: #eff2eb; }
#detZh:empty { display: none; }
#closeDetails {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #637169;
  border-radius: 50%;
  color: #fff;
  background: #30443b;
}
#closeDetails svg { width: 18px; height: 18px; }
#closeDetails:hover { background: #465c50; }
#details :focus-visible { outline: 3px solid #677a15; outline-offset: 2px; }
#details #closeDetails:focus-visible { outline-color: #e0e9a0; }
.detail-samples { padding: 18px var(--detail-pad) 24px; }
.sample-heading, .sample-title, #detLocalVideo { display: flex; align-items: center; }
.sample-heading { justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sample-title { gap: 10px; }
#detKind { margin: 0; font-size: 19px; letter-spacing: -.015em; }
#detClipCount { font-size: 13px; color: #606b63; white-space: nowrap; }
#detLocalVideo {
  min-height: 44px;
  gap: 6px;
  color: #415845;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
#detLocalVideo svg { width: 18px; height: 18px; }
#detLocalVideo:hover { text-decoration: underline; text-underline-offset: 3px; }
#detLocalVideo[hidden] { display: none; }
#detClips { display: grid; gap: 16px 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#detClips.audio-only { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#detClips .pending { grid-column: 1 / -1; padding: 8px 0; }
.clip-play {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: #253429;
  cursor: pointer;
}
.clip-play.has-still { align-self: start; }
.still {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 160 / 84;
  overflow: hidden;
  border-radius: 8px;
  background-color: #34463b;
  background-repeat: no-repeat;
}
.clip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #24362b;
}
.still .clip-icon {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border: 1px solid #ffffff94;
  background: rgb(22 31 26 / 88%);
}
.clip-icon::before {
  content: "";
  display: block;
  margin-left: 2px;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
}
.clip-play[aria-pressed=true] .clip-icon, .clip-play:hover .clip-icon { color: #203024; background: #e1eb88; }
.clip-play[aria-pressed=true] .clip-icon::before {
  width: 4px;
  height: 10px;
  margin: 0;
  border: solid currentColor;
  border-width: 0 2px;
  box-sizing: content-box;
}
.clip-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 5px; flex-wrap: wrap; }
.has-still .clip-caption { padding: 7px 1px 0; }
.clip-title { font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.clip-time { color: #626e63; font: 12px/1.6 "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip-play:not(.has-still) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  align-self: start;
  padding: 9px 12px;
  border: 1px solid #dbe2d6;
  background: #f6f8f3;
}
.clip-play:not(.has-still) .clip-caption { flex: 1; }
.clip-play:not(.has-still):hover, .clip-play:not(.has-still)[aria-pressed=true] { border-color: #839267; background: #f1f5e6; }
#detStatus:not(.has-error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
#detStatus.has-error { margin: 12px 0 0; color: #9c3a21; font-size: 14px; }
.detail-foot { position: relative; padding: 3px var(--detail-pad); background: #f6f7f2; border-top: 1px solid #e0e5db; }
.detail-date {
  position: absolute;
  top: 3px;
  right: var(--detail-pad);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #606a61;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#detNotes summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: #435348;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
#detNotes summary::-webkit-details-marker { display: none; }
#detNotes summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#detNotes[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
#detMeta { padding: 3px 0 16px; color: #4e5b50; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#detMeta p { margin: 9px 0 0; }
#detMeta .caption { white-space: pre-wrap; }
#detMeta .ipa-original { display: block; max-width: 100%; max-height: 70px; margin: 6px 0; object-fit: contain; }
@media (max-width: 600px) {
  #details { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .detail-intro { padding-top: 25px; padding-bottom: 21px; }
  #closeDetails { top: 9px; right: 10px; }
  #detIpa { font-size: 16px; margin-top: 7px; }
  #detZh { font-size: 16px; margin-top: 8px; }
  .detail-samples { padding-block: 11px 18px; }
  #detClips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sample-heading { margin-bottom: 8px; }
  .detail-foot { padding-bottom: max(3px, env(safe-area-inset-bottom)); }
  .clip-play:not(.has-still) .clip-caption { flex-direction: column; }
}
@media (max-width: 340px) {
  .detail-date { position: static; min-height: 28px; padding-bottom: 6px; }
  #detClips.audio-only { grid-template-columns: 1fr; }
}
.footer-action { border:0; padding:0; background:transparent; color:inherit; }
.footer-action:hover, .footer-action:focus-visible { text-decoration:underline; text-underline-offset:3px; }
#cacheDialog h2 { margin:0 0 16px; }
#cacheDialog p { line-height:1.65; }
#cacheUsage { font-variant-numeric: tabular-nums; font-weight:600; }
#clearMedia { border:1px solid #bfc8b9; border-radius:7px; padding:8px 14px; background:#f6f8f2; }
#clearMedia:disabled { opacity:.55; cursor:default; }
