/* =========================================================
   SEA — 하단 미니 오디오 플레이어 (전 페이지 · assets/js/sea-player.js)
   · 기본 정지. 본문·버튼을 가리지 않도록 작은 알약 형태로 띄웁니다.
   · 좁은 화면에서는 공유 바(하단)와 채팅 버튼(오른쪽) 위쪽에 앉습니다.
   ========================================================= */

.sp{
  position:fixed;
  left:16px;
  bottom:calc(16px + env(safe-area-inset-bottom));
  z-index:78;
  width:352px;
  max-width:calc(100vw - 32px);
  background:#0b0d11;
  color:#f3f1ec;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  box-shadow:0 18px 42px -22px rgba(0,0,0,.75);
  font-family:"Pretendard Variable",Pretendard,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  transition:width .18s ease, opacity .2s ease;
  contain:layout style;
}
.sp *{box-sizing:border-box}
.sp button{font-family:inherit}
.sp button:focus-visible{outline:2px solid #4de3c9;outline-offset:2px}

.sp__row{display:flex;align-items:center;gap:4px;padding:7px 8px 8px;min-width:0}

/* 재생 버튼 */
.sp__pp{
  flex:0 0 auto;width:36px;height:36px;border-radius:50%;
  border:0;background:#4de3c9;color:#06231e;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;
  transition:background .16s,transform .16s;
}
.sp__pp:hover{background:#6df0da}
.sp__pp:active{transform:scale(.95)}
.sp__pp svg{width:17px;height:17px;fill:currentColor}
.sp__i-pause{display:none}
.sp.is-playing .sp__i-play{display:none}
.sp.is-playing .sp__i-pause{display:block}

/* 곡 제목 */
.sp__tx{
  flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px;
  background:none;border:0;padding:2px 6px;text-align:left;color:inherit;cursor:pointer;
}
.sp__t{font-size:12.5px;font-weight:600;line-height:1.35;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
.sp__g{font-size:9.5px;letter-spacing:.06em;color:#8d929b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:normal;display:block;max-width:100%}
.sp__tx:hover .sp__t{color:#6df0da}

/* 곡 넘기기 */
.sp__nav{display:flex;flex:0 0 auto;gap:0}
.sp__b{
  width:28px;height:30px;border:0;background:transparent;color:#c9ccd2;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;
}
.sp__b:hover{background:rgba(255,255,255,.09);color:#fff}
.sp__b svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 31곡 링크 */
.sp__all{
  flex:0 0 auto;margin-left:2px;padding:5px 7px;border-radius:4px;
  font-size:10px;font-weight:600;letter-spacing:.04em;text-decoration:none;
  color:#4de3c9;border:1px solid rgba(77,227,201,.35);white-space:nowrap;
}
.sp__all:hover{background:rgba(77,227,201,.12)}

/* 접기 */
.sp__min{
  flex:0 0 auto;width:24px;height:28px;border:0;background:transparent;color:#8d929b;
  cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;
}
.sp__min:hover{color:#fff;background:rgba(255,255,255,.08)}
.sp__min svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}

/* 닫기 — 재생을 멈추고 바를 화면에서 내립니다 */
.sp__x{
  flex:0 0 auto;width:22px;height:28px;border:0;background:transparent;color:#8d929b;
  cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;border-radius:4px;
}
.sp__x:hover{color:#fff;background:rgba(255,255,255,.1)}
.sp__x svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sp.is-off{display:none!important}

/* 진행 막대 */
.sp__bar{height:2px;background:rgba(255,255,255,.1);border-radius:0 0 8px 8px;overflow:hidden}
.sp__bar i{display:block;height:100%;width:0;background:#4de3c9;transition:width .5s linear}

/* 접힌 상태 */
.sp.is-min{width:200px}
.sp.is-min .sp__nav,
.sp.is-min .sp__all,
.sp.is-min .sp__g{display:none}
.sp.is-min .sp__tx{padding-left:2px}
.sp.is-min .sp__t{font-size:11.5px}
.sp.is-min .sp__min svg{transform:rotate(180deg)}

/* 숨은 유튜브 재생기 — 화면 밖에 두고 소리만 씁니다 */
.sp__vid{position:fixed;left:-9999px;top:0;width:320px;height:180px;overflow:hidden;pointer-events:none;opacity:.01}
.sp__vid iframe,.sp__frame{width:320px;height:180px;border:0;display:block}

/* 좁은 화면 — 공유 바·채팅 버튼과 겹치지 않게 위로 */
@media (max-width:720px){
  .sp{
    left:12px;
    bottom:calc(74px + env(safe-area-inset-bottom));
    width:min(292px,calc(100vw - 96px));
    border-radius:8px;
  }
  .sp__row{padding:6px 7px 7px;gap:2px}
  .sp__pp{width:34px;height:34px}
  .sp__t{font-size:12px}
  .sp__all{display:none}
  .sp.is-min{width:min(190px,calc(100vw - 96px))}
}
@media (max-width:380px){
  .sp{width:calc(100vw - 88px)}
  .sp__all{display:none}
}
@media print{
  .sp{display:none!important}
}

/* =========================================================
   기사 본문 끝 — SEA 추천 카드 (native recommaendation)
   assets/js/sea-player.js 와 같은 파일로 배포합니다(모든 페이지가 이미 이 CSS를 읽음).
   ========================================================= */
.sea-reco{
  display:grid;
  grid-template-columns:minmax(0,190px) minmax(0,1fr) auto;
  gap:clamp(14px,3vw,22px);
  align-items:center;
  max-width:1040px;
  margin:34px auto 8px;
  padding:clamp(14px,2.6vw,18px);
  background:#0b0d11;
  border-radius:8px;
  color:#f3f1ec;
  text-align:left;
}
.sea-reco *{box-sizing:border-box}
.sea-reco__cv{position:relative;display:block;border-radius:6px;overflow:hidden;background:#000;aspect-ratio:16/9}
.sea-reco__cv img{width:100%;height:100%;object-fit:cover;display:block;opacity:.94}
.sea-reco__cv:hover img{opacity:1}
.sea-reco__pl{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(255,255,255,.93);display:flex;align-items:center;justify-content:center}
.sea-reco__pl::after{content:"";width:0;height:0;border-left:12px solid #111318;border-top:8px solid transparent;border-bottom:8px solid transparent;margin-left:4px}
.sea-reco__tx{min-width:0;display:flex;flex-direction:column;justify-content:center}
.sea-reco__k{font-family:"Oswald",system-ui,sans-serif;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#4de3c9;margin:0 0 7px}
.sea-reco__t{font-family:var(--serif,"Noto Serif KR",serif);font-size:clamp(15px,3.6vw,18px);line-height:1.5;margin:0;color:#fff;word-break:keep-all}
.sea-reco__b{font-size:12.5px;line-height:1.7;color:#b9bcc2;margin:7px 0 0;word-break:keep-all}
.sea-reco__go{display:flex;flex-direction:column;gap:8px;margin:0;align-items:stretch;flex:0 0 auto}
.sea-reco__go a{white-space:nowrap}
.sea-reco__go a{display:inline-flex;align-items:center;padding:8px 14px;border-radius:4px;font-size:12px;font-weight:600;text-decoration:none;background:#4de3c9;color:#08211c}
.sea-reco__go a+a{background:transparent;color:#e8e6e1;border:1px solid rgba(255,255,255,.28)}
.sea-reco__go a:hover{filter:brightness(1.06)}
@media (max-width:760px){
  .sea-reco{grid-template-columns:1fr;gap:12px;align-items:start}
  .sea-reco__cv{max-width:none}
  .sea-reco__go{flex-direction:row;flex-wrap:wrap;margin:4px 0 0}
}
