:root { color-scheme: dark; background: #000; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body, #player-app, .video-shell { width: 100%; height: 100%; min-height: 100%; margin: 0; overflow: hidden; }
body { background: #000; }
.video-shell { position: fixed; inset: 0; background: #000; }
.video-js,
.video-js.vjs-fill,
.video-js.vjs-fluid,
.video-js .vjs-tech {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}
.video-js .vjs-tech { object-fit: contain; }
.state-panel { position: absolute; z-index: 20; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; background: radial-gradient(circle, #101c2a, #03070d 70%); color: #dbe8f6; }
#player-app.has-poster .state-panel { background: linear-gradient(180deg, rgba(3, 7, 13, .22), rgba(3, 7, 13, .62)); text-shadow: 0 1px 3px #000; }
.state-panel[hidden] { display: none; }
.language-switcher {
  position: absolute;
  z-index: 40;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: calc(100% - 180px);
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(3, 7, 13, .76);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
  color: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  transform: translateX(-50%);
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
  transition:
    opacity .24s ease,
    transform .24s ease,
    visibility 0s linear;
}
.video-js.vjs-user-inactive
  .language-switcher:not(.is-loading):not(:focus-within) {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition:
    opacity .24s ease,
    transform .24s ease,
    visibility 0s linear .24s;
}
.language-switcher::-webkit-scrollbar { display: none; }
.language-switcher-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px 0 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.language-switcher-label svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.video-js .language-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.video-js .language-button:hover,
.video-js .language-button:focus-visible {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  outline: 2px solid rgba(94, 234, 212, .8);
  outline-offset: -2px;
}
.video-js .language-button.is-active {
  background: #14b8a6;
  box-shadow: 0 2px 10px rgba(20, 184, 166, .28);
  color: #041311;
}
.video-js .language-button:disabled { cursor: wait; opacity: .58; }
.video-js .language-button.is-active:disabled,
.video-js .language-button.is-loading { opacity: 1; }
.video-js.vjs-liveui .vjs-control-bar .vjs-progress-control,
.video-js.sl-dvr-enabled .vjs-control-bar .vjs-progress-control { display: flex !important; visibility: visible !important; pointer-events: auto !important; }
.pulse { width: 13px; height: 13px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 0 #5eead488; animation: pulse 1.6s infinite; }
#state-message { max-width: 560px; line-height: 1.5; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px #5eead400; } 100% { box-shadow: 0 0 0 0 #5eead400; } }
@media (max-width: 560px) {
  .language-switcher { top: 8px; max-width: calc(100% - 16px); }
  .language-switcher-label span { display: none; }
  .language-switcher-label { padding-right: 3px; }
  .video-js .language-button { min-height: 30px; padding: 5px 10px; font-size: 12px; }
}

#player-app.has-questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  background: var(--brand-bg, #03070d);
}
#player-app.has-questions .video-shell {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
}
#player-app.has-questions.questions-closed { grid-template-columns: minmax(0, 1fr); }
#player-app.has-questions.questions-closed .questions-panel { display: none; }
.questions-toggle {
  position: absolute;
  z-index: 45;
  top: 14px;
  right: 14px;
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--brand-text, #f8fafc) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-panel, #03070d) 86%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
  color: var(--brand-text, #f8fafc);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.questions-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.questions-closed .questions-toggle { display: inline-flex; }
.questions-panel {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 18%, transparent);
  background: var(--brand-panel, #0b121c);
  color: var(--brand-text, #e7eef7);
}
.questions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 18%, transparent);
  background: color-mix(in srgb, var(--brand-panel, #0e1723) 90%, var(--brand-bg, #03070d));
}
.questions-eyebrow {
  margin: 0 0 4px;
  color: var(--brand-accent, #5eead4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.questions-header h2 { margin: 0; color: var(--brand-text, #f8fafc); font-size: 19px; line-height: 1.2; }
.questions-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--brand-text, #cbd5e1) 25%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-bg, #111d2b) 65%, var(--brand-panel, #0b121c));
  color: color-mix(in srgb, var(--brand-text, #cbd5e1) 82%, transparent);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.questions-close:hover,
.questions-close:focus-visible { border-color: var(--brand-accent, #5eead4); color: var(--brand-text, #fff); outline: none; }
.questions-feed { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.questions-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.question-item { padding: 16px 18px; border-bottom: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 14%, transparent); }
.question-meta { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--brand-text, #8fa2b8) 62%, transparent); font-size: 12px; }
.question-author { overflow: hidden; color: color-mix(in srgb, var(--brand-text, #dbe7f4) 88%, transparent); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.question-time { flex: 0 0 auto; }
.question-body { margin: 8px 0 12px; color: var(--brand-text, #f1f5f9); font-size: 14px; line-height: 1.48; overflow-wrap: anywhere; }
.question-actions { display: flex; align-items: center; justify-content: flex-end; }
.question-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--brand-text, #aebed0) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-bg, #111d2b) 65%, var(--brand-panel, #0b121c));
  color: color-mix(in srgb, var(--brand-text, #aebed0) 72%, transparent);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.question-like svg { width: 15px; height: 15px; fill: currentColor; }
.question-like:hover,
.question-like:focus-visible { border-color: var(--brand-accent, #5eead4); color: var(--brand-text, #e6fffb); outline: none; }
.question-like.is-liked { border-color: var(--brand-accent, #14b8a6); background: color-mix(in srgb, var(--brand-accent, #14b8a6) 20%, var(--brand-panel, #0b121c)); color: var(--brand-accent, #99f6e4); }
.question-like:disabled { cursor: default; opacity: .65; }
.question-answer {
  margin-top: 13px;
  padding: 11px 12px;
  border-left: 3px solid var(--brand-accent, #14b8a6);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--brand-accent, #14b8a6) 12%, var(--brand-panel, #0b121c));
  color: var(--brand-text, #d9fffa);
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.question-answer::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--brand-accent, #5eead4); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.questions-empty { margin: 0; padding: 28px 22px; color: color-mix(in srgb, var(--brand-text, #8fa2b8) 62%, transparent); font-size: 14px; line-height: 1.5; text-align: center; }
.questions-empty[hidden] { display: none; }
.question-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 18%, transparent);
  background: color-mix(in srgb, var(--brand-panel, #0e1723) 90%, var(--brand-bg, #03070d));
}
.question-form label { display: grid; gap: 5px; color: color-mix(in srgb, var(--brand-text, #aebed0) 72%, transparent); font-size: 12px; font-weight: 700; }
.question-form label.is-hidden { display: none; }
.question-form input,
.question-form textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 25%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand-bg, #07101a) 76%, var(--brand-panel, #0b121c));
  color: var(--brand-text, #f8fafc);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.question-form input { min-height: 38px; padding: 8px 10px; }
.question-form textarea { min-height: 72px; padding: 9px 10px; resize: vertical; }
.question-form input:focus,
.question-form textarea:focus { border-color: var(--brand-accent, #2dd4bf); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-accent, #2dd4bf) 18%, transparent); }
.question-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-form-footer button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--brand-accent, #14b8a6);
  color: var(--brand-bg, #041311);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.question-form-footer button:disabled { cursor: wait; opacity: .58; }
.question-status { flex: 1 1 auto; min-height: 18px; margin: 0; color: color-mix(in srgb, var(--brand-text, #8fa2b8) 62%, transparent); font-size: 11px; line-height: 1.35; }
.question-status.is-error { color: #fda4af; }
.questions-preview-note { margin: 0; padding: 14px 16px; border-top: 1px solid color-mix(in srgb, var(--brand-text, #e7eef7) 18%, transparent); color: color-mix(in srgb, var(--brand-text, #8fa2b8) 62%, transparent); font-size: 12px; line-height: 1.45; }

@media (max-width: 840px) {
  #player-app.has-questions { grid-template-columns: minmax(0, 1fr); }
  #player-app.has-questions .questions-panel { position: absolute; inset: 0; z-index: 90; border-left: 0; }
  .questions-toggle { top: 8px; right: 8px; min-height: 34px; padding: 6px 10px; }
}
