:root{color-scheme:dark;--bg:#111214;--panel:#1c1e22;--line:#33363d;--text:#f5f4f0;--soft:#c2c2c8;--accent:#f74969;--hot:#fc6983;--on:#13090d}
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,'Malgun Gothic',sans-serif;background:var(--bg);color:var(--text);line-height:1.5}a{color:inherit;text-decoration:none}header{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px max(16px,calc((100% - 1160px)/2));border-bottom:1px solid var(--line);background:#151619}header nav{display:flex;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:8px;font-size:1.13rem;font-weight:800;white-space:nowrap}.brand-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--accent);color:var(--on);font-size:.78rem}.nav-action,.button,button{display:inline-block;padding:8px 13px;border:1px solid var(--line);border-radius:8px;background:#26282e;color:var(--text);font:inherit;cursor:pointer}.primary{background:var(--accent);border-color:var(--accent);color:var(--on);font-weight:750}button:hover,.button:hover,.nav-action:hover{filter:brightness(1.18)}:focus-visible{outline:2px solid var(--hot);outline-offset:3px}main{max-width:1192px;margin:0 auto;padding:34px 16px 60px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(1.55rem,4vw,2.5rem);line-height:1.18}h2{font-size:1.25rem}h3{font-size:1.08rem}.muted,small{color:var(--soft)}.intro{margin-bottom:26px}.rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.panel,.room{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:17px}.room{display:flex;flex-direction:column;gap:5px}.room:hover{border-color:var(--hot)}.room-tile{min-height:115px;display:grid;place-items:center;background:linear-gradient(145deg,#282329,#20212a);border-radius:8px;color:var(--hot);font-size:1.5rem}.room h2{margin:6px 0 0}.studio{display:grid;grid-template-columns:minmax(245px,.8fr) minmax(0,1.4fr);gap:18px}.studio section{min-width:0}.form{display:grid;gap:11px}label{display:grid;gap:4px;font-size:.93rem}input{min-width:0;width:100%;border:1px solid var(--line);border-radius:7px;background:#141518;color:var(--text);padding:9px 10px;font:inherit}.form button{justify-self:start}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.stack{display:grid;gap:14px}.room-meta{margin-bottom:8px}.watch{display:grid;grid-template-columns:minmax(0,2fr) minmax(255px,1fr);gap:16px}.video-shell{position:relative;background:#070708;border:1px solid var(--line);border-radius:12px;overflow:hidden;aspect-ratio:16/9;display:grid;place-items:center}.video-shell video{width:100%;height:100%;position:absolute;inset:0}.video-shell .offline{z-index:1;background:#111e;padding:8px 12px;border-radius:7px}.product{margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.chat{display:grid;gap:8px;min-width:0;align-content:start}.chat-log{height:260px;overflow:auto;padding:7px;background:#151619;border-radius:6px;overflow-wrap:anywhere}.chat-log p{margin:0 0 5px;font-size:.93rem}.chat-log strong{color:var(--hot)}.message{display:flex;gap:6px}.message button{white-space:nowrap}.status{color:#ffacbb;min-height:1.3em;margin:4px 0 0}.authed{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.access{max-width:470px}.keybox{display:grid;gap:5px;margin:11px 0}.keybox code{display:block;background:#141518;padding:7px;overflow-wrap:anywhere;user-select:all}.empty{padding:24px}
@media(max-width:750px){header nav>a:first-child{display:none}.rooms{grid-template-columns:repeat(2,minmax(0,1fr))}.studio,.watch{grid-template-columns:1fr}.chat-log{height:180px}main{padding-top:24px}}
@media(max-width:400px){header{padding-inline:8px}.brand{font-size:.94rem}.nav-action{font-size:.88rem}.rooms{grid-template-columns:1fr}.product{align-items:flex-start;flex-wrap:wrap}}

[hidden]{display:none!important}

/* CLICKM_MOBILE_PORTRAIT */
@media (max-width: 767px) {
  .watch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .watch > * {
    min-width: 0;
  }
  .watch .video-shell {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 9 / 16 !important;
    overflow: hidden;
    background: #000;
  }
  .watch .video-shell > video,
  .watch .video-shell > iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border: 0;
  }
}

/* CLICKM_MOBILE_CHAT_DOCK */
@media (max-width: 767px) {
  .watch {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .watch .chat {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    width: auto;
    margin: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: #17181b;
  }

  .watch .chat .message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
  }

  .watch .chat .message input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .watch .chat .message button {
    min-height: 44px;
    white-space: nowrap;
  }
}

/* CLICKM_MOBILE_WATCH_FIXED */
@media (max-width: 767px) {
  html:has(#app > .watch) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body:has(#app > .watch) {
    position: fixed;
    inset: 0;
    height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body:has(#app > .watch) > header {
    flex: 0 0 auto;
  }

  #app:has(> .watch) {
    flex: 1 1 0;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-block: 0;
    padding-block: 6px env(safe-area-inset-bottom, 0px);
  }

  #app:has(> .watch) > h1,
  #app:has(> .watch) > .muted {
    flex: 0 0 auto;
    margin-block: 2px 4px;
  }

  #app > .watch,
  #app > .watch > :first-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    padding-bottom: 0;
  }

  #app > .watch .video-shell {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto !important;
  }

  #app > .watch .chat {
    position: static;
    flex: 0 0 auto;
    padding: 6px 8px;
  }

  #app > .watch .product {
    flex: 0 0 auto;
  }
}

/* CLICKM_MOBILE_VIDEO_OVERLAYS */
@media (max-width: 767px) {
  body:has(#app > .watch) > header {
    display: none;
  }

  #app:has(> .watch) {
    position: relative;
    padding: 0;
  }

  #app:has(> .watch) > h1,
  #app:has(> .watch) > .muted {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 5px #000, 0 1px 10px #000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  #app:has(> .watch) > h1 {
    top: calc(10px + env(safe-area-inset-top, 0px));
    font-size: 18px;
    line-height: 24px;
  }

  #app:has(> .watch) > .muted {
    top: calc(36px + env(safe-area-inset-top, 0px));
    font-size: 13px;
    line-height: 18px;
  }

  #app > .watch > :first-child {
    display: grid;
    grid-template-areas: "video" "product";
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
  }

  #app > .watch .video-shell {
    grid-area: video;
    border-radius: 0;
  }

  #app > .watch .chat {
    grid-area: video;
    position: relative;
    inset: auto;
    z-index: 4;
    align-self: end;
    margin: 0;
    padding: 0 12px calc(40px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  }

  #app > .watch .chat .message input {
    background: rgba(20, 20, 20, .75);
  }

  #app > .watch .video-shell .chat-log {
    bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #app > .watch .product {
    grid-area: product;
  }
}

@media (max-width: 767px) {
  #app:has(> .watch) > h1,
  #app:has(> .watch) > .muted {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #app:has(> .watch) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #app > .watch,
  #app > .watch > :first-child,
  #app > .watch .video-shell {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #app > .watch .video-shell > video {
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  #app > .watch .chat {
    pointer-events: none;
  }

  #app > .watch .chat .message {
    pointer-events: auto;
  }
}

/* CLICKM_MOBILE_CHAT_COMPACT */
@media (max-width: 767px) {
  #app > .watch .chat {
    padding: 0 8px max(4px, env(safe-area-inset-bottom, 0px));
  }

  #app > .watch .chat .message {
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    gap: 6px;
  }

  #app > .watch .chat .message input {
    box-sizing: border-box;
    height: 44px;
    min-height: 0;
    padding: 0 10px;
    font-size: 16px;
    line-height: 1.25;
  }

  #app > .watch .chat .message button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    border-radius: 12px;
  }

  #app > .watch .chat .message button::before {
    content: '';
    width: 21px;
    height: 21px;
    background: currentColor;
    clip-path: polygon(2% 43%, 98% 2%, 65% 98%, 46% 61%, 78% 24%, 36% 53%);
  }

  #app > .watch .video-shell .chat-log {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 767px) {
  #app > .watch .chat .message button {
    position: relative;
  }

  #app > .watch .chat .message button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
  }

  #app > .watch .video-shell .chat-log p {
    font-size: clamp(18px, 4.2vw, 22.5px) !important;
  }
}

@media (max-width: 767px) {
  #app > .watch .video-shell .chat-log {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0 !important;
  }

  #app > .watch .video-shell .chat-log p {
    margin: 0 !important;
    padding-block: 0 !important;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  body #app > .watch .video-shell .chat-log p {
    background: rgba(128, 128, 128, .55) !important;
  }
}

@media (max-width: 767px) {
  body #app > .watch .video-shell .chat-log p {
    color: #fff !important;
  }
}

@media (max-width: 767px) {
  #app > .watch .product > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    padding: 0 0 9px;
    border-radius: 50%;
    background: #e0d8d8;
    color: #252326;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    text-decoration: none;
  }

  #app > .watch .product > a::before,
  #app > .watch .product > a::after {
    content: '';
    position: absolute;
    left: 50%;
    box-sizing: border-box;
    transform: translateX(-50%);
    border: 2px solid currentColor;
  }

  #app > .watch .product > a::before {
    top: 18px;
    width: 17px;
    height: 16px;
    border-radius: 2px;
  }

  #app > .watch .product > a::after {
    top: 13px;
    width: 8px;
    height: 7px;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
  }
}

@media (max-width: 767px) {
  #app > .watch > :first-child {
    position: relative;
  }

  #app > .watch .product:not([hidden]) {
    position: absolute;
    inset: auto 0 calc(56px + env(safe-area-inset-bottom, 0px)) auto;
    z-index: 10;
    width: 60px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #app > .watch .product > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    padding: 0 0 8px;
    border-radius: 50%;
    background: #e0d8d8;
    color: #252326;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    text-decoration: none;
    white-space: nowrap;
  }

  #app > .watch .product > a::before,
  #app > .watch .product > a::after {
    content: '';
    position: absolute;
    left: 50%;
    box-sizing: border-box;
    transform: translateX(-50%);
    border: 2px solid currentColor;
  }

  #app > .watch .product > a::before {
    top: 17px;
    width: 17px;
    height: 16px;
    border-radius: 2px;
  }

  #app > .watch .product > a::after {
    top: 12px;
    width: 8px;
    height: 7px;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
  }
}

@media (max-width: 767px) {
  #app > .watch .product:not([hidden]) {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

.broadcast-admin { max-width: 1680px; }
.broadcast-admin h1 { margin: 0; }
.broadcast-list { margin-bottom: 16px; }
.broadcast-scroll { overflow-x: auto; }
.broadcast-table { border-collapse: collapse; width: 100%; min-width: 1160px; text-align: left; font-size: .88rem; }
.broadcast-table thead { background: #1d4e80; }
.broadcast-table th, .broadcast-table td { padding: 9px; border-bottom: 1px solid var(--line); }
.broadcast-table th:first-child { white-space: nowrap; }
.broadcast-table th[scope="row"] { min-width: 66px; }
.broadcast-table td:nth-child(2) { min-width: 110px; overflow-wrap: anywhere; }
.broadcast-table td:nth-child(3) { white-space: nowrap; }
.broadcast-table button, .broadcast-table .button, .broadcast-server button { padding: 5px 8px; font-size: .82rem; white-space: nowrap; }
.broadcast-value, .broadcast-actions { display: flex; gap: 5px; align-items: center; }
.broadcast-value input { min-width: 66px; padding: 6px; font-family: ui-monospace, monospace; }
.broadcast-server { max-width: 460px; }
.broadcast-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: end; }
.broadcast-form .broadcast-check { display: flex; align-items: center; align-self: center; }
.broadcast-check input { width: auto; }
.broadcast-help { grid-column: 1 / -1; color: var(--soft); margin: 0; font-size: .86rem; }
.broadcast-form > .status { grid-column: 1 / -1; margin: 0; }
.broadcast-list > .status:empty { margin: 0; min-height: 0; }
.broadcast-list > h3 { margin: 14px 0 5px; }
@media(max-width:767px){#app>.watch .chat .message button[type=submit]{background:#efec45!important;color-scheme:only light;forced-color-adjust:none;appearance:none;background-image:linear-gradient(#efec45,#efec45)!important;opacity:1!important;color:#000!important}}
@media(max-width:767px){#app>.watch .video-shell>.clickm-live-like{top:calc(64px + env(safe-area-inset-top,0px))!important}}
.clickm-live-like-action{font-size:0!important;background:transparent!important;border:0!important;padding:4px!important;min-width:76px;min-height:76px;line-height:1!important}
.clickm-live-like-action::before{content:"\2665";font:68px/1 system-ui;color:#ff304f;text-shadow:0 2px 6px #0008}
.clickm-live-like-action[aria-pressed=true]::before{text-shadow:0 0 8px #ff304f}
.watch .message input,.watch .message button[type=submit],.watch .product>a,.clickm-live-like-action,.clickm-live-like,
.watch .video-shell>span:not(.offline):not(.clickm-live-like),.watch .video-shell>button[aria-label^="\c18c\b9ac " ]{opacity:.50!important}

.watch .video-shell>button[aria-label^="\bc29\c1a1\20\b2e4\c2dc"]{font-size:0!important;opacity:1!important;background:transparent!important;border:0!important;padding:0!important;width:48px!important;height:48px!important}
.watch .video-shell>button[aria-label^="\bc29\c1a1\20\b2e4\c2dc"]::before{content:"";position:absolute;inset:0;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%2219%2019%20154%20154%22%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%2296%22%20r%3D%2277%22%20fill%3D%22white%22%20fill-opacity%3D%22.353%22%2F%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%2296%22%20r%3D%2275%22%20fill%3D%22%23101012%22%20fill-opacity%3D%22.882%22%2F%3E%3Cpath%20d%3D%22M131.91%2098.51A36%2036%200%201%201%20121.46%2070.54M104%2070.54h17.46V53%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");pointer-events:none}
.watch .video-shell>button[aria-label^="\bc29\c1a1\20\b2e4\c2dc"]{color-scheme:only light!important;forced-color-adjust:none;background-color:#101012!important}
