@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --wm-color-canvas: #101112;
  --wm-color-surface: #191b1e;
  --wm-color-raised: #222529;
  --wm-color-border: #35383d;
  --wm-color-text: #f4f5f6;
  --wm-color-muted: #b4b8bf;
  --wm-color-subtle: #949aa4;
  --wm-color-accent: #a62290;
  --wm-color-accentHover: #ed8adf;
  --wm-color-accentSoft: #32162d;
  --wm-color-onAccent: #ffffff;
  --wm-color-mint: #90d5b5;
  --wm-color-amber: #ecc189;
  --wm-color-sky: #98c6e8;
  --wm-color-disabled: #70767f;
  --wm-radius-8: 8px;
  --wm-radius-12: 12px;
  --wm-radius-16: 16px;
  --wm-space-4: 4px;
  --wm-space-8: 8px;
  --wm-space-12: 12px;
  --wm-space-16: 16px;
  --wm-space-20: 20px;
  --wm-space-24: 24px;
  --wm-space-32: 32px;
  --wm-space-40: 40px;
}

* { box-sizing: border-box; }
/* A 6 px visible thumb with an 8 px transparent inset on either side. */
* { scrollbar-width: auto; scrollbar-color: auto; }
*::-webkit-scrollbar { width: 22px; height: 22px; }
*::-webkit-scrollbar-track { background: transparent; margin: 8px; }
*::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb, var(--wm-color-border)); border: 8px solid transparent; background-clip: padding-box; border-radius: 20px; }
*::-webkit-scrollbar-thumb:vertical { border-block-width: 0; min-height: 32px; }
*::-webkit-scrollbar-thumb:horizontal { border-inline-width: 0; min-width: 32px; }
*::-webkit-scrollbar-button { display: none; }
*::-webkit-scrollbar-corner { background: transparent; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--wm-color-canvas); color: var(--wm-color-text); font: 400 14px/22px 'Golos Text', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; flex-shrink: 0; }
picture { display: block; }
h1, h2, p { margin: 0; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wm-color-accentHover); outline-offset: 4px; }
.mobile-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 300; padding: 12px 16px; background: var(--wm-color-accent); color: var(--wm-color-onAccent); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; height: 40px; padding: 0 16px; border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-8); background: var(--wm-color-raised); color: var(--wm-color-text); font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; transition: background 160ms, border-color 160ms, transform 160ms; }
.button::after, .icon-button::after, .return-action::after, .bare-icon-button::after { content: ''; position: absolute; inset: -4px; }
.button-primary { height: 44px; border: 0; background: var(--wm-color-accent); color: var(--wm-color-onAccent); }
.button:active:not(:disabled), .icon-button:active { transform: scale(.98); }
.button:disabled { color: var(--wm-color-disabled); }
.button.is-following { border-color: var(--wm-color-accent); color: var(--wm-color-accentHover); background: var(--wm-color-accentSoft); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid var(--wm-color-border); background: var(--wm-color-raised); border-radius: var(--wm-radius-8); flex-shrink: 0; transition: border-color 160ms, transform 160ms; }
.bare-icon-button { display: flex; position: relative; align-items: center; justify-content: center; padding: 0; border: 0; background: none; line-height: 0; }
.return-action { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0; border: 0; background: none; color: var(--wm-color-muted); font-size: 13px; line-height: 18px; font-weight: 600; }
.return-action::after { inset: -8px 0; }
.text-action { display: inline-flex; gap: 6px; align-items: center; padding: 0; border: 0; background: none; color: var(--wm-color-muted); font-size: 12px; line-height: 18px; }

.site-header { display: flex; align-items: center; gap: var(--wm-space-40); height: 72px; padding: 0 24px; border-bottom: 1px solid var(--wm-color-border); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -1px; flex-shrink: 0; }
.brand img { width: 28px; height: 28px; }
.header-navigation { align-self: stretch; }
.active-navigation { display: flex; position: relative; align-items: center; gap: 8px; height: 72px; color: var(--wm-color-muted); }
.active-navigation::after { position: absolute; content: ''; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--wm-color-accent); }
.header-spacer, .controls-spacer, .meta-spacer, .chat-header-spacer { flex: 1; min-width: 0; }
.header-age-note { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; color: var(--wm-color-muted); white-space: nowrap; }
.header-login { width: 96px; height: 36px; flex-shrink: 0; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; align-items: start; gap: 24px; padding: 24px; max-width: 1920px; margin: 0 auto; }
.stream-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--wm-radius-12); box-shadow: inset 0 0 0 1px var(--wm-color-border); overflow: hidden; isolation: isolate; background: var(--wm-color-canvas); }
.stream-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: blur(12px); transform: scale(1.06); pointer-events: none; }
.privacy-scrim { position: absolute; inset: 0; z-index: -2; background: var(--wm-color-canvas); opacity: .67; }
.player::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--wm-color-border); }
.player-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: absolute; top: 20px; left: 20px; right: 20px; height: 26px; }
.live-badge { display: inline-flex; justify-content: center; align-items: center; gap: 6px; width: 97px; height: 26px; border-radius: var(--wm-radius-8); background: var(--wm-color-accentSoft); color: var(--wm-color-accentHover); font-size: 12px; line-height: 18px; white-space: nowrap; }
.restriction-status { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--wm-color-muted); }
.desktop-age-gate { position: absolute; top: calc(50% - 31px); left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(440px, calc(100% - 40px)); text-align: center; }
.age-badge { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: var(--wm-color-accentSoft); border: 1px solid var(--wm-color-accent); border-radius: var(--wm-radius-16); color: var(--wm-color-accentHover); font-size: 30px; line-height: 34px; font-weight: 700; }
.desktop-age-gate h2 { width: 100%; font-size: 26px; line-height: 34px; font-weight: 700; }
.desktop-age-gate p { color: var(--wm-color-muted); font-size: 14px; line-height: 22px; }
.age-actions { display: flex; align-items: center; flex-direction: column; gap: 8px; width: 100%; }
.desktop-age-gate .button-primary { width: 288px; max-width: 100%; }
.mobile-video-lock, .mobile-age-gate { display: none; }
.player-controls { position: absolute; display: flex; align-items: center; gap: 16px; left: 20px; right: 20px; bottom: 20px; height: 48px; color: var(--wm-color-subtle); }
.player-control { display: flex; align-items: center; justify-content: center; position: relative; width: 20px; height: 24px; padding: 0; border: 0; background: none; flex-shrink: 0; }
.player-control::after { content: ''; position: absolute; inset: -8px; }
.player-control[aria-pressed='true'] { background: var(--wm-color-accentSoft); border-radius: 4px; }
.protected-sound { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; line-height: 18px; }
.quality-label { font-size: 12px; line-height: 18px; }
.player-demo-state { position: absolute; top: 50%; left: 50%; width: min(480px, calc(100% - 32px)); transform: translate(-50%, -50%); text-align: center; }
.demo-eyebrow { display: inline-block; margin-bottom: 12px; font-size: 11px; letter-spacing: 1.2px; color: var(--wm-color-accentHover); }
.player-demo-state h2 { font-size: 32px; line-height: 40px; margin-bottom: 12px; }
.player-demo-state p { color: var(--wm-color-muted); }
.player-demo-state .demo-caption { font-size: 12px; line-height: 18px; margin-top: 8px; }
.player-demo-state .return-action { margin-top: 16px; }
.player-play-notice { position: absolute; inset: 0; display: grid; place-items: center; }

.channel-details { display: flex; flex-direction: column; gap: 12px; min-height: 140px; }
.channel-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.channel-avatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--wm-color-accentSoft); border: 2px solid var(--wm-color-accent); border-radius: 50%; color: var(--wm-color-accentHover); font-size: 22px; font-weight: 600; line-height: 30px; flex-shrink: 0; }
.channel-avatar { object-fit: cover; object-position: center 35%; }
.channel-identity { min-width: 0; }
.channel-name { display: flex; align-items: center; gap: 6px; height: 26px; font-size: 18px; line-height: 26px; font-weight: 600; }
.channel-identity p { font-size: 12px; line-height: 18px; color: var(--wm-color-muted); }
.channel-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; flex-shrink: 0; }
.follow-button { width: 150px; }
.channel-details h1 { font-size: 22px; line-height: 30px; font-weight: 600; overflow-wrap: anywhere; }
.stream-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; }
.tag { display: inline-flex; align-items: center; padding: 0 8px; height: 24px; border-radius: var(--wm-radius-8); background: var(--wm-color-raised); color: var(--wm-color-muted); font-size: 12px; line-height: 18px; white-space: nowrap; }
.metric { display: flex; align-items: center; gap: 6px; color: var(--wm-color-muted); font-size: 12px; line-height: 18px; white-space: nowrap; }
.about-stream { display: flex; flex-direction: column; gap: 8px; min-height: 124px; padding: 20px; border-radius: var(--wm-radius-12); background: var(--wm-color-surface); box-shadow: inset 0 0 0 1px var(--wm-color-border); }
.about-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.about-heading h2 { font-size: 14px; line-height: 22px; font-weight: 500; }
.about-stream > p { color: var(--wm-color-muted); }
.related-content { min-width: 0; padding: 20px; border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-12); background: var(--wm-color-surface); }
.related-content > h2 { margin-bottom: 20px; font-size: 20px; line-height: 28px; font-weight: 600; }
.related-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0; background: transparent; border-radius: 4px; --scrollbar-thumb: #bcbcbc; }
.related-scroll:focus-visible { outline: 2px solid var(--wm-color-accent); outline-offset: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--wm-color-border); border-radius: 4px; background: var(--wm-color-raised); color: var(--wm-color-text); font-family: Roboto, Arial, sans-serif; }
.related-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; background: var(--wm-color-raised); cursor: pointer; }
.related-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-new { position: absolute; bottom: 8px; right: 8px; padding: 0 8px; border-radius: 2px; background: #7cbb0b; color: #fff; font-size: 14px; line-height: 22px; font-weight: 400; }
.related-favorite { position: absolute; z-index: 1; top: -4px; right: -4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #c3c3c3; }
.related-favorite svg { width: 24px; height: 24px; }
.related-favorite:hover, .related-favorite[aria-pressed='true'] { color: #e8a326; }
.related-card :focus-visible { outline: 2px solid var(--wm-color-accent); outline-offset: -2px; }
.related-info { padding: 4px 10px 6px; }
.related-heading { display: flex; align-items: center; gap: 8px; height: 24px; border-bottom: 1px solid var(--wm-color-border); }
.related-name { min-width: 0; flex: 1; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; border: 0; background: transparent; color: var(--wm-color-text); font-size: 20px; line-height: 24px; font-weight: 500; }
.related-identity { display: inline-flex; align-items: center; gap: 7px; color: var(--wm-color-muted); font-size: 16px; line-height: 24px; }
.related-description { height: 44px; overflow: hidden; color: var(--wm-color-text); font-size: 15px; line-height: 22px; overflow-wrap: break-word; }
.related-meta { display: flex; align-items: center; gap: 9px; height: 20px; overflow: hidden; white-space: nowrap; color: var(--wm-color-muted); font-size: 13px; line-height: 20px; }
.related-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.related-camera { flex-shrink: 0; width: 14px; height: 17px; line-height: 0; }
.related-camera svg { width: 14px; height: 17px; }
.related-more { display: flex; justify-content: center; width: 100%; margin-top: 20px; min-height: 44px; }

.chat { display: flex; flex-direction: column; min-width: 0; height: max(640px, calc(100dvh - 120px)); position: sticky; top: 24px; background: var(--wm-color-surface); border-radius: var(--wm-radius-12); box-shadow: inset 0 0 0 1px var(--wm-color-border); }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 64px; flex-shrink: 0; border-bottom: 1px solid var(--wm-color-border); }
.chat-header h2 { font-size: 16px; line-height: 26px; font-weight: 600; white-space: nowrap; }
.chat-count { display: flex; align-items: center; gap: 5px; color: var(--wm-color-muted); font-size: 12px; line-height: 18px; }
.pinned-message { display: flex; flex-direction: column; gap: 8px; height: 108px; padding: 16px; flex-shrink: 0; }
.pin-label { display: flex; align-items: center; gap: 6px; color: var(--wm-color-muted); font-size: 11px; line-height: 18px; font-weight: 600; letter-spacing: .4px; white-space: nowrap; }
.pinned-message > p:last-child { color: var(--wm-color-muted); font-size: 13px; line-height: 20px; }
.chat-messages { display: flex; flex-direction: column; gap: 16px; padding: 16px 8px 16px 16px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.message-heading { display: flex; align-items: center; gap: 6px; height: 18px; }
.message-author { font-size: 13px; line-height: 18px; font-weight: 600; min-width: 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.name-mint { color: var(--wm-color-mint); }.name-amber { color: var(--wm-color-amber); }.name-sky { color: var(--wm-color-sky); }.name-accent { color: var(--wm-color-accentHover); }
.message-reply { color: var(--wm-color-muted); font-size: 11px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--wm-color-border); padding-left: 6px; }
.message-heading time { margin-left: auto; color: var(--wm-color-subtle); font-size: 11px; line-height: 18px; flex-shrink: 0; }
.chat-message > p { font-size: 14px; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-emoji-series { display: inline-flex; gap: 1px; vertical-align: -4px; white-space: nowrap; }
.message-emoji-series img { width: 20px; height: 20px; object-fit: contain; }
.message-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; position: relative; }
.reaction-pill, .reaction-add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; min-width: 44px; padding: 3px 9px; border: 1px solid transparent; border-radius: 18px; background: var(--wm-color-raised); color: var(--wm-color-muted); position: relative; font-size: 12px; line-height: 18px; font-weight: 600; }
.reaction-pill::before, .reaction-add::before { content: ''; position: absolute; inset: -7px 0; }
.reaction-pill[aria-pressed='true'] { background: var(--wm-color-accentSoft); color: var(--wm-color-accentHover); border-color: var(--wm-color-accent); }
.reaction-add { padding: 3px 7px; background: transparent; border-color: var(--wm-color-border); opacity: .75; }
.reaction-pill img, .reaction-picker img { object-fit: contain; }
.reaction-picker { position: fixed; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--wm-color-border); background: var(--wm-color-raised); border-radius: 14px; box-shadow: 0 4px 16px #0005; }
.reaction-picker button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; }
.reaction-picker button:active, .reaction-pill:active, .reaction-add:active { opacity: .65; }
.reaction-picker button:hover, .reaction-add:hover { background: var(--wm-color-accentSoft); }
.chat.hide-timestamps time { display: none; }
.chat-composer { display: flex; flex-direction: column; gap: 8px; height: 156px; padding: 16px; border-top: 1px solid var(--wm-color-border); flex-shrink: 0; }
.message-input-shell { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; min-height: 44px; background: var(--wm-color-raised); border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-8); }
.message-input-shell:focus-within { border-color: var(--wm-color-accentHover); }
.message-input-shell.requires-login { cursor: pointer; }
.message-input-shell.requires-login input, .message-input-shell.requires-login button { pointer-events: none; }
.message-input-shell input { width: 100%; min-width: 0; padding: 0; background: none; border: 0; outline: none; color: var(--wm-color-text); font-size: 13px; line-height: 22px; }
.message-input-shell input::placeholder { opacity: 1; color: var(--wm-color-subtle); }
.message-input-shell input:disabled { opacity: 1; -webkit-text-fill-color: var(--wm-color-subtle); }
.composer-note { font-size: 12px; line-height: 18px; color: var(--wm-color-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-submit { width: 100%; height: 40px; }

.popover-anchor { position: relative; flex-shrink: 0; }
.popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 224px; padding: 6px; background: var(--wm-color-raised); border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-12); box-shadow: 0 12px 40px #0006; }
.popover > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 10px 12px; background: none; border: 0; border-radius: 6px; color: var(--wm-color-text); font-size: 13px; line-height: 20px; text-align: left; }
.menu-item-label { flex: 1; }
.menu-item-icon { width: 18px; height: 18px; flex-shrink: 0; margin-right: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.metric.viewer-metric { color: #75d8ac; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer-dot { position: relative; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; margin-inline: 5px; }
.viewer-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; animation: viewer-pulse 2.4s ease-out infinite; }
@keyframes viewer-pulse { 0% { opacity: .7; transform: scale(.55); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .viewer-dot::after { animation: none; opacity: .35; } }
.popover-caption { padding: 8px 12px; color: var(--wm-color-muted); font-size: 11px; line-height: 18px; }
.quality-menu { top: auto; bottom: calc(100% + 10px); min-width: 176px; }
.quality-menu span { color: var(--wm-color-accentHover); font-size: 11px; }
.emoji-menu { top: auto; bottom: calc(100% + 16px); display: flex; gap: 4px; min-width: 196px; }
.emoji-menu > button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 20px; }

.dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; color: var(--wm-color-text); background: var(--wm-color-surface); border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-16); box-shadow: 0 24px 80px #0008; }
.dialog::backdrop { background: #050607b3; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.dialog-close { flex-shrink: 0; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--wm-color-border); background: var(--wm-color-raised); color: var(--wm-color-muted); font-size: 24px; line-height: 1; }
.dialog-description { margin-bottom: 20px; color: var(--wm-color-muted); }
.dialog label { display: block; margin: 16px 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.dialog input, .dialog select, .dialog textarea { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-8); background: var(--wm-color-raised); color: var(--wm-color-text); font-size: 16px; line-height: 22px; }
.dialog input[aria-invalid='true'] { border-color: var(--wm-color-accent); }
.dialog textarea { resize: vertical; }
.dialog input::placeholder, .dialog textarea::placeholder { color: var(--wm-color-subtle); }
.field-helper { color: var(--wm-color-muted); font-size: 12px; line-height: 18px; margin-top: 8px; }
.field-error { color: var(--wm-color-accentHover); font-size: 12px; line-height: 18px; margin-top: 8px; }
.dialog-submit { width: 100%; margin-top: 20px; }
.optional-label { font-weight: 400; color: var(--wm-color-muted); }
.logout-button { width: 100%; justify-content: center; min-height: 36px; margin-top: 12px; }
.auth-dialog {
  width: min(408px, calc(100% - 32px));
  color-scheme: dark;
  --wm-color-surface: #212121;
  --wm-color-raised: #2c2c2c;
  --wm-color-border: #606060;
  --wm-color-text: #fff;
  --wm-color-muted: #aaa;
  --wm-color-subtle: #a6a6a6;
  --wm-color-disabled: #858585;
  --wm-color-accent: #8774e1;
  --wm-color-accentHover: #7b68d7;
  --wm-color-accentSoft: #8774e11a;
  --wm-color-onAccent: #fff;
  --wm-color-mint: #75d8ac;
  --wm-color-authAction: #8774e1;
  --wm-color-authActionHover: #7b68d7;
  background: var(--wm-color-surface);
  border: 0;
  border-radius: 20px;
  padding: 48px 24px 24px;
  font-family: 'Roboto', Arial, sans-serif;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 6px 24px #0005;
  scrollbar-width: auto;
  scrollbar-color: auto;
}
.telegram-auth-heading { text-align: center; }
.telegram-auth-logo { display: block; margin: 0 auto 40px; width: 160px; height: 160px; }
.telegram-auth-heading h2 { font-size: 32px; line-height: 48px; font-weight: 500; letter-spacing: normal; }
.auth-dialog .dialog-description { margin: 8px auto 48px; max-width: 360px; color: var(--wm-color-muted); font-size: 16px; line-height: 1.35; min-height: 43.2px; }
.auth-dialog #login-form, .auth-dialog #auth-profile { max-width: 360px; margin-inline: auto; }
.auth-dialog .auth-profile:not([hidden]) ~ form { display: none; }
.auth-dialog .button-primary { height: 48px; font-size: 16px; line-height: 19.2px; font-weight: 500; text-transform: uppercase; letter-spacing: normal; color: #fff; background: var(--wm-color-authAction); border: 0; border-radius: 28px; }
.auth-dialog .button-primary:hover:not(:disabled) { background: var(--wm-color-authActionHover); }
.auth-dialog .dialog-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--wm-color-muted); }
.auth-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.telegram-field { position: relative; margin-top: 18px; }
.telegram-field:first-of-type { margin-top: 0; }
.auth-dialog .telegram-field label { position: absolute; z-index: 1; left: 14px; top: -9px; margin: 0; padding: 0 5px; background: var(--wm-color-surface); color: var(--wm-color-muted); font-size: 12px; line-height: 18px; font-weight: 400; }
.auth-dialog .telegram-field input, .auth-dialog .telegram-field select { min-height: 48px; height: 48px; padding: 11px 18px; background: var(--wm-color-surface); color: var(--wm-color-text); font-size: 16px; line-height: 20px; border-radius: 16px; border: 1px solid var(--wm-color-border); outline: none; transition: border-color 160ms; }
.auth-dialog .telegram-field input:focus, .auth-dialog .telegram-field select:focus { border: 2px solid var(--wm-color-accent); padding: 10px 17px; }
.auth-dialog .telegram-field:focus-within label { color: var(--wm-color-accent); }
.auth-dialog .telegram-field input[aria-invalid='true'] { border-color: #ff9292; }
.auth-dialog .telegram-field select option { background: var(--wm-color-surface); color: var(--wm-color-text); }
.auth-dialog .telegram-field input:-webkit-autofill { -webkit-text-fill-color: var(--wm-color-text); box-shadow: 0 0 0 1000px var(--wm-color-surface) inset; }
.auth-dialog .country-field input { padding-right: 48px; }
.auth-dialog .country-field input:focus { padding-right: 47px; }
.country-toggle { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--wm-color-muted); border-radius: 8px; display: grid; place-items: center; }
.country-toggle span { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.country-toggle[aria-expanded='true'] { color: var(--wm-color-accent); }
.country-toggle[aria-expanded='true'] span { transform: translateY(3px) rotate(225deg); }
.country-field.is-open > input { border-color: var(--wm-color-accent); }
.auth-dialog .country-field.is-open > label { color: var(--wm-color-accent); }
.country-dropdown { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; padding: 4px 0; border-radius: 16px; background: #212121de; backdrop-filter: blur(8px); box-shadow: 0 4px 8px 2px #1010109c; overflow: hidden; }
.country-dropdown.opens-up { top: auto; bottom: calc(100% + 8px); }
.country-list { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: auto; scrollbar-color: auto; }
.country-list, .auth-dialog { --scrollbar-thumb: #111; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb, var(--wm-color-border)) transparent; } }
.country-option { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 4px 8px; margin: 2px 4px; border-radius: 8px; cursor: pointer; color: #fff; font-size: 14px; line-height: 19.25px; }
.country-option:hover, .country-option.is-active { background: #2c2c2c; }
.country-option.is-active { box-shadow: inset 0 0 0 1px var(--wm-color-accent); }
.country-option img { width: 36px; height: 32px; object-fit: contain; flex-shrink: 0; }
.country-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.country-code { color: #999; font-weight: 500; white-space: nowrap; padding-right: 4px; }
.country-empty { padding: 16px; color: var(--wm-color-muted); font-size: 14px; }
.auth-dialog .dialog-submit { margin-top: 40px; }
.auth-dialog .field-error { color: #ff9292; font-size: 13px; }
.auth-progress { display: flex; gap: 12px; padding: 0; margin: 0 0 20px; list-style: none; color: var(--wm-color-subtle); font-size: 12px; line-height: 18px; }
.auth-progress li { padding-bottom: 8px; border-bottom: 2px solid var(--wm-color-border); flex: 1; }
.auth-progress [aria-current='step'] { color: var(--wm-color-accentHover); border-color: var(--wm-color-accent); }
.auth-notice { padding: 12px 14px; border: 1px solid var(--wm-color-border); border-radius: 8px; background: var(--wm-color-raised); color: var(--wm-color-muted); font-size: 13px; line-height: 20px; }
.auth-dialog .auth-checkbox { display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin: 18px 0 0; min-height: 48px; cursor: pointer; font-size: 13px; line-height: 24px; font-weight: 400; color: var(--wm-color-text); border-radius: 16px; }
.auth-checkbox:hover { background: #ffffff0a; }
.auth-dialog .auth-age { margin-top: 0; }
.auth-dialog #resend-note:empty { display: none; }
.auth-dialog .auth-checkbox input { position: relative; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 0; border: 2px solid #aaa; border-radius: 3px; background: transparent; cursor: pointer; }
.auth-dialog .auth-checkbox input:checked { background: var(--wm-color-accent); border-color: var(--wm-color-accent); }
.auth-dialog .auth-checkbox input:checked::after { content: ''; position: absolute; width: 6px; height: 11px; top: 0; left: 5px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-storage-note { text-align: center; }
.auth-status { color: var(--wm-color-muted); font-size: 13px; margin-top: 12px; }
.auth-status:empty { display: none; }
.auth-back, .auth-resend, .auth-disconnect { min-height: 44px; justify-content: center; width: 100%; font-size: 13px; }
.auth-resend { justify-content: flex-start; color: var(--wm-color-accentHover); }
.auth-resend:disabled { color: var(--wm-color-disabled); }
.auth-back { margin-top: 8px; }
.auth-password-field { position: relative; }
.auth-dialog .auth-password-field input { padding-right: 92px; }
.auth-dialog .auth-password-field input:focus { padding-right: 91px; }
.auth-password-field button { position: absolute; right: 4px; top: 6px; height: 44px; padding: 0 10px; border: 0; background: none; color: var(--wm-color-muted); font-size: 12px; }
.auth-connected { display: flex; gap: 8px; align-items: center; color: var(--wm-color-mint); }
.auth-profile h3 { margin: 20px 0 6px; font-size: 22px; line-height: 30px; overflow-wrap: anywhere; }
.auth-profile > p { color: var(--wm-color-muted); overflow-wrap: anywhere; }
.auth-secondary { width: 100%; min-height: 44px; margin-top: 10px; }
.auth-disconnect { color: var(--wm-color-accentHover); margin-top: 8px; }
.auth-dialog [aria-busy='true'] { opacity: .7; }
.player[data-protected='false'] .stream-video { filter: none; transform: none; object-fit: contain; }
.player[data-protected='false'] .privacy-scrim { opacity: 0; }
.player[data-protected='false'] .player-demo-state { left: 20px; top: auto; bottom: 78px; transform: none; text-align: left; width: calc(100% - 40px); }
.player[data-protected='false'] .player-demo-state h2 { display: none; }
.player[data-protected='false'] .demo-caption { margin-top: 4px; }
@media (max-width: 767px) {
  .auth-dialog { width: calc(100% - 16px); padding: 32px 16px 16px; max-height: calc(100dvh - 16px); border-radius: 16px; }
  .telegram-auth-logo { width: 120px; height: 120px; margin-bottom: 28px; }
  .telegram-auth-heading h2 { font-size: 20px; line-height: 20px; }
  .auth-dialog .dialog-description { font-size: 14px; line-height: 1.35; min-height: 37.8px; margin-bottom: 40px; }
  .player[data-protected='false'] .player-demo-state { left: 16px; bottom: 16px; width: calc(100% - 32px); }
}
@media (max-height: 600px) {
  .telegram-auth-logo { width: 64px; height: 64px; margin-bottom: 12px; }
  .auth-dialog .dialog-description { margin-bottom: 22px; }
}
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; z-index: 200; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border: 1px solid var(--wm-color-border); border-radius: var(--wm-radius-12); background: var(--wm-color-raised); color: var(--wm-color-text); font-size: 13px; line-height: 20px; text-align: center; box-shadow: 0 8px 30px #0006; transition: opacity 180ms, transform 180ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.left-stream-state { min-height: calc(100dvh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; }
.left-stream-state h1 { font-size: 28px; line-height: 36px; }
.left-stream-state p { color: var(--wm-color-muted); }
.left-stream-state .button-primary { min-width: 240px; }
.is-theater .page-layout { grid-template-columns: minmax(0, 1fr); max-width: 1600px; }
.is-theater .chat { position: static; height: 640px; }
.player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

@media (hover: hover) {
  .button:hover:not(:disabled) { background: var(--wm-color-surface); border-color: var(--wm-color-accent); }
  .button-primary:hover:not(:disabled) { background: var(--wm-color-accentHover); }
  .icon-button:hover, .dialog-close:hover { border-color: var(--wm-color-accent); }
  .return-action:hover, .text-action:hover { color: var(--wm-color-text); }
  .popover > button:hover { background: var(--wm-color-surface); }
}
@media (max-width: 1099px) and (min-width: 768px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .chat { position: static; height: 640px; }
  .desktop-age-gate { gap: 12px; }
  .desktop-age-gate h2 { font-size: 24px; }
}
@media (max-width: 1040px) { .header-age-note { display: none; } }
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .site-header { height: 56px; gap: 12px; padding: 0 16px; }
  .brand { font-size: 23px; line-height: 29px; }
  .brand img { width: 23px; height: 23px; }
  .header-navigation, .header-age-note { display: none; }
  .header-login { width: 72px; }
  .page-layout { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .stream-column { gap: 0; width: 100%; }
  .player { aspect-ratio: 39 / 22; border-radius: 0; box-shadow: none; }
  .player::after { display: none; }
  .player-status { left: 16px; right: 16px; top: 12px; }
  .desktop-age-gate, .player-controls { display: none; }
  .player[data-protected='false'] .player-controls { display: flex; left: 12px; right: 12px; bottom: 8px; gap: 12px; height: 44px; }
  .player[data-protected='false'] .quality-label, .player[data-protected='false'] #theater-button { display: none; }
  .mobile-video-lock { display: flex; flex-direction: column; align-items: center; gap: 8px; position: absolute; left: 16px; right: 16px; top: 35.4545%; text-align: center; }
  .mobile-video-lock h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
  .mobile-video-lock p { font-size: 12px; line-height: 18px; color: var(--wm-color-muted); }
  .mobile-age-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 220px; padding: 20px; width: 100%; background: var(--wm-color-surface); text-align: center; }
  .mobile-age-gate h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
  .mobile-age-gate > p { font-size: 13px; line-height: 20px; color: var(--wm-color-muted); }
  .mobile-age-gate .button-primary { width: 100%; }
  .channel-details { gap: 8px; min-height: 168px; padding: 16px; }
  .channel-row { min-height: 48px; }
  .channel-avatar { width: 48px; height: 48px; }
  .channel-actions { gap: 0; }
  .follow-button { width: 40px; height: 40px; padding: 0; }
  .channel-details h1 { font-size: 17px; line-height: 24px; }
  .about-stream { display: none; }
  .viewer-metric { flex-basis: 100%; }
  .related-content { margin: 0 16px 20px; padding: 16px; }
  .related-content > h2 { font-size: 18px; line-height: 26px; margin-bottom: 16px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-info { padding-inline: 6px; }
  .related-heading { gap: 4px; }
  .related-name { font-size: 16px; }
  .related-identity { gap: 3px; font-size: 13px; }
  .related-description { font-size: 13px; }
  .related-meta { gap: 4px; font-size: 11px; }
  .chat { position: static; width: 100%; height: 518px; border-radius: 0; box-shadow: none; }
  .chat-header { height: 52px; }
  .pinned-message { height: 100px; }
  .chat-messages { flex: 1; gap: 12px; }
  .chat-message.mobile-history { display: none; }
  .chat.show-history .chat-message.mobile-history { display: flex; }
  .message-heading { max-width: 312px; }
  .chat-composer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .message-input-shell input:focus { font-size: 16px; }
  .player-demo-state h2 { font-size: 24px; line-height: 30px; margin-bottom: 8px; }
  .player-demo-state p { font-size: 12px; line-height: 18px; }
  .player-demo-state .demo-caption { font-size: 11px; margin-top: 4px; }
  .player-demo-state .return-action { margin-top: 8px; font-size: 12px; }
  .demo-eyebrow { margin-bottom: 6px; }
  .is-theater .chat { height: 518px; }
}
@media (max-width: 360px) {
  .mobile-age-gate h2 { font-size: 20px; }
  .mobile-age-gate > p { font-size: 12px; }
  .pin-label { font-size: 10px; letter-spacing: .2px; }
  .chat-header h2 { font-size: 15px; }
  .chat-header { gap: 6px; }
  .channel-name { font-size: 17px; }
}
@media (max-width: 479px) {
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .related-info { padding-inline: 10px; }
  .related-heading { gap: 8px; }
  .related-name { font-size: 20px; }
  .related-identity { gap: 7px; font-size: 16px; }
  .related-description { font-size: 15px; }
  .related-meta { gap: 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
