/* [원본 코드 전체] */
:root {
  /* 파생 플레이어는 이 값만 해당 스킨 대표색으로 변경한다. */
  --skin-accent: #19c6a3;
}
@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: #e9fff8; 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: #b9eadc; margin-bottom: 34px; }
#title { font-size: 12px; opacity: 0.4; margin: 0; font-weight: 400; }
#artist { margin: 8px 0 0; color: #9dd8c7; font-size: 15px; }

.progress { margin: 30px 4px 30px; }
.progress input { width: 100%; height: 4px; accent-color: #19c6a3; 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: #e9fff8; font-size: 21px; cursor: pointer; }
#play { width: 74px; height: 74px; font-size: 28px; color: #19c6a3; }

.playlist { padding: 18px; }
.playlist h2 { margin: 0 0 20px; font-size: 12px; letter-spacing: 3px; color: #008c72; 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: #19c6a3; 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: #008c72; padding: 6px 14px; cursor: pointer; border-radius: 15px; font-size: 10px; transition: 0.3s; }
.tab-btn.active { background: #008c72; 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:#19c6a3;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 .3s ease-in-out;
  pointer-events:none;
  background:#071e1a;
}

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



/* ===== SRT 2-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:18px;
  color:var(--skin-accent);
  font-size:14px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.2px;
}
.srt-next{
  min-height:14px;
  margin-top:2px;
  color:rgba(244,227,197,.53);
  font-size:9.8px;
  line-height:1.3;
  font-weight:400;
  letter-spacing:-.2px;
}

.srt-current,
.srt-next,
.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:13px;}
  .srt-next{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));
}

.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(30px,2.55vw,46px);
  line-height:1.22;
  font-weight:500;
  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(21px,1.8vw,32px);
  line-height:1.22;
  font-weight:400;
  letter-spacing:-.7px;
}

/* ===== 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-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 ===== */
/* 일반 사용자: 좌측 하단 다음곡 1줄 + 골드/화이트 미니 재생바 */
.cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-ui-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}























/* 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;
}

/* 최종 사용자 미니 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;
}

/* ===== SEASON 3 — TRACK TYPO OVERLAY / AREA 1 ONLY ===== */
.track-typo-overlay{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  width:50% !important;
  height:50% !important;
  object-fit:contain !important;
  object-position:left top !important;
  border-radius:0 !important;
  animation:none !important;
  transition:opacity .35s ease !important;
  transform:none !important;
  opacity:0;
  pointer-events:none;
  user-select:none;
  z-index:12;
}
.track-typo-overlay.is-ready{ opacity:1; }

/* SEASON 3 FIX — keep transparent typography transparent in Fullscreen */
.cover:fullscreen > img.track-typo-overlay,
.cover:-webkit-full-screen > img.track-typo-overlay {
  left:0 !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  width:50% !important;
  height:50% !important;
  object-fit:contain !important;
  object-position:left top !important;
  background:transparent !important;
  border-radius:0 !important;
}

/* SEASON 3 — 미니멀 리스트 비주얼 코드 색상 */


/* 일반 SET LIST는 곡명은 유지하고 트랙 번호만 비주얼 코드 색상 */

/* 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);
}


/* ===== JK SELAH UI PATCH 2026-09-14 =====
   Desktop player proportions preserved.
   Browser bottom navigation restored.
   Phone-only lyric / mini progress tuning.
   Desktop mini UI kept visible in normal fullscreen.
*/
.jk-bottom-nav{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:max(8px, env(safe-area-inset-bottom, 0px)) !important;
  top:auto !important;
  transform:translateX(-50%) !important;
  z-index:2147481500 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  width:min(410px, calc(100vw - 20px)) !important;
  margin:0 !important;
  padding:5px !important;
  gap:4px !important;
  border:1px solid rgba(218,166,91,.22) !important;
  border-radius:16px !important;
  background:rgba(7,8,12,.84) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.34) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.jk-bottom-nav a{
  min-width:0 !important;
  padding:7px 2px !important;
  border-radius:10px !important;
  color:rgba(244,229,207,.76) !important;
  font-size:10px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  text-align:center !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.jk-bottom-nav a:hover,
.jk-bottom-nav a:focus-visible{
  background:rgba(214,166,90,.16) !important;
  color:#e9fff8 !important;
}
.jk-bottom-nav a.active{
  background:#008c72 !important;
  color:#041411 !important;
}

/* Do not cover the last controls/list item in ordinary browser view. */
body{ padding-bottom:max(58px, calc(env(safe-area-inset-bottom, 0px) + 58px)); }

/* In real fullscreen the player itself owns the screen; browser nav stays out. */
body:has(.cover:fullscreen) .jk-bottom-nav,
body:has(.cover:-webkit-full-screen) .jk-bottom-nav{
  display:none !important;
}

/* PC Chrome/Edge: user mini playlist/transport must not vanish while watching fullscreen. */
@media (hover:hover) and (pointer:fine) {
  body:not(.inspection-mode) .cover:fullscreen .fullscreen-mini-playlist,
  body:not(.inspection-mode) .cover:-webkit-full-screen .fullscreen-mini-playlist,
  body:not(.inspection-mode) .cover:fullscreen .fullscreen-mini-transport,
  body:not(.inspection-mode) .cover:-webkit-full-screen .fullscreen-mini-transport {
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }
}

/* PHONE ONLY: lyric block narrower/smaller; desktop values above remain untouched. */
@media (pointer:coarse) and (max-width:600px),
       (pointer:coarse) and (max-height:600px) {
  .cover:fullscreen .srt-overlay,
  .cover:-webkit-full-screen .srt-overlay{
    left:50% !important;
    right:auto !important;
    width:min(64vw, 560px) !important;
    max-width:64vw !important;
    transform:translateX(-50%) !important;
    padding:5px 8px 7px !important;
    background:transparent !important;
    border-radius:0 !important;
  }
  .cover:fullscreen .srt-current,
  .cover:-webkit-full-screen .srt-current,
  .cover:fullscreen .srt-next,
  .cover:-webkit-full-screen .srt-next,
  .cover:fullscreen .srt-third,
  .cover:-webkit-full-screen .srt-third{
    max-width:100% !important;
    line-height:1.28 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:keep-all !important;
  }
}

/* ===== JK SELAH BOTTOM NAV FIX 2026-09-14 ===== */
.jk-bottom-nav{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:max(8px, env(safe-area-inset-bottom, 0px)) !important;
  top:auto !important;
  transform:translateX(-50%) !important;
  z-index:2147483000 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  width:min(410px, calc(100vw - 20px)) !important;
  margin:0 !important;
  padding:5px !important;
  gap:4px !important;
  border:1px solid rgba(218,166,91,.22) !important;
  border-radius:16px !important;
  background:rgba(7,8,12,.88) !important;
  box-shadow:0 10px 30px rgba(0,0,0,.34) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
.jk-bottom-nav a{
  min-width:0 !important;
  padding:7px 2px !important;
  border-radius:10px !important;
  color:rgba(244,229,207,.78) !important;
  font-size:10px !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  text-align:center !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.jk-bottom-nav a:hover,.jk-bottom-nav a:focus-visible{
  background:rgba(214,166,90,.16) !important;
  color:#e9fff8 !important;
}
body{padding-bottom:max(58px, calc(env(safe-area-inset-bottom, 0px) + 58px));}
body:has(.cover:fullscreen) .jk-bottom-nav,
body:has(.cover:-webkit-full-screen) .jk-bottom-nav{display:none !important;}


/* ===== JK SELAH PC FULLSCREEN BOTTOM NAV FIX 2026-09-14c =====
   The browser fullscreen element is .cover. Elements outside .cover cannot
   be rendered by Chrome/Edge while .cover is fullscreen, so a dedicated
   navigation copy lives INSIDE .cover and is enabled only for desktop.
   Phone/coarse-pointer behavior is intentionally unchanged.
*/
.jk-fullscreen-bottom-nav{
  display:none;
}
@media (hover:hover) and (pointer:fine){
  .cover:fullscreen .jk-fullscreen-bottom-nav,
  .cover:-webkit-full-screen .jk-fullscreen-bottom-nav{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    position:absolute !important;
    left:50% !important;
    bottom:max(10px, env(safe-area-inset-bottom, 0px)) !important;
    transform:translateX(-50%) !important;
    width:min(560px, calc(100% - 40px)) !important;
    z-index:2147483646 !important;
    padding:5px 7px !important;
    gap:3px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:13px !important;
    background:rgba(10,10,12,.72) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }
  .cover:fullscreen .jk-fullscreen-bottom-nav a,
  .cover:-webkit-full-screen .jk-fullscreen-bottom-nav a{
    display:block !important;
    padding:6px 2px !important;
    border-radius:9px !important;
    color:rgba(255,255,255,.82) !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1.15 !important;
    text-align:center !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }
  .cover:fullscreen .jk-fullscreen-bottom-nav a:hover,
  .cover:fullscreen .jk-fullscreen-bottom-nav a:focus-visible,
  .cover:-webkit-full-screen .jk-fullscreen-bottom-nav a:hover,
  .cover:-webkit-full-screen .jk-fullscreen-bottom-nav a:focus-visible{
    background:rgba(214,166,90,.18) !important;
    color:#e9fff8 !important;
  }
}
@media (pointer:coarse){
  .jk-fullscreen-bottom-nav{display:none !important;}
}

/* ===== JK SELAH FIX4 2026-09-14d =====
   Normal browser: keep bottom navigation at the existing bottom position.
   Real fullscreen: navigation is intentionally hidden.
   Narrow normal player: reduce cover lyric size/width only; wide desktop proportions stay unchanged.
*/
.jk-fullscreen-bottom-nav{display:none !important;}
.cover:fullscreen .jk-fullscreen-bottom-nav,
.cover:-webkit-full-screen .jk-fullscreen-bottom-nav{display:none !important;}

body:has(.cover:fullscreen) > .jk-bottom-nav,
body:has(.cover:-webkit-full-screen) > .jk-bottom-nav{display:none !important;}

/* Narrow initial/normal player only — do not touch fullscreen or wide desktop. */
@media (max-width:600px){








}



/* ===== JK SELAH MINI BOTTOM 3-LINE + INLINE TRANSPORT + MUTE 2026-09-16 ===== */
/* No panel/background. Row 3 and transport share the lowest line. */
.fullscreen-mini-playlist{ counter-reset:jkMiniRow; background:transparent !important; }
.fullscreen-mini-playlist li{ counter-increment:jkMiniRow; }
.fullscreen-mini-playlist li::before{ content:counter(jkMiniRow) ". "; }
.fullscreen-mini-transport{ background:transparent !important; border:0 !important; box-shadow:none !important; }
#fullscreenMiniMute{ width:20px !important; font-size:12px !important; opacity:.72; }
#fullscreenMiniMute:hover{ opacity:1; }
/* ordinary browser player */










/* landscape fullscreen: same geometry, slightly larger for TV/desktop */
@media (orientation:landscape){
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist{
    left:8px !important; bottom:3px !important; width:220px !important; min-width:220px !important; max-width:220px !important;
    display:flex !important; flex-direction:column !important; gap:0 !important;
  }
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-playlist li{
    display:block !important; width:220px !important; max-width:220px !important;
    padding:0 !important; margin:0 !important; font-size:clamp(15px,1vw,19px) !important; line-height:20px !important;
    white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
  }
  .cover:fullscreen:not(.qa-fullscreen-mode) .fullscreen-mini-transport,
  .cover:-webkit-full-screen:not(.qa-fullscreen-mode) .fullscreen-mini-transport{
    left:232px !important; bottom:2px !important; width:390px !important; min-width:390px !important; max-width:390px !important;
    height:20px !important; gap:7px !important; align-items:center !important;
    opacity:1 !important; visibility:visible !important; background:transparent !important;
  }








}
/* ===== JK SELAH BAR POPUP FINAL TUNE 2026-09-17 =====
   - normal/bar popup mini list: 8px, 3 rows
   - row 3 shares the bottom line with the REAL seek control
   - played segment uses --mini-progress; remainder stays faint
   - fullscreen sizing rules above are intentionally untouched
*/



















.cover:not(:fullscreen):not(:-webkit-full-screen) #fullscreenMiniMute{
  width:14px !important;
  min-width:14px !important;
  font-size:9px !important;
  opacity:.78 !important;
}

/* Both modes: one content-sized next title + full remaining width native seek. */
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniTransport{
  position:absolute; left:14px !important; right:14px !important;
  top:auto !important; bottom:max(1px, env(safe-area-inset-bottom, 0px)) !important;
  display:flex !important; align-items:center !important; gap:5px !important;
  width:auto !important; min-width:0 !important; max-width:none !important;
  height:18px !important; padding:0 !important; margin:0 !important;
  background:transparent !important; border:0 !important; box-shadow:none !important;
  opacity:1 !important; visibility:visible !important; pointer-events:auto !important;
  z-index:2147483000;
}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist{
  position:static !important; display:block !important; flex:0 1 auto;
  width:max-content !important; min-width:0 !important; max-width:calc(100% - 78px) !important;
  margin:0 !important; padding:0 !important; background:transparent !important;
  opacity:1 !important; visibility:visible !important; pointer-events:auto !important;
  transform:none !important; text-shadow:none;
}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist > *,
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist .fullscreen-mini-title{
  display:block !important; width:auto !important; min-width:0 !important; max-width:none !important;
  margin:0 !important; padding:0 !important; font-size:8px !important; line-height:12px !important;
  font-weight:400 !important; letter-spacing:normal !important; word-spacing:normal !important;
  white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist > *::before{content:none !important;}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlay{display:inline-flex !important; align-items:center !important; justify-content:center !important;}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniTransport button{
  flex:0 0 auto !important; width:14px !important; min-width:14px !important;
  height:18px !important; padding:0 !important; font-size:10px !important; line-height:18px !important;
  color:rgba(255,255,255,.9); background:transparent !important; border:0 !important;
}
.cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniProgress{flex:1 1 0 !important;}
/* Fullscreen uses the same row geometry, with its own legible control text. */
.cover.jk-minimal-fullscreen #fullscreenMiniTransport{
  left:max(14px, env(safe-area-inset-left, 0px)) !important;
  right:max(14px, env(safe-area-inset-right, 0px)) !important;
  height:22px !important;
}
.cover.jk-minimal-fullscreen #fullscreenMiniPlaylist{
  max-width:calc(100% - 86px) !important;
}
.cover.jk-minimal-fullscreen #fullscreenMiniPlaylist > *,
.cover.jk-minimal-fullscreen #fullscreenMiniPlaylist .fullscreen-mini-title{
  font-size:14px !important; line-height:18px !important;
}
.cover.jk-minimal-fullscreen #fullscreenMiniTransport button{
  width:18px !important; min-width:18px !important; height:22px !important;
  font-size:12px !important; line-height:22px !important;
}
.cover.jk-open-bar .srt-overlay{
  left:0 !important; right:0 !important; bottom:calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  width:100% !important; max-width:100% !important; box-sizing:border-box;
  padding:0 6px !important; transform:none !important; background:transparent !important;
  border:0 !important; border-radius:0 !important; pointer-events:none;
}
.cover.jk-open-bar #srtCurrent{min-height:0 !important; line-height:1.3 !important;}
.cover.jk-open-bar #srtNext, .cover.jk-open-bar #srtThird{display:none !important;}

/* The input is the full hit area. Only its played 1px line is painted. */
#fullscreenMiniProgress{
  --mini-progress:0%;
  -webkit-appearance:none !important; appearance:none !important;
  display:block !important; flex:1 1 auto; width:0 !important; inline-size:auto !important;
  min-width:24px !important; max-width:none !important; height:18px !important;
  margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important;
  outline:none !important; box-shadow:none !important; opacity:1 !important;
  background:linear-gradient(to right, rgba(255,255,255,.50) 0%,
    rgba(255,255,255,.50) var(--mini-progress), transparent var(--mini-progress), transparent 100%)
    left center / 100% 4px no-repeat !important;
  cursor:pointer;
}
#fullscreenMiniProgress::-webkit-slider-runnable-track{
  height:1px !important; background:transparent !important; border:0 !important; box-shadow:none !important;
}
#fullscreenMiniProgress::-webkit-slider-thumb{
  -webkit-appearance:none !important; appearance:none !important; width:0 !important; height:0 !important;
  margin:0 !important; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important;
}
#fullscreenMiniProgress::-moz-range-track,
#fullscreenMiniProgress::-moz-range-progress{
  height:1px !important; border:0 !important; background:transparent !important; box-shadow:none !important;
}
#fullscreenMiniProgress::-moz-range-thumb{
  width:0 !important; height:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important;
}
/* Fullscreen sizing is preserved; move only the existing bottom controls/lyrics. */
.cover:fullscreen .fullscreen-mini-transport,
.cover:-webkit-full-screen .fullscreen-mini-transport{
  bottom:max(2px, env(safe-area-inset-bottom, 0px)) !important;
}
.cover:fullscreen .srt-overlay,
.cover:-webkit-full-screen .srt-overlay{
  bottom:calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  padding-top:0 !important; padding-bottom:0 !important; background:transparent !important;
}


/* ===== JK SELAH MOBILE PC-STYLE MINI ROW — 2026-09-17 =====
   Desktop unchanged. Phone: <=7-char title / play-pause / real seek / music / mute. */
@media (pointer: coarse) and (max-width: 600px), (pointer: coarse) and (max-height: 600px) {
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniTransport {
    left:max(6px, env(safe-area-inset-left, 0px)) !important; right:max(6px, env(safe-area-inset-right, 0px)) !important;
    bottom:max(1px, env(safe-area-inset-bottom, 0px)) !important; width:auto !important; min-width:0 !important; max-width:none !important;
    height:18px !important; gap:4px !important; display:flex !important; align-items:center !important;
    background:transparent !important; border:0 !important; box-shadow:none !important; opacity:1 !important; visibility:visible !important; pointer-events:auto !important;
  }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist {
    position:static !important; display:block !important; flex:0 1 auto !important; width:max-content !important; min-width:0 !important; max-width:7em !important;
    margin:0 !important; padding:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; opacity:1 !important; visibility:visible !important;
  }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist > *,
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlaylist .fullscreen-mini-title {
    display:block !important; width:auto !important; min-width:0 !important; max-width:7em !important; margin:0 !important; padding:0 !important;
    font-size:8px !important; line-height:12px !important; font-weight:400 !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:clip !important;
  }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniPlay { display:inline-flex !important; flex:0 0 14px !important; width:14px !important; min-width:14px !important; height:18px !important; }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniMute { transform:translateX(-2px) !important; }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniProgress {
    -webkit-appearance:none !important; appearance:none !important; display:block !important; flex:1 1 0 !important; width:0 !important; min-width:20px !important; max-width:none !important; height:18px !important;
    background-color:transparent !important; border:0 !important; box-shadow:none !important;
  }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniProgress::-webkit-slider-runnable-track { height:1px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniProgress::-moz-range-track,
  .cover:is(.jk-open-bar, .jk-minimal-fullscreen) #fullscreenMiniProgress::-moz-range-progress { height:1px !important; background:transparent !important; border:0 !important; box-shadow:none !important; }
  .cover.jk-minimal-fullscreen #fullscreenMiniPlaylist > *, .cover.jk-minimal-fullscreen #fullscreenMiniPlaylist .fullscreen-mini-title { font-size:8px !important; line-height:12px !important; }
  .cover.jk-minimal-fullscreen #fullscreenMiniTransport button { width:14px !important; min-width:14px !important; height:18px !important; font-size:10px !important; line-height:18px !important; }
}


/* Season 3 optional song typography overlay — copied from Summer/Soul master */
.cover #season3TypoOverlay{
  position:absolute !important; inset:0 !important;
  width:100% !important; height:100% !important;
  object-fit:contain !important; object-position:center !important;
  background:transparent !important; border-radius:0 !important;
  animation:none !important; transform:none !important;
  filter:none !important; transition:none !important;
  pointer-events:none !important; z-index:8 !important;
  visibility:hidden; opacity:0;
}

/* Season 3 typography overlay visibility — Summer/Soul master */
.cover #season3TypoOverlay.is-ready{ opacity:1; }
