/* kurious-live watch room · brand v2 (ink, navy, blue, cyan), Almarai + IBM Plex Sans Arabic, kurious.digital wordmark. */
.kdl {
  --ink: #05070C; --night: #0A1220; --panel: #0C1626; --panel2: #101D31; --navy: #051B33;
  --blue: #1FA8E8; --blue-deep: #0B7BD0; --cyan: #34D8FE; --red: #E5484D;
  --text: #EAF6FD; --text2: rgba(234, 246, 253, .78); --muted: rgba(234, 246, 253, .56); --line: rgba(159, 230, 255, .14);
  --f-head: 'Almarai', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Almarai', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  direction: rtl; text-align: right; font-family: var(--f-body); color: var(--text); background: var(--ink);
  line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  position: relative; overflow-x: clip; min-height: 100svh; display: flex; flex-direction: column;
  width: calc(100vw - var(--sbw, 0px));
  margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2);
  margin-right: calc(50% - 50vw + var(--sbw, 0px) / 2);
}
.kdl.kdl-solo { width: 100%; margin: 0; }
.kdl *, .kdl *::before, .kdl *::after { box-sizing: border-box; }
.kdl h1, .kdl h2, .kdl h3, .kdl p { margin: 0; padding: 0; }
.kdl :where(button, input, textarea, select) { font: inherit; color: inherit; }
.kdl bdi { unicode-bidi: isolate; }
.kdl [hidden] { display: none !important; }

/* top bar */
.kdl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #03050A; min-height: 54px; }
.kdl-word { font-family: 'Bricolage Grotesque', 'Montserrat', 'Segoe UI', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1; color: #fff; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.kdl-word span { color: var(--cyan); }
.kdl-top .kdl-brand { font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kdl-top .kdl-me { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.kdl-top .kdl-me button { background: none; border: 0; padding: 4px 2px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
@media (max-width: 560px) { .kdl-top .kdl-brand { display: none; } }

/* gate */
.kdl-gate { flex: 1; display: grid; place-items: center; padding: 34px 18px 48px; background: radial-gradient(900px 420px at 50% -10%, rgba(52, 216, 254, .14), transparent 70%), var(--ink); }
.kdl-card { width: min(460px, 100%); background: var(--panel); border-radius: 20px; padding: 26px 22px 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.kdl-card h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.45; color: #fff; text-align: center; }
.kdl-card .kdl-lede { margin-top: 6px; text-align: center; color: var(--cyan); font-family: var(--f-head); font-weight: 700; font-size: 15.5px; line-height: 1.7; }
.kdl-card .kdl-sub { margin-top: 14px; text-align: center; color: var(--text2); font-size: 15.5px; line-height: 1.85; }
.kdl-field { margin-top: 18px; }
.kdl-field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--text2); margin-bottom: 7px; }
.kdl-input { width: 100%; min-height: 54px; border-radius: 12px; border: 1px solid rgba(159, 230, 255, .24); background: #060B14; color: #fff; padding: 12px 14px; font-size: 17px; font-family: var(--f-body); outline: none; transition: border-color .2s, box-shadow .2s; }
.kdl-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(52, 216, 254, .22); }
.kdl-input::placeholder { color: rgba(234, 246, 253, .38); }
.kdl-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 56px; margin-top: 14px; padding: 10px 20px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; text-align: center;
  background: linear-gradient(135deg, #0B74C6 0%, #0A66B6 45%, #07509A 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(52, 216, 254, .45), 0 12px 30px -12px rgba(52, 216, 254, .5);
  transition: transform .2s var(--ease), filter .2s; -webkit-tap-highlight-color: transparent; }
.kdl-btn b { font-family: var(--f-head); font-weight: 800; font-size: 18.5px; line-height: 1.45; }
.kdl-btn small { font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .85); }
.kdl-btn:hover { filter: brightness(1.08); }
.kdl-btn:active { transform: scale(.97); }
.kdl-btn[disabled] { cursor: progress; filter: saturate(.6) brightness(.9); }
.kdl-btn:focus-visible, .kdl-input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.kdl-btn.kdl-wa { background: #0F2A1E; box-shadow: 0 0 0 1px rgba(37, 211, 102, .55); }
.kdl-btn.kdl-wa b { font-size: 16.5px; }
.kdl-help { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.kdl-help a { color: var(--cyan); text-decoration: none; }
.kdl-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(229, 72, 77, .1); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); color: #FFD9DA; font-size: 15px; line-height: 1.85; }

/* room */
.kdl-room { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
@media (min-width: 980px) {
  .kdl-room { grid-template-columns: minmax(0, 1fr) 380px; height: calc(100svh - 54px); }
  .kdl-room.kdl-host { grid-template-columns: minmax(0, 1fr) 400px 340px; }
}
.kdl-left { min-width: 0; display: flex; flex-direction: column; background: var(--ink); }
@media (min-width: 980px) { .kdl-left { padding: 18px 22px; overflow-y: auto; } }
.kdl-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
@media (min-width: 980px) { .kdl-stage { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); max-height: calc(100svh - 190px); } }
@media (max-width: 979px) { .kdl-stage { position: sticky; top: 0; z-index: 5; } }
@media (max-width: 979px) { .kdl-stage.kdl-idle { position: relative; } }
.kdl-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.kdl-stage .kdl-shield { position: absolute; inset: 0; z-index: 2; }
.kdl-live { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 12px; border-radius: 7px; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 13.5px; line-height: 1.3; letter-spacing: 0; box-shadow: 0 6px 18px -6px rgba(229, 72, 77, .7); }
.kdl-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: kdl-pulse 1.6s ease-in-out infinite; }
@keyframes kdl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.kdl-ctrls { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 4; display: flex; gap: 8px; }
.kdl-ic { width: 42px; height: 42px; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(5, 7, 12, .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.kdl-ic:hover { background: rgba(5, 7, 12, .8); }
.kdl-ic svg { width: 21px; height: 21px; }
.kdl-over { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 18px; background: radial-gradient(700px 360px at 50% 0%, rgba(52, 216, 254, .16), transparent 70%), linear-gradient(180deg, #071426, #04080F); }
.kdl-over.kdl-glass { background: rgba(3, 6, 12, .5); }
.kdl-over .kdl-o-in { max-width: 560px; }
.kdl-over .kdl-o-day { font-family: var(--f-head); font-weight: 700; font-size: clamp(13px, 3.4vw, 15.5px); color: var(--cyan); }
.kdl-over h2 { margin-top: 6px; font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 5vw, 30px); line-height: 1.45; color: #fff; text-wrap: balance; }
.kdl-over .kdl-o-sub { margin-top: 8px; font-size: clamp(13.5px, 3.6vw, 16px); color: var(--text2); line-height: 1.8; text-wrap: pretty; }
.kdl-cd { margin: 14px auto 0; display: flex; justify-content: center; gap: clamp(6px, 2vw, 12px); direction: rtl; }
.kdl-cd div { min-width: clamp(52px, 14vw, 78px); padding: 8px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.kdl-cd b { display: block; font-family: 'Montserrat', 'Segoe UI', sans-serif; font-weight: 800; font-size: clamp(22px, 6.4vw, 36px); line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; direction: ltr; }
.kdl-cd span { display: block; font-size: clamp(11px, 2.8vw, 12.5px); color: var(--muted); margin-top: 2px; }
.kdl-tap { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer; background: #fff; color: #05070C; font-family: var(--f-head); font-weight: 800; font-size: clamp(15px, 4vw, 18px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); }
.kdl-tap svg { width: 22px; height: 22px; }
.kdl-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--cyan); animation: kdl-rot 1s linear infinite; margin: 0 auto 10px; }
@keyframes kdl-rot { to { transform: rotate(360deg); } }
.kdl-stage.kdl-idle { aspect-ratio: auto; min-height: min(56.25vw, 560px); display: grid; }
.kdl-stage.kdl-idle video { display: none; }
.kdl-stage.kdl-idle .kdl-over { position: relative; inset: auto; min-height: inherit; padding: 26px 16px; }
@media (min-width: 980px) { .kdl-stage.kdl-idle { min-height: min(calc((100vw - 424px) * .5625), calc(100svh - 190px)); } }
.kdl-stage.kdl-pseudo { position: fixed !important; inset: 0; z-index: 2147483000; aspect-ratio: auto; border-radius: 0; max-height: none; }

.kdl-under { padding: 14px 16px 4px; }
@media (min-width: 980px) { .kdl-under { padding: 16px 2px 0; } }
.kdl-under .kdl-dayline { font-family: var(--f-head); font-weight: 800; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.55; color: #fff; }
.kdl-under .kdl-dayline span { color: var(--cyan); }
.kdl-under .kdl-note { margin-top: 2px; font-size: 14px; color: var(--muted); }
.kdl-cta { margin-top: 12px; max-width: 440px; }
.kdl-cta .kdl-btn { margin-top: 0; animation: kdl-rise .5s var(--ease) both; }
@keyframes kdl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kdl-hostbar { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; color: var(--text2); }
.kdl-hostbar b { color: #fff; font-family: 'Montserrat', 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
.kdl-hostbar select, .kdl-hostbar button { min-height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); color: #fff; padding: 4px 10px; cursor: pointer; font-size: 14px; }

/* chat */
.kdl-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--night); border-inline-start: 1px solid var(--line); }
@media (max-width: 979px) { .kdl-chat { border-inline-start: 0; border-top: 1px solid var(--line); height: 72svh; min-height: 420px; margin-top: 14px; } }
.kdl-tabs { display: flex; border-bottom: 1px solid var(--line); }
.kdl-tabs button { flex: 1; min-height: 48px; border: 0; background: none; cursor: pointer; font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.kdl-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--cyan); }
.kdl-pinned { margin: 10px 12px 0; padding: 9px 12px; border-radius: 11px; background: rgba(52, 216, 254, .1); box-shadow: inset 0 0 0 1px rgba(52, 216, 254, .3); font-size: 14.5px; line-height: 1.75; display: flex; gap: 8px; align-items: flex-start; }
.kdl-pinned svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--cyan); }
.kdl-pinned .kdl-pn { font-weight: 700; color: var(--cyan); }
.kdl-pinned button { margin-inline-start: auto; flex: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.kdl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 6px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(159, 230, 255, .2) transparent; }
.kdl-m { padding: 6px 10px; border-radius: 10px; font-size: 15px; line-height: 1.75; word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.kdl-m + .kdl-m { margin-top: 2px; }
.kdl-m .kdl-n { font-weight: 700; color: #9FD8F2; margin-inline-end: 6px; }
.kdl-m .kdl-lb { font-size: 12px; color: var(--muted); font-weight: 500; margin-inline-end: 6px; }
.kdl-m .kdl-x { color: var(--text); }
.kdl-m.kdl-mine .kdl-n { color: #C9F3FF; }
.kdl-m.kdl-h { background: rgba(31, 168, 232, .13); border-inline-start: 3px solid var(--cyan); border-radius: 4px 10px 10px 4px; margin-block: 6px; }
.kdl[dir="rtl"] .kdl-m.kdl-h { border-radius: 10px 4px 4px 10px; }
.kdl-m.kdl-h .kdl-n { color: var(--cyan); }
.kdl-m .kdl-badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: #04121F; background: var(--cyan); border-radius: 5px; padding: 0 6px; margin-inline-end: 6px; line-height: 1.6; vertical-align: 1px; }
.kdl-m .kdl-acts { display: none; gap: 6px; margin-top: 4px; }
.kdl-host .kdl-m:hover .kdl-acts, .kdl-host .kdl-m:focus-within .kdl-acts { display: flex; }
.kdl-acts button, .kdl-q button { min-height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel2); color: var(--text2); cursor: pointer; font-size: 12.5px; }
.kdl-acts button:hover, .kdl-q button:hover { color: #fff; border-color: rgba(52, 216, 254, .5); }
.kdl-new { position: sticky; bottom: 6px; margin: 0 auto; display: block; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--cyan); color: #04121F; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8); }
.kdl-empty { padding: 24px 10px; text-align: center; color: var(--muted); font-size: 14.5px; }
.kdl-compose { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.kdl-row { display: flex; gap: 8px; align-items: flex-end; }
.kdl-row textarea { flex: 1; min-height: 48px; max-height: 120px; resize: none; border-radius: 12px; border: 1px solid rgba(159, 230, 255, .22); background: #060B14; color: #fff; padding: 11px 13px; font-family: var(--f-body); font-size: 16px; line-height: 1.6; outline: none; }
.kdl-row textarea:focus { border-color: var(--cyan); }
.kdl-send { flex: none; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; background: var(--blue-deep); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 15px; }
.kdl-send[disabled] { opacity: .5; cursor: default; }
.kdl-hint { margin-top: 7px; font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.kdl-hint.kdl-bad { color: #FFB4B6; }
.kdl-qpane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.kdl-qpane p { font-size: 14.5px; color: var(--text2); line-height: 1.85; }
.kdl-qpane textarea { width: 100%; min-height: 110px; margin-top: 12px; border-radius: 12px; border: 1px solid rgba(159, 230, 255, .22); background: #060B14; color: #fff; padding: 12px; font-family: var(--f-body); font-size: 16px; line-height: 1.7; outline: none; resize: vertical; }
.kdl-qpane textarea:focus { border-color: var(--cyan); }
.kdl-qpane .kdl-mine-q { margin-top: 14px; display: grid; gap: 8px; }
.kdl-qpane .kdl-mine-q div { padding: 9px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; color: var(--text2); }

/* host: questions column */
.kdl-qs { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #070E1A; border-inline-start: 1px solid var(--line); }
@media (max-width: 979px) { .kdl-qs { height: 60svh; border-top: 1px solid var(--line); } }
.kdl-qs h3 { padding: 13px 14px; font-family: var(--f-head); font-weight: 800; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.kdl-qs .kdl-qlist { flex: 1; overflow-y: auto; padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.kdl-q { padding: 10px 12px; border-radius: 11px; background: var(--panel2); font-size: 14.5px; line-height: 1.75; }
.kdl-q .kdl-n { font-weight: 700; color: #9FD8F2; }
.kdl-q .kdl-t { font-size: 12px; color: var(--muted); margin-inline-start: 6px; }
.kdl-q .kdl-qa { margin-top: 6px; display: flex; gap: 6px; }

.kdl-foot { padding: 14px 16px 18px; text-align: center; background: #03050A; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .45); }
.kdl-foot .kdl-word { font-size: 18px; display: inline-block; margin-bottom: 4px; }
.kdl-in-room .kdl-foot { display: none; }
@media (max-width: 979px) { .kdl-in-room .kdl-foot { display: block; } }
@media (prefers-reduced-motion: reduce) { .kdl *, .kdl *::before, .kdl *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
