/* ============ PERDE — sinema teması ============ */
:root {
  color-scheme: dark;
  --bg: #0b0708;
  --bg2: #120b0d;
  --card: #170e11;
  --card2: #22151a;
  --line: #3a2328;
  --line-soft: #2a191d;
  --text: #f4ece4;
  --muted: #a8968f;
  --red: #b3121f;
  --red-2: #e50914;
  --velvet-1: #5c0a14;
  --velvet-2: #8f1422;
  --velvet-3: #2c0409;
  --gold: #f2c46d;
  --gold-2: #d39a3a;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1000px 520px at 50% -180px, rgba(179, 18, 31, .32), transparent 70%),
    radial-gradient(800px 600px at 100% 100%, rgba(242, 196, 109, .06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
code { font-family: ui-monospace, Consolas, monospace; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }

/* Film greni */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Gren sabit ve hafif; video sayfalarında hiç yok (videonun üstünde katman kasmaya yol açar) */
.room-page .grain { display: none; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---- Butonlar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .18s, border-color .18s, transform .08s, box-shadow .18s, filter .18s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #2e1c22; border-color: #55333a; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(180deg, #ffd88a, var(--gold) 45%, var(--gold-2));
  color: #2a1606; border-color: #f7d48f; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 6px 22px rgba(242, 196, 109, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { background: linear-gradient(180deg, #ffe3a8, #f7cf80 45%, #e0a84a); border-color: #ffe0a0; box-shadow: 0 8px 28px rgba(242, 196, 109, .35); }
.btn-red { background: linear-gradient(180deg, var(--red-2), var(--red)); border-color: #ff3b46; color: #fff; box-shadow: 0 6px 20px rgba(229, 9, 20, .25); }
.btn-red:hover { background: linear-gradient(180deg, #ff1f2b, #c8141f); border-color: #ff5a63; }
.btn-danger { background: rgba(229, 9, 20, .14); border-color: rgba(229, 9, 20, .5); color: #ffc2c5; }
.btn-danger:hover { background: rgba(229, 9, 20, .26); border-color: rgba(229, 9, 20, .7); }
.btn-warn { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .5); color: #fde3a6; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 20px; font-size: 16px; border-radius: 12px; }
.wide { width: 100%; }

.icon-btn {
  border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-content: center; font-size: 14px;
  transition: background .15s, border-color .15s, transform .1s;
}
.icon-btn:hover { background: var(--card2); border-color: var(--line); transform: scale(1.08); }
.icon-btn.danger:hover { background: rgba(229, 9, 20, .2); border-color: rgba(229, 9, 20, .5); }

input, select {
  font: inherit; color: var(--text); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(242, 196, 109, .18); }
input:disabled, select:disabled { opacity: .5; }
input[type=range] { padding: 0; accent-color: var(--gold); background: none; border: 0; box-shadow: none; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field > span { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.field.inline { grid-template-columns: 1fr auto; align-items: center; }
.field.inline > span { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--text); }

.pill { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--card2); color: var(--muted); font-size: 12px; text-align: center; }
.pill:empty { display: none; }
.pill.hot { background: var(--red-2); color: #fff; }

/* Anahtar (switch) */
.switch { display: flex; align-items: center; gap: 10px; margin: 12px 0; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .slider { width: 40px; height: 22px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); position: relative; flex: none; transition: background .2s; }
.switch .slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.switch input:checked + .slider { background: rgba(242, 196, 109, .25); border-color: var(--gold-2); }
.switch input:checked + .slider::after { transform: translateX(18px); background: var(--gold); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(242, 196, 109, .3); }
.switch input:disabled + .slider { opacity: .5; }

/* ---- Üst bar ---- */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  border-bottom: 1px solid var(--line-soft); background: rgba(11, 7, 8, .97);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--display); font-size: 30px; letter-spacing: .14em; color: var(--gold); text-shadow: 0 0 18px rgba(242, 196, 109, .35); line-height: 1; padding-top: 3px; }
.brand img { filter: drop-shadow(0 0 8px rgba(229, 9, 20, .5)); }
.room-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ticket {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; min-width: 0;
  border: 1px dashed rgba(242, 196, 109, .45); border-radius: 8px; background: rgba(242, 196, 109, .06);
}
.ticket small { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.ticket code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; }
.crown { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-6deg); } }
.conn { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.conn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: blink 1.6s infinite; }
.conn.ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.user-chip { display: flex; align-items: center; gap: 8px; }

/* ---- Salon yerleşimi ---- */
.room {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px;
  padding: 16px 20px; height: calc(100vh - 59px);
}
.stage-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }

.stage {
  position: relative; flex: 1; min-height: 260px; background: #000; overflow: hidden;
  border-radius: 10px; border: 2px solid #4a2a1c;
  box-shadow: 0 0 0 6px #1a0d0a, 0 0 0 7px rgba(242, 196, 109, .25), var(--shadow), 0 0 120px rgba(229, 9, 20, .12);
}
.view, .fill { position: absolute; inset: 0; width: 100%; height: 100%; }
#ytWrap iframe { width: 100%; height: 100%; border: 0; display: block; }
video.fill { object-fit: contain; background: #000; }
video::cue { background: rgba(0, 0, 0, .72); color: #fff; font-family: var(--sans); font-size: 1.05em; line-height: 1.35; }

/* Kadife perdeler */
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 4; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 8%, transparent 92%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(90deg, var(--velvet-3) 0, var(--velvet-1) 18px, var(--velvet-2) 34px, var(--velvet-1) 50px, var(--velvet-3) 66px);
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .5);
  transition: transform 1.6s cubic-bezier(.7, 0, .2, 1);
}
.curtain::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.curtain.left { left: 0; transform-origin: left; border-right: 2px solid rgba(0, 0, 0, .4); }
.curtain.right { right: 0; transform-origin: right; border-left: 2px solid rgba(0, 0, 0, .4); }
.stage.open .curtain.left { transform: translateX(-94%) scaleX(.9); }
.stage.open .curtain.right { transform: translateX(94%) scaleX(.9); }
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 5; pointer-events: none;
  background:
    radial-gradient(28px 22px at 28px 0, var(--velvet-2) 70%, transparent 72%) 0 0 / 56px 26px repeat-x,
    linear-gradient(var(--velvet-1), var(--velvet-3));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
  transition: transform 1.2s .4s ease;
}
.valance::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2)); opacity: .8; }
.stage.open .valance { transform: translateY(-14px); }

/* Kayan ampuller: arka plan konumu yerine transform ile kaydırılır (yeniden çizim yok, sadece GPU) */
.marquee-lights {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 6; pointer-events: none; opacity: .9; overflow: hidden;
}
.marquee-lights::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -16px; right: 0;
  background: radial-gradient(circle, #ffe2a0 1.6px, transparent 2.4px) 0 50% / 16px 6px repeat-x;
  animation: chaseT 1s linear infinite; will-change: transform;
}
.stage.open .marquee-lights { display: none; }
@keyframes chaseT { to { transform: translateX(16px); } }

.empty {
  position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; text-align: center; padding: 24px;
}
.empty-inner {
  display: grid; gap: 12px; justify-items: center; max-width: 520px; padding: 26px 28px; border-radius: 16px;
  background: rgba(10, 4, 6, .86); border: 1px solid rgba(242, 196, 109, .25);
  animation: fadeUp .8s .3s both;
}
.empty h2 { font-family: var(--display); font-size: 38px; letter-spacing: .06em; color: var(--gold); font-weight: 400; }
.empty p { margin: 0; color: #e6d8cf; }
.reel {
  width: 64px; height: 64px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0b0708 7px, transparent 8px),
    radial-gradient(circle at 50% 22%, #0b0708 8px, transparent 9px),
    radial-gradient(circle at 50% 78%, #0b0708 8px, transparent 9px),
    radial-gradient(circle at 22% 50%, #0b0708 8px, transparent 9px),
    radial-gradient(circle at 78% 50%, #0b0708 8px, transparent 9px),
    radial-gradient(circle, var(--gold) 60%, var(--gold-2) 62%, transparent 64%);
  animation: spin 3s linear infinite;
  filter: drop-shadow(0 0 14px rgba(242, 196, 109, .35));
}
@keyframes spin { to { transform: rotate(360deg); } }

.unlock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8;
  padding: 16px 24px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 17px;
  background: linear-gradient(180deg, #ffd88a, var(--gold-2)); color: #2a1606; box-shadow: var(--shadow);
  animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 10px rgba(242, 196, 109, .15), var(--shadow); } }

.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 7px 12px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; transition: all .15s;
}
.stage-tabs button.active { color: var(--text); border-color: var(--gold-2); background: rgba(242, 196, 109, .1); }
.stage-tabs button.live::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--red-2); vertical-align: middle; animation: blink 1.2s infinite; }

.stream-wait { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted); }
.stream-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transition: opacity .2s;
}
#streamView:hover .stream-bar, #streamView:focus-within .stream-bar { opacity: 1; }
.stat { font: 12px ui-monospace, Consolas, monospace; color: #e8d9c8; flex: 1; }
.vol { display: flex; align-items: center; gap: 6px; }
.vol input { width: 110px; }

.now-playing { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.np-label { font-family: var(--display); font-size: 17px; letter-spacing: .12em; color: #2a1606; background: var(--gold); padding: 2px 8px 0; border-radius: 4px; }
.np-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np-note { color: var(--muted); font-size: 13px; white-space: nowrap; margin-inline-start: auto; animation: fadeIn .3s; }

.track-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; animation: fadeUp .4s both; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.chip select { padding: 4px 8px; border-radius: 999px; font-size: 13px; }
.chip.btn-like { padding: 7px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.chip.btn-like:hover { background: var(--card2); border-color: var(--gold-2); }
.yt-note { margin: 0; }

.url-form { display: grid; gap: 8px; }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; min-width: 0; font-size: 15px; padding: 11px 14px; }
.url-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sites-help { font-size: 13px; }
.sites-help summary { cursor: pointer; color: var(--muted); font-weight: 700; width: fit-content; padding: 2px 0; }
.sites-help summary:hover { color: var(--gold); }
.sites-help[open] summary { color: var(--gold); margin-bottom: 8px; }
.sites-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.sites-list li { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card); animation: fadeUp .3s both; }
.sites-list span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

/* ---- Yan panel ---- */
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding-right: 2px; }
.card {
  background: linear-gradient(180deg, rgba(34, 21, 26, .9), rgba(23, 14, 17, .95));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.card-head h3 { font-size: 14px; letter-spacing: .02em; }
.card-head.sub { margin-top: 14px; }
.row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.row select { flex: 1; }
.center-row { justify-content: center; margin-top: 16px; }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.warn { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(245, 158, 11, .12); color: #fde68a; font-size: 13px; }

.admin-card { border-color: rgba(242, 196, 109, .35); box-shadow: 0 0 0 1px rgba(242, 196, 109, .08), 0 8px 26px rgba(0, 0, 0, .3); animation: fadeUp .4s both; }
.mini-head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 6px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list li { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: var(--card2); animation: fadeUp .3s both; }

.user-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.user { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 10px; transition: background .15s; animation: fadeUp .3s both; }
.user:hover { background: var(--card2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; flex: none; font-size: 17px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25); transition: box-shadow .12s, transform .12s;
}
.avatar.sm { width: 28px; height: 28px; font-size: 15px; }
.user.speaking .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ok), 0 0 16px rgba(34, 197, 94, .6); transform: scale(1.06); }
.uname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; gap: 4px; font-size: 14px; }
.uvol { width: 64px; }
.mod-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.user:hover .mod-tools, .user:focus-within .mod-tools { opacity: 1; }

.grow-card { flex: 1; min-height: 300px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.tabs button {
  flex: 1; padding: 12px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: color .15s, border-color .15s;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--gold); }
.tab-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px; gap: 10px; }

.chat-list { list-style: none; margin: 0; padding: 0 2px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-list li { animation: fadeUp .25s both; }
.chat-list li.sys { color: var(--muted); font-size: 12.5px; text-align: center; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.who { font-weight: 800; font-size: 13.5px; }
.msg-head time { color: var(--muted); font-size: 11px; }
.text { overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }

.queue-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 6px; }
.queue-list li { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: var(--card2); animation: fadeUp .25s both; }
.q-poster { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; flex: none; }
.q-info { flex: 1; min-width: 0; }
.q-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-by { color: var(--muted); font-size: 12px; }

/* ---- Afiş ızgarası ---- */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--velvet-1), var(--bg2));
  color: var(--text); font: inherit; text-align: left;
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.3), box-shadow .25s, border-color .25s;
  animation: fadeUp .45s both;
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.poster-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; display: grid; gap: 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
}
.poster-meta b { font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-meta span { font-size: 12px; color: var(--gold); }
.poster.noimg .poster-meta { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.poster-play {
  position: absolute; left: 50%; top: 42%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(242, 196, 109, .95); color: #2a1606; font-size: 20px; padding-left: 4px;
  transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: all .25s;
}
.poster:hover, .poster:focus-visible { transform: translateY(-6px) scale(1.03); border-color: var(--gold-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 26px rgba(242, 196, 109, .2); outline: none; }
.poster:hover img { transform: scale(1.08); filter: brightness(.7); }
.poster:hover .poster-play, .poster:focus-visible .poster-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.skeleton { cursor: default; background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite; }
.skeleton:hover { transform: none; box-shadow: none; border-color: var(--line); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---- Film kütüphanesi ---- */
.lib-dialog {
  width: min(1100px, calc(100vw - 32px)); height: min(820px, calc(100vh - 40px)); padding: 0;
  border: 1px solid var(--line); border-radius: 18px; color: var(--text); overflow: hidden;
  background: linear-gradient(180deg, #1a0f12, #0e0809); box-shadow: var(--shadow);
}
.lib-dialog[open] { display: flex; flex-direction: column; animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2); }
.lib-dialog::backdrop { background: rgba(5, 2, 3, .78); backdrop-filter: blur(6px); }
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.lib-head h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .06em; color: var(--gold); }
.lib-search { display: flex; gap: 8px; padding: 6px 20px; }
.lib-search input { flex: 1; font-size: 16px; padding: 12px 14px; }
.lib-tabs { display: flex; gap: 8px; padding: 8px 20px 0; flex-wrap: wrap; }
.lib-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: all .15s; }
.lib-tabs button.active { background: rgba(242, 196, 109, .12); border-color: var(--gold-2); color: var(--gold); }
.lib-info { padding: 8px 20px 0; margin: 0; }
.lib-dialog .poster-grid, .lib-detail { flex: 1; overflow-y: auto; padding: 14px 20px 22px; align-content: start; grid-auto-rows: max-content; }
.lib-empty { grid-column: 1 / -1; max-width: 560px; margin: 30px auto; text-align: center; display: grid; gap: 10px; }
.lib-detail { position: relative; animation: fadeIn .3s; }
.lib-detail::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .25; pointer-events: none;
  background: var(--backdrop, none) center / cover no-repeat; mask-image: linear-gradient(#000, transparent 80%);
}
.lib-detail > * { position: relative; z-index: 1; }
.detail-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 26px; margin-top: 14px; }
.detail-poster { width: 100%; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: fadeUp .4s both; }
.detail-body { display: grid; gap: 10px; align-content: start; animation: fadeUp .4s .08s both; }
.detail-body h2 { font-family: var(--display); font-weight: 400; font-size: 42px; letter-spacing: .03em; line-height: 1; }
.detail-body p { margin: 0; }
.detail-tagline { color: var(--gold); font-style: italic; }
.detail-overview { color: #e6d8cf; max-width: 640px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.detail-extra h4 { margin: 10px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.providers { display: flex; gap: 8px; flex-wrap: wrap; }
.providers img { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); }

/* ---- Giriş bileti ---- */
.join-dialog {
  border: 0; border-radius: 18px; color: var(--text); padding: 0; width: min(440px, calc(100vw - 32px));
  background: transparent; overflow: visible;
}
.join-dialog[open] { animation: popIn .45s cubic-bezier(.2, .9, .3, 1.2); }
.join-dialog::backdrop { background: rgba(5, 2, 3, .82); backdrop-filter: blur(6px); }
.join-dialog form, .ticket-card {
  position: relative; padding: 0 24px 22px; border-radius: 18px; text-align: left;
  background: linear-gradient(180deg, #24151a, #170d10); border: 1px solid rgba(242, 196, 109, .35);
  box-shadow: var(--shadow), 0 0 60px rgba(229, 9, 20, .15);
}
.ticket-head {
  display: flex; justify-content: space-between; margin: 0 -24px 18px; padding: 12px 24px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2)); color: #2a1606;
  font-family: var(--display); font-size: 19px; letter-spacing: .14em; border-radius: 18px 18px 0 0;
  border-bottom: 2px dashed rgba(42, 22, 6, .45);
}
.join-dialog h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .05em; }
.known-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: var(--card2); }
.colors, .emojis { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { outline-color: var(--gold); }
.emoji { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 19px; transition: transform .15s, border-color .15s, background .15s; }
.emoji:hover { transform: translateY(-2px) scale(1.08); }
.emoji.on { border-color: var(--gold); background: rgba(242, 196, 109, .14); }

/* ---- Bekleme salonu / atıldın ---- */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; padding: 16px; background: rgba(5, 2, 3, .95); animation: fadeIn .3s; }
.gate-card { max-width: 440px; text-align: center; padding: 30px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: popIn .4s both; }
.gate-card h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .04em; color: var(--gold); margin-bottom: 8px; }
.gate-door { font-size: 54px; animation: bob 2.4s ease-in-out infinite; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  background: #2a1a1f; border: 1px solid rgba(242, 196, 109, .35); padding: 11px 18px; border-radius: 12px;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.fade-up { animation: fadeUp .6s 1.4s both; }

/* ============ Açılış / lobi ============ */
/* Açılış perdesi bitince tamamen kaldırılır, arkada katman olarak kalmaz */
.intro { position: fixed; inset: 0; z-index: 90; pointer-events: none; animation: introGone 0s 2.4s forwards; }
@keyframes introGone { to { visibility: hidden; } }
.intro-curtain {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, var(--velvet-3) 0, var(--velvet-1) 26px, var(--velvet-2) 48px, var(--velvet-1) 70px, var(--velvet-3) 92px);
  animation: introOpen 1.9s .35s cubic-bezier(.7, 0, .2, 1) forwards;
}
.intro-curtain.left { left: 0; --dir: -1; }
.intro-curtain.right { right: 0; --dir: 1; }
@keyframes introOpen { to { transform: translateX(calc(var(--dir) * 102%)); } }

.hero { position: relative; max-width: 1100px; margin: 0 auto; padding: 46px 16px 30px; text-align: center; }
.spotlight {
  position: absolute; left: 50%; top: -120px; width: 900px; height: 700px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 230, 180, .12) 175deg, rgba(255, 230, 180, .18) 180deg, rgba(255, 230, 180, .12) 185deg, transparent 200deg);
  animation: sweep 7s ease-in-out infinite alternate; will-change: transform;
}
@keyframes sweep { from { transform: translateX(-50%) rotate(-14deg); } to { transform: translateX(-50%) rotate(14deg); } }

.marquee {
  position: relative; display: inline-block; padding: 26px 56px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #2a1012, #160709); border: 3px solid var(--gold-2);
  box-shadow: 0 0 0 6px #1a0a0b, 0 0 0 8px rgba(242, 196, 109, .4), 0 0 80px rgba(229, 9, 20, .35), var(--shadow);
  animation: popIn .8s 1.5s both;
}
.marquee h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(64px, 13vw, 140px); letter-spacing: .16em; line-height: .9;
  color: #fff3d6; padding-left: .16em;
  text-shadow: 0 0 6px #ffd27a, 0 0 22px rgba(255, 190, 90, .8), 0 0 60px rgba(229, 9, 20, .7);
  animation: flicker 5s 2.5s infinite;
}
@keyframes flicker { 0%, 19%, 21%, 23%, 62%, 64%, 100% { opacity: 1; } 20%, 22%, 63% { opacity: .55; } }
.marquee-sub { margin: 8px 0 0; font-family: var(--display); letter-spacing: .38em; font-size: clamp(14px, 2.4vw, 20px); color: var(--gold); }
.bulbs { position: absolute; left: 14px; right: 14px; height: 10px; overflow: hidden; }
.bulbs::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -22px; right: 0;
  background: radial-gradient(circle, #fff3cf 2.4px, rgba(255, 200, 100, .55) 3.6px, transparent 4.8px) 0 50% / 22px 10px repeat-x;
  animation: bulbChase 1.1s linear infinite; will-change: transform;
}
.bulbs.top { top: 6px; }
.bulbs.bottom { bottom: 6px; }
.bulbs.bottom::before { animation-direction: reverse; }
@keyframes bulbChase { to { transform: translateX(22px); } }

.lead { font-size: 18px; color: #e3d3c8; max-width: 700px; margin: 28px auto 30px; animation: fadeUp .6s 1.7s both; }

.ticket-card { max-width: 440px; margin: 0 auto; }
.lobby { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.lobby-col { display: grid; gap: 18px; align-content: start; }
.card.big { padding: 22px; }
.card.big h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .05em; color: var(--gold); }
.room-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.room-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card2); transition: background .15s, transform .15s; }
.room-list li:hover { background: #321e24; transform: translateX(3px); }
.room-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 700; }
.room-list time { color: var(--muted); font-size: 12px; }

.showcase { max-width: 1100px; margin: 20px auto 0; padding: 0 16px; animation: fadeUp .6s 1.9s both; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .05em; }
.wide-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.features { list-style: none; max-width: 1100px; padding: 0 16px; margin: 40px auto 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.features li { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: rgba(23, 14, 17, .7); border: 1px solid var(--line-soft); transition: transform .2s, border-color .2s; }
.features li:hover { transform: translateY(-3px); border-color: rgba(242, 196, 109, .35); }
.features span { color: var(--muted); font-size: 13.5px; }
.footer { text-align: center; padding: 20px 16px 30px; }

/* ---- Mobil ---- */
@media (max-width: 980px) {
  .room { grid-template-columns: 1fr; height: auto; padding: 12px 16px; }
  .stage { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .side { overflow: visible; }
  .grow-card { min-height: 440px; }
  .lobby { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .detail-wrap { grid-template-columns: 150px 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .room-info { order: 3; flex-basis: 100%; }
  .conn { margin-inline-start: auto; }
  .url-row { flex-wrap: wrap; }
  .url-row input { flex-basis: 100%; }
  .url-row .btn, .url-tools .btn { flex: 1; }
  .np-note { display: none; }
  .marquee { padding: 22px 26px 18px; }
  .features { grid-template-columns: 1fr; }
  .poster-grid, .wide-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-poster { max-width: 180px; }
  .mod-tools { opacity: 1; }
  .stream-bar { opacity: 1; }
  .lib-search, .lib-tabs, .lib-info, .lib-head { padding-left: 16px; padding-right: 16px; }
  .lib-dialog .poster-grid, .lib-detail { padding-left: 16px; padding-right: 16px; }
}

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

/* ---- Dizi bölümleri ---- */
.episode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.episode-list li {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px;
  background: rgba(34, 21, 26, .8); border: 1px solid transparent; transition: border-color .15s, background .15s, transform .15s;
  animation: fadeUp .3s both;
}
.episode-list li:hover { border-color: rgba(242, 196, 109, .35); background: #2a1a20; transform: translateX(3px); }
.ep-no { width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center; flex: none; background: var(--card); color: var(--gold); font-family: var(--display); font-size: 17px; }
.ep-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.seg button.active { background: linear-gradient(180deg, #ffd88a, var(--gold-2)); color: #2a1606; }

/* ---- Vimeo ---- */
#vmWrap iframe, #extWrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.ext-wrap { background: #000; }
.ext-wrap .fill { position: absolute; inset: 0; }
.ext-wrap .fb-mount { display: grid; place-items: center; overflow: auto; }
.ext-wrap .fb-mount .fb-video { width: 100%; }
.ext-wrap .dailymotion-player-root { padding-bottom: 0 !important; height: 100%; }

/* ---- Kendi dosyam ---- */
.local-pick { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; padding: 20px; background: radial-gradient(600px 300px at 50% 40%, rgba(242, 196, 109, .12), transparent 70%), rgba(8, 3, 5, .92); animation: fadeIn .3s; }
.local-card { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 460px; animation: popIn .4s both; }
.local-card h3 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .04em; color: var(--gold); }
.local-card p { margin: 0; }
.local-icon { font-size: 52px; animation: bob 2.4s ease-in-out infinite; }
.local-name { font-weight: 800; padding: 6px 12px; border-radius: 8px; background: var(--card2); border: 1px dashed rgba(242, 196, 109, .4); overflow-wrap: anywhere; }

/* ---- Kütüphane filtreleri ---- */
.lib-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px 0; }
.lib-filters:empty { display: none; }
.lib-filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-filters .chips button {
  border: 1px solid var(--line); background: var(--bg2); color: var(--muted); padding: 5px 12px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.lib-filters .chips button:hover { border-color: var(--gold-2); color: var(--text); }
.lib-filters .chips button.active { background: var(--red); border-color: var(--red-2); color: #fff; box-shadow: 0 4px 14px rgba(229, 9, 20, .3); }
.lib-filters select { padding: 6px 10px; border-radius: 999px; font-size: 13px; }

/* YouTube sonuçları yatay kart */
.poster-grid.landscape { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.poster.landscape { aspect-ratio: 16 / 9; }
.poster .dur { position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .8); font: 12px ui-monospace, Consolas, monospace; }
.poster .chan { color: var(--muted) !important; }
.yt-fallback { grid-column: 1 / -1; max-width: 620px; margin: 24px auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.yt-fallback ol { text-align: left; color: #e6d8cf; margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.detail-wrap.wide { grid-template-columns: minmax(0, 380px) 1fr; }
.detail-wrap.wide .detail-poster { aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 980px) { .detail-wrap.wide { grid-template-columns: 1fr; } .detail-wrap.wide .detail-poster { max-width: 420px; } }

/* ---- Platform modu ---- */
.platform-view {
  position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 18px; overflow-y: auto;
  background: radial-gradient(700px 360px at 50% 30%, rgba(229, 9, 20, .16), transparent 70%), #0a0506;
}
.pf-card { display: flex; gap: 26px; align-items: center; max-width: 860px; width: 100%; animation: fadeUp .5s both; }
.pf-poster { width: 180px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); flex: none; }
.pf-main { flex: 1; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.pf-badge { padding: 3px 10px; border-radius: 6px; font-weight: 800; font-size: 13px; color: #fff; letter-spacing: .04em; }
.pf-main h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); letter-spacing: .03em; line-height: 1.05; }
.pf-clock-wrap { position: relative; }
.pf-clock {
  font-family: var(--display); font-size: clamp(56px, 10vw, 96px); line-height: 1; letter-spacing: .04em; color: #fff3d6;
  text-shadow: 0 0 18px rgba(242, 196, 109, .45); font-variant-numeric: tabular-nums;
}
[data-state="pause"] .pf-clock { color: #ffc2c5; text-shadow: 0 0 18px rgba(229, 9, 20, .5); }
.pf-count {
  position: absolute; left: 100%; top: 50%; margin-left: 18px; transform: translateY(-50%);
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-content: center;
  background: var(--gold); color: #2a1606; font-family: var(--display); font-size: 48px;
  animation: countPop 1s ease-out infinite; box-shadow: 0 0 40px rgba(242, 196, 109, .6);
}
@keyframes countPop { 0% { transform: translateY(-50%) scale(1.35); opacity: .4; } 25% { transform: translateY(-50%) scale(1); opacity: 1; } }
.pf-status { margin: 0; font-weight: 700; font-size: 16px; }
.pf-controls, .pf-row, .pf-ready { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-row input { width: 130px; }
.platform-view.flash { animation: flashRed .9s ease-out; }
@keyframes flashRed { 0% { box-shadow: inset 0 0 0 9999px rgba(229, 9, 20, .35); } 100% { box-shadow: inset 0 0 0 9999px transparent; } }
@media (max-width: 640px) { .pf-card { flex-direction: column; text-align: center; } .pf-main { justify-items: center; } .pf-poster { width: 120px; } .pf-count { left: auto; right: -90px; } }

/* ---- Emoji tepkileri ---- */
.react-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.react-bar button {
  border: 1px solid var(--line-soft); background: var(--card); border-radius: 999px; width: 38px; height: 34px; font-size: 18px; cursor: pointer;
  transition: transform .15s cubic-bezier(.3, 1.8, .5, 1), background .15s, border-color .15s;
}
.react-bar button:hover { transform: translateY(-3px) scale(1.15); background: var(--card2); border-color: var(--gold-2); }
.react-bar button:active { transform: scale(.9); }
.float-emoji {
  position: absolute; bottom: 8%; z-index: 9; font-size: 42px; pointer-events: none;
  filter: drop-shadow(0 0 10px var(--glow)); animation: floatUp 2.7s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes floatUp {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  12% { transform: translate(0, -20px) scale(1.25); opacity: 1; }
  100% { transform: translate(var(--drift), -320px) scale(.9) rotate(12deg); opacity: 0; }
}
.provider-btn { display: grid; justify-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; transition: transform .15s, border-color .15s; max-width: 86px; }
.provider-btn:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--gold-2); }
.provider-btn img { width: 46px; height: 46px; border-radius: 10px; }
.provider-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 74px; }

/* ============ Yayın Odası ============ */
.live-badge, .live-pill {
  padding: 3px 10px; border-radius: 6px; background: var(--red-2); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em;
  animation: livePulse 1.6s ease-in-out infinite; white-space: nowrap;
}
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(229, 9, 20, .18); } }
.stream-layout { grid-template-columns: minmax(0, 1fr) 340px; transition: grid-template-columns .4s ease; }
body.cinema .stream-layout { grid-template-columns: minmax(0, 1fr) 0; }
body.cinema .stream-layout .side { opacity: 0; pointer-events: none; overflow: hidden; }
.stream-layout .side { transition: opacity .3s; }

.stream-idle { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.idle-card {
  display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 720px; padding: 22px 24px; border-radius: 16px;
  background: rgba(10, 4, 6, .88); border: 1px solid rgba(242, 196, 109, .25); animation: fadeUp .7s .3s both;
}
.idle-card h2 { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: .06em; color: var(--gold); }
.idle-card p { margin: 0; }
.idle-icon { font-size: 50px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(229, 9, 20, .6)); }
.preset-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.preset-card {
  display: grid; gap: 2px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.preset-card b { font-size: 15px; }
.preset-card span { font: 12px ui-monospace, Consolas, monospace; color: var(--gold); }
.preset-card small { color: var(--muted); font-size: 11.5px; }
.preset-card:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.preset-card.on { border-color: var(--gold); background: rgba(242, 196, 109, .1); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(242, 196, 109, .15); }
.row.tight { margin: 0; }

.hud { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; opacity: 0; transition: opacity .25s; }
.stage:hover .hud, .stage:focus-within .hud { opacity: 1; }
.hud > * { pointer-events: auto; }
.hud-top, .hud-bottom { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.hud-top { background: linear-gradient(rgba(0, 0, 0, .75), transparent); padding-top: 30px; }
.hud-bottom { background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.stage:fullscreen { border: 0; border-radius: 0; }
.warn-note { color: #fde68a; white-space: normal; text-align: right; }

.host-panel { animation: fadeUp .4s both; }
.host-panel .mini-list li { justify-content: space-between; flex-wrap: wrap; }
.stream-card { border-color: rgba(229, 9, 20, .35); }

@media (max-width: 980px) {
  .stream-layout, body.cinema .stream-layout { grid-template-columns: 1fr; }
  body.cinema .stream-layout .side { display: none; }
  .preset-cards { grid-template-columns: repeat(2, 1fr); }
  .hud { opacity: 1; }
}

/* ---- Yayın kaynağı seçimi ---- */
.source-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.source-btn {
  display: grid; justify-items: center; gap: 4px; padding: 16px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(229, 9, 20, .45); background: linear-gradient(180deg, rgba(229, 9, 20, .16), rgba(23, 14, 17, .9));
  color: var(--text); font: inherit; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), border-color .18s, box-shadow .18s;
}
.source-btn span { font-size: 30px; }
.source-btn b { font-size: 16px; }
.source-btn small { color: var(--muted); font-size: 12px; }
.source-btn:hover { transform: translateY(-4px); border-color: var(--red-2); box-shadow: 0 12px 30px rgba(229, 9, 20, .25); }
.owner-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(242, 196, 109, .1); border: 1px dashed rgba(242, 196, 109, .45); }
.source-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.source-now > span { margin-inline-end: auto; }
@media (max-width: 640px) { .source-btns { grid-template-columns: 1fr; } }

/* ============ Sinematek ============ */
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); transition: color .15s, background .15s; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--card2); }
.site-nav a.active { color: #2a1606; background: var(--gold); }
.top-search { display: flex; gap: 6px; margin-inline-start: auto; flex: 0 1 420px; min-width: 0; }
.top-search input { flex: 1; padding: 8px 12px; }
.sinematek-cta { margin-top: 26px; }

.hero-film { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); animation: fadeIn .6s; }
.hero-bg { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(28px) brightness(.35) saturate(1.2); transform: scale(1.1); }
.hero-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 7, 8, .95) 0%, rgba(11, 7, 8, .55) 60%, rgba(11, 7, 8, .85) 100%), linear-gradient(transparent 60%, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 36px 20px 42px; display: flex; gap: 32px; align-items: center; }
.hero-poster { width: 220px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px rgba(242, 196, 109, .25); flex: none; animation: popIn .6s .1s both; }
.hero-info { display: grid; gap: 10px; min-width: 0; animation: fadeUp .6s .15s both; }
.hero-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 64px); letter-spacing: .02em; line-height: .95; }
.hero-info p { margin: 0; }
.hero-kicker { font-family: var(--display); letter-spacing: .2em; color: var(--gold); font-size: 18px; }
.hero-text { color: #e6d8cf; max-width: 720px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.film-detail .hero-text { -webkit-line-clamp: 8; }
.back-link { text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: rgba(242, 196, 109, .12); border: 1px solid rgba(242, 196, 109, .3); color: var(--gold); font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.tags:empty { display: none; }

.cat-nav { position: sticky; top: 59px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; background: rgba(11, 7, 8, .96); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .15s; }
.cat-nav a:hover { color: var(--text); border-color: var(--gold-2); transform: translateY(-1px); }
.cat-nav a.active { background: var(--red); border-color: var(--red-2); color: #fff; }

.rows { max-width: 1400px; margin: 0 auto; padding: 10px 0 30px; }
.film-row { padding: 14px 20px 6px; max-width: 1400px; margin: 0 auto; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.row-head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .04em; }
.row-head a { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 14px; }
.scroller-wrap { position: relative; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.scroller > * { scroll-snap-align: start; }
.scroll-btn {
  position: absolute; top: 6px; bottom: 14px; z-index: 2; width: 42px; border: 0; cursor: pointer; font-size: 34px; color: #fff;
  background: linear-gradient(90deg, rgba(11, 7, 8, .9), transparent); opacity: 0; transition: opacity .2s;
}
.scroll-btn.next { right: 0; background: linear-gradient(-90deg, rgba(11, 7, 8, .9), transparent); }
.scroll-btn.prev { left: 0; }
.scroller-wrap:hover .scroll-btn { opacity: 1; }
.film-card { text-decoration: none; display: block; }
.card-tag { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 5px; background: var(--red-2); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.card-progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--red-2); }

.browse { max-width: 1400px; margin: 0 auto; padding: 18px 20px 30px; }
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.browse-head h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .04em; }
.browse-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.film-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 12px 0 20px; }

.film-player { max-width: 1200px; margin: 0 auto; padding: 18px 20px 6px; display: grid; gap: 10px; }
.film-stage { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
.wide-list { max-height: 420px; }
.episode-list li.current { border-color: var(--red-2); background: rgba(229, 9, 20, .12); }

@media (max-width: 980px) {
  .top-search { flex-basis: 100%; order: 5; }
  .hero-inner { gap: 20px; }
  .hero-poster { width: 150px; }
  .cat-nav { top: 0; }
}
@media (max-width: 640px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 22px 16px 28px; }
  .hero-poster { width: 130px; }
  .scroller { grid-auto-columns: 128px; gap: 10px; }
  .film-row, .browse, .film-player { padding-left: 16px; padding-right: 16px; }
  .film-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .site-nav a { padding: 6px 8px; font-size: 13px; }
}

/* ---- Bağlantı yardımı ---- */
.conn-help {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 55; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 14px 16px; border-radius: 16px; background: #1d1216; border: 1px solid rgba(242, 196, 109, .4);
  box-shadow: var(--shadow); animation: popIn .4s both;
}
.conn-help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.conn-help ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.conn-help li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.conn-help li > span { flex: none; }
.conn-link { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.conn-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 8px; border-radius: 8px; background: var(--bg2); font-size: 12px; }

/* ============ Dil desteği ============ */
html.i18n-pending body { visibility: hidden; }

.lang-picker { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--gold-2); background: var(--card2); }
.lang-caret { font-size: 10px; color: var(--muted); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #1d1216; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); animation: popIn .18s ease-out;
}
.lang-menu li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.lang-menu li small { color: var(--muted); font-size: 11px; font-weight: 700; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--card2); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--gold); background: rgba(242, 196, 109, .08); }
.lang-menu li[aria-selected="true"]::after { content: '✓'; margin-inline-start: auto; }

/* Latin dışı alfabeler: dar başlık yazı tipinde bu harfler yok, sistem yazı tipine geç */
html.script-nonlatin { --display: system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans CJK SC', 'Noto Sans Devanagari', 'Noto Sans Arabic', sans-serif; }
html.script-nonlatin :is(h1, h2, h3, .np-label, .hero-kicker, .marquee-sub, .ticket-head, .pf-clock, .ep-no, .empty h2, .gate-card h2, .idle-card h2) { letter-spacing: normal; font-weight: 800; }
.brand span, .marquee h1 { font-family: 'Bebas Neue', Impact, sans-serif; }

/* Sağdan sola diller */
[dir="rtl"] .scroll-btn.prev { left: auto; right: 0; background: linear-gradient(-90deg, rgba(11, 7, 8, .9), transparent); }
[dir="rtl"] .scroll-btn.next { right: auto; left: 0; background: linear-gradient(90deg, rgba(11, 7, 8, .9), transparent); }
[dir="rtl"] .hero-film::after { background: linear-gradient(-90deg, rgba(11, 7, 8, .95) 0%, rgba(11, 7, 8, .55) 60%, rgba(11, 7, 8, .85) 100%), linear-gradient(transparent 60%, var(--bg)); }

/* ---- Davetiye ---- */
.invite-dialog { width: min(440px, calc(100vw - 24px)); }
.invite-body { position: relative; padding: 0 24px 20px; border-radius: 18px; background: linear-gradient(180deg, #24151a, #170d10); border: 1px solid rgba(242, 196, 109, .35); box-shadow: var(--shadow), 0 0 60px rgba(229, 9, 20, .15); display: grid; gap: 12px; }
.invite-body h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .04em; margin-top: -6px; }
.invite-qr { justify-self: center; width: min(240px, 70vw); aspect-ratio: 1; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 4px rgba(242, 196, 109, .35), 0 12px 30px rgba(0, 0, 0, .4); animation: popIn .4s .1s both; }
.invite-qr svg { width: 100%; height: 100%; display: block; }
.invite-name { margin: 0; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-soft); }
.invite-name b { font-size: 18px; color: var(--gold); letter-spacing: .02em; overflow-wrap: anywhere; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns .btn { flex: 1; min-width: 110px; }
.share-wa { background: #128c4a; border-color: #25d366; color: #fff; }
.share-wa:hover { background: #18a85a; border-color: #2ee27a; }
.share-tg { background: #1d6fa5; border-color: #2aa3ef; color: #fff; }
.share-tg:hover { background: #2584c4; border-color: #4bb5f5; }

.more-opts { margin: 4px 0 10px; }
.more-opts summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 6px 0; list-style: none; }
.more-opts summary::-webkit-details-marker { display: none; }
.more-opts summary::after { content: ' ▾'; }
.more-opts[open] summary::after { content: ' ▴'; }
.paste-row { display: flex; gap: 6px; }
.paste-row input { flex: 1; min-width: 0; }

/* ============ Telefon ve dokunmatik ============ */
button, a, summary, .chip, .poster { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.topbar {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.conn-help { bottom: calc(16px + env(safe-area-inset-bottom)); }

/* Fare olmayan cihazlarda üzerine gelince açılan her şey hep görünsün */
@media (hover: none) {
  .mod-tools, .hud, .stream-bar { opacity: 1; }
  .scroll-btn { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .poster:hover, .poster:hover img { transform: none; filter: none; }
  .poster-play { opacity: 0; }
}

@media (max-width: 980px) {
  /* Video ekranın üstüne yapışır, sohbet ve listeler altından kayar */
  .room-page .topbar, .catalog-page .topbar { position: static; }
  .room { display: flex; flex-direction: column; gap: 12px; }
  .room .stage-col { display: contents; }
  .room .stage { position: sticky; top: 0; z-index: 12; width: 100%; }
}

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; } /* iPhone yazarken yakınlaştırmasın */
  .topbar { gap: 8px 10px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand span { font-size: 24px; }
  .brand img { width: 26px; height: 26px; }
  .room-info { flex-wrap: wrap; gap: 6px; }
  .room-info .btn { flex: 1 1 auto; }
  .ticket { flex: 1 1 100%; }
  .room { padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); }
  .room .stage {
    margin: 0 -10px; width: calc(100% + 20px); border-radius: 0; border-left: 0; border-right: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  }
  .card { padding: 12px; }
  .track-bar, .react-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .track-bar::-webkit-scrollbar, .react-bar::-webkit-scrollbar { display: none; }
  .track-bar .chip, .react-bar button { flex: none; }
  .now-playing { flex-wrap: wrap; gap: 6px 10px; }
  .grow-card { min-height: 62vh; }
  .hud-top { padding-top: 10px; }
  .hud-bottom { gap: 6px; }
  .hud-bottom .vol input { width: 80px; }
  .pf-controls .btn-lg { padding: 10px 14px; font-size: 15px; }
  .lib-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; border: 0; }
  .join-dialog, .invite-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; }
  .lang-menu { position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-height: 60vh; }
  .site-nav { order: 4; }
  .hero-text { -webkit-line-clamp: 3; }
  .film-detail .hero-text { -webkit-line-clamp: 6; }
  .marquee h1 { letter-spacing: .1em; }
}

/* ---- Bağlantı kalitesi ---- */
.q-dot { font-size: 11px; cursor: help; }

/* Sinematek: geniş arka plan görseli olan vitrin (TMDB backdrop) */
.hero-film.has-backdrop .hero-bg { inset: 0; filter: brightness(.42) saturate(1.1); transform: none; background-position: center 25%; }
.hero-film.has-backdrop .hero-inner { padding-top: 56px; padding-bottom: 60px; }
.hero-film.has-backdrop .hero-bg { animation: heroDrift 30s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Nerede izlenir */
.where-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 10px; }
.where-group { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; animation: fadeUp .4s both; }
.where-group h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .02em; color: var(--gold); }
.attr { opacity: .75; }

/* Oyuncular */
.cast-row { grid-auto-columns: 124px; }
.cast-card { display: grid; gap: 3px; text-align: center; font-size: 13px; animation: fadeUp .4s both; }
.cast-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: var(--card2); border: 1px solid var(--line-soft); }
.cast-card.nophoto img { background: var(--card2) url("/favicon.svg") center / 40% no-repeat; opacity: .5; }
.cast-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Anahtar yokken kurulum kartı */
.setup-card { max-width: 720px; margin: 40px auto; padding: 28px; display: grid; gap: 12px; animation: fadeUp .5s both; }
.setup-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .03em; }
.setup-card ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }

@media (max-width: 600px) {
  .cast-row { grid-auto-columns: 96px; }
  .where-grid { grid-template-columns: 1fr; }
  .setup-card { margin: 20px 16px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero-film.has-backdrop .hero-bg { animation: none; } }

/* ---- Uygulama gibi kullanım (PWA) ---- */
.install-btn { gap: 6px; white-space: nowrap; }
.pwa-banner {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  background: var(--card); border: 1px solid var(--gold-2); border-radius: var(--radius);
  box-shadow: var(--shadow); animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.2);
}
.pwa-banner-icon { font-size: 26px; flex: none; }
.pwa-banner-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pwa-banner .btn { flex: none; }
/* Ana ekrandan açılınca: tarayıcı çubuğu yok, çentik ve alt çizgi için boşluk bırak */
html.standalone body { padding-bottom: env(safe-area-inset-bottom); }
html.standalone .install-btn { display: none; }
@media (max-width: 640px) {
  .install-btn .install-label { display: none; }
  .install-btn { padding-inline: 10px; }
}

/* ---- Salonda YouTube araması ---- */
.yt-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.yt-search:focus-within { border-color: #ff3b3b; box-shadow: 0 0 0 3px rgba(255, 59, 59, .18); }
.yt-search-logo { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 7px; background: #ff0000; color: #fff; font-size: 11px; flex: none; }
.yt-search input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; font-size: 15px; padding: 8px 4px; }
.yt-search input:focus { box-shadow: none; }
.yt-search .btn { border-radius: 999px; flex: none; }
.yt-results { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-soft); animation: fadeUp .3s both; }
.yt-results-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-height: min(70vh, 640px); overflow-y: auto; padding: 2px; grid-auto-rows: max-content; }
.yt-card { cursor: pointer; }
.yt-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.yt-queue { position: absolute; left: 8px; top: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .72); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; cursor: pointer; opacity: .9; transition: opacity .15s, transform .15s, background .15s; }
.yt-card:hover .yt-queue, .yt-card:focus-within .yt-queue { opacity: 1; }
.yt-queue:active { transform: scale(.95); }
.yt-queue:hover { transform: scale(1.1); background: var(--gold); color: #2a1606; }
@media (hover: none) { .yt-queue { opacity: 1; } }
@media (max-width: 640px) {
  .yt-search { flex-wrap: wrap; border-radius: var(--radius); padding: 8px; }
  .yt-search .btn { flex: 1 1 100%; }
  .yt-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ==== Sohbet rozetleri (üst çubuk) — sohbet sayfasının stili fuaye.css içinde ==== */
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ed4245; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.site-nav .badge { margin-inline-start: 4px; vertical-align: 1px; }
.social-chip { position: relative; padding-inline: 10px; }
.social-chip .badge { position: absolute; top: -6px; right: -6px; }

/* ==== Link güvenliği uyarısı (sohbet, salon, yayın) ==== */
.guarded-link { color: #7cc4ff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.guarded-link[data-level="risky"], .guarded-link[data-level="blocked"] { color: #ff8a80; text-decoration-style: wavy; }
.guarded-link[data-level="risky"]::before, .guarded-link[data-level="blocked"]::before { content: "⚠️ "; text-decoration: none; display: inline-block; }
.link-guard { width: min(460px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 20px; background: #10181b; color: #e8f1ee; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.link-guard::backdrop { background: rgba(3, 8, 10, .72); backdrop-filter: blur(4px); }
.link-guard .lg-box { display: grid; gap: 12px; padding: 24px 22px 20px; border-top: 6px solid #e0b25a; border-radius: 20px; }
.link-guard[data-level="risky"] .lg-box { border-top-color: #ff7a59; }
.link-guard[data-level="blocked"] .lg-box { border-top-color: #ef4444; }
.lg-icon { font-size: 40px; line-height: 1; }
.lg-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.lg-lead { margin: 0; color: #a9bdb8; line-height: 1.5; }
.lg-addr { display: block; padding: 12px 14px; border-radius: 12px; background: #071013; border: 1px solid #23363a; font: 15px/1.35 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.lg-addr b { color: #fff; font-size: 17px; }
.lg-addr .lg-sub { color: #8aa19c; }
.lg-path { display: block; margin-top: 2px; color: #6f8682; font-size: 12px; }
.lg-reasons { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; color: #ffd2c4; }
.lg-reasons:empty { display: none; }
.lg-status { margin: 0; font-size: 13px; color: #8aa19c; }
.lg-status.good { color: #7ee2a8; }
.lg-status.bad { color: #ff8a80; font-weight: 700; }
.lg-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #c9d8d4; cursor: pointer; }
.lg-check input { width: 18px; height: 18px; accent-color: #e0b25a; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.lg-btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 10px 18px; border: 1px solid #2f4448; background: #17262a; color: #e8f1ee; cursor: pointer; }
.lg-btn:disabled { opacity: .4; cursor: not-allowed; }
.lg-btn:focus-visible { outline: 3px solid #e0b25a; outline-offset: 2px; }
.lg-primary { background: #e0b25a; border-color: #e0b25a; color: #1e1406; }
.lg-ghost { background: none; }
@media (max-width: 480px) { .lg-actions { flex-direction: column-reverse; } .lg-btn { width: 100%; } }
