/* ========= Root ========= */
#kultur-radyo-wrapper{
  display:grid; grid-template-columns: 1fr; gap:0;
  max-width:1280px; margin:0 auto; padding:24px 16px 120px;
  background:#0e0e0e; color:#fff; box-sizing:border-box;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.kr-panels{ display:grid; grid-template-columns: 2.2fr 1fr; gap:28px; }

/* ========= Albüm Grid ========= */
.album-list{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:36px;
  background:#1f1f1f; padding:26px; border-radius:6px; box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.album-item{ cursor:pointer; text-align:center; }
.album-item img{
  width:100%; aspect-ratio:1/1; object-fit:cover; background:#fff;
  border:8px solid #b92516; border-radius:4px; display:block; box-shadow:0 2px 10px rgba(0,0,0,.35);
}
.album-item:hover img{ transform:translateY(-2px); transition:transform .2s ease; }
.album-title{
  color:#fff; font-weight:700; font-size:18px; line-height:1.25; margin-top:14px;
  text-transform:uppercase; letter-spacing:.4px;
}

/* ========= Sağ Panel (Şarkı Listesi) ========= */
.kr-right-panel{ display:flex; flex-direction:column; gap:22px; }
.kr-album-header{ background:#2b2b2b; color:#fff; font-weight:700; font-size:20px; padding:16px 18px; border-radius:6px; letter-spacing:.3px; }
.album-tracks{ background:#1f1f1f; border-radius:6px; padding:18px; box-shadow:0 4px 18px rgba(0,0,0,.35); }
.album-tracks ul{ list-style:none; margin:0; padding:0; }
.album-tracks li.kr-track{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center;
  gap:16px; padding:12px 10px; border-bottom:1px solid rgba(255,255,255,.08);
  color:#fff; font-size:16px; cursor:pointer;
}
.album-tracks li.kr-track:last-child{ border-bottom:none; }
.album-tracks li.kr-track:hover{ background:#262626; border-radius:4px; }
.kr-num{ width:28px; text-align:right; opacity:.8; }
.kr-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kr-dur{ min-width:48px; text-align:right; opacity:.9; }

/* ========= Sticky Bottom Player ========= */
:root{
  --kr-bg:#181818; --kr-text:#fff; --kr-dim:#b3b3b3;
  --kr-accent:#1DB954; --kr-rail:#404040; --kr-rail-soft:#555; --kr-progress:0%;
}
#kultur-radyo-player{
  position:fixed; left:0; right:0; bottom:0;
  z-index:9999; background:var(--kr-bg); color:var(--kr-text);
  display:grid; grid-template-columns: 1fr 2fr 1fr; align-items:center;
  gap:16px; padding:10px 18px; box-shadow:0 -6px 24px rgba(0,0,0,.35);
}
#kultur-radyo-player .kr-left{display:flex; align-items:center; gap:12px; min-width:0;}
#kultur-radyo-player .kr-cover{ width:56px; height:56px; border-radius:4px; object-fit:cover; background:#000; }
#kultur-radyo-player .kr-title{font-weight:700; font-size:15px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
#kultur-radyo-player .kr-artist{font-size:13px; color:var(--kr-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px;}
#kultur-radyo-player .kr-like{margin-left:6px; background:transparent; border:none; color:var(--kr-dim); font-size:18px; cursor:pointer;}
#kultur-radyo-player .kr-like.active{color:var(--kr-accent);} #kultur-radyo-player .kr-like:hover{color:var(--kr-accent);}

#kultur-radyo-player .kr-center{display:flex; flex-direction:column; align-items:center; justify-content:center;}
.kr-controls-top{display:flex; align-items:center; gap:16px; margin-bottom:6px;}
.kr-controls-top button{ background:transparent; border:none; color:var(--kr-dim); font-size:16px; cursor:pointer; transition:color .2s ease; }
.kr-controls-top button:hover{color:#fff;}
.kultur-radyo-play-pause.kr-play{
  width:40px; height:40px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center; font-size:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.kultur-radyo-play-pause.kr-play:hover{transform:scale(1.06);}
.kr-controls-top .active{color:var(--kr-accent);}

.kr-seek-row{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; width:100%; max-width:640px;}
.kr-seek-row .current-time,.kr-seek-row .duration-time{font-size:12px; color:var(--kr-dim); min-width:36px; text-align:center;}

/* PROGRESS FILL */
.kultur-radyo-seek{
  width:100%; height:4px; border-radius:999px;
  background: linear-gradient(to right, var(--kr-accent) var(--kr-progress), var(--kr-rail) var(--kr-progress));
  -webkit-appearance:none; appearance:none;
}
.kultur-radyo-seek::-webkit-slider-runnable-track{ background:transparent; height:4px; border-radius:999px; }
.kultur-radyo-seek::-webkit-slider-thumb{ -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:var(--kr-accent); margin-top:-4px; }
.kultur-radyo-seek::-moz-range-track{ background:transparent; height:4px; border-radius:999px; }
.kultur-radyo-seek::-moz-range-progress{ background:var(--kr-accent); height:4px; border-radius:999px; }
.kultur-radyo-seek::-moz-range-thumb{ width:12px; height:12px; border:none; border-radius:50%; background:var(--kr-accent); }

/* Right (sadece ses) */
#kultur-radyo-player .kr-right{display:flex; align-items:center; justify-content:flex-end; gap:14px;}
.volume-controls{display:flex; align-items:center; gap:8px;}
.kultur-radyo-volume-slider{
  width:120px; height:4px; border-radius:999px; background:var(--kr-rail-soft);
  -webkit-appearance:none; appearance:none;
}
.kultur-radyo-volume-slider::-webkit-slider-runnable-track{ background:transparent; height:4px; }
.kultur-radyo-volume-slider::-webkit-slider-thumb{ -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:#fff; margin-top:-4px; }

/* ========= Responsive ========= */
@media (max-width:1100px){
  .kr-panels{ grid-template-columns: 1.8fr 1fr; }
  .album-list{ grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* MOBİL: Başlangıçta SADECE albüm grid’i; seçilince SADECE liste */
@media (max-width:768px){
  #kultur-radyo-wrapper{ padding:14px 10px 120px; }

  .kr-panels{ display:block; }
  .kr-left-panel{ display:block; }
  .kr-right-panel{ display:none; } /* mobil başlangıç: şarkı listesi gizli */

  /* albüm seçildiğinde sadece liste */
  #kultur-radyo-wrapper.kr-mobile-detail-active .kr-left-panel{ display:none; }
  #kultur-radyo-wrapper.kr-mobile-detail-active .kr-right-panel{ display:block; }

  .album-list{ grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; padding:12px; }
  .album-item img{ border-width:6px; }
  .album-title{ font-size:14px; margin-top:8px; }

  /* Player kolonları daralt */
  #kultur-radyo-player{ grid-template-columns: 1.2fr 1.8fr; }
  #kultur-radyo-player .kr-right{ display:none; } /* mobilde ses bloğunu da istersen gösterme */
}
@media (max-width:420px){
  .album-list{ grid-template-columns: 1fr; }
  #kultur-radyo-player{ grid-template-columns: 1fr; gap:10px; padding:10px 12px; }
}
