:root {
  --bg: #0b0f14;
  --bg-soft: #11161d;
  --panel: #151b23;
  --panel-2: #1b2430;
  --line: #253142;
  --line-2: #304157;
  --text: #edf2f8;
  --muted: #9daaba;
  --accent: #6f80ff;
  --accent-2: #8eddd2;
  --danger: #e5647c;
  --success: #78d39c;
  --shadow: 0 24px 50px rgba(0,0,0,.28);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top, #111827 0%, #0b0f14 34%) fixed; color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body { min-height: 100vh; }
a, button { color: inherit; }
button, input, textarea { font: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.hidden { display:none !important; }
.full { width:100%; }
.muted { color: var(--muted); }
.row { display:flex; align-items:center; gap:10px; }
.wrap { flex-wrap:wrap; }
.between { justify-content:space-between; }
.gap12 { gap:12px; }
.gap16 { gap:16px; }
.tinyline { font-size:12px; }
.eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.16em; color:#92a4bb; font-weight:800; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,13,18,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(48,64,88,.65);
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-size:24px; font-weight:800; letter-spacing:-.03em; }
.brandword span { color: var(--accent-2); }
.logo { width:34px; height:34px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(180deg, #7b8bff, #5567fb); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.menu-toggle {
  display:none;
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  color:#dde5f2;
}
.topnav { display:flex; align-items:center; gap:8px; }
.navbtn {
  min-height:40px; padding:0 14px;
  border-radius:12px;
  color:#ccd5e1;
  transition:.16s ease;
}
.navbtn:hover { background: rgba(255,255,255,.03); }
.navbtn.active { background: linear-gradient(180deg, rgba(111,128,255,.16), rgba(111,128,255,.1)); box-shadow: inset 0 0 0 1px rgba(111,128,255,.18); color:white; }
.header-side { display:flex; align-items:center; gap:12px; justify-self:end; }
.top-actions { display:flex; align-items:center; gap:8px; }

.headprofile {
  display:flex; align-items:center; gap:10px;
  padding:7px 10px;
  border-radius:14px;
  width:auto;
  transition:.16s ease;
}
.headprofile:hover { background: rgba(255,255,255,.03); }
.headprofile b { display:block; font-size:13px; }
.headprofile small { display:block; font-size:11px; color:var(--muted); }
.avatar {
  width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; flex:none;
  font-weight:800; color:#10141b;
  background: var(--av, #7086ff);
}
.avatar.large { width:76px; height:76px; font-size:30px; }

main { width:100%; max-width: 1380px; padding: 26px 22px 42px; margin:0 auto; }
.panel {
  background: linear-gradient(180deg, rgba(20,26,34,.96), rgba(16,21,28,.96));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.primary, .outline, .subtle, .danger {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; padding:10px 16px; border-radius:12px;
  border:1px solid transparent; font-weight:700; letter-spacing:-.01em; transition:.18s ease;
}
.primary { color:white; background:linear-gradient(180deg, #6f80ff, #586bff); box-shadow:0 10px 26px rgba(88,107,255,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.primary:hover { transform:translateY(-1px); }
.outline { border-color:var(--line-2); background:rgba(255,255,255,.025); color:#d9e1ec; }
.outline:hover { border-color:#455770; background:rgba(255,255,255,.04); }
.subtle { background:#222b39; color:#dce5f2; border-color:#2c384b; }
.danger { color:#fff0f3; background: linear-gradient(180deg, #db5d72, #c14c60); }
.mini { min-height:34px; padding:7px 12px; font-size:12px; border-radius:10px; }
.iconbtn { width:42px; padding:0; }
.sendbtn { min-width:48px; padding-inline:0; }

input:not([type=range]):not([type=checkbox]):not([type=color]), textarea {
  width:100%; background:#0d1219; color:var(--text); border:1px solid #2a3444; border-radius:12px; padding:12px 13px; outline:none; transition:.15s ease;
}
input:focus, textarea:focus { border-color:#5467f8 !important; box-shadow:0 0 0 3px rgba(84,103,248,.12); }
textarea { resize:vertical; min-height:90px; }
input[type=color] { padding:4px; height:44px; background:transparent; border:0; }
input[type=range] { accent-color:var(--accent); }
.formfield { display:grid; gap:8px; margin:12px 0; color:#c0cad8; font-size:13px; font-weight:650; }
.checkboxrow { color:#c5cfdb; font-size:14px; }
.err { color:#ff98a8; font-size:12px; min-height:18px; margin:8px 0 2px; }
.modalactions { justify-content:flex-end; margin-top:14px; }

.centered-auth {
  min-height: calc(100vh - 150px);
  display:grid;
  place-items:center;
  position:relative;
}
.authbackdrop {
  position:absolute; inset:0;
  display:grid; place-items:center;
  pointer-events:none;
}
.distance-scene {
  position:relative;
  width:min(100%, 1100px);
  height:480px;
  border-radius:34px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(111,128,255,.16), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(142,221,210,.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(48,64,88,.35);
}
.distance-scene:before {
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity:.28;
}
.scene-person {
  position:absolute; bottom:56px;
  width:220px; height:250px;
  padding:18px;
  border-radius:28px;
  background: rgba(13,18,25,.72);
  border:1px solid rgba(48,64,88,.55);
  box-shadow: 0 20px 35px rgba(0,0,0,.18);
  animation: drift 6s ease-in-out infinite;
}
.scene-person.left { left:64px; }
.scene-person.right { right:64px; animation-delay: -2s; }
.person-screen {
  position:absolute; left:18px; right:18px; bottom:18px; top:72px;
  border-radius:22px;
  background: radial-gradient(circle at 50% 35%, rgba(111,128,255,.24), transparent 22%), linear-gradient(135deg, #1d2633, #10151d);
  border:1px solid rgba(111,128,255,.18);
}
.person-screen.warm { background: radial-gradient(circle at 50% 35%, rgba(142,221,210,.22), transparent 22%), linear-gradient(135deg, #1f2630, #10151d); }
.avatar-dot {
  width:44px; height:44px; border-radius:50%; background:linear-gradient(180deg, #7a8bff, #5f71fb); position:absolute; top:18px; left:22px;
}
.avatar-dot.two { left:22px; background:linear-gradient(180deg, #8eddd2, #4db7a7); }
.avatar-dot.three { left:76px; background:linear-gradient(180deg, #f6a3b3, #ea748b); }
.screen-play {
  position:absolute; inset:0; display:grid; place-items:center;
}
.screen-play:before {
  content:''; width:0; height:0; border-top:18px solid transparent; border-bottom:18px solid transparent; border-left:28px solid rgba(255,255,255,.94); margin-left:8px;
}
.speech {
  position:absolute; width:54px; height:24px; border-radius:20px; background: rgba(255,255,255,.08); top:30px; right:20px;
}
.distance-link {
  position:absolute; left:50%; top:48%; width:260px; height:2px; transform:translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.distance-link:before, .distance-link:after {
  content:''; position:absolute; top:-6px; width:14px; height:14px; border-radius:50%; background: rgba(255,255,255,.45);
  animation: ping 2s ease-in-out infinite;
}
.distance-link:before { left:70px; }
.distance-link:after { right:70px; animation-delay:1s; }
.float-heart, .float-chat, .float-ring {
  position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.15);
  animation: floaty 8s ease-in-out infinite;
}
.float-heart { width:52px; height:52px; left:46%; top:22%; }
.float-heart:before { content:'❤'; position:absolute; inset:0; display:grid; place-items:center; color:#f194a7; font-size:22px; }
.float-chat { width:58px; height:58px; left:22%; top:18%; animation-delay:-1.5s; }
.float-chat:before { content:'💬'; position:absolute; inset:0; display:grid; place-items:center; font-size:22px; }
.float-ring { width:120px; height:120px; right:22%; top:14%; border-color:rgba(111,128,255,.2); animation-delay:-3s; }
.authpanel-centered { width:min(520px, calc(100vw - 28px)); position:relative; z-index:2; padding:28px; backdrop-filter: blur(12px); }
.authpanel-centered h1 { margin:10px 0 8px; font-size:36px; letter-spacing:-.05em; }
.segmented.compact { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:6px; margin-top:18px; border:1px solid var(--line); border-radius:15px; background:rgba(255,255,255,.02); }
.stackform { margin-top:10px; }
.tabs button { min-height:38px; border-radius:10px; color:#99a7bc; font-weight:700; transition:.15s ease; }
.tabs button.active { background:rgba(108,124,255,.14); color:#eef2fa; box-shadow: inset 0 0 0 1px rgba(108,124,255,.16); }

.rave-shell { display:grid; gap:14px; }
.rave-topbar {
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  padding:22px 22px 18px;
  background: linear-gradient(180deg, rgba(23,29,38,.98), rgba(16,20,27,.96));
}
.rave-titleblock h1 { margin:8px 0 6px; font-size:30px; letter-spacing:-.04em; }
.rave-titleblock p { margin:0; color:#b7c2d2; line-height:1.5; }
.rave-actions { display:flex; gap:10px; flex-wrap:wrap; }
.rave-filterbar { display:flex; align-items:center; gap:10px; }
.search { width:min(320px, 100%); }
.rave-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.rave-roomcard {
  overflow:hidden; text-align:left; border-radius:22px;
  border:1px solid var(--line); background: linear-gradient(180deg, rgba(19,24,31,.98), rgba(15,19,25,.98));
  transition:.18s ease; display:flex; flex-direction:column;
}
.rave-roomcard:hover { border-color:#435774; transform:translateY(-2px); box-shadow:0 18px 34px rgba(0,0,0,.18); }
.room-art {
  position:relative; height:138px; overflow:hidden;
  border-bottom:1px solid rgba(48,64,88,.55);
  background: linear-gradient(135deg, #1c2330, #10161f);
}
.room-art.a1 { background: linear-gradient(135deg, #1b2531, #131922); }
.room-art.a2 { background: linear-gradient(135deg, #251f34, #141821); }
.room-art.a3 { background: linear-gradient(135deg, #1a2730, #141921); }
.room-art-glow {
  position:absolute; width:160px; height:160px; border-radius:50%;
  background: radial-gradient(circle, rgba(111,128,255,.35), rgba(111,128,255,.08) 45%, transparent 70%);
  right:-20px; top:-30px;
}
.room-art.a1 .room-art-glow { background: radial-gradient(circle, rgba(142,221,210,.32), rgba(142,221,210,.08) 45%, transparent 70%); }
.room-art.a2 .room-art-glow { background: radial-gradient(circle, rgba(234,116,139,.28), rgba(234,116,139,.08) 45%, transparent 70%); }
.room-art.a3 .room-art-glow { background: radial-gradient(circle, rgba(111,128,255,.28), rgba(142,221,210,.08) 45%, transparent 70%); }
.room-art-chip, .room-art-watchers {
  position:absolute; display:inline-flex; align-items:center; min-height:28px; padding:0 10px;
  border-radius:999px; border:1px solid rgba(255,255,255,.08); background:rgba(8,11,16,.42); font-size:11px;
}
.room-art-chip { left:14px; top:14px; color:#d8e2f0; }
.room-art-watchers { right:14px; bottom:14px; color:#bde9c8; }
.rave-roominfo { padding:16px; display:grid; gap:10px; }
.rave-roomhead { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.rave-roomhead strong { font-size:18px; line-height:1.15; }
.kindpill { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); font-size:11px; color:#dbe5f2; white-space:nowrap; }
.rave-roominfo p { margin:0; color:#c8d2df; font-size:14px; line-height:1.45; min-height:40px; }
.rave-roommeta { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:12px; }
.empty { text-align:center; padding:42px 18px; border:1px dashed #314054; border-radius:18px; color:var(--muted); grid-column:1 / -1; }
.empty strong { display:block; margin-bottom:6px; color:#ecf2f9; font-size:17px; }

.profile-shell { max-width:760px; }
.profilepanel { padding:24px; }
.profilepanel h1 { margin:0; }
.roomheading { margin-bottom:20px; }
.roomheading h1 { margin:0; font-size:28px; letter-spacing:-.04em; overflow-wrap:anywhere; }
.role { display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:999px; background:rgba(108,124,255,.14); color:#d7ddff; font-size:10px; font-weight:800; letter-spacing:.08em; }
.watchgrid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:start; }
.video-panel { overflow:hidden; }
.player { position:relative; overflow:hidden; aspect-ratio:16/9; background:#07090d; display:grid; place-items:center; }
.player iframe, .player video, .player #ytplayer { position:absolute; inset:0; width:100%; height:100%; border:0; }
.placeholder { text-align:center; max-width:420px; padding:20px; }
.playcircle { width:72px; height:72px; margin:0 auto 14px; display:grid; place-items:center; border-radius:50%; background:rgba(108,124,255,.16); border:1px solid rgba(108,124,255,.32); color:white; font-size:30px; }
.placeholder h3 { margin:0 0 6px; font-size:20px; }
.controlbar { display:flex; align-items:center; gap:10px; padding:12px 14px; border-top:1px solid rgba(48,64,88,.55); border-bottom:1px solid rgba(48,64,88,.55); }
.controlbar .time { font-size:12px; color:#b4c2d6; font-variant-numeric:tabular-nums; white-space:nowrap; }
.controlbar input[type=range] { flex:1; min-width:60px; }
.details { padding:16px; }
.details h3 { margin:0 0 5px; font-size:18px; }
.details p { margin:0; color:var(--muted); font-size:13px; }
.notice { margin-top:14px; padding:14px 15px; border-radius:14px; border:1px solid #273648; background:rgba(255,255,255,.025); color:#bcc7d7; font-size:13px; }
.syncwarn { margin-top:12px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.025); border:1px solid #273648; color:#ced8e7; font-size:12px; }
.chat { display:flex; flex-direction:column; min-height:520px; max-height:min(700px, 80vh); overflow:hidden; }
.chathead { padding:16px; border-bottom:1px solid rgba(48,64,88,.55); }
.chathead h3 { margin:0; font-size:15px; }
.status { font-size:12px; color:var(--muted); display:inline-flex; align-items:center; gap:7px; }
.dot { width:8px; height:8px; border-radius:50%; background:var(--success); display:inline-block; box-shadow:0 0 0 4px rgba(120,211,156,.12); }
.roomtabs { padding:8px 10px; border-bottom:1px solid rgba(48,64,88,.55); }
.messages, .members { flex:1; min-height:0; overflow:auto; padding:16px; }
.messages { display:flex; flex-direction:column; gap:15px; }
.msg { display:flex; gap:10px; align-items:flex-start; }
.msg.mine { justify-content:flex-end; }
.msg .avatar { width:30px; height:30px; font-size:12px; }
.msgcontent { min-width:0; max-width:75%; padding:10px 12px; border-radius:16px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.msg.mine .msgcontent { background:rgba(111,128,255,.14); border-color:rgba(111,128,255,.14); }
.msgmeta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:#dfe6f1; font-size:13px; font-weight:700; }
.msgmeta small { font-size:10px; font-weight:500; color:#8696ac; }
.msgbody { margin-top:3px; color:#d0d9e7; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.45; }
.chatempty { margin:auto 0; text-align:center; color:var(--muted); font-size:13px; }
.chatinput { display:grid; grid-template-columns:auto 1fr auto; gap:10px; padding:12px; border-top:1px solid rgba(48,64,88,.55); }
.emoji-toggle { width:42px; padding:0; }
.emoji-panel { display:flex; flex-wrap:wrap; gap:8px; padding:0 12px 12px; }
.emoji-item { width:38px; height:38px; border-radius:12px; border:1px solid #29364a; background:rgba(255,255,255,.025); font-size:20px; transition:.15s ease; }
.emoji-item:hover { background:rgba(255,255,255,.05); border-color:#40526c; transform:translateY(-1px); }
.members { display:grid; gap:12px; align-content:start; }
.member { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; }
.member small { display:block; color:var(--muted); overflow-wrap:anywhere; }
.banlist { display:grid; gap:10px; margin:14px 0 8px; }
.banrow { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.02); }
.divider { height:1px; background:var(--line); margin:14px 0; }

#toast { position:fixed; right:22px; bottom:22px; z-index:40; display:none; max-width:min(420px, calc(100vw - 34px)); padding:13px 16px; border-radius:14px; border:1px solid #33435a; background:rgba(16,20,27,.95); color:white; box-shadow:var(--shadow); }
dialog { width:min(500px, calc(100vw - 28px)); border:1px solid #2a3648; border-radius:20px; background:linear-gradient(180deg, #151b24, #11161e); color:var(--text); padding:24px; box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(5,8,12,.72); backdrop-filter:blur(6px); }
dialog h2 { margin:0; font-size:25px; letter-spacing:-.04em; }
dialog p { color:var(--muted); font-size:13px; line-height:1.5; }

@keyframes ping { 0%,100% { transform:scale(.8); opacity:.4; } 50% { transform:scale(1.2); opacity:1; } }
@keyframes floaty { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-16px); } }
@keyframes drift { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

@media (max-width: 1100px) {
  .watchgrid { grid-template-columns:1fr; }
  .distance-scene { height:420px; }
  .scene-person { width:200px; height:228px; }
}
@media (max-width: 920px) {
  .topbar-inner { grid-template-columns:auto auto 1fr auto; }
  .menu-toggle { display:grid; place-items:center; }
  .topnav {
    position:absolute; left:14px; right:14px; top:74px;
    display:none; flex-direction:column; align-items:stretch; gap:8px;
    padding:14px; border:1px solid var(--line); border-radius:18px; background:rgba(14,19,25,.98); box-shadow:var(--shadow);
  }
  body.menu-open .topnav { display:flex; }
  .navbtn { width:100%; text-align:left; }
  .header-side { gap:8px; }
  .top-actions { display:none; }
  main { padding:20px 14px 36px; }
  .distance-scene { height:380px; }
  .scene-person.left { left:22px; }
  .scene-person.right { right:22px; }
  .home-intro { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 700px) {
  .topbar-inner { grid-template-columns:auto auto 1fr; gap:12px; }
  .header-side { justify-self:end; }
  .headprofile small { display:none; }
  .headprofile b { max-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .centered-auth { min-height: calc(100vh - 120px); }
  .distance-scene { height:300px; border-radius:24px; }
  .scene-person { width:130px; height:160px; bottom:32px; padding:12px; border-radius:18px; }
  .person-screen { top:52px; left:12px; right:12px; bottom:12px; border-radius:14px; }
  .avatar-dot { width:28px; height:28px; top:14px; left:14px; }
  .avatar-dot.three { left:48px; }
  .speech { width:34px; height:16px; top:16px; right:12px; }
  .distance-link { width:120px; }
  .authpanel-centered h1 { font-size:30px; }
  .sectionhead { flex-direction:column; align-items:stretch; }
  .srchrow { width:100%; }
  .search { width:100%; }
  .roomline { padding:16px 14px; }
  .roomline strong { font-size:16px; }
  .controlbar { flex-wrap:wrap; }
  .chat { min-height:460px; }
  .member { grid-template-columns:auto 1fr; }
  .member .danger { grid-column:1 / -1; justify-self:stretch; }
  .banrow { flex-direction:column; align-items:stretch; }
}
@media (max-width: 520px) {
  .brand { font-size:20px; }
  .logo { width:32px; height:32px; }
  .headprofile { padding:6px 8px; }
  .authpanel-centered { padding:22px 18px; }
  .room-actions { width:100%; justify-content:flex-start; }
  .roomheading { gap:14px; flex-wrap:wrap; }
}


/* WatchWave 0.6 tweaks */
@media (max-width: 920px) {
  .rave-topbar { flex-direction:column; align-items:flex-start; }
  .rave-actions { width:100%; }
}
@media (max-width: 700px) {
  .authbackdrop { inset: 0 0 auto 0; height: 360px; }
  .distance-scene { width: 100%; height: 320px; border-radius: 24px; }
  .authpanel-centered { margin-top: 170px; background: rgba(16,21,28,.86); }
  .rave-list { grid-template-columns: 1fr; }
  .rave-filterbar { width: 100%; }
  .rave-roommeta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .centered-auth { min-height: calc(100vh - 100px); align-items: flex-start; padding-top: 10px; }
  .authbackdrop { height: 330px; }
  .distance-scene { height: 280px; }
  .authpanel-centered { margin-top: 150px; }
  .rave-titleblock h1 { font-size: 26px; }
  .rave-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .rave-actions .primary, .rave-actions .outline { width:100%; }
}

/* Account and friends — compact service screens */
.account-shell,.social-shell{max-width:980px;margin:6px auto 0}
.account-shell h1,.social-heading h1{font-size:28px;letter-spacing:-.035em;margin:0 0 24px}
.account-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}
.account-section{padding:24px;border:1px solid var(--line);border-radius:12px;background:#131922;min-width:0}
.account-section h2{font-size:21px;margin:0 0 6px}.account-section h3{font-size:16px;margin:24px 0 10px}.account-section p{font-size:13px;line-height:1.5}.account-section hr{border:0;border-top:1px solid var(--line);margin:24px 0}
.account-identity{padding-bottom:18px;border-bottom:1px solid var(--line)}.account-identity h2{overflow-wrap:anywhere}
.privacy-setting{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0 20px;font-size:14px}.privacy-setting small{display:block;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.4}.privacy-setting input{width:20px;height:20px;flex:none;accent-color:var(--accent)}
.social-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.social-heading h1{margin:0}.social-tabs{display:flex;gap:20px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:14px}.social-tabs button{font-size:14px;white-space:nowrap;padding:14px 0;color:var(--muted);border-bottom:2px solid transparent}.social-tabs button.active{border-bottom-color:var(--accent);color:var(--text);font-weight:650}.social-tabs span{color:#b4c0ce;font-size:12px}.social-list{display:flex;flex-direction:column}.person-row{display:flex;align-items:center;gap:14px;padding:16px 4px;border-bottom:1px solid var(--line);min-width:0}.person-row .avatar{width:46px;height:46px}.person-info{flex:1;min-width:0;overflow-wrap:anywhere}.person-info b{display:block;font-size:15px}.person-info span,.person-info p{display:block;color:var(--muted);font-size:13px;margin:4px 0 0}.person-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.people-search{display:flex;gap:10px;margin-bottom:12px}.social-empty{padding:32px 4px;color:var(--muted);font-size:14px}.request-count{background:#e5647c;color:#fff;border-radius:20px;padding:2px 6px;font-size:11px;min-width:18px;text-align:center}.invite-list{max-height:300px;overflow:auto;margin:10px 0}.invite-icon{width:42px;height:42px;display:grid;place-items:center;background:#202936;border-radius:8px;flex:none}.member-name{font-weight:700;text-align:left;padding:0;overflow-wrap:anywhere}.member-name:hover{text-decoration:underline}
@media(max-width:1150px){.topbar-inner{gap:10px;grid-template-columns:auto 1fr auto}.topbar-inner .topnav{gap:0}.topbar-inner .navbtn{padding-inline:10px}.top-actions{display:none}}
@media(min-width:921px){.topbar-inner{grid-template-columns:auto minmax(0,1fr) auto}}
@media(max-width:920px){.topbar-inner{grid-template-columns:auto auto minmax(0,1fr)}.account-grid{grid-template-columns:1fr}.social-tabs{gap:18px}.topnav .navbtn{text-align:left}.account-shell,.social-shell{margin-top:4px}}
@media(max-width:520px){.account-section{padding:18px}.account-shell h1,.social-heading h1{font-size:24px}.person-row{flex-wrap:wrap;gap:10px}.person-info{flex:1 1 60%}.person-actions{width:100%;justify-content:flex-start;padding-left:56px}.person-actions button{min-height:40px}.social-tabs button{font-size:13px}.social-heading .primary{font-size:13px;padding:10px 12px}.social-tabs{gap:16px}.invite-list .person-row{padding:12px 0}.invite-list .person-info{flex-basis:50%}.invite-list .send-invite{margin-left:56px}.headprofile{max-width:100%;min-width:0}.headprofile>div{display:none}}

/* 0.8 — photographs and narrow-screen viewing rooms */
.avatar{position:relative;overflow:hidden;isolation:isolate}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#profileAvatar{flex:none;display:flex}
.avatar-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}
.avatar-controls p{flex-basis:100%;margin:2px 0 0;overflow-wrap:anywhere}
.watchgrid>*{min-width:0}
.watchgrid .details .row>div{min-width:0;overflow-wrap:anywhere}
.roomheading>div:first-child{min-width:0}
.room-actions button{white-space:normal}
.chatinput{grid-template-columns:auto minmax(0,1fr) auto}
.chatinput input{min-width:0}
.player-empty{aspect-ratio:auto;min-height:260px;overflow:visible}
.player-empty .placeholder{width:100%;max-width:420px;min-width:0;padding:24px 16px;overflow-wrap:anywhere}
.player-empty .placeholder p{margin:8px 0 16px;line-height:1.45}
#firstsource{max-width:100%;white-space:normal}
@media(max-width:700px){
 .watchgrid{grid-template-columns:minmax(0,1fr)}
 .player-empty{min-height:230px}
 .player-empty .playcircle{width:48px;height:48px;margin-bottom:10px;font-size:20px}
 .player-empty .placeholder h3{font-size:18px}
 .player-empty .placeholder p{font-size:13px}
 .player-empty .placeholder{padding:18px 12px}
 #firstsource{min-height:44px;width:min(100%,240px)}
 .video-panel .details .row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 #source{width:100%;min-height:44px}
 .controlbar{display:grid;grid-template-columns:36px 1fr auto 36px 36px;gap:6px;padding:10px}
 .controlbar #seek{grid-row:2;grid-column:1/-1;width:100%;min-width:0;margin:6px 0}
 .controlbar .mini{padding:0;min-height:36px}
 .room-actions{display:flex;flex-wrap:wrap;gap:6px}
 .room-actions button{flex:1 1 auto;padding:10px 9px;font-size:13px}
 dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:18px}
 .modalactions{flex-wrap:wrap}
}

/* Voice chat: compact controls above room messages, not an overlay on the film. */
.voicebar{padding:10px 12px;border-bottom:1px solid var(--line);background:#121820;min-width:0;flex-shrink:0}
.voiceheading,.voicetitle{display:flex;align-items:center;gap:9px;min-width:0}.voiceheading{justify-content:space-between}.voicetitle svg,.voicebutton svg{width:19px;height:19px;flex-shrink:0}.voicetitle b{display:block;font-size:13px;font-weight:650}.voicetitle small{display:block;color:var(--muted);font-size:11px;margin-top:3px;overflow-wrap:anywhere}.voiceheading #voiceJoin{white-space:nowrap;min-height:36px}.voicecontrols{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-top:10px}.voicebutton{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;min-height:39px;padding:7px 8px;border-radius:8px;white-space:nowrap}.voicebutton.voice-off{color:#f3a5af;border-color:#69404b;background:#2c2029}.voicebutton.voiceleave{border:1px solid #7d3e4c;background:#3c202a;color:#ffb6c1}.voicepeople{display:flex;gap:7px;flex-wrap:wrap;max-height:80px;overflow:auto}.voicepeople:not(:empty){margin-top:9px}.voiceperson{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:11px;color:#d4dde9;background:#1d2631;border-radius:6px;padding:4px 6px}.voiceperson .avatar{width:20px;height:20px;font-size:10px}.voiceperson>span:nth-child(2){max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voiceperson i{width:7px;height:7px;border-radius:50%;background:#79d3a2;flex-shrink:0}.voiceperson i.mutedmic{background:#88919f}.voicebar #voiceRetryAudio{margin-top:8px}.chat{min-width:0}.voicebar + .roomtabs{flex-shrink:0}
@media(max-width:520px){.voicebar{padding:10px}.voicebutton{min-height:44px;padding:7px 5px;gap:4px}.voicebutton svg{width:16px;height:16px}.voiceheading #voiceJoin{min-height:44px}.chat{min-height:550px}.voiceperson>span:nth-child(2){max-width:80px}}
@media(max-width:340px){.voicebutton{flex-direction:column;gap:3px;white-space:normal;text-align:center}.voicecontrols{grid-template-columns:1fr 1fr 1fr}}

/* 0.10 — room chat stays inside the same fullscreen element as the video. */
.cinema-shell{background:#07090d;min-width:0;position:relative}
.cinema-stage{position:relative;min-width:0}
.cinema-alerts{position:absolute;z-index:4;right:12px;top:12px;width:min(270px,48%);display:flex;flex-direction:column;gap:6px;pointer-events:none}
.cinema-message{display:flex;align-items:flex-start;gap:8px;pointer-events:auto;background:rgba(13,17,23,.88);color:#f2f4f8;border:1px solid #ffffff20;border-radius:8px;text-align:left;padding:9px 10px;width:100%;min-width:0;animation:cine-toast 3s ease both}
.cinema-message .avatar,.cinema-history-row .avatar{width:26px;height:26px;font-size:11px}
.cinema-message-text{min-width:0;display:block;flex:1}
.cinema-message-text b{font-size:11px;color:#a9c5ff;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:3px}
.cinema-message-text>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.35}
@keyframes cine-toast{0%{opacity:0;transform:translateX(10px)}6%,90%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(6px)}}
.cine-control svg{width:18px;height:18px;flex:none}.cine-control[aria-pressed="false"]{opacity:.55}.cine-control[aria-expanded="true"]{background:#28354c;border-color:#5873ba}
.cinema-chat{position:absolute;right:10px;bottom:10px;z-index:5;width:min(340px,calc(100% - 20px));max-height:calc(100% - 20px);height:380px;display:flex;flex-direction:column;background:#111720f5;border:1px solid #394658;border-radius:10px;box-shadow:0 6px 24px #0007;overflow:hidden}
.cinema-chathead{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;flex-shrink:0}.cinema-chathead button,.cinema-quote button{font-size:23px;padding:0 8px;min-height:32px}
.cinema-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 10px;font-size:12px}.cinema-history-row{display:flex;align-items:flex-start;gap:7px;padding:7px 0}.cinema-history-row>div{flex:1;min-width:0}.cinema-history-row b{color:#a9c5ff;font-size:11px;overflow-wrap:anywhere}.cinema-history-row p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.cinema-reply-btn{padding:4px 8px;color:#9daaba;flex:none;font-size:16px}.cinema-reply-btn:hover{color:white}
.cinema-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px;border-top:1px solid var(--line);flex-shrink:0}.cinema-form input{min-width:0;font-size:16px;padding:8px!important}.cinema-form button{min-width:44px}.cinema-error{font-size:12px;color:#ff9da8;padding:0 8px;overflow-wrap:anywhere}.cinema-error:not(:empty){padding-bottom:8px}
.cinema-quote{display:flex;align-items:center;gap:6px;padding:4px 8px;border-left:2px solid #788bff;background:#26344a;font-size:12px;flex-shrink:0}.cinema-quote>div{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-reply-quote{border-left:2px solid #8494da;padding:3px 6px;margin:4px 0;background:#ffffff08;font-size:11px;min-width:0}.chat-reply-quote b,.chat-reply-quote span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.chat-reply-quote span{color:#aeb9ca}
.cinema-shell:fullscreen,.cinema-shell.cinema-fallback{width:100%;height:100%;background:#000;display:flex;flex-direction:column}.cinema-shell.cinema-fallback{position:fixed;inset:0;z-index:1000;width:100vw;height:100vh;height:100dvh}.cinema-lock{overflow:hidden}.cinema-expanded .cinema-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.cinema-expanded .player{width:100%;height:100%;aspect-ratio:auto;min-height:0;overflow:hidden}.cinema-expanded .player video{object-fit:contain}.cinema-expanded .controlbar{flex-shrink:0;padding-bottom:max(10px,env(safe-area-inset-bottom));background:#0e131a}.cinema-expanded .cinema-chat{max-height:calc(100% - 20px);height:min(440px,85%)}
@media(max-width:700px){.controlbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.controlbar #playbtn{grid-column:1;grid-row:1}.controlbar #position{grid-column:2;grid-row:1;text-align:center}.controlbar #duration{grid-column:3;grid-row:1;text-align:center}.controlbar #seek{grid-column:1/-1;grid-row:2}.controlbar #resync{grid-column:1;grid-row:3}.controlbar #cinemaToggle{grid-column:2;grid-row:3}.controlbar #cinemaAlertToggle{grid-column:3;grid-row:3}.controlbar #fullscreen{grid-column:5;grid-row:3}.controlbar .mini{min-height:40px}.cinema-alerts{top:7px;right:7px;width:min(230px,65%);gap:4px}.cinema-message{padding:6px;gap:5px}.cinema-message-text>span{font-size:12px}.cinema-chat{height:100%;max-height:100%;bottom:0;right:0;width:min(340px,100%);border-radius:8px}.cinema-expanded .cinema-chat{right:6px;bottom:6px;max-height:calc(100% - 12px);height:min(420px,95%);width:min(340px,calc(100% - 12px))}.cinema-expanded .controlbar{display:flex;flex-wrap:wrap;justify-content:center}.cinema-expanded .controlbar #seek{flex:1 1 80px;width:auto;min-width:50px}.cinema-expanded .controlbar .mini{padding:0 9px}}
@media(max-height:440px) and (orientation:landscape){.cinema-expanded .controlbar{padding:5px;flex-wrap:nowrap;display:flex}.cinema-expanded .controlbar .mini{min-height:34px}.cinema-expanded .controlbar #seek{flex:1;min-width:40px}.cinema-chathead{padding:2px 8px}.cinema-form{padding:4px}}
@media(prefers-reduced-motion:reduce){.cinema-message{animation:none}}

/* Independent film volume, including chromeless YouTube player. */
.video-volume{display:flex;align-items:center;gap:5px;flex:0 0 94px;min-width:0;color:var(--muted)}
.video-volume svg{width:18px;height:18px;flex:none}.controlbar .video-volume input[type=range]{width:68px;min-width:0;flex:1;margin:0}
/* Keep chat clear of required YouTube overlays; use an adjacent area. */
.youtube-mode .cinema-stage:has(.cinema-message),.youtube-mode .cinema-stage:has(.cinema-chat:not(.hidden)){display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,30%);align-items:center;gap:8px}
.youtube-mode .cinema-alerts:not(:empty),.youtube-mode .cinema-chat:not(.hidden){position:relative;inset:auto;width:100%;max-width:none;grid-column:2;grid-row:1;align-self:start;margin:0;max-height:100%}
.youtube-mode .cinema-chat:not(.hidden){height:100%;min-height:180px;align-self:stretch}.youtube-mode .cinema-alerts:empty{display:none}
.youtube-mode.cinema-expanded .cinema-stage:has(.cinema-message),.youtube-mode.cinema-expanded .cinema-stage:has(.cinema-chat:not(.hidden)){align-items:stretch}
@media(max-width:700px){.controlbar .video-volume{grid-column:4;grid-row:3;justify-content:center;flex:0 1 90px}.controlbar .video-volume svg{display:none}.controlbar .video-volume input[type=range]{width:100%}.youtube-mode .cinema-stage:has(.cinema-message),.youtube-mode .cinema-stage:has(.cinema-chat:not(.hidden)){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0}.youtube-mode .cinema-alerts:not(:empty),.youtube-mode .cinema-chat:not(.hidden){grid-column:1;grid-row:2}.youtube-mode .cinema-chat:not(.hidden){height:min(240px,36vh);min-height:130px}.youtube-mode .cinema-alerts:not(:empty){max-height:100px;overflow:auto}.youtube-mode.cinema-expanded .cinema-stage:has(.cinema-chat:not(.hidden)){grid-template-rows:minmax(0,1fr) minmax(130px,36%)} }

/* Room support and wallet */
.reward-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--panel);font-size:12px}.reward-notice>div{min-width:0}.reward-notice small,.wallet-line small{display:block;color:var(--muted);font-size:11px;margin-top:3px;overflow-wrap:anywhere}.reward-notice button{flex:none}.reward-terms p{margin:12px 0}.donation-link{text-decoration:none;margin:8px 0}.wallet-section{margin-top:20px}.wallet-amount{display:grid;gap:5px;margin:18px 0}.wallet-amount small{color:var(--muted)}.wallet-amount strong{font-size:32px;font-variant-numeric:tabular-nums}.wallet-summary{display:flex;flex-wrap:wrap;gap:12px 24px;margin:12px 0 20px}.wallet-summary span{display:grid;gap:5px;color:var(--muted);font-size:13px}.wallet-summary b{color:var(--text);font-size:17px}.wallet-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:14px}.reward-textbtn{color:var(--accent-2);text-decoration:underline;padding:0}.wallet-section h3{margin-top:24px}#rewardClose{margin-top:10px}@media(max-width:420px){.reward-notice{padding:9px;gap:6px}.reward-notice .mini{padding:6px 8px;white-space:nowrap}.wallet-summary{gap:12px}.wallet-amount strong{font-size:28px}}
/* Verified site staff: only server-issued roles. */
.avatar.staff-frame{outline:2px solid var(--staff-color);outline-offset:2px;box-shadow:0 0 0 1px #111827,0 0 9px var(--staff-glow)}
.staff-moderator{--staff-color:#8adfd4;--staff-glow:#4eb6a94d;color:#a8e8df}
.staff-admin{--staff-color:#9c9bff;--staff-glow:#8987f06b;color:#c3bfff}
.staff-founder{--staff-color:#f6cb76;--staff-glow:#f2bd6d99;color:#ffe0a2}
.avatar.staff-frame{color:#111827}
.avatar.staff-founder{outline:3px solid #ffdc8d;outline-offset:2px;box-shadow:0 0 0 5px #ad784c55,0 0 16px #fbc86f9c;animation:founder-glow 2.8s ease-in-out infinite alternate}
@keyframes founder-glow{to{box-shadow:0 0 0 5px #f3b76469,0 0 24px #ffd17dbb;outline-color:#fff1b7}}
@media(prefers-reduced-motion:reduce){.avatar.staff-founder{animation:none}}
.staff-badge,.person-info .staff-badge{display:inline-flex;vertical-align:middle;align-items:center;font-size:9px;font-weight:800;line-height:1.3;letter-spacing:.065em;white-space:nowrap;padding:3px 6px;border:1px solid var(--staff-color);border-radius:4px;margin:0 3px;color:var(--staff-color);background:#151c27}
.staff-badge.staff-founder{background:#332719;color:#ffdc95;border-color:#d6a957;box-shadow:0 0 8px #f1bd5633}
.account-identity .staff-badge{font-size:11px;padding:4px 8px}

.voice-audio{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.voice-hint{display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-top:8px}
.install-offer{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));right:16px;z-index:60;display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line-2);background:#151b23;border-radius:12px;box-shadow:0 12px 30px #0006;max-width:calc(100vw - 32px);width:420px}.install-offer img{border-radius:9px;flex-shrink:0}.install-offer>div{flex:1;min-width:0}.install-offer b{display:block;font-size:14px}.install-offer small{display:block;font-size:11px;color:var(--muted);line-height:1.4;margin-top:4px}.install-dismiss{font-size:21px;color:var(--muted);padding:3px;flex-shrink:0}.install-offer .mini{white-space:nowrap;min-height:36px}@media(max-width:440px){.install-offer{gap:8px;padding:10px;right:10px;max-width:calc(100vw - 20px)}.install-offer img{width:32px;height:32px}.install-offer .mini{padding:7px}.install-offer small{font-size:10px}}


/* 1.4.2 — community: restrained, non-modal links. */
.community-nav{display:inline-flex;align-items:center;gap:4px;text-decoration:none;white-space:nowrap;color:#8ecbe9;font-size:14px}
.community-nav span{font-size:12px;color:var(--muted)}
.community-link{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-decoration:none;transition:background .16s,border-color .16s}
.community-link:hover{background:var(--panel-2);border-color:var(--line-2)}
.community-link:focus-visible,.community-nav:focus-visible{outline:2px solid #8ecbe9;outline-offset:3px}
.community-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:#1a3345;color:#8ecbe9}
.community-icon svg{width:21px;height:21px}
.community-copy{display:grid;gap:4px;flex:1;min-width:0}
.community-copy strong{font-size:14px;font-weight:650}
.community-copy small{color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.community-action{font-size:13px;color:#8ecbe9;font-weight:600;white-space:nowrap;flex:none}
.community-action span{font-size:12px}
.community-compact{margin-top:16px;padding:12px 0 0;background:none;border:0;border-top:1px solid var(--line);border-radius:0}
.community-compact:hover{background:none;border-color:var(--line-2)}
.community-compact .community-icon{width:32px;height:32px}
@media(min-width:921px) and (max-width:1390px){.topbar-inner .top-actions{display:none}.topbar-inner .navbtn{padding-inline:10px}}
@media(max-width:920px){.community-nav{min-height:44px}}
@media(max-width:520px){.community-link{gap:9px;padding:11px 12px}.community-compact{padding:12px 0 0}.community-action{white-space:normal;max-width:88px;text-align:right;font-size:12px}.community-icon{width:32px;height:32px}.community-copy small{font-size:11px}}

/* 1.5: library and quiet live totals. */
.site-stats{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px;padding:8px 0;line-height:1.5;font-variant-numeric:tabular-nums}.site-stats[hidden]{display:none}.site-stats b{color:var(--text);font-weight:600}.stats-dot{opacity:.6}
.source-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.source-tabs .active{border-color:#8194ff;color:#c6d0ff;background:#222d43}.library-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,138px);gap:8px;margin:10px 0}.library-filter input,.library-filter select{width:100%;min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit;font-size:13px}.library-list{display:grid;gap:7px;max-height:min(45vh,380px);overflow-y:auto;padding:2px}.library-item{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:10px;text-align:left;cursor:pointer;white-space:normal}.library-item:hover,.library-item:focus-visible{border-color:#8194ff;background:var(--panel-2)}.library-art{width:38px;height:44px;background:#283246;border-radius:7px;display:grid;place-items:center;flex:none;color:#b8c5ff;font-size:15px}.library-info{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.library-info b{font-size:13px;line-height:1.35}.library-info small{color:var(--muted);font-size:11px;line-height:1.35}.library-info .library-platform{color:#a7b3ff}.library-play{font-size:12px;color:#a7b3ff;flex:none}.library-note{font-size:11px!important;margin-bottom:0}.source-tabs+ .err:empty{display:none}
@media(max-width:420px){.library-filter{grid-template-columns:minmax(0,1fr) minmax(0,115px)}.library-art{width:30px;height:38px}.library-item{padding:8px;gap:8px}.library-play{font-size:11px}}

/* WatchWave official cinema and persistent room pins */
.official-roomcard .room-art-chip{background:#b4a2ff;color:#151126;font-weight:800}
.official-roomcard .room-art{background:linear-gradient(125deg,#2c2850,#111d37 75%)}
.room-pin{flex:0 0 auto;margin:0 12px 8px;padding:10px 12px;border-left:3px solid #9c91ec;background:rgba(132,117,232,.10);border-radius:8px;min-width:0;font-size:12px;line-height:1.35}
.pin-head{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#aca3e8;font-size:11px;margin-bottom:5px}
.station-label{font-size:9px;font-weight:800;letter-spacing:.04em;color:#c1b6ff;margin-left:4px}
.pin-body{display:block;text-align:left;background:none;border:0;color:inherit;padding:4px 0 0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font:inherit;width:100%}
.pin-action{font:inherit;font-size:10px;color:var(--muted,#aaa);background:none;border:0;padding:3px 0;cursor:pointer;opacity:.8}
.pin-action:hover,.pin-action:focus{opacity:1;color:#c4b8ff}
.pin-full{white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;margin:12px 0}
.program-row{display:flex;align-items:flex-start;gap:9px;padding:5px 0;min-width:0;border-bottom:1px solid rgba(150,150,180,.12)}
.program-row time{flex:none;color:#b5afcf;font-variant-numeric:tabular-nums;font-size:11px}
.program-row div{min-width:0;overflow-wrap:anywhere}.program-row small{display:block;color:#9be0b7;font-size:10px}
.program-full{max-height:55vh;overflow:auto;margin-bottom:12px}.program-preview{margin:4px 0 6px}.program-preview .program-row{padding:3px 0}.room-pin p{margin:5px 0}
@media(max-width:600px){.program-preview .program-row:nth-child(3){display:none}.room-pin{margin:0 8px 6px;padding:8px 10px}}

/* WatchWave 1.7: search VK */
.source-tabs.source-tabs-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.source-tabs-three button{min-width:0;padding:9px 5px;font-size:12px;white-space:normal}.vk-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0}.vk-search-form input{width:100%;min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}.vk-search-options{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.vk-search-options label{display:flex;align-items:center;gap:5px}.vk-history{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.vk-history button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vk-art{width:88px;height:50px;position:relative;overflow:hidden}.vk-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.vk-external{display:inline-block;font-size:12px;color:#a7b3ff;margin-top:12px}.vk-external[hidden],.vk-search-options button[hidden],.source-tabs~section[hidden]{display:none!important}.vk-result .library-info{min-width:0}.vk-search-form button{white-space:nowrap}@media(max-width:420px){.vk-art{width:64px;height:39px}.source-tabs-three button{font-size:11px}.vk-result .library-play{font-size:10px}}
