*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

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

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

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at center, rgba(42,31,19,.10), rgba(0,0,0,.78) 76%),
    linear-gradient(180deg, rgba(9,7,5,.24), rgba(0,0,0,.76));
  z-index:0;
  pointer-events:none;
}

.wrap,
.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(12,10,8,.48), rgba(4,3,3,.92));
  border-left:1px solid rgba(218,166,91,.11);
  border-right:1px solid rgba(218,166,91,.11);
}

.thumb,
.cover{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/9;
  border-radius:26px;
  border:1px solid rgba(218,166,91,.18);
  box-shadow:0 18px 58px rgba(0,0,0,.44);
  background:#17120d;
}

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

.cover-layer.is-front,
#coverImage1{
  opacity:1;
}

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

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

#play,
#playBtn{
  width:78px;
  height:78px;
  color:#e7b46c;
  font-size:28px;
}

.progress,
.time-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 6px 22px;
  color:rgba(244,229,207,.72);
  font-size:12px;
}

.time-row input,
.progress input{
  flex:1;
  width:100%;
  accent-color:#e7b46c;
}

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

.lyrics{
  margin:14px 0 18px;
  padding:26px 18px;
  min-height:212px;
  border-radius:22px;
  background:rgba(10,8,6,.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;
}

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

.current,
#l3{
  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:#e7b46c;
  font-size:24px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:-.04em;
  word-break:keep-all;
}

.song-nav{
  margin:-2px 0 18px;
  padding:0 12px;
  text-align:center;
  font-size:12px;
  line-height:1.55;
  color:rgba(244,229,207,.70);
  word-break:keep-all;
}

.song-nav div{
  margin:4px 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#currentTitle{
  color:#e7b46c;
  font-weight:600;
}

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

.track-title,
.playlist h2{
  color:#e7b46c;
  letter-spacing:4px;
  font-size:12px;
  margin-bottom:14px;
}

.notice{
  margin:8px 0 18px;
  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(241,228,207,.55);
  text-align:center;
}

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

.playlist li,
.list 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;
  word-break:keep-all;
  cursor:pointer;
}

.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,
.list 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,
.list li.active .playlist-index,
.list li.active .playlist-name{
  color:#e7b46c;
  font-weight:700;
}

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

@media(max-width:420px){
  .wrap,
  .player{
    padding:14px 12px 28px;
  }

  .lyrics{
    min-height:200px;
  }

  .current,
  #l3{
    font-size:22px;
  }
}


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

@keyframes ambientParallax {
  0% {
    transform: scale(1.10) translate3d(0, 0, 0);
    filter: blur(56px) brightness(.34) saturate(.88);
  }
  50% {
    transform: scale(1.16) translate3d(-1.2%, -0.8%, 0);
    filter: blur(70px) brightness(.38) saturate(.96);
  }
  100% {
    transform: scale(1.10) translate3d(0, 0, 0);
    filter: blur(56px) brightness(.34) saturate(.88);
  }
}

#bg {
  inset:-60px;
  transition:background-image 2s ease-in-out, opacity 2s ease-in-out;
  animation:ambientParallax 15s linear infinite alternate;
  will-change:transform, filter, background-image;
}

body::after {
  background:
    radial-gradient(circle at 50% 38%, rgba(218,166,91,.075), rgba(0,0,0,0) 38%),
    radial-gradient(circle at center, rgba(42,31,19,.10), rgba(0,0,0,.80) 76%),
    linear-gradient(180deg, rgba(9,7,5,.24), rgba(0,0,0,.78));
}

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

.cover,
.thumb {
  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,
#l3 {
  text-shadow:
    0 0 10px rgba(231,180,108,.26),
    0 0 22px rgba(231,180,108,.11);
}

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

.tab-btn {
  width:auto;
  height:auto;
  border-radius:999px;
  padding:6px 14px;
  border:1px solid rgba(218,166,91,.28);
  background:rgba(9,7,5,.58);
  color:#d6a45d;
  font-size:10px;
  letter-spacing:.08em;
  cursor:pointer;
  transition:.25s ease;
}

.tab-btn.active {
  background:#d6a45d;
  color:#090806;
  font-weight:700;
}


/* ===== JK SELAH LIVE WORSHIP MASTER ENGINE — A CONFESSION ===== */
.lyrics{display:none !important;}

.cover,
.thumb{
  width:100%;
  min-height:0 !important;
  aspect-ratio:16 / 9 !important;
  border-radius:26px;
}

.cover-layer,
.cover-video{
  position:absolute !important;
  inset:0 !important;
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:cover !important;
  border-radius:25px !important;
}

.cover-layer{
  opacity:0;
  transition:opacity 1.5s ease-in-out;
}
.cover-layer.active,
.cover-layer.is-front,
#coverImage1{opacity:1;}
.cover-layer.kenburns-active{animation:kenburns 8s linear forwards;}

.cover-video{
  z-index:3;
  opacity:0;
  transition:opacity 1.5s ease-in-out;
  pointer-events:none;
  background:#17120d;
}
.cover-video.is-active{opacity:1;}

.video-logo{
  position:absolute;
  right:-20px;
  bottom:-2px;
  display:block;
  width:118px;
  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{
  position:relative !important;
  inset:auto !important;
  display:block;
  width:100% !important;
  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.show{opacity:1;}

.srt-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:15;
  padding:7px 128px 8px 14px;
  background:linear-gradient(to top,rgba(0,0,0,.14),rgba(0,0,0,.045));
  text-align:center;
  pointer-events:none;
  text-shadow:0 2px 8px rgba(0,0,0,.95);
}
.srt-current{
  color:#f5ead9;
  font-size:17px;
  line-height:1.32;
  font-weight:500;
  letter-spacing:-.025em;
  word-break:keep-all;
}
.srt-next{
  margin-top:2px;
  color:rgba(245,234,217,.58);
  font-size:13px;
  line-height:1.30;
  font-weight:400;
  letter-spacing:-.025em;
  word-break:keep-all;
}

.song-nav{
  width:100%;
  margin:16px 0 18px !important;
  padding:14px 16px;
  min-height:0;
  border:1px solid rgba(218,166,91,.20);
  border-radius:20px;
  background:rgba(10,8,6,.55);
  box-shadow:inset 0 0 30px rgba(0,0,0,.20);
  text-align:center;
  font-size:12px;
  line-height:1.55;
  color:rgba(244,229,207,.70);
}
.song-nav div{
  margin:4px 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#currentTitle{color:#e7b46c;font-weight:700;}

.progress,
.time-row{margin:30px 6px 22px;}
.controls{margin:18px 0 30px;}

@media(max-width:420px){
  .video-logo{right:-20px;bottom:-2px;width:118px;}
  .srt-overlay{padding:6px 118px 7px 12px;}
  .srt-current{font-size:16px;}
  .srt-next{font-size:12px;}
}
