@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;
}
*{margin:0;padding:0;box-sizing:border-box}

html,body{
  min-height:100%;
  background:#050609;
  color:#f3e5d0;
  font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;
}

#bg{
  position:fixed;
  inset:-60px;
  background:center center / cover no-repeat;
  filter:blur(44px) brightness(.32) saturate(.86);
  transform:scale(1.12);
  opacity:.92;
  z-index:0;
  transition:background-image .8s ease;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at center, rgba(33,27,18,.10), rgba(0,0,0,.78) 76%),
    linear-gradient(180deg, rgba(7,8,12,.25), rgba(0,0,0,.74));
  z-index:0;
  pointer-events:none;
}

.player{
  position:relative;
  z-index:1;
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin:0 auto;
  padding:20px 14px 32px;
  background:linear-gradient(180deg, rgba(8,9,14,.50), rgba(3,4,8,.92));
  border-left:1px solid rgba(218,166,91,.11);
  border-right:1px solid rgba(218,166,91,.11);
}

.cover{
  overflow:hidden;
  border-radius:26px;
  border:1px solid rgba(218,166,91,.18);
  box-shadow:0 18px 58px rgba(0,0,0,.42);
  background:#17120d;
}

.cover img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.song-info{padding:20px 16px 12px}

.archive{
  text-align:center;
  font-size:10px;
  letter-spacing:4px;
  color:#d6a45d;
  opacity:.38;
  margin-bottom:14px;
}

#title{
  font-size:16px;
  line-height:1.45;
  font-weight:500;
  color:#f4e5cf;
  word-break:keep-all;
}

#artist{
  margin-top:7px;
  font-size:14px;
  color:#e0aa5f;
}

.lyrics{
  margin:14px 0 18px;
  padding:26px 18px;
  min-height:212px;
  border-radius:22px;
  background:rgba(8,10,15,.82);
  border:1px solid rgba(218,166,91,.24);
  box-shadow:inset 0 0 36px rgba(0,0,0,.42),0 16px 42px rgba(0,0,0,.32);
  text-align:center;
}

.prev,.next{
  min-height:30px;
  color:rgba(244,229,207,.28);
  font-size:17px;
  line-height:1.5;
  word-break:keep-all;
}

.current{
  margin:18px 0;
  padding:18px 0;
  min-height:72px;
  border-top:1px solid rgba(244,229,207,.16);
  border-bottom:1px solid rgba(244,229,207,.16);
  color:#e9b565;
  font-size:24px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:-.04em;
  word-break:keep-all;
}

.progress{margin:18px 6px 22px}

.progress input{
  width:100%;
  accent-color:#e0aa5f;
}

.controls{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin:8px 0 30px;
}

.controls button{
  width:56px;
  height:56px;
  border-radius:50%;
  border:1px solid rgba(218,166,91,.70);
  background:rgba(7,9,14,.82);
  color:#f3e5d0;
  font-size:20px;
  cursor:pointer;
}

#play{
  width:78px;
  height:78px;
  color:#e9b565;
  font-size:28px;
}

.next-box{
  padding:22px;
  border-radius:22px;
  background:rgba(8,10,15,.82);
  border:1px solid rgba(218,166,91,.20);
  box-shadow:0 18px 48px rgba(0,0,0,.32);
}

.next-label{
  color:#e0aa5f;
  letter-spacing:4px;
  font-size:12px;
  margin-bottom:10px;
}

#nextTitle{
  color:rgba(244,229,207,.78);
  font-size:16px;
  line-height:1.45;
  word-break:keep-all;
}

@media(max-width:420px){
  .player{padding:14px 12px 28px}
  .lyrics{min-height:200px}
  .current{font-size:22px}
}


.l1,.l2,.l4,.l5{
min-height:30px;
color:rgba(244,229,207,.28);
font-size:17px;
line-height:1.5;
}

.track-nav{
margin:-2px 0 18px;
text-align:center;
font-size:12px;
color:rgba(244,229,207,.72);
line-height:1.5;
}

.track-nav div{margin:4px 0}
#currentTitle{color:#e9b565}


.time-row{
display:flex;
align-items:center;
gap:10px;
margin:18px 6px 22px;
}

.time-row input{
flex:1;
}

#currentTime,#remainTime{
min-width:48px;
text-align:center;
color:rgba(244,229,207,.72);
font-size:12px;
font-variant-numeric:tabular-nums;
}

/* ===== JK SELAH PLAYER CORE v2 UPGRADE — Daily Flow Cross Fade ===== */
.cover{
  position:relative;
  aspect-ratio:16/9;
}

.cover img.cover-layer,
.cover-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.5s ease-in-out;
}

.cover-layer.active{
  opacity:1;
}


/* ===== JK SELAH DAILY FLOW v3.2 MOST / RECENT + AMBIENT PATCH ===== */
@keyframes kenburns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.12); }
}

@keyframes ambientParallax {
  from {
    transform: scale(1.10) translate3d(-1.2%, -0.6%, 0);
    filter: blur(54px) brightness(.32) saturate(.86);
  }
  to {
    transform: scale(1.18) translate3d(1.2%, 0.6%, 0);
    filter: blur(66px) brightness(.40) saturate(1.02);
  }
}

body {
  background:
    radial-gradient(circle at 50% 42%, rgba(28,31,44,.72) 0%, rgba(5,6,9,.96) 72%),
    #050609;
}

#bg {
  inset: -60px;
  opacity: .78;
  transition: background-image 2s ease-in-out, opacity 2s ease-in-out;
  will-change: transform, filter, background-image;
}

#bg.ambient-active {
  animation: ambientParallax 15s linear infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 50% 36%, rgba(218,166,91,.08), rgba(0,0,0,0) 38%),
    radial-gradient(circle at center, rgba(33,27,18,.10), rgba(0,0,0,.80) 76%),
    linear-gradient(180deg, rgba(7,8,12,.24), rgba(0,0,0,.76));
}

.player {
  box-shadow:
    0 0 90px rgba(0,0,0,.70),
    0 0 28px rgba(218,166,91,.055);
}

.cover {
  box-shadow:
    0 24px 68px rgba(0,0,0,.62),
    0 0 28px rgba(218,166,91,.10);
}

.cover-layer {
  transform-origin: center center;
  will-change: transform, opacity;
}

.cover-layer.kenburns-active {
  animation: kenburns 8s linear forwards;
}

.current {
  text-shadow:
    0 0 10px rgba(231,179,106,.30),
    0 0 22px rgba(231,179,106,.13);
}

.playlist,
.flow-history {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(8,10,15,.82);
  border: 1px solid rgba(218,166,91,.20);
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
}

.playlist h2 {
  color:#e0aa5f;
  letter-spacing:4px;
  font-size:12px;
  margin:0 0 12px;
}

.notice {
  margin:8px 0 15px;
  padding:10px 14px;
  border:1px solid rgba(218,166,91,.18);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  font-size:12px;
  line-height:1.45;
  color:rgba(244,229,207,.55);
  text-align:center;
  letter-spacing:-.2px;
}

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

.tab-btn {
  border:1px solid rgba(218,166,91,.34);
  background:rgba(7,9,14,.82);
  color:#e0aa5f;
  padding:6px 14px;
  min-width:0;
  width:auto;
  height:auto;
  border-radius:999px;
  font-size:10px;
  letter-spacing:.08em;
  cursor:pointer;
}

.tab-btn.active {
  background:#e0aa5f;
  color:#050609;
  font-weight:700;
}

.playlist ul {
  list-style:none;
  margin:0;
  padding:0;
}

.playlist li {
  display:grid;
  grid-template-columns:36px 28px 1fr;
  align-items:center;
  gap:8px;
  padding:9px 6px;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:rgba(244,229,207,.78);
  font-size:15px;
  line-height:1.45;
  cursor:pointer;
}

.playlist li.empty {
  display:block;
  text-align:center;
  color:rgba(244,229,207,.45);
  cursor:default;
}

.playlist-thumb {
  width:36px;
  height:36px;
  object-fit:cover;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  box-shadow:0 6px 16px rgba(0,0,0,.24);
}

.playlist-index {
  color:rgba(244,229,207,.48);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  letter-spacing:.04em;
}

.playlist-name {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.playlist li.active {
  background:rgba(216,162,87,.10);
  border-left:3px solid rgba(231,179,106,.9);
  padding-left:13px;
  border-radius:9px;
  color:#fff;
  font-weight:700;
  box-shadow:inset 0 0 18px rgba(216,162,87,.05);
}

.playlist li.active .playlist-index,
.playlist li.active .playlist-name {
  color:#e9b565;
  font-weight:700;
}

.playlist li:last-child {
  border-bottom:none;
}


/* ===== DAILY WORSHIP MEDIA MODULE ===== */
.cover-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  z-index:3;
  pointer-events:none;
  background:#17120d;
  transition:opacity 1.5s ease-in-out;
}
.cover-video.is-active{opacity:1}

.video-logo{
  position:absolute;
  right:-20px;
  bottom:-2px;
  width:118px;
  z-index:20;
  pointer-events:none;
  opacity:1;
}
.video-logo-image{
  position:relative !important;
  inset:auto !important;
  display:block;
  width:100%;
  height:auto !important;
  object-fit:contain !important;
  opacity:1 !important;
  transform:none !important;
  animation:none !important;
  transition:none !important;
  aspect-ratio:auto !important;
}

/* ===== DAILY RANDOM IDENTITY — 2-LINE COVER LYRICS + 3 UP-NEXT CARDS ===== */
.srt-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  padding:7px 54px 8px 16px;
  border-radius:0 0 24px 24px;
  background:linear-gradient(180deg,rgba(4,4,5,0),rgba(4,4,5,.58));
  text-align:center;
  pointer-events:none;
  z-index:15;
  text-shadow:0 1px 4px rgba(0,0,0,.92);
}
.srt-current{
  min-height:18px;
  color:#f4e3c5;
  font-size:14px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:-.2px;
  word-break:keep-all;
}
.srt-next{
  min-height:14px;
  margin-top:2px;
  color:rgba(244,227,197,.52);
  font-size:11px;
  line-height:1.3;
  font-weight:400;
  letter-spacing:-.2px;
  word-break:keep-all;
}

.upcoming-tracks{
  display:grid;
  gap:12px;
  margin-top:4px;
}
.next-box{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  grid-template-areas:
    "thumb label"
    "thumb title";
  column-gap:13px;
  align-items:center;
  min-height:86px;
  padding:15px 18px;
  border-radius:22px;
  background:rgba(8,10,15,.82);
  border:1px solid rgba(218,166,91,.20);
  box-shadow:0 14px 38px rgba(0,0,0,.28);
}
.next-thumb{
  grid-area:thumb;
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  box-shadow:0 7px 18px rgba(0,0,0,.34);
}
.next-label{
  grid-area:label;
  align-self:end;
  color:#e0aa5f;
  letter-spacing:3px;
  font-size:10px;
  line-height:1.2;
  margin:0 0 6px;
}
.next-title{
  grid-area:title;
  align-self:start;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(244,229,207,.82);
  font-size:14px;
  line-height:1.35;
}

@media(max-width:430px){
  .srt-overlay{padding:6px 50px 7px 12px}
  .srt-current{font-size:13px}
  .srt-next{font-size:10px}
  .next-box{grid-template-columns:44px minmax(0,1fr);min-height:80px;padding:14px 16px}
  .next-thumb{width:44px;height:44px}
  .next-title{font-size:13px}
}


/* ===== DAILY FLOW FULLSCREEN MASTER 20260726 ===== */
.fullscreen-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:40;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(0,0,0,.42);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  opacity:.72;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.fullscreen-btn:hover{opacity:1}

.fullscreen-playlist-trigger,
.fullscreen-mini-playlist,
.fullscreen-mini-transport,
.inspection-badge{display:none}

.cover:fullscreen,
.cover:-webkit-full-screen{
  width:100vw;
  height:100vh;
  aspect-ratio:auto;
  border:0;
  border-radius:0;
  background:#000;
}
.cover:fullscreen .cover-layer,
.cover:fullscreen .cover-video,
.cover:-webkit-full-screen .cover-layer,
.cover:-webkit-full-screen .cover-video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.cover:fullscreen .fullscreen-btn,
.cover:-webkit-full-screen .fullscreen-btn{
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  font-size:30px;
  opacity:.34;
}
.cover:fullscreen .fullscreen-playlist-trigger,
.cover:-webkit-full-screen .fullscreen-playlist-trigger,
.inspection-mode .fullscreen-playlist-trigger{
  display:block;
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:25vw;
  z-index:2147482999;
  cursor:default;
}
.cover:fullscreen .fullscreen-mini-playlist,
.cover:-webkit-full-screen .fullscreen-mini-playlist,
.inspection-mode .fullscreen-mini-playlist{
  display:flex;
  position:absolute;
  left:clamp(26px,3vw,58px);
  bottom:clamp(76px,9.5vh,128px);
  z-index:2147483000;
  width:max-content;
  max-width:min(420px,38vw);
  flex-direction:column;
  gap:clamp(3px,.45vh,7px);
  padding:0;
  background:transparent;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease;
}
.cover:fullscreen .fullscreen-mini-playlist.is-visible,
.cover:-webkit-full-screen .fullscreen-mini-playlist.is-visible,
.inspection-mode .fullscreen-mini-playlist.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.cover:fullscreen .fullscreen-mini-transport,
.cover:-webkit-full-screen .fullscreen-mini-transport,
.inspection-mode .fullscreen-mini-transport{
  display:flex;
  position:absolute;
  left:clamp(26px,3vw,58px);
  bottom:clamp(42px,6vh,92px);
  z-index:2147483000;
  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);
}
.cover:fullscreen .fullscreen-mini-transport.is-visible,
.cover:-webkit-full-screen .fullscreen-mini-transport.is-visible,
.inspection-mode .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;
}
.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-row{
  display:grid;
  grid-template-columns:1.2em minmax(0,1fr);
  align-items:center;
  min-height:1.35em;
  color:rgba(255,255,255,.48);
  font-size:clamp(14px,1.05vw,20px);
  line-height:1.42;
  letter-spacing:-.02em;
  text-shadow:0 2px 7px rgba(0,0,0,1);
}
.fullscreen-mini-row.current{
  color:rgba(255,255,255,.98);
  font-weight:600;
}
.fullscreen-mini-marker{color:#e9b565}
.fullscreen-mini-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cover:fullscreen .srt-overlay,
.cover:-webkit-full-screen .srt-overlay{
  padding:18px 15vw 26px;
  border-radius:0;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.70));
}
.cover:fullscreen .srt-current,
.cover:-webkit-full-screen .srt-current{
  min-height:1.45em;
  font-size:clamp(28px,2.65vw,52px);
  line-height:1.35;
  font-weight:700;
  text-shadow:0 3px 12px rgba(0,0,0,.98);
}
.cover:fullscreen .srt-next,
.cover:-webkit-full-screen .srt-next{
  min-height:1.35em;
  margin-top:7px;
  font-size:clamp(18px,1.65vw,32px);
  line-height:1.35;
  color:rgba(244,227,197,.58);
  text-shadow:0 3px 10px rgba(0,0,0,.96);
}
.cover:fullscreen .video-logo,
.cover:-webkit-full-screen .video-logo{
  right:-34px;
  bottom:-8px;
  width:clamp(180px,14vw,300px);
}
.inspection-mode .cover{overflow:visible}
.inspection-mode .fullscreen-playlist-trigger{
  outline:2px dashed rgba(255,210,80,.85);
  background:rgba(255,210,80,.08);
}
.inspection-mode .inspection-badge{
  display:block;
  position:absolute;
  left:10px;
  top:10px;
  z-index:60;
  padding:6px 10px;
  border-radius:8px;
  background:#ffd24f;
  color:#111;
  font-size:11px;
  font-weight:700;
  pointer-events:none;
}
@media(max-width:700px){
  .cover:fullscreen .fullscreen-mini-playlist,
  .cover:-webkit-full-screen .fullscreen-mini-playlist{
    width:48vw;
    min-width:250px;
    bottom:18vh;
  }
  .cover:fullscreen .srt-overlay,
  .cover:-webkit-full-screen .srt-overlay{padding-left:7vw;padding-right:7vw}
}


/* ===== DAILY USER MINI 1 / F9 QA 5 — WORSHIP MASTER 20260728 ===== */
/* 일반 사용자: 현재 화면 좌측 최하단에 다음곡 1줄 + 68px 골드 미니바 */
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-playlist {
  display: flex;
  left: 8px;
  top: auto;
  bottom: 16px;
  width: 210px;
  max-width: 210px;
  gap: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport {
  display: flex;
  left: 8px;
  top: auto;
  bottom: 0;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  justify-content: flex-start;
  gap: 6px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-row {
  display: none;
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-row.is-user-next {
  display: block;
  width: 210px;
  min-height: 0;
  padding: 0;
  color: rgba(255,255,255,.94);
  font-family: "JK Gaegu", cursive;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -1.5px;
  word-spacing: -1px;
  text-shadow: 0 2px 7px rgba(0,0,0,1);
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-row.is-user-next .fullscreen-mini-title {
  display: block;
  width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport button {
  width: 14px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
}
body:not(.inspection-mode) .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;
  margin: 0;
  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%);
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-webkit-slider-runnable-track {
  height: 2px; border-radius: 999px; background: transparent;
}
body:not(.inspection-mode) .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;
}
body:not(.inspection-mode) .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);
}
body:not(.inspection-mode) .cover:not(:fullscreen):not(:-webkit-full-screen) .fullscreen-mini-transport input::-moz-range-progress {
  height: 2px; border-radius: 999px; background: #f4bf42;
}
body:not(.inspection-mode) .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;
}
