/* Oda ekranı — Spotify/YouTube Music/Meet karışımı: koyu, düz yüzeyler, tek vurgu rengi (yeşil), yuvarlak köşeler */
.room { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--room-bg); position: relative; isolation: isolate; }
/* Klip kapalıyken tüm odada yumuşakça akan, kapaktan türeyen arka plan */
.room::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: var(--art) center / cover; filter: blur(90px) saturate(1.5); opacity: .22; animation: roomFlow 40s ease-in-out infinite alternate; animation-play-state: paused; }
body.playing .room::before { animation-play-state: running; }
@keyframes roomFlow { to { transform: translate(4%, 3%) scale(1.15) rotate(6deg); } }

/* Üst çubuk */
.topbar { display: flex; align-items: center; gap: .8rem; padding: calc(.7rem + env(safe-area-inset-top)) 1rem .5rem; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; width: 32px; height: 32px; padding: 8px 7px; border-radius: 9px; background: var(--accent); flex: none; }
.mark b { flex: 1; height: 100%; border-radius: 2px; background: var(--accent-ink); transform-origin: bottom; animation: eq 1.2s ease-in-out infinite paused; }
.mark b:nth-child(2) { animation-delay: -.4s; } .mark b:nth-child(3) { animation-delay: -.8s; }
body.playing .mark b { animation-play-state: running; }
.room-title { font-size: 1.05rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sp { flex: 1; }
.chip.code { cursor: pointer; font-weight: 700; letter-spacing: .14em; transition: background .15s, transform .2s var(--spring); }
.chip.code:hover { background: var(--hover); transform: scale(1.04); }
.chip .icon { width: 1em; height: 1em; opacity: .7; }
.themewrap { position: relative; display: inline-flex; }
.themepop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 250px; padding: 1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: grid; gap: .6rem; animation: trayIn .25s var(--spring); text-align: left; }
.themepop h4 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; background: var(--raised); border-radius: 99px; }
.seg button { padding: .4rem 0; border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.dots { display: flex; gap: .55rem; flex-wrap: wrap; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); transition: transform .2s var(--spring), box-shadow .2s; }
.dot:hover { transform: scale(1.18); } .dot.on { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--c); }
.lobby-theme { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 60; }
.reco-h { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.reco-h h4 { font-size: 1.05rem; } .reco-h small { color: var(--dim); }
.hint { color: var(--dim); font-size: .8rem; padding: .3rem .2rem; }
.stack { display: flex; } .stack .avatar { margin-left: -8px; border: 2px solid var(--room-bg); } .stack .avatar:first-child { margin-left: 0; }
.count { font-size: .85rem; color: var(--muted); }

/* Gövde: solda sahne, sağda sabit panel */
.body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: .6rem; padding: 0 .6rem .6rem; min-height: 0; }
.left { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .6rem; min-height: 0; min-width: 0; }

/* Sahne */
.stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); display: grid; place-items: center; min-height: 200px; isolation: isolate; }
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ambient i { position: absolute; width: 75%; height: 75%; border-radius: 50%; background: var(--art) center / cover; filter: blur(55px) saturate(1.7); opacity: .55; animation: flowA 20s ease-in-out infinite alternate; animation-play-state: paused; will-change: transform; }
.ambient i:nth-child(1) { left: -12%; top: -18%; }
.ambient i:nth-child(2) { right: -18%; bottom: -24%; animation-name: flowB; animation-duration: 27s; }
.ambient i:nth-child(3) { left: 25%; top: 22%; width: 50%; height: 50%; opacity: .4; animation-duration: 33s; }
.stage.is-playing .ambient i { animation-play-state: running; }
@keyframes flowA { to { transform: translate(24%, 16%) scale(1.3) rotate(28deg); } }
@keyframes flowB { to { transform: translate(-26%, -14%) scale(1.25) rotate(-32deg); } }
/* yumuşak dalga: klip kapalıyken sahnenin altında akar */
.flow { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; display: flex; align-items: flex-end; gap: 3px; padding: 0 10px; z-index: 0; pointer-events: none; opacity: .0; transition: opacity .6s; mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent); }
.flow i { flex: 1; min-width: 2px; height: 100%; border-radius: 3px 3px 0 0; background: var(--accent); transform-origin: bottom; animation: wave var(--d, 2.4s) ease-in-out infinite; animation-delay: var(--w, 0s); transform: scaleY(.08); animation-play-state: paused; }
.stage.is-playing .flow { opacity: .5; } .stage.is-playing .flow i { animation-play-state: running; } .stage.klip .flow { opacity: 0; }
@keyframes wave { 0%, 100% { transform: scaleY(.08); } 50% { transform: scaleY(var(--h, .6)); } }
.cover { position: relative; height: min(100%, 520px); aspect-ratio: 1; max-width: 86%; margin: auto; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: transform .5s var(--spring), opacity .4s; }
.stage.is-playing .cover { transform: scale(1.015); }
.cover-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); background: var(--raised); }
.cover-eq { position: absolute; left: 12px; bottom: 12px; padding: 7px 9px; border-radius: 8px; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.stage.is-playing .cover-eq { opacity: 1; }
.screen { position: absolute; inset: 0; background: #000; opacity: 0; visibility: hidden; transition: opacity .35s; z-index: 1; }
.screen iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.stage.klip .screen { opacity: 1; visibility: visible; }
.stage.klip .cover { opacity: 0; }
/* klip kapalıyken iframe yine yüklü kalır (ses akar); sadece görünmez */
.klipbtn { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(8px); font-weight: 600; font-size: .85rem; transition: background .15s, transform .2s var(--spring); }
.klipbtn:hover { background: #fff; color: #000; transform: scale(1.05); }
.empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 1rem; background: var(--panel); }
.empty h2 { font-size: 1.6rem; } .empty p { color: var(--muted); max-width: 30ch; }
.gesture { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 5; animation: pulseGlow 1.6s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 12px transparent, 0 0 40px var(--accent); } }

/* Kutucuklar (Meet) */
.tiles { display: flex; gap: .5rem; overflow-x: auto; padding: 2px; scrollbar-width: thin; min-height: 0; }
.tile { position: relative; flex: none; width: 128px; border-radius: 12px; padding: .8rem .5rem .5rem; background: var(--panel); display: grid; justify-items: center; gap: .4rem; border: 2px solid transparent; transition: transform .3s var(--spring), border-color .25s, opacity .3s; }
.tile.enter { animation: tileIn .5s var(--spring) both; } .tile.leaving { opacity: 0; transform: scale(.85); } .tile.pop { animation: pop .45s var(--spring); }
.tile.off { opacity: .45; } .tile.pending { border-style: dashed; border-color: var(--dim); opacity: .6; }
.tile.live { border-color: hsl(var(--h) 75% 58%); }
.tile.live .face .avatar { animation: beat 1.1s ease-in-out infinite; }
@keyframes tileIn { from { opacity: 0; transform: scale(.6); } } @keyframes pop { 40% { transform: scale(1.12) rotate(-2deg); } } @keyframes beat { 50% { transform: scale(1.07); } }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; opacity: 0; transition: opacity .3s; position: absolute; top: 8px; right: 8px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: hsl(var(--h) 75% 62%); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.tile.live .eq { opacity: 1; }
.label { display: flex; align-items: center; gap: .3rem; max-width: 100%; font-size: .8rem; font-weight: 500; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crown { display: none; color: #fbbf24; } .tile.owner .crown { display: inline-flex; } .crown .icon { width: 13px; height: 13px; }

/* Sağ panel (YouTube Music) */
.side { display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--panel); border-radius: var(--r); overflow: hidden; min-height: 0; }
.tabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 .4rem; }
.tab { position: relative; flex: 1; padding: .95rem .4rem; font-weight: 600; font-size: .86rem; color: var(--muted); transition: color .15s; }
.tab:hover { color: var(--text); } .tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); animation: grow .3s var(--spring); }
@keyframes grow { from { transform: scaleX(0); } }
.sheet-x { display: none; }
.side-body { overflow-y: auto; padding: .6rem .8rem 1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 0; scrollbar-width: thin; }
.muted { color: var(--muted); } .pad { padding: 1rem .3rem; } .small { font-size: .82rem; }
.qhead { display: flex; align-items: center; justify-content: space-between; } .qhead h3 { font-size: 1.15rem; }
.sec { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .9rem; }
.qlist { list-style: none; padding: 0; display: grid; gap: 2px; }
.q { display: flex; align-items: center; gap: .2rem; border-radius: 8px; animation: fadeUp .3s var(--ease) both; }
.q.now { background: var(--raised); } .q.now .meta b { color: var(--accent); }
.qmain, .res { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; padding: .4rem .5rem; border-radius: 8px; text-align: left; transition: background .15s; }
.qmain:hover:not([disabled]) { background: var(--raised); }
.qn { width: 18px; text-align: center; color: var(--dim); font-size: .85rem; flex: none; display: grid; place-items: center; }
.qmain img, .res img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--raised); }
.meta { display: grid; min-width: 0; flex: 1; }
.meta b { font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta small, .dur { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res:hover { background: var(--raised); }
.mini { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; color: var(--muted); flex: none; transition: background .15s, color .15s, transform .2s var(--spring); }
.mini:hover { background: var(--hover); color: var(--text); transform: scale(1.1); }
.mini.add { border: 1px solid var(--line-strong); color: var(--text); } .mini.add.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mini[disabled] { opacity: .4; pointer-events: none; }
.results { display: grid; gap: 2px; }
.chat-body { padding-bottom: .6rem; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 100px; }
.msg { display: flex; gap: .5rem; align-items: flex-end; max-width: 88%; animation: fadeUp .3s var(--ease) both; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--raised); padding: .45rem .8rem; border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }
.bubble small { color: var(--muted); font-size: .72rem; display: block; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding-top: .5rem; }
.person-card { background: var(--bg); border-radius: 10px; padding: .45rem .6rem; display: grid; gap: .4rem; }
.person-card.off { opacity: .5; }
.person { display: flex; align-items: center; gap: .6rem; }
.pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { margin-left: .4rem; font-size: .68rem; color: #fbbf24; border: 1px solid currentColor; padding: 0 .4rem; border-radius: 99px; }
.perms { display: flex; flex-wrap: wrap; gap: .3rem; }
.perm { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--raised); color: var(--dim); transition: background .15s, color .15s, transform .2s var(--spring); }
.perm .icon { width: 12px; height: 12px; }
.perm.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.perm.ovr { box-shadow: inset 0 0 0 1px currentColor; }
.perm:not([disabled]):hover { transform: scale(1.06); } .perm[disabled] { cursor: default; }
.danger-t { color: var(--danger) !important; }

/* Oynatıcı çubuğu (Spotify) */
.player { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1.4fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--room-bg); }
.np { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.mini-art { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--raised); flex: none; }
.np-text { display: grid; min-width: 0; } .np-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.np-artist { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transport { display: grid; gap: .45rem; justify-items: center; }
.ctl { display: flex; align-items: center; gap: .8rem; }
.pbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, transform .2s var(--spring); }
.pbtn:hover:not([disabled]) { color: var(--text); transform: scale(1.12); } .pbtn[disabled] { opacity: .35; }
.pbtn.big { width: 42px; height: 42px; background: var(--fg); color: var(--on-fg); } .pbtn.big:hover:not([disabled]) { color: var(--on-fg); transform: scale(1.08); background: var(--fg); }
.pbtn.big .icon { width: 22px; height: 22px; }
.prog { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; width: 100%; max-width: 560px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 4px; border-radius: 4px; background: var(--track); cursor: pointer; touch-action: none; }
.bar::before { content: ""; position: absolute; inset: -10px 0; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--fg); transition: width .2s linear; }
.bar:hover i { background: var(--accent); }
.bar b { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); translate: -50% -50%; opacity: 0; transition: opacity .15s; }
.bar:hover b { opacity: 1; } .bar.locked { cursor: default; } .bar.locked b { display: none; } .bar.locked:hover i { background: var(--fg); }
.right { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.rbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, transform .2s var(--spring); }
.rbtn:hover { color: var(--text); transform: scale(1.12); }
.vol { width: 92px; accent-color: var(--accent); }
.leave { height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--danger); display: grid; place-items: center; transition: transform .2s var(--spring), filter .15s; }
.leave:hover { transform: scale(1.06); filter: brightness(1.1); } .leave:active { transform: scale(.94); }
.bottomnav { display: none; }
.tray { position: absolute; bottom: calc(100% + 8px); right: 1rem; display: flex; gap: .15rem; padding: .35rem; border-radius: 99px; background: var(--raised); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); animation: trayIn .3s var(--spring); z-index: 40; }
@keyframes trayIn { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.emo { width: 42px; height: 42px; font-size: 1.4rem; border-radius: 50%; transition: transform .2s var(--spring); } .emo:hover { transform: scale(1.3) translateY(-3px); }
.badge { position: absolute; top: 6px; right: 8%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 .65rem/16px var(--font); text-align: center; font-style: normal; }
.center-card { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; padding: 1rem; background: var(--bg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* Dar ekran: panel alttan açılan sayfa olur, YouTube Music gibi alt gezinme çıkar */
@media (max-width: 900px) {
    .body { grid-template-columns: 1fr; padding: 0 .5rem .5rem; }
    .stage { min-height: 0; } .cover { height: min(100%, 60vw); max-width: 70%; }
    .tile { width: 92px; padding: .55rem .3rem .4rem; } .tile .avatar { width: 48px !important; font-size: 25px !important; }
    .side { position: fixed; left: 0; right: 0; bottom: 0; height: 72dvh; z-index: 50; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .4s var(--spring); box-shadow: 0 -20px 60px rgba(0, 0, 0, .7); }
    .sheet-open .side { transform: none; }
    .sheet-x { display: inline-grid; }
    .player { grid-template-columns: 1fr; gap: .5rem; padding-top: .6rem; }
    .np { order: 1; padding-right: 7.5rem; } .transport { order: 2; } .right { position: absolute; top: .6rem; right: 1rem; gap: .3rem; } .right .vol, .right .rbtn[aria-label='Sesi kapat'] { display: none; }
    .ctl { gap: 1.4rem; } .prog { max-width: none; }
    .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); order: 3; border-top: 1px solid var(--line); margin: 0 -1rem; padding-top: .3rem; }
    .nav { position: relative; display: grid; justify-items: center; gap: 1px; padding: .35rem 0; font-size: .66rem; color: var(--muted); }
    .nav.on { color: var(--text); } .nav .icon { width: 22px; height: 22px; }
    .player::after { content: ""; }
    .leave { height: 34px; padding: 0 .8rem; }
    .tray { right: .5rem; bottom: calc(100% + 4px); }
    .badge { top: 0; right: 28%; }
    .topbar .count { display: none; }
}
@media (max-width: 420px) { .chip.code span { letter-spacing: .08em; } .room-title { font-size: .95rem; } }

/* Motorlar: YouTube tam sahneyi doldurur, SoundCloud görünmez küçük çerçevede çalışır */
.screen .eng { position: absolute; inset: 0; }
.screen .eng-sc { inset: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.sc-frame { width: 300px; height: 120px; border: 0; }

/* Kaynak seçici */
.srcs { display: flex; gap: .4rem; }
.src { padding: .35rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--raised); color: var(--muted); transition: background .15s, color .15s; }
.src:hover { color: var(--text); } .src.on { background: var(--accent); color: var(--accent-ink); }

/* Şarkı sözleri: panelde karaoke akışı + sahnede canlı satır */
.lyr { display: grid; gap: .35rem; padding: 35% 0; }
.ln { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--dim); cursor: default; padding: .15rem .2rem; border-radius: 8px; transition: color .35s, transform .35s var(--spring), opacity .35s; transform-origin: left center; opacity: .7; }
.ln:hover { color: var(--muted); }
.ln.cur { color: var(--text); transform: scale(1.06); opacity: 1; }
.plain { white-space: pre-wrap; font: inherit; color: var(--muted); line-height: 1.6; padding: .4rem .2rem 2rem; }
.liveline { position: absolute; left: 0; right: 0; bottom: 38px; z-index: 2; display: grid; place-items: center; padding: 0 5%; pointer-events: none; opacity: 0; transition: opacity .4s; }
.liveline.on { opacity: 1; }
.liveline p { max-width: 90%; text-align: center; font-size: clamp(1.05rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; padding: .35rem .9rem; border-radius: 12px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); color: #fff; }
.liveline p.swap { animation: lineIn .45s var(--spring); }
@keyframes lineIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.stage.klip .liveline { bottom: 64px; }
/* Dil seçici (tema paneli içinde) */
.seg.langs { grid-template-columns: repeat(3, 1fr); border-radius: 14px; }
.seg.langs button { border-radius: 11px; font-size: .78rem; padding: .45rem 0; }

/* ───────── Mobil: sade, modern, tek elle kullanım ───────── */
@media (max-width: 900px) {
    .room { background: var(--room-bg); }
    .room::before { opacity: .42; filter: blur(70px) saturate(1.7); inset: -20%; }
    .topbar { padding: calc(.55rem + env(safe-area-inset-top)) 1rem .2rem; gap: .5rem; }
    .topbar .mark, .stack, .count { display: none; }
    .room-title { font-size: 1.02rem; flex: 0 1 auto; }
    .chip.code { padding: .22rem .6rem; font-size: .74rem; background: transparent; border: 1px solid var(--line-strong); }
    .themebtn { width: 34px; height: 34px; }

    .body { padding: 0 1rem; gap: .5rem; grid-template-rows: minmax(0, 1fr); }
    .left { gap: .35rem; }
    .stage { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; min-height: 0; }
    .ambient, .flow { display: none; }
    .cover { height: min(100%, 82vw); max-width: 100%; border-radius: 20px; box-shadow: 0 28px 60px -18px rgba(0, 0, 0, .65); }
    .screen { border-radius: 20px; overflow: hidden; }
    .klipbtn { right: 8px; bottom: 8px; padding: .5rem; } .klipbtn span { display: none; }
    .liveline { bottom: 4px; } .liveline p { font-size: 1rem; max-width: 100%; }
    .empty { border-radius: 20px; }

    /* kutucuklar: yalnızca yuvarlak avatarlar, çalarken halka */
    .tiles { gap: .55rem; padding: 4px 2px; justify-content: center; }
    .tile { width: auto; padding: 0; background: none; border: 0; gap: 0; border-radius: 0; }
    .tile .avatar { width: 40px !important; font-size: 21px !important; }
    .tile .label, .tile .eq { display: none; }
    .tile.live .face .avatar { box-shadow: 0 0 0 2px var(--room-bg), 0 0 0 4px var(--accent); animation: none; }
    .tile.pending { border: 0; }

    /* oynatıcı: şeffaf, büyük başlık, tek satır ilerleme */
    .player { background: transparent; grid-template-columns: 1fr; gap: .35rem; padding: .3rem 1.1rem calc(.35rem + env(safe-area-inset-bottom)); }
    .np { order: 1; padding-right: 5.6rem; gap: .75rem; }
    .mini-art { display: none; }
    .np-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
    .np-artist { font-size: .92rem; }
    .right { top: .3rem; right: 1rem; gap: .35rem; }
    .rbtn { width: 38px; height: 38px; background: var(--raised); }
    .leave { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
    .transport { order: 2; gap: .1rem; }
    .prog { order: 1; max-width: none; }
    .ctl { order: 2; gap: 1.6rem; }
    .pbtn { width: 46px; height: 46px; }
    .pbtn.big { width: 62px; height: 62px; } .pbtn.big .icon { width: 30px; height: 30px; }
    .bar { height: 5px; } .bar b { opacity: 1; width: 13px; height: 13px; }
    .bottomnav { order: 3; margin: .15rem -1.1rem 0; padding: .1rem .6rem 0; border-top: 0; background: transparent; }
    .nav { padding: .45rem 0 .3rem; gap: 0; font-size: .62rem; min-height: 48px; justify-content: center; align-content: center; }
    .nav span { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .2s, max-height .2s; }
    .nav.on span { opacity: 1; max-height: 14px; }
    .nav .icon { width: 24px; height: 24px; }
    .nav.on .icon { color: var(--accent); }
    .badge { top: 4px; right: 26%; }

    /* panel: alttan açılan cam sayfa */
    .side { height: 76dvh; border-radius: 26px 26px 0 0; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(24px); border: 0; }
    .side::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); z-index: 2; }
    .tabs { padding-top: 14px; }
    .sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 45; animation: fade .3s; }
    @keyframes fade { from { opacity: 0; } }
    .field { font-size: 16px; }
    .mini { width: 40px; height: 40px; }
    .qmain, .res { padding: .5rem; }
    .toast { font-size: .85rem; } #toasts { bottom: auto; top: calc(56px + env(safe-area-inset-top)); }
    .float { bottom: 150px; }
    .lobby { padding: 1rem; gap: 1.2rem; } .lobby .perks { display: none; }
    .wordmark { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* Yatay telefon: sahne solda tam boy, oynatıcı sağda sütun */
@media (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
    .room { grid-template-columns: minmax(0, 1fr) minmax(250px, 34%); grid-template-rows: auto minmax(0, 1fr); }
    .topbar { grid-column: 1 / -1; padding-top: calc(.3rem + env(safe-area-inset-top)); }
    .body { grid-column: 1; grid-row: 2; padding: 0 0 .5rem 1rem; }
    .left { grid-template-rows: minmax(0, 1fr); } .tiles { display: none; }
    .cover { height: min(100%, 100%); max-width: none; aspect-ratio: 1; }
    .player { grid-column: 2; grid-row: 2; align-content: center; align-self: stretch; gap: .6rem; padding: 0 1rem .5rem; }
    .np { padding-right: 0; } .right { position: static; justify-content: flex-start; order: 4; }
    .bottomnav { order: 5; margin: 0; } .nav span { display: none; }
    .side { height: calc(100dvh - 20px); left: auto; right: 8px; bottom: 10px; width: min(380px, 60vw); border-radius: 22px; }
    .side::before { display: none; } .tabs { padding-top: 0; }
    .sheet-open::after { display: none; }
    .pbtn.big { width: 52px; height: 52px; }
}

/* ───────── Akan arka plan: renkler yavaşça gezinir ───────── */
.room::before { display: none; }
.bgflow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgflow i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform;
    background: var(--art, none) center / cover, radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%);
    filter: blur(80px) saturate(1.6); opacity: .34; animation: bgA 38s ease-in-out infinite alternate; }
.bgflow i:nth-child(1) { left: -22vmax; top: -26vmax; }
.bgflow i:nth-child(2) { right: -26vmax; bottom: -30vmax; animation-name: bgB; animation-duration: 47s; opacity: .3;
    background: var(--art, none) center / cover, radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 68%); }
.bgflow i:nth-child(3) { left: 30%; top: 28%; width: 46vmax; height: 46vmax; animation-name: bgC; animation-duration: 59s; opacity: .22; }
@keyframes bgA { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 100% { transform: translate(24vmax, 18vmax) rotate(40deg) scale(1.25); } }
@keyframes bgB { 0% { transform: translate(0, 0) rotate(0deg) scale(1.1); } 100% { transform: translate(-26vmax, -16vmax) rotate(-45deg) scale(.9); } }
@keyframes bgC { 0% { transform: translate(-10vmax, 6vmax) scale(.9); } 100% { transform: translate(14vmax, -12vmax) scale(1.3) rotate(60deg); } }
.stage .ambient { display: none; }
.stage { background: color-mix(in srgb, var(--panel) 55%, transparent); backdrop-filter: blur(6px); }

/* ───────── Hafif zenginlik: gradyan ve parıltı ───────── */
.mark, .logo-row .mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.wordmark em { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar:hover i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); filter: brightness(1.15); }
.bar.locked:hover i { filter: none; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.flow i { background: linear-gradient(to top, var(--accent), var(--accent-2)); }
.tab.on::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }
.q.now { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--raised)), color-mix(in srgb, var(--accent-2) 8%, var(--raised))); }
.side { background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line); }
.src.on, .seg button.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.sw.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.cover { box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 90px -28px var(--accent); }
.stage.is-playing .cover { box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 110px -20px var(--accent); }
body.playing .pbtn.big { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent), 0 8px 26px -8px var(--accent); animation: playPulse 2.4s ease-in-out infinite; }
@keyframes playPulse { 50% { box-shadow: 0 0 0 9px transparent, 0 8px 30px -6px var(--accent); } }
.tile.live { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 26px -10px var(--accent); }
.chip.code:hover { box-shadow: 0 0 0 1px var(--accent) inset; }
.mini.add.done { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.perm.on { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* ───────── Tepki tepsisi: istediğin emoji ───────── */
.tray { flex-direction: column; align-items: stretch; border-radius: 22px; padding: .4rem; gap: .35rem; max-width: min(94vw, 420px); }
.emo-row { display: flex; gap: .1rem; flex-wrap: wrap; justify-content: center; }
.emo.plus { color: var(--muted); border: 1px dashed var(--line-strong); font-size: 1rem; display: inline-grid; place-items: center; }
.emo.plus:hover { color: var(--text); }
.emo-more { display: grid; gap: .5rem; padding: .3rem .3rem .2rem; border-top: 1px solid var(--line); }
.emo-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.emo.sm { width: auto; height: 34px; font-size: 1.15rem; }
.emo-free { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.emo-free .field { padding: .55rem .8rem; font-size: 16px; }

/* ───────── Sohbet önizleme: panel kapalıyken mesajın başı görünür ───────── */
.peek { position: absolute; right: 14px; bottom: 96px; z-index: 40; display: grid; gap: .4rem; justify-items: end; pointer-events: none; max-width: min(340px, 86vw); }
.peek-item { pointer-events: auto; display: flex; align-items: center; gap: .55rem; padding: .45rem .8rem .45rem .5rem; border-radius: 16px 16px 4px 16px; text-align: left; max-width: 100%;
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .55); animation: peekIn .45s var(--spring); }
.peek-item.out { animation: peekOut .3s var(--ease) forwards; }
.pk { display: grid; min-width: 0; font-size: .86rem; line-height: 1.25; }
.pk b { font-size: .74rem; color: var(--accent); }
.pk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
@keyframes peekIn { from { opacity: 0; transform: translateX(26px) scale(.92); } }
@keyframes peekOut { to { opacity: 0; transform: translateY(8px) scale(.95); } }
@media (max-width: 900px) { .peek { right: 12px; left: 12px; bottom: auto; top: calc(54px + env(safe-area-inset-top)); justify-items: stretch; } .pk span { max-width: none; } }

/* ───────── Ortak arama akışı ───────── */
.feed { display: grid; gap: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.feedchip { cursor: pointer; padding: .25rem .7rem .25rem .3rem; transition: transform .2s var(--spring), background .15s; animation: chipIn .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); max-width: 100%; }
.feedchip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.feedchip small { color: var(--accent); font-weight: 700; font-size: .65rem; }
.feedchip:hover { transform: translateY(-2px) scale(1.04); background: var(--hover); }
.feedchip.mine { border-style: dashed; }
.feedchip.fresh { box-shadow: 0 0 0 2px var(--accent), 0 0 22px -4px var(--accent); animation: chipIn .5s var(--spring) both, freshGlow 2.4s ease-out; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.8); } }
@keyframes freshGlow { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px 2px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent, 0 0 0 transparent; } }
.chip.typing { padding-left: .3rem; color: var(--muted); animation: chipIn .4s var(--spring); }
.dots { display: inline-flex; gap: 3px; align-items: flex-end; height: 10px; }
.dots b { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: dotBounce 1s ease-in-out infinite; }
.dots b:nth-child(2) { animation-delay: .15s; } .dots b:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ───────── Sözler: sahnede önizleme düğmesi ve ince ayar ───────── */
.lyrbtn { right: auto; left: 12px; }
.klipbtn.off { opacity: .6; }
.klipbtn[aria-pressed="true"]:not(.off) { background: color-mix(in srgb, var(--accent) 80%, #000); color: var(--accent-ink); }
.lyr-tools { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .2rem 0 .5rem; position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--panel) 94%, transparent); }
.lyr-tools .off { min-width: 5.5rem; text-align: center; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lyr { padding-top: 20%; }

/* ───────── Tema paneli: renk takımları ───────── */
.themepop { width: min(316px, 92vw); max-height: min(78vh, 600px); overflow-y: auto; scrollbar-width: thin; }
.themepop h5 { font-size: .7rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }
.pals { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.pal { display: grid; gap: .4rem; padding: .45rem; border-radius: 12px; background: var(--raised); border: 2px solid transparent; text-align: left; transition: transform .2s var(--spring), border-color .15s; }
.pal:hover { transform: translateY(-2px); }
.pal.on { border-color: var(--accent); }
.pn2 { font-size: .8rem; font-weight: 600; padding: 0 .15rem; }
.swatch { position: relative; display: block; height: 44px; border-radius: 8px; overflow: hidden; background: var(--a); }
.swatch i:nth-child(1) { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 18px; border-radius: 5px; background: var(--b); }
.swatch i:nth-child(2) { position: absolute; left: 12px; bottom: 12px; width: 34%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c), var(--d)); }
.swatch b { position: absolute; right: 7px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, var(--c), var(--d)); box-shadow: 0 0 12px -2px var(--c); }

@media (min-width: 901px) { .peek { right: auto; left: 18px; bottom: 100px; justify-items: start; } .peek-item { border-radius: 16px 16px 16px 4px; } }

/* Sağ paneli gizle (yalnızca geniş ekran) */
.sidebtn.off { opacity: .55; }
@media (min-width: 901px) {
    .room.side-hidden .body { grid-template-columns: minmax(0, 1fr); }
    .room.side-hidden .side { display: none; }
}
@media (max-width: 900px) { .sidebtn { display: none; } }
