.nature-phonics{min-height:100dvh;background:var(--canvas);padding:20px clamp(18px,2.5%,36px) 25px;color:var(--ink);font-family:var(--font-sans);letter-spacing:0}
.nature-phonics[hidden]{display:none}
.np-header{display:grid;grid-template-columns:minmax(0,1fr) 50px;align-items:center;min-height:60px;margin-bottom:15px;gap:12px}
.np-header h1{font-size:28px;text-align:center;margin:0;font-weight:500;overflow-wrap:anywhere}
.np-header button{width:50px;height:50px;padding:12px;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;color:#226489}
.np-header img{width:16px;height:28px;object-fit:contain}.np-header svg{width:24px;height:24px}
.nature-phonics button{cursor:pointer;font-family:inherit;letter-spacing:0}.nature-phonics button:focus-visible{outline:3px solid #087bcb;outline-offset:3px}.nature-phonics button:disabled{cursor:wait;opacity:.6}
.np-content{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:calc(100dvh - 115px);background:#fff;border-radius:12px;overflow:hidden;gap:24px}
.np-video-region{min-width:0;display:flex;flex-direction:column;padding:23px 10px 23px 31px;background:#fff;border-radius:26px;box-shadow:0 12px 30px #17365014}
.np-title{font-size:20px;font-weight:400;margin:0 0 16px;line-height:1.5;overflow-wrap:anywhere;min-height:30px;color:#254450}
.np-player{width:100%;max-width:900px;aspect-ratio:1.7714286;position:relative;background:#10242c;border-radius:20px;margin:auto;overflow:hidden}
.np-player video{width:100%;height:100%;display:block;object-fit:contain;background:#000}.np-player video[hidden]{display:none}
.np-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#fff;background:transparent;border:0;font-size:16px}.np-play[hidden]{display:none}
.np-play>span{background:#0788e8;border-radius:50%;width:60px;height:60px;display:grid;place-items:center}.np-play svg{width:24px;height:24px}

/* ===== 课程目录卡片：封面约束在图片区内，角标不压封面文字 ===== */
.np-directory{
  height:calc(100dvh - 115px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:20px 16px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-content:start;
  align-items:stretch;
}
.np-directory>button{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:9px;
  width:100%;
  min-width:0;
  padding:10px;
  background:#fff;
  border:1px solid #eaf3f4;
  border-radius:18px;
  box-shadow:0 6px 16px #1736500d;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  transition:border-color .18s ease,transform .18s ease,background .18s ease;
}
.np-directory>button:hover{border-color:#60b2dc;transform:translateY(-2px)}
.np-directory>button[aria-current="true"]{border-color:#0bb4c4;background:#e2f6f8}
.np-thumbnail{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  border-radius:13px;
  background:#fff1d9;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.np-letter-badge{font-weight:800;color:#b07410;font-size:17px;letter-spacing:1px;z-index:1;padding-right:44px}
.np-learn{
  position:absolute;
  top:6px;
  right:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  max-width:calc(100% - 12px);
  padding:2px 8px;
  background:#fff;
  border:1px solid rgba(11,143,160,.18);
  border-radius:999px;
  font-size:10px;
  line-height:1.2;
  color:#0b8fa0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  z-index:2;
}
.np-directory [aria-current=true] .np-learn{background:#0b8fa0;color:#fff;border-color:#0b8fa0}
.np-directory [aria-current=true] .np-lesson-name{color:#0077c5}
.np-lesson-name{display:block;min-width:0;font-weight:600;font-size:13px;color:#254450;line-height:1.35;overflow-wrap:anywhere}
.np-lesson-sub{display:block;min-width:0;font-size:11px;color:#7c9aa4;overflow-wrap:anywhere}

.np-status{padding:10px 14px;background:#fff4d8;color:#78490d;border-left:3px solid #d69223;margin-bottom:12px;overflow-wrap:anywhere;font-size:15px}
.np-status[hidden]{display:none}.np-empty{grid-column:1/-1;align-self:center;justify-self:center;text-align:center;padding:24px;overflow-wrap:anywhere;color:#62686d}.np-empty button{min-height:44px;background:#0876ed;color:white;border:0;padding:10px 18px;border-radius:6px}

@media(min-width:1500px){.np-content{grid-template-columns:minmax(0,1fr) 380px}.np-directory{padding:20px 18px}}
@media(max-width:760px){
  .nature-phonics{padding:12px}
  .np-header{min-height:50px;margin-bottom:10px}.np-header h1{font-size:24px}
  .np-content{grid-template-columns:minmax(0,1fr);min-height:calc(100dvh - 84px)}
  .np-video-region{padding:18px;gap:18px}.np-player{margin:0 auto}.np-title{font-size:18px}
  .np-directory{height:auto;max-height:52dvh;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
  .np-lesson-name{font-size:13px}
}
@media(max-width:650px){.np-directory{grid-template-columns:1fr}}
@media(max-height:500px) and (min-width:761px){.np-video-region{padding:12px}.np-player{max-width:480px}.np-title{font-size:16px}.np-header{min-height:44px;margin:0}.np-content{min-height:calc(100dvh - 84px)}.np-directory{height:calc(100dvh - 84px);padding:12px 25px}}
