/* ============================================================
   kimlik — tek dosya stil
   Renkleri değiştirmek istersen sadece :root bloğuna dokun.
   ============================================================ */

:root{
  --bg:        #07070b;
  --bg-soft:   #0d0d14;
  --ink:       #ecedf5;
  --ink-dim:   #9a9db4;
  --ink-faint: #63667e;

  --accent:    #7c5cff;   /* mor */
  --accent-2:  #22d3ee;   /* camgöbeği */
  --accent-3:  #ff4d8d;   /* pembe */

  --glass:     rgba(255,255,255,.045);
  --glass-2:   rgba(255,255,255,.075);
  --stroke:    rgba(255,255,255,.10);
  --stroke-2:  rgba(255,255,255,.18);

  --radius:    22px;
  --radius-sm: 12px;

  --shadow:    0 24px 70px -18px rgba(0,0,0,.85);
  --glow:      0 0 28px -6px var(--accent);

  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*,*::before,*::after{ box-sizing:border-box }

/* hidden özelliği svg dahil her öğede kesin çalışsın
   (oynat/durdur ikonlarının ikisinin birden görünmesini engeller) */
[hidden]{ display:none !important }

html,body{ height:100% }

body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* ---------- arka plan ---------- */

.bg-aurora{
  position:fixed; inset:-20%; z-index:0; pointer-events:none;
  background:
    radial-gradient(42% 38% at 18% 22%, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 62%),
    radial-gradient(38% 34% at 82% 18%, color-mix(in srgb, var(--accent-2) 34%, transparent) 0%, transparent 60%),
    radial-gradient(46% 42% at 62% 88%, color-mix(in srgb, var(--accent-3) 28%, transparent) 0%, transparent 64%);
  filter:blur(70px) saturate(130%);
  opacity:.62;
  animation:drift 26s ease-in-out infinite alternate;
}
@keyframes drift{
  0%   { transform:translate3d(0,0,0)      scale(1)    rotate(0deg) }
  50%  { transform:translate3d(-3%,2%,0)   scale(1.08) rotate(4deg) }
  100% { transform:translate3d(3%,-2.5%,0) scale(1.04) rotate(-3deg) }
}

.bg-stars{ position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.5 }

.bg-grain{
  position:fixed; inset:0; z-index:2; pointer-events:none; opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- arka plan modları (admin panelinden seçilir) ---------- */

/* yıldızlar: aurora yok, yalnızca yıldız alanı */
body[data-bg="yildizlar"] .bg-aurora{ display:none }
body[data-bg="yildizlar"] .bg-stars{ opacity:.75 }

/* gradyan: yavaşça renk değiştiren sakin geçiş */
body[data-bg="gradyan"] .bg-stars{ display:none }
body[data-bg="gradyan"] .bg-aurora{
  inset:0;
  background:linear-gradient(140deg, #16103a 0%, #071a2b 45%, #2a0b2e 100%);
  filter:hue-rotate(0deg);
  opacity:.95;
  animation:bg-hue 30s ease-in-out infinite alternate;
}
@keyframes bg-hue{ to{ filter:hue-rotate(55deg) } }

/* düz: sade koyu zemin */
body[data-bg="duz"] .bg-aurora,
body[data-bg="duz"] .bg-stars{ display:none }

/* resim / video: kullanıcının yüklediği dosya */
body[data-bg="resim"] .bg-aurora,  body[data-bg="resim"] .bg-stars,
body[data-bg="video"] .bg-aurora,  body[data-bg="video"] .bg-stars{ display:none }

.bg-image{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-size:cover; background-position:center;
}
.bg-video{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  width:100%; height:100%; object-fit:cover;
}
.bg-shade{  /* yazılar okunsun diye üstüne hafif karartma */
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(120% 90% at 50% 38%, rgba(5,5,10,.38), rgba(5,5,10,.78));
}

/* ---------- giriş kapısı ---------- */

.gate{
  position:fixed; inset:0; z-index:60;
  display:grid; place-items:center;
  background:rgba(4,4,8,.82);
  backdrop-filter:blur(22px) saturate(120%);
  cursor:pointer;
  transition:opacity .7s ease, visibility .7s;
}
.gate.gone{ opacity:0; visibility:hidden; pointer-events:none }

.gate-inner{ display:grid; place-items:center; gap:26px; text-align:center }

.gate-ring{
  width:88px; height:88px; border-radius:50%;
  border:1px solid var(--stroke-2);
  position:relative;
  animation:breathe 2.8s ease-in-out infinite;
}
.gate-ring::before,
.gate-ring::after{
  content:''; position:absolute; inset:-1px; border-radius:50%;
  border:1px solid transparent;
  border-top-color:var(--accent);
  border-right-color:var(--accent-2);
  animation:spin 3.2s linear infinite;
}
.gate-ring::after{ inset:9px; animation-duration:2.1s; animation-direction:reverse; opacity:.6 }
@keyframes spin{ to{ transform:rotate(360deg) } }
@keyframes breathe{ 50%{ transform:scale(1.07) } }

.gate-hint{
  margin:0; font-family:var(--mono); font-size:.8rem;
  letter-spacing:.34em; text-transform:uppercase; color:var(--ink-dim);
  animation:pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{ 50%{ opacity:.45 } }

/* ---------- sahne ---------- */

.stage{
  position:relative; z-index:10;
  min-height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:22px;
  padding:44px 18px 96px;   /* altta müzik kutusuna nefes payı */
}
.stage[aria-hidden="true"]{ opacity:0 }
.stage.in{ opacity:1; transition:opacity .8s ease .15s }

/* ---------- kimlik kartı ---------- */

.card{
  --op:1;   /* kart yoğunluğu: admin panelindeki kaydırıcıdan gelir (0 = tamamen saydam) */
  width:100%; max-width:452px;
  padding:36px 30px 26px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background:linear-gradient(160deg,
    rgba(255,255,255,calc(.075 * var(--op))),
    rgba(255,255,255,calc(.045 * var(--op))) 55%,
    rgba(255,255,255,calc(.02  * var(--op))));
  backdrop-filter:blur(calc(26px * var(--op))) saturate(140%);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.09);
  text-align:center;
  transform:translateY(14px) scale(.985);
  opacity:0;
}
.stage.in .card{
  transform:none; opacity:1;
  transition:transform .85s cubic-bezier(.16,1,.3,1) .1s, opacity .7s ease .1s;
}

/* -- avatar -- */
.avatar-wrap{ position:relative; display:inline-block; margin-bottom:16px }

.avatar{
  width:112px; height:112px; border-radius:50%;
  object-fit:cover; display:block;
  border:2px solid var(--stroke-2);
  background:var(--bg-soft);
  box-shadow:0 0 0 5px rgba(124,92,255,.10), var(--glow);
}
.avatar-wrap::after{  /* dönen ışıklı çember */
  content:''; position:absolute; inset:-7px; border-radius:50%;
  border:1.5px solid transparent;
  border-top-color:var(--accent-2);
  border-bottom-color:var(--accent-3);
  animation:spin 7s linear infinite;
  opacity:.75; pointer-events:none;
}

.status-dot{
  position:absolute; right:4px; bottom:4px;
  width:17px; height:17px; border-radius:50%;
  background:#33d17a; border:3px solid var(--bg);
  box-shadow:0 0 12px #33d17a;
}
.status-dot[data-s="busy"]{  background:#ffb020; box-shadow:0 0 12px #ffb020 }
.status-dot[data-s="dnd"]{   background:#ed4245; box-shadow:0 0 12px #ed4245 }
.status-dot[data-s="offline"]{ background:#6b7280; box-shadow:none }
.status-dot[data-s="none"]{ display:none }

/* -- yazılar -- */
.handle{
  margin:0 0 8px;
  font-size:clamp(1.7rem, 6vw, 2.15rem); font-weight:700; letter-spacing:-.025em;
  background:linear-gradient(96deg, var(--ink) 8%, var(--accent-2) 48%, var(--accent) 92%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}

.tagline{
  margin:0 0 14px;
  font-family:var(--mono); font-size:.76rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent-2);
}
.tagline:empty{ display:none }

.bio{
  margin:0 auto; max-width:34ch;
  font-size:.94rem; line-height:1.65; color:var(--ink-dim);
}
.bio:empty{ display:none }

/* daktilo imleci */
.caret{
  display:inline-block; width:2px; height:.95em;
  margin-left:3px; vertical-align:-.08em;
  background:var(--accent-2);
  animation:caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink{ 50%{ opacity:0 } }

/* Discord canlı durum satırı */
.dc-line{
  margin:14px auto 0; max-width:100%;
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 13px; border-radius:999px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.035);
  font-size:.78rem; color:var(--ink-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* -- kimlik detayları -- */
.facts{
  margin:24px 0 0; padding:16px 4px 4px;
  border-top:1px solid var(--stroke);
  display:grid; grid-template-columns:auto auto;
  justify-content:center;                 /* çiftleri kartın ortasına çek */
  gap:11px 18px;
  text-align:left; font-size:.86rem;
}
.facts:empty{ display:none; border:0; padding:0; margin:0 }

.facts dt{
  font-family:var(--mono); font-size:.68rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--ink-faint);
  padding-top:2px; white-space:nowrap;
}
.facts dd{ margin:0; color:var(--ink); word-break:break-word; max-width:28ch }

/* -- ikon bağlantıları -- */
.links{
  margin-top:26px; padding-top:22px;
  border-top:1px solid var(--stroke);
  display:flex; flex-wrap:wrap; justify-content:center; gap:11px;
}
.links:empty{ display:none; border:0; padding:0 }

.link{
  --c:var(--accent);
  position:relative;
  width:46px; height:46px; border-radius:14px;
  display:grid; place-items:center;
  color:var(--c); text-decoration:none;   /* logo beklemeden kendi renginde */
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.035);
  transition:transform .28s cubic-bezier(.16,1,.3,1), color .22s, border-color .22s,
             background .22s, box-shadow .28s;
}
.link svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.85;
           stroke-linecap:round; stroke-linejoin:round }
.link svg [data-filled]{ fill:currentColor; stroke:none }
.link img{ width:21px; height:21px; object-fit:contain; border-radius:4px }
.link .emo{ font-size:1.2rem; line-height:1 }

.link:hover,.link:focus-visible{
  transform:translateY(-5px) scale(1.06);
  color:#fff;
  border-color:color-mix(in srgb, var(--c) 65%, transparent);
  background:color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow:0 10px 26px -8px var(--c), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  outline:none;
}

/* isim balonu */
.link::after{
  content:attr(data-label);
  position:absolute; bottom:calc(100% + 9px); left:50%;
  transform:translateX(-50%) translateY(5px);
  padding:5px 9px; border-radius:8px;
  font-size:.68rem; font-weight:500; white-space:nowrap;
  background:#14141d; color:var(--ink);
  border:1px solid var(--stroke-2);
  opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s;
}
.link:hover::after,.link:focus-visible::after{ opacity:1; transform:translateX(-50%) }

.card-foot{ margin-top:24px }
.foot-line{
  font-family:var(--mono); font-size:.67rem;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint);
}

/* ============================================================
   müzik kutusu
   Kapalıyken sağ altta küçük yuvarlak; üzerine gelince (dokunmatikte
   dokununca) bar hâlinde açılır.
   ============================================================ */

.player{
  position:fixed; left:18px; bottom:18px; z-index:30;
  width:58px; height:58px;
  border-radius:30px;
  border:1px solid var(--stroke);
  background:linear-gradient(150deg, var(--glass-2), var(--glass));
  backdrop-filter:blur(26px) saturate(140%);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  opacity:0; transform:translateY(12px);
  transition:width .55s cubic-bezier(.16,1,.3,1), border-radius .45s ease,
             box-shadow .3s, border-color .3s;
}
.stage.in .player{
  opacity:1; transform:none;
  transition:opacity .7s ease .5s, transform .8s cubic-bezier(.16,1,.3,1) .5s,
             width .55s cubic-bezier(.16,1,.3,1), border-radius .45s ease,
             box-shadow .3s, border-color .3s;
}

.player:not(.open):hover{
  border-color:color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:var(--shadow), 0 0 26px -6px var(--accent);
}

.player.open{
  width:min(436px, calc(100vw - 36px));
  height:auto;
  border-radius:18px;
}

/* -- kapalı yüz -- */
.pl-mini{
  position:absolute; left:0; bottom:0;
  width:58px; height:58px;
  border:0; background:transparent; color:var(--ink-dim);
  cursor:pointer; display:grid; place-items:center;
  transition:opacity .22s ease, color .2s;
}
.pl-mini:hover{ color:#fff }
.pl-mini:focus-visible{ outline:2px solid var(--accent); outline-offset:-4px; border-radius:30px }
.player.open .pl-mini{ opacity:0; pointer-events:none }

.mini-note{
  width:22px; height:22px;
  fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round;
}
.mini-bars{ display:none; align-items:flex-end; gap:3px; height:20px }
.mini-bars i{
  width:3.5px; border-radius:2px; background:var(--pl, var(--accent-2));
  animation:eq .9s ease-in-out infinite;
}
.mini-bars i:nth-child(1){ animation-delay:0s;   height:55% }
.mini-bars i:nth-child(2){ animation-delay:.18s; height:90% }
.mini-bars i:nth-child(3){ animation-delay:.36s; height:68% }
.player.playing .pl-mini .mini-note{ display:none }
.player.playing .pl-mini .mini-bars{ display:flex }

/* -- açık gövde -- */
.pl-body{
  width:min(436px, calc(100vw - 36px));   /* baştan son genişlikte: açılırken içerik zıplamaz */
  padding:12px 14px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto auto;
  align-items:center; gap:12px;
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.player.open .pl-body{
  opacity:1; pointer-events:auto;
  transition:opacity .35s ease .16s;
}

/* kapak + eşitleyici çubukları */
.pl-art{ position:relative; width:52px; height:52px; flex:none }
.pl-art img{
  width:52px; height:52px; border-radius:11px; object-fit:cover; display:block;
  border:1px solid var(--stroke); background:var(--bg-soft);
}
.pl-bars{
  position:absolute; inset:0; border-radius:11px;
  display:none; align-items:flex-end; justify-content:center; gap:3px;
  padding:9px; background:rgba(5,5,10,.5);
}
.player.playing .pl-bars{ display:flex }
.pl-bars i{
  width:3px; border-radius:2px; background:var(--pl, var(--accent-2));
  animation:eq .9s ease-in-out infinite;
}
.pl-bars i:nth-child(1){ animation-delay:0s;    height:40% }
.pl-bars i:nth-child(2){ animation-delay:.18s;  height:75% }
.pl-bars i:nth-child(3){ animation-delay:.36s;  height:55% }
.pl-bars i:nth-child(4){ animation-delay:.54s;  height:85% }
@keyframes eq{ 0%,100%{ transform:scaleY(.35) } 50%{ transform:scaleY(1) } }

/* başlık */
.pl-meta{ min-width:0 }
.pl-title{
  font-size:.87rem; font-weight:600; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pl-artist{
  font-size:.72rem; color:var(--ink-faint);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pl-artist:empty{ display:none }

.pl-seek{ margin-top:5px }
.pl-times{
  display:flex; justify-content:space-between;
  font-family:var(--mono); font-size:.6rem; color:var(--ink-faint); margin-top:1px;
}

/* düğmeler */
.pl-ctrl{ display:flex; align-items:center; gap:2px }

.pbtn{
  width:34px; height:34px; border-radius:10px; flex:none;
  display:grid; place-items:center;
  background:transparent; border:1px solid transparent;
  color:var(--ink-dim); cursor:pointer;
  transition:color .2s, background .2s, border-color .2s, transform .2s;
}
.pbtn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9;
           stroke-linecap:round; stroke-linejoin:round }
.pbtn:hover{ color:#fff; background:var(--glass-2); border-color:var(--stroke) }
.pbtn:active{ transform:scale(.92) }
.pbtn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }

.pbtn.play{
  width:40px; height:40px; border-radius:50%;
  color:#0a0a10;
  background:linear-gradient(140deg, var(--pl, var(--accent-2)), var(--accent));
  box-shadow:0 6px 20px -6px var(--accent);
}
.pbtn.play svg{ width:17px; height:17px; fill:currentColor; stroke:none }
.pbtn.play:hover{ filter:brightness(1.12) }

.pbtn.small{ width:30px; height:30px }
.pbtn.small svg{ width:15px; height:15px }

.pbtn.on{ color:var(--pl, var(--accent-2)) }
.pbtn.on:hover{ color:var(--pl, var(--accent-2)) }

/* ses */
.pl-vol{ display:flex; align-items:center; gap:5px }
.pl-vol .range{ width:66px }

/* kaydırıcılar */
.range{
  -webkit-appearance:none; appearance:none;
  width:100%; height:16px; background:transparent; cursor:pointer; display:block; margin:0;
}
.range::-webkit-slider-runnable-track{
  height:4px; border-radius:4px;
  background:linear-gradient(90deg, var(--pl, var(--accent-2)) var(--fill,0%), rgba(255,255,255,.14) var(--fill,0%));
}
.range::-moz-range-track{ height:4px; border-radius:4px; background:rgba(255,255,255,.14) }
.range::-moz-range-progress{ height:4px; border-radius:4px; background:var(--pl, var(--accent-2)) }

.range::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:11px; height:11px; border-radius:50%; margin-top:-3.5px;
  background:#fff; border:none;
  box-shadow:0 0 0 3px rgba(34,211,238,.22);
  transition:transform .18s;
}
.range::-moz-range-thumb{
  width:11px; height:11px; border-radius:50%;
  background:#fff; border:none; box-shadow:0 0 0 3px rgba(34,211,238,.22);
}
.range:hover::-webkit-slider-thumb{ transform:scale(1.28) }
.range:focus-visible{ outline:none }
.range:focus-visible::-webkit-slider-thumb{ box-shadow:0 0 0 4px rgba(124,92,255,.5) }

/* çalma listesi */
.pl-list-btn{ grid-column:5 }

.pl-list{
  grid-column:1 / -1;
  margin:6px 0 2px; padding:8px 0 0;
  list-style:none;
  border-top:1px solid var(--stroke);
  max-height:186px; overflow-y:auto;
  scrollbar-width:thin; scrollbar-color:var(--stroke-2) transparent;
}
.pl-list::-webkit-scrollbar{ width:6px }
.pl-list::-webkit-scrollbar-thumb{ background:var(--stroke-2); border-radius:3px }

.pl-item{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:10px;
  font-size:.83rem; color:var(--ink-dim);
  cursor:pointer; transition:background .18s, color .18s;
}
.pl-item:hover{ background:var(--glass-2); color:var(--ink) }
.pl-item.on{ color:var(--accent-2); background:rgba(34,211,238,.09) }

.pl-num{
  font-family:var(--mono); font-size:.68rem; color:var(--ink-faint);
  width:18px; flex:none; text-align:right;
}
.pl-item.on .pl-num{ color:var(--accent-2) }

.pl-item-t{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pl-item-a{ font-size:.72rem; color:var(--ink-faint); margin-left:auto; flex:none }

/* ============================================================
   ziyaretçi sayacı (sağ alt)
   ============================================================ */

.hits{
  position:fixed; right:18px; bottom:18px; z-index:25;
  display:flex; align-items:center; gap:8px;
  padding:10px 15px; border-radius:999px;
  border:1px solid var(--stroke);
  background:linear-gradient(150deg, var(--glass-2), var(--glass));
  backdrop-filter:blur(20px) saturate(140%);
  font-family:var(--mono); font-size:.78rem; color:var(--ink-dim);
  opacity:0; transform:translateY(12px);
}
.stage.in .hits{
  opacity:1; transform:none;
  transition:opacity .7s ease .6s, transform .8s cubic-bezier(.16,1,.3,1) .6s;
}
.hits svg{
  width:15px; height:15px; flex:none;
  fill:none; stroke:var(--accent-2); stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}

/* ============================================================
   notlar — solda çark akışı, sağda defter kutusu
   ============================================================ */

/* -- çark: üstten saydam girer, ortada netleşir, saydamlaşıp aşağı iner -- */
.notes-stream{
  position:fixed; left:26px; top:50%; transform:translateY(-50%);
  z-index:24; width:242px; height:420px;
  pointer-events:none;
}

.note{
  position:absolute; left:0; right:0; top:50%;
  padding:12px 15px;
  border-radius:14px; border:1px solid var(--stroke);
  background:linear-gradient(160deg, var(--glass-2), var(--glass));
  backdrop-filter:blur(18px) saturate(130%);
  transition:transform 1.15s cubic-bezier(.33,1,.68,1), opacity 1.15s ease;
}
.note[data-slot="-1"]{ transform:translateY(calc(-50% - 190px)) scale(.9); opacity:0 }
.note[data-slot="0"] { transform:translateY(calc(-50% - 108px)) scale(.96); opacity:.35 }
.note[data-slot="1"] { transform:translateY(-50%); opacity:1 }
.note[data-slot="2"] { transform:translateY(calc(-50% + 108px)) scale(.96); opacity:.35 }
.note[data-slot="3"] { transform:translateY(calc(-50% + 190px)) scale(.9); opacity:0 }
.note.static{ transform:translateY(-50%); opacity:1 }

.note p{
  margin:0; font-size:.83rem; line-height:1.5; color:var(--ink);
  word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.note > span{
  display:block; margin-top:6px;
  font-size:.7rem; color:var(--accent-2);
}

/* -- defter kutusu: kapalıyken küçük kare, üzerine gelince form açılır -- */
.note-box{
  position:fixed; right:18px; top:50%; transform:translateY(-50%);
  z-index:26;
  width:54px; height:54px; border-radius:16px;
  border:1px solid var(--stroke);
  background:linear-gradient(150deg, var(--glass-2), var(--glass));
  backdrop-filter:blur(24px) saturate(140%);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  opacity:0;
  transition:width .5s cubic-bezier(.16,1,.3,1), height .3s ease,
             border-radius .4s ease, border-color .3s, box-shadow .3s;
}
.stage.in .note-box{
  opacity:1;
  transition:opacity .7s ease .8s,
             width .5s cubic-bezier(.16,1,.3,1), height .3s ease,
             border-radius .4s ease, border-color .3s, box-shadow .3s;
}
.note-box:not(.open):hover{
  border-color:color-mix(in srgb, var(--accent-2) 55%, transparent);
  box-shadow:var(--shadow), 0 0 24px -6px var(--accent-2);
}
.note-box.open{ width:268px; height:auto; border-radius:18px }

.nb-mini{
  position:absolute; right:0; top:0;
  width:54px; height:54px;
  border:0; background:transparent; color:var(--ink-dim);
  cursor:pointer; display:grid; place-items:center;
  transition:opacity .22s, color .2s;
}
.nb-mini:hover{ color:#fff }
.nb-mini svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round }
.note-box.open .nb-mini{ opacity:0; pointer-events:none }

.nb-body{
  width:268px; padding:15px;
  display:flex; flex-direction:column; gap:9px;
  opacity:0; pointer-events:none;
  transition:opacity .2s;
}
.note-box.open .nb-body{
  opacity:1; pointer-events:auto;
  transition:opacity .3s ease .14s;
}

.nb-body strong{
  font-size:.78rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-dim);
}
.nb-body textarea{
  font:inherit; font-size:.83rem; color:var(--ink);
  background:rgba(5,5,10,.45); border:1px solid var(--stroke);
  border-radius:9px; padding:8px 10px; width:100%; resize:none;
}
.nb-body textarea::placeholder{ color:var(--ink-faint) }
.nb-body textarea:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(124,92,255,.16);
}

.nb-row{ display:flex; align-items:center; justify-content:space-between; gap:8px }
.nb-count{ font-family:var(--mono); font-size:.66rem; color:var(--ink-faint) }
.nb-send{
  font:inherit; font-size:.8rem; font-weight:600;
  padding:7px 16px; border:0; border-radius:9px; cursor:pointer;
  color:#0a0a10;
  background:linear-gradient(135deg, var(--accent-2), var(--accent));
  transition:filter .18s, transform .12s;
}
.nb-send:hover{ filter:brightness(1.12) }
.nb-send:active{ transform:scale(.96) }
.nb-send[disabled]{ opacity:.5; cursor:not-allowed }
.nb-msg{ font-size:.72rem; color:var(--accent-2); min-height:1em }
.nb-msg.err{ color:#ff8fa3 }

/* giriş düğmeleri */
.nb-login{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:9px 12px; border-radius:10px;
  border:1px solid var(--stroke-2);
  font-size:.83rem; font-weight:500; color:var(--ink);
  text-decoration:none; background:rgba(255,255,255,.04);
  transition:background .18s, border-color .18s;
}
.nb-login:hover{ background:rgba(255,255,255,.09) }
.nb-login svg{ width:16px; height:16px; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round }
.nb-login svg [data-filled]{ fill:currentColor; stroke:none }
.nb-login.dc{ border-color:rgba(88,101,242,.45) }
.nb-login.dc:hover{ background:rgba(88,101,242,.16) }
.nb-login.gg{ border-color:rgba(234,67,53,.4) }
.nb-login.gg:hover{ background:rgba(234,67,53,.12) }

.nb-user{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:.74rem; color:var(--ink-faint);
}
.nb-user b{ color:var(--accent-2); font-weight:500 }
.nb-out{
  font:inherit; font-size:.72rem; color:var(--ink-faint);
  background:none; border:0; cursor:pointer; text-decoration:underline;
}
.nb-out:hover{ color:var(--ink) }

/* dar ekranda: akış gizlenir, defter kutusu dokunmayla açılır */
@media (max-width:1180px){
  .notes-stream{ display:none }
  .note-box{ top:auto; bottom:84px; transform:none }
  .stage.in .note-box{ transform:none }
}

/* ---------- küçük ekran ---------- */

@media (max-width:520px){
  .card{ padding:30px 22px 22px }
  .facts{ grid-template-columns:1fr; gap:3px 0; text-align:center }
  .facts dd{ margin-bottom:9px; max-width:none }

  .player{ left:12px; bottom:12px }
  .player.open{ width:calc(100vw - 24px) }
  .pl-body{
    width:calc(100vw - 24px);
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "art meta ctrl"
      "vol vol  list";
    gap:10px 12px;
  }
  .pl-art{ grid-area:art } .pl-meta{ grid-area:meta }
  .pl-ctrl{ grid-area:ctrl } .pl-vol{ grid-area:vol }
  .pl-list-btn{ grid-area:list; justify-self:end }
  .pl-vol .range{ width:100% }
  .pl-vol{ width:100% }
}

/* ---------- erişilebilirlik ---------- */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .bg-stars{ display:none }
}

::selection{ background:color-mix(in srgb, var(--accent) 45%, transparent); color:#fff }
