/* [원본 코드 전체] */
:root {
  /* 파생 플레이어는 이 값만 해당 스킨 대표색으로 변경한다. */
  --skin-accent: #f4bf6b;
}
@font-face {
  font-family: "JK Gaegu";
  src: url("/fonts/gaegu-korean-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JKESU";
  src: url("../font/jkesu.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #020202; color: #f4eadc; font-family: "Malgun Gothic", "Noto Sans KR", sans-serif; overflow-x: hidden; }

#bg { position: fixed; inset: -30px; background-size: cover; background-position: center; filter: blur(60px) brightness(0.4); z-index: 0; transition: background-image 2s ease-in-out; animation: ambientParallax 15s linear infinite alternate; will-change: transform, filter; }
@keyframes ambientParallax {
    0% { transform: scale(1.1) translate(0, 0); filter: blur(60px) brightness(0.4); }
    50% { transform: scale(1.15) translate(-20px, -20px); filter: blur(75px) brightness(0.35); }
    100% { transform: scale(1.1) translate(0, 0); filter: blur(60px) brightness(0.4); }
}

.player { position: relative; z-index: 1; width: 100%; max-width: 430px; min-height: 100vh; margin: 0 auto; padding: 22px 14px; background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(0,0,0,0.95)); box-shadow: 0 0 80px rgba(0,0,0,0.8); }

.cover { position: relative; overflow: hidden; border-radius: 28px; box-shadow: 0 0 50px rgba(217, 168, 91, 0.1); aspect-ratio: 16 / 9; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.12); } }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; animation: kenburns 8s linear forwards; transition: opacity 1.5s ease-in-out; }

.song-info { margin-top: -118px; padding: 0 18px 24px; position: relative; z-index: 2; }
.archive { text-align: center; font-size: 10px; letter-spacing: 5px; opacity: 0.4; color: #f5dfb8; margin-bottom: 34px; }
#title { font-size: 12px; opacity: 0.4; margin: 0; font-weight: 400; }
#artist { margin: 8px 0 0; color: #d7c2a0; font-size: 15px; }

.progress { margin: 30px 4px 30px; }
.progress input { width: 100%; height: 4px; accent-color: #c9b080; cursor: pointer; }
.time-row { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
#currentTime, #remainTime { min-width: 48px; text-align: center; color: rgba(215, 194, 160, 0.6); font-size: 12px; }

.controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 30px; }
.controls button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(217, 168, 91, 0.3); background: rgba(20, 18, 15, 0.5); color: #f4eadc; font-size: 21px; cursor: pointer; }
#play { width: 74px; height: 74px; font-size: 28px; color: #f4bf6b; }

.playlist { padding: 18px; }
.playlist h2 { margin: 0 0 20px; font-size: 12px; letter-spacing: 3px; color: #d9a85b; opacity: 0.5; }
.playlist li { display: grid; grid-template-columns: 36px 28px 1fr; align-items: center; gap: 15px; padding: 18px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; }
.playlist-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.playlist li.active .playlist-index, .playlist li.active .playlist-name { color: #f4bf6b; font-weight: 700; }
.playlist-index,
.playlist-name {
  font-family: "JKESU", "Malgun Gothic", sans-serif;
}
.playlist-index {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}
.playlist-name {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}
.playlist li.active .playlist-index,
.playlist li.active .playlist-name {
  font-weight: 500;
}

/* 추가된 탭 스타일 */
.tab-btn { background: rgba(20, 18, 15, 0.5); border: 1px solid rgba(217, 168, 91, 0.3); color: #d9a85b; padding: 6px 14px; cursor: pointer; border-radius: 15px; font-size: 10px; transition: 0.3s; }
.tab-btn.active { background: #d9a85b; color: #000; font-weight: bold; }

/* ===== v3.2 UX FIX — preserved song navigation + notice + stable tabs ===== */
.song-nav{
  padding:14px 16px;
  border:1px solid rgba(217,168,91,.16);
  border-radius:20px;
  background:rgba(8,8,8,.42);

  margin:16px 12px 18px;
  text-align:center;
  font-size:12px;
  line-height:1.55;
  color:rgba(244,234,220,.68);
}
.song-nav div{margin:4px 0;}
#currentTitle{color:#f4bf6b;font-weight:600;}

.notice{
  margin:0 0 16px;
  padding:10px 14px;
  border:1px solid rgba(217,168,91,.18);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  font-size:12px;
  line-height:1.45;
  color:rgba(244,234,220,.55);
  text-align:center;
  letter-spacing:-.2px;
}

.tabs{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:0 0 15px;
}

/* 좌측 하단 텍스트 정보 삭제/숨김 */
.song-info {
    display: none !important;
}


/* ===== JK SELAH VIDEO ARCHIVE v4.0 ===== */
.cover-video{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  z-index:3;
  transition:opacity 1.5s ease-in-out;
  pointer-events:none;
  background:#17120d;
}

.cover-video.is-active{
  opacity:1;
}



.video-logo{
  position:absolute;
  right:-5%;
  bottom:-0.5%;
  display:block;
  width:29%;
  height:auto;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  box-shadow:none;
  opacity:1;
  transform:translate3d(0,0,0);
  transition:opacity .25s ease;
  pointer-events:none;
  z-index:20;
  overflow:hidden;
}

.video-logo-image,
.video-logo-hidden-image{
  position:relative !important;
  inset:auto !important;
  display:block;
  width:100%;
  height:auto !important;
  object-fit:contain !important;
  object-position:center;
  opacity:1 !important;
  transition:none !important;
  animation:none !important;
  transform:none !important;
  border-radius:0 !important;
  aspect-ratio:auto !important;
  pointer-events:none;
  user-select:none;
}

.video-logo-image{
  z-index:2;
}

.video-logo-hidden-image{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  width:100% !important;
  height:auto !important;
  z-index:1;
  opacity:0 !important;
  transform:none !important;
}

.video-logo-hidden-image.is-ready{
  opacity:1 !important;
}

.video-logo.show{
  opacity:1;
}



/* ===== SRT 3-LINE COVER OVERLAY ===== */
.srt-overlay{
  position:absolute;
  left:0;
  bottom:0;
  transform:none;
  width:100%;
  padding:7px 16px 8px;
  border-radius:0 0 24px 24px;
  background:rgba(7,5,3,.14);
  text-align:center;
  pointer-events:none;
  z-index:15;
  text-shadow:0 1px 4px rgba(0,0,0,.9);
}
.srt-current{
  min-height:16px;
  color:rgba(244,227,197,.53);
  font-size:9.8px; /* 이전 가사: 현재의 70% */
  line-height:1.3;
  font-weight:400;
  letter-spacing:-.2px;
}
.srt-next{
  min-height:18px;
  margin-top:2px;
  color:var(--skin-accent);
  font-size:14px; /* 현재 가사: 가운데 100% */
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.2px;
}
.srt-third{
  min-height:14px;
  margin-top:2px;
  color:rgba(244,227,197,.53);
  font-size:9.8px; /* 다음 가사: 현재의 70% */
  line-height:1.3;
  font-weight:400;
  letter-spacing:-.2px;
}

.srt-current,
.srt-next,
.srt-third,
.fullscreen-mini-playlist li {
  font-family: "JK Gaegu", "Malgun Gothic", cursive;
}
@media (max-width:430px){
  .srt-overlay{bottom:0;width:100%;padding:6px 12px 7px;}
  .srt-current{font-size:9.1px;}
  .srt-next{font-size:13px;}
  .srt-third{font-size:9.1px;}
}

/* ===== INTERNAL QA FULLSCREEN — F9, internal server only ===== */
.cover:fullscreen,
.cover:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.cover:fullscreen > img,
.cover:fullscreen > video,
.cover:-webkit-full-screen > img,
.cover:-webkit-full-screen > video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  background: #000;
}

.cover:fullscreen .srt-overlay,
.cover:-webkit-full-screen .srt-overlay {
  border-radius: 0;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

/* ===== DISTRIBUTION FULLSCREEN ENTRY ===== */
.theater-entry{
  display:flex;
  justify-content:center;
  margin:-10px 0 14px;
}
#theaterBtn{
  border:1px solid rgba(217,168,91,.28);
  border-radius:999px;
  padding:7px 18px;
  background:rgba(20,18,15,.44);
  color:rgba(244,234,220,.72);
  font-size:11px;
  letter-spacing:.08em;
  cursor:pointer;
}
#theaterBtn:hover{color:#f4eadc;border-color:rgba(217,168,91,.52);}

/* ===== FULLSCREEN SIGNAL PROPORTIONAL SCALE =====
   영상 컨테이너를 기준으로 실제·히든 신호등이 같은 비율로 확대·축소된다. */
.cover:fullscreen .video-logo,
.cover:-webkit-full-screen .video-logo{
  right:-8%;
  bottom:-1%;
  width:50%;
  z-index:60;
}

.cover:fullscreen .srt-overlay,
.cover:-webkit-full-screen .srt-overlay{
  left:0;
  bottom:0;
  width:100%;
  padding:clamp(14px,1.25vw,24px) clamp(22px,2vw,38px) clamp(24px,2vw,38px);
  background:rgba(7,5,3,.16);
  z-index:45;
  text-shadow:0 2px 8px rgba(0,0,0,.96);
}

.cover:fullscreen .srt-current,
.cover:-webkit-full-screen .srt-current{
  min-height:1.35em;
  font-size:clamp(21px,1.8vw,32px);
  line-height:1.22;
  font-weight:400;
  letter-spacing:-.7px;
}

.cover:fullscreen .srt-next,
.cover:-webkit-full-screen .srt-next{
  min-height:1.35em;
  margin-top:clamp(4px,.45vw,8px);
  font-size:clamp(30px,2.55vw,46px);
  line-height:1.22;
  font-weight:500;
  letter-spacing:-.7px;
}

.cover:fullscreen .srt-third,
.cover:-webkit-full-screen .srt-third{
  min-height:1.25em;
  margin-top:clamp(4px,.45vw,8px);
  font-size:clamp(21px,1.8vw,32px);
  line-height:1.22;
  font-weight:400;
  letter-spacing:-.5px;
}

/* ===== FULLSCREEN MINI PLAYLIST — SINGLE SOURCE ===== */
.fullscreen-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 2147482000;
  overflow: visible;
  pointer-events: none;
  isolation: isolate;
}

.fullscreen-playlist-trigger {
  display: none;
}

.fullscreen-mini-playlist {
  position: absolute;
  left: clamp(26px, 3vw, 58px);
  bottom: clamp(76px, 9.5vh, 128px);
  z-index: 2147483000;
  width: max-content;
  max-width: min(420px, 38vw);
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: left;
  text-shadow: 0 2px 7px rgba(0,0,0,1);
}

.fullscreen-mini-playlist.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-mini-transport {
  position: absolute;
  left: clamp(26px, 3vw, 58px);
  bottom: clamp(42px, 6vh, 92px);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  width: min(315px, 28.5vw);
  gap: 9px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 7px rgba(0,0,0,1);
}

.fullscreen-mini-transport.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-mini-transport button {
  flex: 0 0 auto;
  width: 18px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

#fullscreenMiniPlay {
  width: 18px;
  letter-spacing: normal;
}

.fullscreen-mini-transport input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2px;
  margin: 0;
  accent-color: rgba(255,255,255,.92);
  cursor: pointer;
}

.fullscreen-mini-playlist li {
  margin: 0;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.48);
  font-size: clamp(14px,1.05vw,20px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.fullscreen-mini-playlist li:hover {
  color: rgba(255,255,255,.72);
}

.fullscreen-mini-playlist li.is-current {
  color: var(--skin-accent);
  font-weight: 600;
}

.cover:fullscreen .fullscreen-ui-layer,
.cover:-webkit-full-screen .fullscreen-ui-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.cover:fullscreen .fullscreen-playlist-trigger,
.cover:-webkit-full-screen .fullscreen-playlist-trigger {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 25vw;
  height: 100%;
  z-index: 2147482999;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* ===== USER MINI 1 / F9 QA 5 — FINAL ===== */
.theater-entry,
#theaterBtn { display: none !important; }

/* 일반 사용자: 좌측 하단 다음곡 1줄 + 골드/화이트 미니 재생바 */
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-ui-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-playlist {
  left: 8px;
  top: auto;
  bottom: 16px;
  width: 210px;
  max-width: 210px;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport {
  left: 8px;
  top: auto;
  bottom: 0;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  justify-content: flex-start;
  gap: 6px;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-playlist li {
  display: none;
  width: 210px;
  padding: 0;
  font-family: "JK Gaegu", cursive;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -1.5px;
  word-spacing: -1px;
  color: rgba(255,255,255,.94);
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-playlist li.is-user-next {
  display: block;
  font-weight: 400;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport button {
  width: 14px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input {
  --mini-progress: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  flex: 0 0 68px;
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  inline-size: 68px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(
    to right,
    #f4bf42 0,
    #f4bf42 var(--mini-progress),
    rgba(255,255,255,.82) var(--mini-progress),
    rgba(255,255,255,.82) 100%
  );
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  margin-top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f4bf42;
  border-right: 0;
  background: transparent;
  cursor: pointer;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: #f4bf42;
}
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-moz-range-thumb {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f4bf42;
  border-right: 0;
  border-radius: 0;
  background: transparent;
}

/* F9 개발자 전체화면: 기존 좌측 하단 5줄 + 전체 제목 */
.cover.qa-fullscreen-mode:fullscreen .fullscreen-mini-playlist,
.cover.qa-fullscreen-mode:-webkit-full-screen .fullscreen-mini-playlist {
  left: clamp(26px, 3vw, 58px);
  top: auto;
  bottom: clamp(76px, 9.5vh, 128px);
  max-width: min(420px, 38vw);
}
.cover.qa-fullscreen-mode:fullscreen .fullscreen-mini-transport,
.cover.qa-fullscreen-mode:-webkit-full-screen .fullscreen-mini-transport {
  left: clamp(26px, 3vw, 58px);
  top: auto;
  bottom: clamp(42px, 6vh, 92px);
  width: min(315px, 28.5vw);
}
.cover.qa-fullscreen-mode:fullscreen .fullscreen-mini-playlist li,
.cover.qa-fullscreen-mode:-webkit-full-screen .fullscreen-mini-playlist li {
  padding: 5px 0;
  font-size: clamp(14px,1.05vw,20px);
  line-height: 1.42;
}


/* ===== COVER USER FULLSCREEN BUTTON — 20260728 ===== */
.cover-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.88);
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: .82;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}
.cover-fullscreen-btn:hover,
.cover-fullscreen-btn:focus-visible {
  opacity: 1;
  background: rgba(0,0,0,.56);
  border-color: rgba(255,255,255,.34);
  outline: none;
}
.cover:fullscreen .cover-fullscreen-btn,
.cover:-webkit-full-screen .cover-fullscreen-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  font-size: 30px;
  background: rgba(0,0,0,.36);
}
@media (max-width: 430px) {
  .cover-fullscreen-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .cover:fullscreen .cover-fullscreen-btn,
  .cover:-webkit-full-screen .cover-fullscreen-btn {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
}

/* 세로 전체화면 진입 안내: 글씨만 1초 표시 */
.portrait-orientation-hint {
  position: fixed;
  left: 50%;
  top: max(68px, calc(env(safe-area-inset-top) + 58px));
  z-index: 2147483200;
  display: none;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 48px);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -.3px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

@media (orientation: portrait) {
  .cover:fullscreen .portrait-orientation-hint,
  .cover:-webkit-full-screen .portrait-orientation-hint {
    display: block;
  }
}

.portrait-orientation-hint.is-visible {
  opacity: 1;
}

/* 가로 전체화면: 영상 가로폭의 24%로 비례 조정 */
@media (orientation: landscape) {
  .cover:fullscreen .video-logo,
  .cover:-webkit-full-screen .video-logo {
    right: 0;
    bottom: 0;
    width: 24%;
  }
}

/* 최종 사용자 미니 UI: 일반 화면 1줄, 세로 전체화면 숨김, 가로 전체화면 3줄 */

@media (orientation: portrait) {
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist,
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-transport,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-transport {
    display: none !important;
  }
}

@media (orientation: landscape) {
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist {
    display: flex;
    flex-direction: column;
    width: 210px;
    max-width: 210px;
    min-width: 210px;
    padding: 0;
    gap: 2px;
    background: transparent;
  }

  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-transport,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-transport {
    display: flex;
  }

  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li {
    width: 100%;
    padding: 2px 0;
    color: rgba(255,255,255,.42);
    font-family: "JK Gaegu", "Malgun Gothic", cursive;
    font-size: clamp(15px,1.1vw,21px);
    line-height: 1.25;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li.is-user-current,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li.is-user-current {
    color: var(--skin-accent);
    font-weight: 500;
  }
}

/* 개별 곡 링크 모드: 일반 접속에는 영향을 주지 않는다. */
body.single-track-mode .playlist,
body.single-track-mode .song-nav,
body.single-track-mode #prevBtn,
body.single-track-mode #nextBtn,
body.single-track-mode #randomBtn,
body.single-track-mode #fullscreenMiniNext {
  display: none !important;
}

.single-track-start-hint {
  position: absolute;
  inset: 0;
  z-index: 2147483300;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(0,0,0,.24);
  font-family: "JK Gaegu", "Malgun Gothic", cursive;
  font-size: clamp(18px, 4vw, 28px);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
  cursor: pointer;
}


/* ===== STATIC IN THE SOUL SKIN — DATA/DESIGN ONLY ===== */
:root {
  --skin-accent: #b9ff46;
  --black: #050706;
  --coal: #0b0f0c;
  --panel: #101610;
  --panel-2: #151d14;
  --acid: #b9ff46;
  --lime: #8fcf2a;
  --moss: #587b25;
  --paper: #f2f5ed;
  --muted: rgba(226,234,218,.55);
  --line: rgba(185,255,70,.22);
  --line-soft: rgba(185,255,70,.09);
}

body {
  background: #020302;
  color: var(--paper);
}

#bg {
  inset: -38px;
  filter: blur(58px) brightness(.34) saturate(.92) contrast(1.08);
  animation-duration: 18s;
}

#bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,rgba(185,255,70,.018) 0 1px,transparent 1px 6px);
  mix-blend-mode: screen;
}

#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(1,3,1,.28),rgba(3,6,3,.82) 70%,rgba(1,2,1,.98));
}

.player {
  padding: 17px 14px 28px;
  background: linear-gradient(180deg,rgba(10,14,10,.68),rgba(3,5,3,.90));
  box-shadow: 0 0 100px rgba(0,0,0,.8);
  border-left: 1px solid rgba(185,255,70,.04);
  border-right: 1px solid rgba(185,255,70,.04);
}

.cover {
  border-radius: 13px;
  border: 1px solid rgba(185,255,70,.34);
  background: #080b08;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 18px 50px rgba(0,0,0,.65),0 0 32px rgba(143,207,42,.10);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(110deg,transparent 0 42%,rgba(185,255,70,.05) 49%,transparent 56%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 4px);
  mix-blend-mode: screen;
}

.cover > img {
  border-radius: 12px;
  animation-duration: 9s;
  filter: saturate(.83) contrast(1.08);
}

.song-info {
  display: none !important;
}

.song-nav {
  position: relative;
  margin: 15px 2px 18px;
  padding: 13px 15px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg,rgba(16,23,15,.94),rgba(7,11,7,.90));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 12px 28px rgba(0,0,0,.28);
  text-align: left;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.song-nav::before {
  content: "⚡";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  color: var(--acid);
  text-shadow: 0 0 14px rgba(185,255,70,.38);
}

.song-nav div {
  margin: 3px 0;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#currentTitle {
  color: var(--acid);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -.15px;
}

.progress {
  margin: 24px 2px 25px;
}

.time-row {
  gap: 11px;
  padding: 0 2px;
}

.progress input {
  accent-color: var(--acid);
}

#currentTime,
#remainTime {
  min-width: 45px;
  color: rgba(218,230,208,.47);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.controls {
  gap: 14px;
  margin-bottom: 28px;
}

.controls button {
  width: 51px;
  height: 51px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg,rgba(23,31,21,.95),rgba(7,10,7,.96));
  color: #eef4e8;
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.34);
}

#play {
  width: 70px;
  height: 70px;
  font-size: 27px;
  color: #091004;
  background: linear-gradient(145deg,var(--acid),#77b91e);
  border-color: rgba(207,255,126,.7);
  box-shadow: 0 0 24px rgba(185,255,70,.17),inset 0 1px 0 rgba(255,255,255,.28);
}

.playlist {
  padding: 17px 4px 10px;
}

.playlist h2 {
  margin: 0 0 14px;
  padding: 0 7px;
  color: var(--acid);
  opacity: .88;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.1px;
}

.notice {
  margin: 0 2px 14px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(185,255,70,.018);
  color: rgba(220,230,211,.42);
  font-size: 10.5px;
}

.tabs {
  justify-content: flex-start;
  gap: 7px;
  margin: 0 0 12px;
  padding-left: 2px;
}

.tab-btn {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c110c;
  color: rgba(222,232,214,.58);
}

.tab-btn.active {
  border-color: transparent;
  background: var(--acid);
  color: #091004;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(185,255,70,.14);
}

#playlist {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg,rgba(13,18,12,.94),rgba(5,8,5,.92));
}

.playlist li {
  grid-template-columns: 42px 29px minmax(0,1fr);
  gap: 11px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(185,255,70,.055);
}

.playlist li.active {
  background: linear-gradient(90deg,rgba(185,255,70,.16),rgba(73,101,33,.04));
  box-shadow: inset 4px 0 0 var(--acid);
}

.playlist-thumb {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(185,255,70,.18);
  border-radius: 5px;
  filter: saturate(.82) contrast(1.07);
}

.playlist-index {
  color: rgba(185,255,70,.37);
  font-size: 10.5px;
  font-weight: 700;
}

.playlist-name {
  min-width: 0;
  color: rgba(237,243,232,.76);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist li.active .playlist-index {
  color: var(--acid);
  font-weight: 900;
}

.playlist li.active .playlist-name {
  color: #fff;
  font-weight: 800;
}

.cover-video {
  background: #050805;
  filter: saturate(.82) contrast(1.08);
}

.srt-overlay {
  padding: 21px 16px 9px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg,transparent,rgba(2,5,2,.80));
}

.srt-current {
  color: #f8fbf5;
  font-weight: 800;
}

.srt-next {
  color: rgba(205,220,194,.57);
}

@media (max-width: 430px) {
  .player { padding-top: 13px; }
  .srt-overlay { padding: 18px 12px 7px; }
  .playlist-name { font-size: 11px; }
}

/* ===== WORSHIP MASTER SYNC — TARGET SKIN + THREE-LINE SRT ===== */
.playlist-index,
.playlist-name {
  font-family: "JKESU Static Master", "Malgun Gothic", sans-serif;
}

.playlist li.active .playlist-index,
.playlist li.active .playlist-name {
  font-weight: 500;
}

.srt-current,
.srt-third {
  min-height: 14px;
  color: rgba(205,220,194,.70);
  font-size: 9.8px;
  line-height: 1.3;
  font-weight: 400;
}

.srt-next {
  min-height: 18px;
  margin-top: 2px;
  color: var(--skin-accent);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.srt-third { margin-top: 2px; }

.srt-current,
.srt-next,
.srt-third {
  font-family: "JK Gaegu", "Malgun Gothic", cursive;
  letter-spacing: -.2px;
}

@media (max-width: 430px) {
  .srt-current,
  .srt-third { font-size: 9.1px; }
  .srt-next { font-size: 13px; }
}

.cover:fullscreen .srt-current,
.cover:-webkit-full-screen .srt-current,
.cover:fullscreen .srt-third,
.cover:-webkit-full-screen .srt-third {
  min-height: 1.25em;
  font-size: clamp(21px,1.8vw,32px);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -.5px;
}

.cover:fullscreen .srt-next,
.cover:-webkit-full-screen .srt-next {
  min-height: 1.35em;
  font-size: clamp(30px,2.55vw,46px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -.7px;
}


/* ===== JK SELAH SEASON 3 MIGRATION ===== */
.cover-video{transition:opacity .3s ease-in-out !important;}
.track-typo-overlay{
  position:absolute !important;
  left:0 !important; top:0 !important;
  width:50% !important; height:50% !important;
  object-fit:contain !important;
  object-position:left top !important;
  background:transparent !important;
  border-radius:0 !important;
  z-index:10 !important;
  opacity:0;
  pointer-events:none !important;
  animation:none !important;
  transform:none !important;
  transition:opacity .15s ease !important;
}
.track-typo-overlay.is-ready{opacity:1;}
.cover:fullscreen > img.track-typo-overlay,
.cover:-webkit-full-screen > img.track-typo-overlay{
  left:0 !important; top:0 !important;
  width:50% !important; height:50% !important;
  object-fit:contain !important;
  object-position:left top !important;
  border-radius:0 !important;
  animation:none !important;
  transform:none !important;
}
/* Season 3 signal UI retired */
.video-logo,.video-logo-image,.video-logo-hidden-image{display:none !important;}

/* JK SELAH VISUAL COLOR POLICY — 0 VLOG WINE / 1 LIVE SKY */
.playlist li[data-visual="0"] .playlist-index { color: #b84a62 !important; }
.playlist li[data-visual="1"] .playlist-index { color: #72c8ff !important; }

.fullscreen-mini-playlist li[data-visual="0"] { color: rgba(184,74,98,.78) !important; }
.fullscreen-mini-playlist li[data-visual="1"] { color: rgba(114,200,255,.78) !important; }

.fullscreen-mini-playlist li.is-current[data-visual="0"],
.fullscreen-mini-playlist li.is-user-current[data-visual="0"] { color: #b84a62 !important; }
.fullscreen-mini-playlist li.is-current[data-visual="1"],
.fullscreen-mini-playlist li.is-user-current[data-visual="1"] { color: #72c8ff !important; }

/* Grace 기준의 빠른 이중 영상 교차 전환 */
.cover-video { transition: opacity .3s ease-in-out !important; }
.track-typo-overlay { background: transparent !important; }

/* ===== JK SELAH COMMON EMBLEM — 20260902 ===== */
.jk-selah-emblem {
  position: absolute;
  top: 10px;
  right: 64px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: url("/bg/JKemv.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 2px 14px rgba(0,0,0,.38);
  pointer-events: none;
}
.cover:fullscreen .jk-selah-emblem,
.cover:-webkit-full-screen .jk-selah-emblem {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: calc(76px + env(safe-area-inset-right, 0px));
  width: 64px;
  height: 64px;
}
@media (max-width: 430px) {
  .jk-selah-emblem {
    top: 8px;
    right: 54px;
    width: 44px;
    height: 44px;
  }
  .cover:fullscreen .jk-selah-emblem,
  .cover:-webkit-full-screen .jk-selah-emblem {
    top: max(8px, env(safe-area-inset-top));
    right: calc(64px + env(safe-area-inset-right, 0px));
    width: 54px;
    height: 54px;
  }
}

/* ===== FULLSCREEN EXIT CONTROL — 20260902 ===== */
.cover:fullscreen:not(.qa-fullscreen-mode) .cover-fullscreen-btn,
.cover:-webkit-full-screen:not(.qa-fullscreen-mode) .cover-fullscreen-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
}
.cover:fullscreen:not(.qa-fullscreen-mode) .cover-fullscreen-btn.is-visible,
.cover:-webkit-full-screen:not(.qa-fullscreen-mode) .cover-fullscreen-btn.is-visible {
  opacity: .92;
  pointer-events: auto;
  transform: scale(1);
}
