/* ============ Seans — sinema gecesi teması ============ */
:root {
  --bg: #0e0c0b;
  --panel: #181412;
  --panel2: #221c19;
  --panel3: #2a2320;
  --line: #2f2824;
  --line2: #3d3430;
  --text: #f4ede5;
  --muted: #a69a8e;
  --faint: #6f655c;
  --amber: #f5b544;
  --amber-hi: #ffc964;
  --amber-ink: #2b1b02;
  --amber-soft: #f5b5441f;
  --red: #e5485e;
  --ok: #5ed49b;
  --radius: 14px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
input, button, select { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }
.hidden { display: none !important; }
.spacer { flex: 1; }

input {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 14px; outline: none; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--amber); background: var(--panel3); }
input[type="range"] { accent-color: var(--amber); box-shadow: none; }
input[type="checkbox"] { accent-color: var(--amber); width: 16px; height: 16px; box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 14px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--panel3); border-color: var(--line2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .tab:focus-visible, .emoji-bar button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn.on { background: #173a2a; border-color: #2a6b4c; color: var(--ok); }
.btn.danger { background: #3a1820; border-color: #6e2836; color: #ff9aa8; }
.btn.big { padding: 14px; width: 100%; font-size: 16px; border-radius: 12px; }

.lang-select {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; font-size: 13px; font-weight: 600; cursor: pointer; outline: none;
}
.lang-select:focus-visible { border-color: var(--amber); }

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: 0; }
.brand.center { justify-content: center; }
.topbar .brand img { width: 28px; height: 28px; }
.topbar .brand span { font-size: 23px; }

/* ============ Ana sayfa ============ */
.home {
  min-height: 100%;
  background:
    radial-gradient(60% 50% at 50% -8%, #f5b54426, transparent 70%),
    radial-gradient(40% 40% at 50% 0%, #f5b5441a, transparent 60%),
    var(--bg);
}
.home-top { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 20px 20px 0; }
.hero { max-width: 600px; margin: 0 auto; padding: 48px 16px 64px; text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 5px 12px; border: 1px solid #f5b5443d; border-radius: 999px; color: var(--amber); font-size: 13px; font-weight: 600; background: #f5b5440d; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 8vw, 68px); line-height: 1; margin: 0 0 18px; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.sub { color: var(--muted); margin: 0 auto 34px; max-width: 470px; font-size: 16px; text-wrap: pretty; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: left; display: grid; gap: 12px; }
.card label { color: var(--muted); font-size: 13px; font-weight: 600; }
.ticket { position: relative; padding-top: 34px; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #ffffff05 inset; }
/* Sinema tabelası ampulleri */
.bulbs { position: absolute; top: 13px; left: 24px; right: 24px; height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--amber) 2.2px, transparent 3px) 0 0 / 18px 6px repeat-x;
  opacity: .85; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .bulbs { animation: none; } }

.row { display: flex; gap: 8px; }
.or { text-align: center; color: var(--faint); font-size: 12px; position: relative; margin: 4px 0; text-transform: uppercase; letter-spacing: 1px; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line2); }
.or span { background: var(--panel); padding: 0 12px; position: relative; }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.features li { background: #181412b3; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 52px; position: relative; color: var(--muted); font-size: 13px; }
.features svg { position: absolute; left: 14px; top: 15px; width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--amber-soft);
  fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features li:first-child svg { fill: var(--amber); stroke: none; }
.features b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.features span { display: block; }

/* ============ Oda ============ */
.room { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #13100ee6; flex-wrap: wrap; }
.roomcode { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 5px 6px 5px 12px; border: 1px solid var(--line); border-radius: 10px; }
.roomcode b { color: var(--amber); font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: 1.5px; font-size: 14px; }
.toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }

.layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.stage { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; min-width: 0; overflow-y: auto; }
.urlbar { display: flex; gap: 8px; }
.urlbar input { background: var(--panel); }

.player-wrap {
  position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - 280px); border: 1px solid var(--line);
  box-shadow: 0 0 0 1px #00000080, 0 24px 60px -24px #000;
}
.player-wrap > video, .player-wrap > iframe, .player-wrap > #ytHost, .player-wrap #ytHost iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; background: #000; }
.player-wrap.mode-yt > #ytHost, .player-wrap.mode-yt #ytHost iframe { display: block; }
.player-wrap.mode-video > #video { display: block; }
.player-wrap.mode-frame > #frame { display: block; }
.player-wrap.screen-on > #ytHost, .player-wrap.screen-on > #video, .player-wrap.screen-on > #frame, .player-wrap.screen-on .empty { display: none !important; }
.player-wrap.screen-on > #screenVideo { display: block; object-fit: contain; }

.empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); padding: 24px; gap: 4px;
  background: radial-gradient(60% 70% at 50% 0%, #f5b5441c, transparent 70%), #0b0908; }
.player-wrap:not(.mode-none) .empty { display: none; }
.big-emoji { width: 64px; height: 64px; margin-bottom: 8px; background: url(/logo.svg) center / contain no-repeat; font-size: 0; opacity: .9; }
.empty p { margin: 0; color: var(--text); font-weight: 600; font-size: 16px; }
.empty small { color: var(--faint); max-width: 420px; }
.empty small b { color: var(--muted); }

.notice { position: absolute; left: 12px; top: 12px; right: 12px; background: #0e0c0be6; border: 1px solid var(--line2); padding: 9px 13px; border-radius: 10px; font-size: 13px; color: var(--amber); pointer-events: none; z-index: 3; backdrop-filter: blur(6px); }
.notice.click { pointer-events: auto; cursor: pointer; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); font-size: 16px; font-weight: 700; padding: 15px 22px; color: var(--amber-ink); background: var(--amber); border: 0; box-shadow: 0 12px 30px -10px #000; }

.reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.reaction { position: absolute; bottom: 10px; font-size: 34px; animation: floatUp 2.6s ease-out forwards; text-align: center; }
.reaction small { display: block; font-size: 11px; color: #fff; background: #000a; border-radius: 6px; padding: 0 5px; font-weight: 600; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-320px) scale(1); opacity: 0; } }

.controls, .voicebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.controls > .btn[id$="Btn"]:not(#syncBtn) { width: 40px; padding: 9px 0; }
.now-title { color: var(--muted); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44ch; padding-left: 6px; }
.emoji-bar { display: flex; gap: 2px; }
.emoji-bar button { background: none; border: 0; font-size: 19px; cursor: pointer; padding: 5px; border-radius: 9px; transition: transform .1s, background .15s; line-height: 1; }
.emoji-bar button:hover { background: var(--panel3); transform: scale(1.15); }
.vol { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 0 6px; }
.vol input { width: 90px; padding: 0; }
.voice-users { display: flex; gap: 6px; flex-wrap: wrap; }
.vu { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; transition: border-color .1s, box-shadow .1s; }
.vu.speaking { border-color: var(--ok); background: #173a2a; color: var(--ok); }

/* ---------- Yan panel ---------- */
.side { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); min-height: 0; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--muted); border-radius: 9px; font-size: 13px; font-weight: 700; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); background: var(--panel2); }
.tab.active { color: var(--amber-ink); background: var(--amber); }
.tab.active .badge { background: #2b1b0226; color: var(--amber-ink); }
#chatDot { color: var(--red); }
.badge { background: var(--panel3); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
.panel.active { display: flex; }

.messages { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { background: var(--panel2); border-radius: 12px 12px 12px 4px; padding: 7px 11px; word-wrap: break-word; font-size: 14px; max-width: 92%; align-self: flex-start; }
.msg .who { font-weight: 700; font-size: 12px; display: block; }
.msg .t { color: var(--faint); font-size: 11px; float: right; margin-left: 10px; }
.msg.me { background: #3a2a10; border-radius: 12px 12px 4px 12px; align-self: flex-end; }
.msg.sys { background: none; color: var(--faint); font-size: 12px; text-align: center; padding: 2px 0; align-self: center; max-width: 100%; }
.msg a { color: var(--amber); }
.chatform { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

.playlist { list-style: none; margin: 0; padding: 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pl-item { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid transparent; border-radius: 12px; padding: 8px; transition: border-color .15s; }
.pl-item:hover { border-color: var(--line2); }
.pl-item.current { border-color: #f5b54466; background: #2c2112; }
.pl-item .num { color: var(--faint); width: 18px; text-align: center; font-size: 12px; font-weight: 700; }
.pl-item.current .num { color: var(--amber); }
.pl-item .info { flex: 1; min-width: 0; cursor: pointer; }
.pl-item .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.pl-item .by { color: var(--faint); font-size: 12px; }
.pl-item img { width: 68px; height: 38px; object-fit: cover; border-radius: 7px; background: #000; }
.pl-item .acts { display: flex; gap: 1px; opacity: .55; transition: opacity .15s; }
.pl-item:hover .acts { opacity: 1; }
.pl-item .acts button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 7px; font-size: 12px; }
.pl-item .acts button:hover { background: var(--line); color: var(--text); }
.hint { color: var(--faint); font-size: 12px; text-align: center; padding: 10px; margin: 0; }

.people { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.people li { display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 12px; padding: 9px 11px; }
.people .nm { flex: 1; font-weight: 700; font-size: 14px; }
.people .tag { font-size: 11px; font-weight: 700; background: var(--amber); color: var(--amber-ink); border-radius: 6px; padding: 1px 7px; }
.people button { font-size: 12px; padding: 4px 9px; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; background: #0a0807d9; backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .card { width: min(380px, 100%); text-align: center; gap: 14px; padding: 28px 24px; box-shadow: 0 30px 80px -20px #000; }
.modal .card p { margin: 0; color: var(--muted); }
.modal .lang-select { justify-self: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel3); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -12px #000; max-width: calc(100% - 32px); }

/* ---------- Kaydırma çubukları ---------- */
.messages, .playlist, .people, .stage { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .room { height: auto; overflow: auto; }
  .layout { grid-template-columns: 1fr; }
  .stage { padding: 12px 16px; overflow: visible; }
  .side { border-left: 0; border-top: 1px solid var(--line); height: 70vh; }
  .player-wrap { max-height: none; }
  .urlbar { flex-wrap: wrap; }
  .urlbar input { flex-basis: 100%; }
  .toggle span { display: none; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .now-title { max-width: 100%; flex-basis: 100%; order: 10; padding: 2px 6px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  #copyLink { order: 5; }
}
