/* Minimal stylesheet — dark, single-stream layout. */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#0e0e10;color:#efeff1;font-family:-apple-system,Segoe UI,Roboto,sans-serif}
a{color:#b388ff;text-decoration:none}
a:hover{text-decoration:underline}

/* Topbar */
.topbar{display:flex;justify-content:space-between;align-items:center;background:#18181b;padding:8px 16px;border-bottom:1px solid #2d2d33}
.topbar-brand,.topbar-menu,.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px}
.topbar-menu{flex:1;justify-content:space-between}
.topbar-menu-toggle{display:none}
.logo{font-weight:700;color:#ff4d4d;font-size:18px}
.badge{padding:2px 8px;border-radius:4px;font-size:12px;font-weight:700}
.badge.live{background:#ff4d4d;color:#fff;animation:pulse 1.5s infinite}
.badge.offline{background:#2d2d33;color:#999}
@keyframes pulse{50%{opacity:.6}}
.viewer-count{color:#aaa;font-size:14px}
.user-chip{display:inline-flex;align-items:center;gap:6px;border:2px solid;border-radius:20px;padding:2px 10px 2px 2px}
.user-chip .initials{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#000;font-weight:700;font-size:12px}
.btn{display:inline-block;padding:6px 12px;border:1px solid #444;border-radius:4px;background:#2d2d33;color:#fff;cursor:pointer;font-size:14px}
.btn-sm{padding:4px 10px;font-size:13px}
.btn-xs{padding:1px 6px;font-size:11px}
.btn-primary{background:#9147ff;border-color:#9147ff}
.btn-warn{background:#f5a623;border-color:#f5a623;color:#000}
.btn-danger{background:#e02e2e;border-color:#e02e2e}
.btn-outline{background:transparent}
.btn:hover{filter:brightness(1.15)}
.hidden{display:none!important}

/* Private messages */
.msg-icon-btn{position:relative;width:34px;height:34px;border:1px solid #444;border-radius:4px;background:#2d2d33;color:#fff;cursor:pointer;font-size:18px;line-height:1}
.msg-icon-btn:hover{filter:brightness(1.15)}
.msg-badge{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e02e2e;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.inbox-overlay,.dm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:8000;display:flex;align-items:center;justify-content:center;padding:18px}
.inbox-panel,.dm-modal{background:#18181b;border:1px solid #2d2d33;border-radius:8px;box-shadow:0 14px 50px rgba(0,0,0,.55);overflow:hidden}
.inbox-panel{width:min(860px,96vw);height:min(620px,88vh);display:flex;flex-direction:column}
.dm-modal{width:min(460px,96vw);max-height:80vh;display:flex;flex-direction:column}
.inbox-header,.dm-header,.msg-popup-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #2d2d33;background:#202024}
.inbox-header h3,.dm-header h3{margin:0;font-size:16px}
.dm-close{background:transparent;border:0;color:#ddd;font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.dm-close:hover{color:#fff}
.inbox-body{display:grid;grid-template-columns:260px 1fr;min-height:0;flex:1;overflow:hidden}
.inbox-sidebar{border-right:1px solid #2d2d33;overflow-y:auto;background:#111114}
.inbox-empty,.dm-empty,.inbox-chat-placeholder{color:#888;padding:18px;text-align:center}
.inbox-chat{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;overflow:hidden}
.inbox-chat-placeholder{height:100%;display:flex;align-items:center;justify-content:center}
.inbox-chat-messages,.dm-messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px;display:flex;flex-direction:column;gap:8px}
.inbox-contact{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;border-bottom:1px solid #222229}
.inbox-contact:hover,.inbox-contact.active{background:#2a2534}
.inbox-contact-avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#9147ff;color:#fff;font-weight:700;font-size:12px;flex:0 0 auto}
.inbox-contact-info{min-width:0;flex:1}
.inbox-contact-name{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-contact-preview{font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.inbox-contact-badge{min-width:18px;height:18px;border-radius:9px;background:#e02e2e;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.dm-form{display:flex;gap:8px;padding:10px;border-top:1px solid #2d2d33;background:#18181b}
.dm-form input[type=text]{flex:1;background:#0e0e10;color:#fff;border:1px solid #2d2d33;border-radius:4px;padding:8px 10px;min-width:0}
.dm-msg{max-width:82%;padding:8px 10px;border-radius:8px;background:#2d2d33;align-self:flex-start;word-break:break-word}
.dm-msg-mine{background:#5f35a6;align-self:flex-end}
.dm-msg-meta{display:flex;gap:8px;align-items:center;font-size:11px;color:#d0d0d0;margin-bottom:3px}
.dm-msg-meta span{opacity:.75}
.dm-msg-text{font-size:14px;line-height:1.35}
.msg-popup{position:fixed;right:18px;bottom:18px;width:min(360px,calc(100vw - 36px));background:#18181b;border:1px solid #9147ff;border-radius:8px;box-shadow:0 14px 44px rgba(0,0,0,.55);z-index:8500;overflow:hidden}
.msg-popup-body{padding:12px 14px;color:#eee}
.msg-popup-text{margin:0;line-height:1.4}
.btn-popup-reply{margin:0 14px 14px}
.chat-dm-btn{margin-left:4px;vertical-align:middle}
.comment-author{cursor:pointer}
.comment-author:hover{text-decoration:underline}
.support-context-menu{position:fixed;z-index:10000;min-width:180px;background:#10141a;border:1px solid #334155;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.support-context-menu button{display:block;width:100%;padding:10px 12px;background:transparent;border:0;border-bottom:1px solid #26303a;color:#e8eaed;text-align:left;cursor:pointer}
.support-context-menu button:last-child{border-bottom:0}
.support-context-menu button:hover{background:#1a2029}

/* Flashes */
.flashes{padding:8px 16px}
.flash{padding:8px 12px;border-radius:4px;margin-bottom:6px}
.flash-error{background:#5a1f1f;color:#ffb3b3}
.flash-success{background:#1f4d2a;color:#b3ffb3}

/* Live layout */
.body-live{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.body-live .topbar{flex:0 0 auto}
.body-live main{flex:1;min-height:0;overflow:hidden}
.body-live .site-footer{display:none}
.live-content{height:100%;min-height:0}
.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;height:100%;min-height:0;overflow:hidden}
.video-panel{background:#000;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-width:0;min-height:0;overflow:hidden}
.live-support-auction{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:8px;padding:8px;background:#0b0f15;border-bottom:1px solid #26303a}
.live-auction-state{background:#090d13;border:1px solid #334155;color:#cbd5e1;padding:10px 12px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-auction-state strong{color:#facc15}
.live-auction-state span{color:#22c55e;font-weight:800;margin-left:6px}
.video-wrap{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.video-wrap.small{height:auto;aspect-ratio:16/9;max-width:100%}
#player{width:100%;height:100%;background:#000;object-fit:contain}
#player-iframe{width:100%;height:100%;border:0;background:#000}
.player-audio-toggle{position:absolute;right:12px;bottom:12px;z-index:7;min-height:38px;padding:0 12px;border:1px solid #facc15;background:rgba(5,8,12,.86);color:#facc15;font-weight:900;cursor:pointer}
.player-audio-toggle.is-on{border-color:#22c55e;color:#22c55e}
.player-audio-toggle:hover{background:#111827}
.overlay{cursor:pointer}
.overlay{position:absolute;inset:0;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;color:#fff}
.overlay.hidden{display:none}
.overlay-msg{font-size:18px;opacity:.8}
.auction-player-overlay{position:absolute;inset:0;z-index:4;display:flex;align-items:flex-start;justify-content:center;padding:22px;pointer-events:none;color:#f8fafc}
.auction-player-overlay.hidden{display:none}
.auction-player-card{width:min(620px,calc(100vw - 44px));background:linear-gradient(180deg,rgba(7,12,20,.94),rgba(8,13,21,.82));border:1px solid rgba(248,250,252,.2);box-shadow:0 18px 52px rgba(0,0,0,.42);padding:18px 22px;text-align:center}
.auction-player-kicker{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:0;color:#facc15}
.auction-player-timer{font-size:clamp(52px,9vh,104px);line-height:.95;font-weight:900;margin-top:6px;color:#fff}
.auction-player-title{font-size:clamp(18px,3vh,30px);font-weight:800;margin-top:10px;color:#f8fafc}
.auction-player-top{font-size:clamp(15px,2.2vh,22px);font-weight:700;margin-top:8px;color:#93c5fd}
.auction-player-overlay.is-ended{align-items:center;background:rgba(0,0,0,.32)}
.auction-player-overlay.is-ended .auction-player-card{background:rgba(5,8,12,.9);border-color:rgba(34,197,94,.55)}
.auction-player-overlay.is-ended .auction-player-kicker{color:#22c55e}
.auction-player-overlay.is-ended .auction-player-timer{font-size:clamp(36px,6vh,72px);color:#22c55e}

.chat-panel{background:#18181b;border-left:1px solid #2d2d33;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.chat-header{padding:10px;border-bottom:1px solid #2d2d33;display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;flex:0 0 auto;min-width:0}
.auction-mini{background:#3a2d4a;padding:4px 8px;border-radius:6px;font-size:13px;font-weight:400;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auction-mini.hidden{display:none}
.auction-mini .tmr{color:#ffc107;font-weight:700;margin-left:4px}
.chat-feed{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px;font-size:14px;line-height:1.4}
.chat-feed.op{background:#0e0e10}
.chat-msg{margin-bottom:4px;word-wrap:break-word}
.chat-msg.deleted{opacity:.4;text-decoration:line-through}
.chat-msg .time{color:#666;font-size:11px;margin-right:4px}
.chat-msg .author{font-weight:700}
.chat-msg.type-system,.chat-msg.type-auction_start,.chat-msg.type-auction_end,.chat-msg.type-auction_winner{
  background:#2a3a52;padding:4px 8px;border-radius:4px;color:#9bf;text-align:center;font-style:italic
}
.chat-msg.type-bid_marker{background:#3a2d4a;padding:2px 8px;border-radius:4px;color:#ffc107}
.chat-form{display:flex;border-top:1px solid #2d2d33;padding:8px;gap:6px;flex:0 0 auto}
#chat-input{flex:1;background:#0e0e10;color:#fff;border:1px solid #2d2d33;border-radius:4px;padding:6px 10px}
.quick-bid-bar{display:flex;gap:6px;flex-wrap:wrap;padding:8px 10px 0;background:#05070a}
.quick-bid-bar.hidden{display:none}
.quick-bid-bar button{min-height:34px;padding:0 12px;border:1px solid #facc15;background:#141a22;color:#facc15;font-weight:900;cursor:pointer}
.quick-bid-bar button.is-confirm{background:#facc15;color:#080a0d;box-shadow:0 0 0 2px rgba(250,204,21,.34),0 0 18px rgba(250,204,21,.42)}
.quick-bid-bar button:disabled{opacity:.55;cursor:not-allowed}
.chat-panel > .quick-bid-bar{border-top:1px solid #2c260d;padding:8px 10px;background:#05070a}

/* Auth */
.auth-card{max-width:440px;margin:40px auto;background:#18181b;padding:30px;border-radius:8px;border:1px solid #2d2d33}
.auth-card.wide{max-width:720px}
.auth-card h1{margin-top:0}
.auth-card label{display:block;margin-bottom:10px;font-size:14px}
.auth-card label.checkbox{display:flex;gap:6px;align-items:center}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password],.auth-card input{
  width:100%;padding:8px 10px;background:#0e0e10;color:#fff;border:1px solid #2d2d33;border-radius:4px;margin-top:4px
}
.auth-card .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-card fieldset{border:1px solid #2d2d33;border-radius:4px;padding:10px;margin:10px 0}

/* Operator */
.operator-layout{display:grid;grid-template-columns:1fr 1fr 420px;gap:8px;padding:8px;height:calc(100vh - 50px)}
.op-col{background:#18181b;border:1px solid #2d2d33;border-radius:6px;padding:10px;overflow-y:auto;min-height:0}
.op-col h3{margin:6px 0 8px;font-size:14px;color:#aaa;text-transform:uppercase;letter-spacing:1px}
.op-form label{display:block;font-size:12px;margin-bottom:6px;color:#aaa}
.op-form input,.op-form select{width:100%;padding:6px 8px;background:#0e0e10;color:#fff;border:1px solid #2d2d33;border-radius:4px}
.op-actions{display:flex;gap:6px;margin:8px 0}
.auction-state-box{background:#0e0e10;padding:10px;border-radius:6px;margin-bottom:10px;font-size:14px}
.viewers-list,.checkout-list{display:flex;flex-direction:column;gap:4px;font-size:13px}
.viewer-row,.ck-row{display:flex;justify-content:space-between;align-items:center;background:#0e0e10;padding:4px 8px;border-radius:4px}
.ck-row{flex-direction:column;align-items:stretch}
.ck-actions{display:flex;gap:4px;margin-top:4px}
.op-col-chat{display:flex;flex-direction:column;overflow:hidden}
.op-col-chat h3{flex:0 0 auto}
#chat-feed-op{flex:1 1 auto;min-height:0}
.op-chat-bottom{flex:0 0 auto;border-top:1px solid #2d2d33;padding-top:8px;margin-top:8px;background:#18181b}
.auction-compact-form{display:grid;grid-template-columns:1.15fr .75fr .75fr .75fr auto auto;gap:6px;align-items:center}
.auction-compact-form input,.auction-compact-form select{min-width:0;background:#0e0e10;color:#fff;border:1px solid #2d2d33;border-radius:4px;padding:6px 8px;font-size:13px}
.auction-compact-form button{white-space:nowrap}
.op-chat-actions{display:flex;justify-content:flex-end;margin-top:6px}
.auction-history-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.auction-history-row{background:#0e131a;border:1px solid #26303a;padding:8px}
.auction-history-meta{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px;margin-bottom:8px}
.auction-history-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auction-history-meta b{color:#facc15}
.empty-row{display:block;color:#64748b;font-size:13px;padding:8px;background:#0b0f15;border:1px solid #202833}

/* Toast */
.toast{position:fixed;right:20px;bottom:20px;background:#9147ff;color:#fff;padding:14px 18px;border-radius:8px;z-index:9999;box-shadow:0 4px 24px rgba(0,0,0,.5)}
.toast a{color:#fff;text-decoration:underline;font-weight:700}

/* Debug */
.debug-bar{position:fixed;left:8px;bottom:8px;background:#3a2d4a;color:#fff;padding:6px 10px;border-radius:6px;font-size:12px;z-index:1000}
.debug-bar select{margin-left:6px;background:#0e0e10;color:#fff;border:1px solid #2d2d33;padding:2px 6px}

/* Stream stats */
.stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:13px;background:#0e0e10;padding:8px;border-radius:4px;margin-top:10px}

/* Checkout page */
.checkout-page{max-width:520px;margin:40px auto;padding:20px}
.checkout-card{background:#18181b;padding:20px;border-radius:8px;border:1px solid #2d2d33}
.checkout-card div{margin-bottom:8px}
.error{color:#ff6b6b}
.success{color:#69f0ae}
.prose{max-width:720px;margin:30px auto;padding:0 20px}
.profile-page{max-width:980px;margin:24px auto;padding:0 16px 36px}
.profile-section{margin:0 0 16px}
.profile-section h2{margin:0 0 18px;font-size:21px}
.profile-table-wrap{overflow-x:auto;border:1px solid #26303a}
.profile-table{width:100%;border-collapse:collapse;min-width:520px}
.profile-table th,.profile-table td{padding:11px 12px;border-bottom:1px solid #26303a;text-align:left}
.profile-table thead th{background:#05070a;color:#ffc400;text-transform:uppercase;font-size:12px;letter-spacing:.06em}
.profile-table tfoot th{background:#141a22;color:#f8fafc}
.profile-table .amount{text-align:right;font-weight:800;color:#ffc400}
.profile-table .empty-cell{text-align:center;color:#9aa4b2}
.check-row{display:grid!important;grid-template-columns:auto 1fr;gap:10px;align-items:start;font-size:14px;line-height:1.35;color:#d7dee8}
.check-row input{margin-top:3px}
.check-row a{color:#facc15}
.live-rules-pending .topbar,
.live-rules-pending .live-content,
.live-rules-pending .site-footer,
.live-rules-pending .debug-bar{filter:blur(12px);pointer-events:none;user-select:none}
.live-rules-modal{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(3,5,8,.42)}
.live-rules-card{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;background:#0d1219;border:1px solid #facc15;box-shadow:0 24px 80px rgba(0,0,0,.62);padding:24px;color:#eef3f8}
.live-rules-kicker{margin:0 0 8px;color:#facc15;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.live-rules-card h1{margin:0 0 14px;font-size:28px}
.live-rules-card ul{margin:0 0 18px;padding-left:20px;color:#d7dee8;line-height:1.5}
.live-rules-card li{margin-bottom:8px}
.live-rules-check{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #334155;background:#090d13;color:#f8fafc;font-weight:700;line-height:1.35}
.live-rules-check input{margin-top:3px}
.live-rules-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.live-rules-actions a{color:#facc15;font-weight:800}
.live-rules-actions button:disabled{opacity:.45;cursor:not-allowed}
.live-rules-error{margin:12px 0 0;color:#fecdd3;font-weight:700}
.site-footer{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;padding:16px;border-top:1px solid #26303a;background:#080c12;color:#8d99aa;font-size:13px}
.site-footer a{color:#b8c4d6;text-decoration:none}
.site-footer a:hover{color:#facc15}
.legal-page{max-width:960px;margin:24px auto 48px;padding:24px;border:1px solid #26303a;background:#0d1219;color:#eef3f8;line-height:1.62}
.legal-page h1{margin:0 0 10px;font-size:30px}
.legal-page h2{margin:24px 0 8px;font-size:18px;color:#facc15}
.legal-page p{margin:8px 0;color:#d7dee8}
.legal-page a{color:#22c55e;font-weight:700}
.legal-muted{color:#96a3b5!important}
.legal-page h3{margin:18px 0 6px;font-size:15px;color:#f8fafc}
.legal-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 28px}
.legal-nav a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #334155;background:#090d13;color:#facc15;text-decoration:none}
.legal-page section{padding-top:12px;margin-top:12px;border-top:1px solid #26303a}
.legal-secondary{opacity:.86}
.danger-section{border-color:#7f1d1d}
.danger-section h2{color:#fecdd3}
.dm-msg-text a,.msg-popup-text a{color:#ffc400;text-decoration:underline;word-break:break-all}

@media (max-width: 720px){
  .topbar{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .topbar-left,.topbar-right{flex-wrap:wrap}
  .inbox-body{grid-template-columns:1fr;grid-template-rows:170px 1fr}
  .inbox-sidebar{border-right:0;border-bottom:1px solid #2d2d33}
  .inbox-panel{height:92vh}
  .dm-form{flex-wrap:wrap}
  .dm-form input[type=text]{flex-basis:100%}
  .live-layout{grid-template-columns:1fr;grid-template-rows:minmax(180px,42dvh) minmax(0,1fr)}
  .chat-panel{border-left:0;border-top:1px solid #2d2d33}
  .body-live .chat-panel{position:relative}
  .body-live .chat-form{position:sticky;bottom:0;background:#18181b;z-index:5}
  .auction-mini{max-width:60vw}
  .auction-compact-form{grid-template-columns:1fr 1fr}
  .auction-compact-form button{width:100%}
}

/* Flat modern dark theme */
html,body{background:#090b0f;color:#e8eaed;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
a{color:#7dd3fc}
a:hover{text-decoration:none;color:#bae6fd}
.topbar{background:#030406;border-bottom:1px solid #2c260d;padding:10px 18px}
.logo{color:#f8fafc;font-size:16px;letter-spacing:.08em;text-transform:uppercase}
.logo-live{display:inline-flex;align-items:center;min-width:118px}
.logo-live img{display:block;width:clamp(118px,12vw,176px);max-height:46px;object-fit:contain}
.badge,.btn,.msg-icon-btn,.user-chip,.user-chip .initials,.inbox-panel,.dm-modal,.flash,.auth-card,.auction-mini,.auction-player-card,.chat-msg.type-system,.chat-msg.type-auction_start,.chat-msg.type-auction_end,.chat-msg.type-auction_winner,.chat-msg.type-bid_marker,.op-col,.auction-state-box,.viewer-row,.ck-row,.auction-history-row,.live-auction-state,.toast,.debug-bar,.checkout-card,.msg-popup,.dm-msg{border-radius:0}
.badge.live{background:#ffc400;color:#090b0e;animation:none}
.badge.offline{background:#1f2933;color:#8b97a5}
.viewer-count{color:#d6d2c3;font-weight:700}
.user-chip{border-width:1px;background:#151a21;padding:3px 10px 3px 3px}
.btn{border:1px solid #3a4654;background:#1a2029;color:#f8fafc;padding:8px 12px;font-weight:600}
.btn-sm{padding:6px 10px}
.btn-primary{background:#ffc400;border-color:#ffc400;color:#080a0d}
.btn-warn{background:#a16207;border-color:#ca8a04;color:#fff}
.btn-danger{background:#991b1b;border-color:#dc2626}
.btn-outline{background:transparent;border-color:#44505f}
.btn:hover{filter:none;background:#232b36}
.btn-primary:hover{background:#ffd326;color:#080a0d}
.msg-icon-btn{background:#1a2029;border-color:#3a4654;font-size:11px;font-weight:700;width:42px}
.msg-badge{border-radius:0;background:#e11d48}
.flashes{background:#090b0f}
.flash-error{background:#3b1116;color:#fecdd3;border:1px solid #7f1d1d}
.flash-success{background:#052e2b;color:#99f6e4;border:1px solid #0f766e}
.body-live{background:#05070a}
.live-layout{grid-template-columns:minmax(0,1fr) 380px;background:#05070a}
.video-panel{background:#030406}
.chat-panel{background:#0c0f14;border-left:1px solid #2c260d}
.chat-header{background:#05070a;border-bottom:1px solid #2c260d;padding:12px 14px;text-transform:uppercase;font-size:12px;letter-spacing:.08em;color:#ffc400}
.chat-feed{background:#0c0f14;padding:12px 14px}
.chat-msg{margin-bottom:8px;color:#e8eaed}
.chat-msg .time{color:#6b7685}
.chat-msg .author{font-weight:700}
.chat-form{background:#05070a;border-top:1px solid #2c260d;padding:10px}
#chat-input,.dm-form input[type=text],.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password],.auth-card input,.op-form input,.op-form select,.auction-compact-form input,.auction-compact-form select{background:#090d13;color:#f8fafc;border:1px solid #3a3520;border-radius:0;padding:10px 12px;outline:none}
#chat-input:focus,.dm-form input[type=text]:focus,.auth-card input:focus{border-color:#ffc400}
.overlay{background:rgba(5,8,12,.78)}
.overlay-msg{font-size:16px;color:#cbd5e1}
.auth-card{max-width:420px;margin:8vh auto;background:#10141a;padding:28px;border:1px solid #26303a}
.auth-card h1{font-size:26px;margin:0 0 22px;color:#f8fafc}
.auth-card label{font-size:13px;color:#cbd5e1;margin-bottom:14px}
.auth-card p{color:#9aa4b2}
.inbox-overlay,.dm-overlay{background:rgba(5,8,12,.78)}
.inbox-panel,.dm-modal,.msg-popup{background:#10141a;border-color:#26303a}
.inbox-header,.dm-header,.msg-popup-header{background:#141a22;border-bottom-color:#26303a}
.inbox-sidebar{background:#0b0f15;border-right-color:#26303a}
.dm-form{background:#141a22;border-top-color:#26303a}
.dm-msg{background:#1a2029}
.dm-msg-mine{background:#0f766e}
.vps-panel{max-width:1180px;margin:18px auto 36px;padding:0 14px}
.vps-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.vps-panel-head h1{margin:0 0 4px;font-size:30px}
.vps-panel-head p{margin:0;color:#9aa4b2}
.vps-grid{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:12px;margin-bottom:12px}
.vps-card{margin-bottom:12px}
.vps-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.vps-status-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vps-status-cards div{background:#05070a;border:1px solid #26303a;padding:10px}
.vps-status-cards span{display:block;color:#9aa4b2;font-size:12px;text-transform:uppercase;margin-bottom:4px}
.vps-status-cards strong{color:#f8fafc}
.vps-controls{display:grid;gap:8px}
.vps-toggle{min-height:42px;border:1px solid #3a4654;background:#1a2029;color:#f8fafc;font-weight:800;cursor:pointer}
.vps-toggle.is-on{background:#14532d;border-color:#22c55e}
.vps-toggle.is-off{background:#7f1d1d;border-color:#ef4444}
.vps-toggle.disabled{opacity:.65;cursor:not-allowed}
.vps-field{display:grid;gap:5px;color:#ffc400;font-size:12px;font-weight:800}
.vps-field input{width:100%;background:#090d13;color:#f8fafc;border:1px solid #334155;padding:8px 10px}
.vps-note{color:#9aa4b2;font-size:13px;line-height:1.4}
.vps-links{display:grid;gap:8px}
.vps-links label{display:grid;gap:4px;color:#ffc400;font-size:12px;font-weight:800}
.vps-links input,.profile-table input{width:100%;background:#090d13;color:#f8fafc;border:1px solid #334155;padding:8px 10px}
.status-ok{color:#22c55e;font-weight:800}
.status-bad{color:#ef4444;font-weight:800}
.status-warn{color:#facc15;font-weight:800}
@media (max-width: 720px){
  .live-layout{grid-template-columns:1fr;grid-template-rows:minmax(180px,42dvh) minmax(0,1fr)}
  .chat-panel{border-left:0;border-top:1px solid #26303a}
  .body-live .chat-form{background:#141a22}
  .live-support-auction{grid-template-columns:1fr}
  .operator-layout{grid-template-columns:1fr;height:auto;min-height:calc(100vh - 180px)}
  .auction-player-overlay{padding:10px;align-items:flex-start}
  .auction-player-card{width:min(92vw,420px);padding:10px 12px;box-shadow:0 10px 28px rgba(0,0,0,.35)}
  .auction-player-kicker{font-size:10px}
  .auction-player-timer{font-size:clamp(30px,7vh,50px);margin-top:3px}
  .auction-player-title{font-size:clamp(13px,3.2vw,17px);margin-top:5px}
  .auction-player-top{font-size:clamp(12px,3vw,15px);margin-top:4px}
  .auction-player-overlay.is-ended .auction-player-timer{font-size:clamp(26px,6vh,42px)}
}

@media (max-width: 420px){
  .auction-player-overlay{padding:8px}
  .auction-player-card{width:calc(100vw - 16px);padding:8px 10px}
  .auction-player-kicker{font-size:9px}
  .auction-player-timer{font-size:clamp(26px,6.5vh,42px)}
  .auction-player-title{font-size:12px}
  .auction-player-top{font-size:11px}
}

@media (max-width: 720px){
  .body-live.chat-keyboard-open .live-layout{
    grid-template-rows:minmax(112px,28svh) auto;
  }
  .body-live.chat-keyboard-open .topbar{display:none}
  .body-live.chat-keyboard-open .video-panel{
    min-height:112px;
  }
  .body-live.chat-keyboard-open .chat-header{
    min-height:42px;
    padding:8px 10px;
  }
  .body-live.chat-keyboard-open .auction-mini{
    max-width:72vw;
    font-size:12px;
    padding:3px 6px;
  }
  .body-live.chat-keyboard-open .chat-feed{
    display:none;
  }
  .body-live.chat-keyboard-open .chat-panel{
    min-height:92px;
    max-height:132px;
  }
  .body-live.chat-keyboard-open .chat-form{
    position:relative;
    bottom:auto;
    padding:8px;
  }
  .body-live.chat-keyboard-open #chat-input{
    min-height:40px;
    font-size:16px;
  }
}

@media (max-width: 720px){
  .topbar{
    position:relative;
    display:flex;
    align-items:center;
    padding:6px 10px;
    min-height:42px;
    z-index:5000;
  }
  .topbar-brand{
    width:100%;
    justify-content:space-between;
  }
  .topbar-menu-toggle{
    display:inline-flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    width:38px;
    height:34px;
    padding:0 9px;
    border:1px solid #334155;
    background:#111827;
    color:#f8fafc;
  }
  .topbar-menu-toggle span{
    display:block;
    width:100%;
    height:2px;
    background:#f8fafc;
  }
  .topbar-menu{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:5001;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:10px;
    background:#10141a;
    border-bottom:1px solid #26303a;
    box-shadow:0 14px 30px rgba(0,0,0,.38);
  }
  .topbar.menu-open .topbar-menu{
    display:flex;
  }
  .topbar-menu .topbar-left,
  .topbar-menu .topbar-right{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
  }
  .topbar-menu .viewer-count{
    font-size:13px;
  }
  .topbar-menu .msg-icon-btn{
    width:auto;
    min-width:42px;
    padding:0 10px;
  }
  .topbar-menu .user-chip{
    max-width:calc(100vw - 126px);
  }
  .topbar-menu .user-chip .name{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .body-live main{
    min-height:0;
  }
  .body-live .live-layout{
    grid-template-rows:minmax(170px,42dvh) minmax(0,1fr);
  }
  .body-live .chat-form{
    gap:6px;
    padding:7px;
  }
  .body-live #chat-input{
    min-width:0;
    font-size:16px;
  }
  .body-live .chat-form .btn{
    flex:0 0 auto;
    padding-left:11px;
    padding-right:11px;
  }
  .vps-panel-head{align-items:flex-start;flex-direction:column}
  .vps-grid{grid-template-columns:1fr}
  .vps-status-cards{grid-template-columns:1fr}
}

@media (max-width: 420px){
  .body-live .live-layout{
    grid-template-rows:minmax(160px,39dvh) minmax(0,1fr);
  }
  .player-audio-toggle{
    right:8px;
    bottom:8px;
    min-height:34px;
    padding:0 9px;
    font-size:12px;
  }
}

/* Mobile live ergonomics: keep desktop untouched, avoid keyboard-trapped layouts. */
@media (max-width: 720px){
  .body-live{
    height:auto;
    min-height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;
  }
  .body-live main{
    overflow:visible;
  }
  .live-content{
    height:auto;
    min-height:calc(100dvh - 46px);
  }
  .body-live .live-layout{
    height:auto;
    min-height:calc(100dvh - 46px);
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(300px,1fr);
    overflow:visible;
  }
  .body-live .video-panel{
    position:sticky;
    top:0;
    z-index:30;
    min-height:auto;
    height:auto;
    justify-content:flex-start;
    border-bottom:1px solid #26303a;
  }
  .body-live .video-wrap{
    height:auto;
    aspect-ratio:16/9;
    max-height:45svh;
  }
  .body-live #player{
    height:100%;
  }
  .body-live .chat-panel{
    min-height:360px;
    height:auto;
    overflow:visible;
  }
  .body-live .chat-header{
    position:sticky;
    top:0;
    z-index:20;
  }
  .body-live .chat-feed{
    flex:1 1 auto;
    min-height:220px;
    max-height:none;
    overflow-y:auto;
    overscroll-behavior:auto;
    padding-bottom:12px;
  }
  .body-live .chat-form{
    position:sticky;
    bottom:0;
    z-index:40;
    padding-bottom:max(8px, env(safe-area-inset-bottom));
  }
  .body-live.chat-keyboard-open .live-layout{
    grid-template-rows:auto auto;
  }
  .body-live.chat-keyboard-open .topbar{
    display:none;
  }
  .body-live.chat-keyboard-open .video-panel{
    position:sticky;
    top:0;
    min-height:auto;
  }
  .body-live.chat-keyboard-open .video-wrap{
    aspect-ratio:16/9;
    max-height:34svh;
  }
  .body-live.chat-keyboard-open .chat-panel{
    min-height:260px;
    max-height:none;
    overflow:visible;
  }
  .body-live.chat-keyboard-open .chat-header{
    min-height:34px;
    padding:7px 10px;
  }
  .body-live.chat-keyboard-open .chat-feed{
    display:block;
    min-height:96px;
    max-height:22svh;
    overflow-y:auto;
  }
  .body-live.chat-keyboard-open .chat-form{
    position:sticky;
    bottom:0;
    padding:7px;
  }
  .body-live.chat-keyboard-open #chat-input{
    min-height:40px;
    font-size:16px;
  }
  .body-live.chat-keyboard-open .auction-mini{
    max-width:70vw;
    font-size:11px;
    padding:3px 6px;
  }
  .body-live .auction-player-overlay{
    align-items:flex-start;
    justify-content:stretch;
    padding:6px;
  }
  .body-live .auction-player-card{
    width:100%;
    display:grid;
    grid-template-columns:auto 1fr;
    grid-template-areas:
      "kicker title"
      "timer top";
    align-items:center;
    gap:2px 8px;
    padding:7px 9px;
    text-align:left;
    background:rgba(5,8,12,.88);
    box-shadow:0 8px 22px rgba(0,0,0,.32);
  }
  .body-live .auction-player-kicker{
    grid-area:kicker;
    font-size:9px;
  }
  .body-live .auction-player-timer{
    grid-area:timer;
    min-width:52px;
    margin:0;
    font-size:clamp(24px,7svh,42px);
    line-height:.95;
    color:#ffc400;
  }
  .body-live .auction-player-title{
    grid-area:title;
    margin:0;
    font-size:clamp(12px,3.2vw,15px);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .body-live .auction-player-top{
    grid-area:top;
    margin:0;
    font-size:clamp(11px,3vw,14px);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .body-live .auction-player-overlay.is-ended{
    align-items:flex-start;
    background:transparent;
  }
  .body-live .auction-player-overlay.is-ended .auction-player-timer{
    font-size:clamp(22px,6svh,34px);
  }
  .body-live .player-audio-toggle{
    right:8px;
    bottom:8px;
    z-index:60;
    min-height:34px;
    padding:0 10px;
    background:rgba(5,8,12,.94);
  }
}

/* Experimental mobile fullscreen live mode. */
.player-fullscreen-toggle,
.live-fullscreen-close{
  position:absolute;
  z-index:65;
  border:1px solid #facc15;
  background:rgba(5,8,12,.9);
  color:#facc15;
  font-weight:900;
  cursor:pointer;
}
.player-fullscreen-toggle{
  left:12px;
  bottom:12px;
  min-height:38px;
  padding:0 12px;
}
.live-fullscreen-close{
  display:none;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  font-size:18px;
}
.live-fullscreen-chat{
  display:none;
}

@media (max-width: 720px){
  .player-fullscreen-toggle{
    left:8px;
    bottom:8px;
    min-height:34px;
    padding:0 10px;
    font-size:12px;
  }
  .body-live.live-fullscreen-mode{
    height:100dvh;
    overflow:hidden;
    background:#000;
  }
  .body-live.live-fullscreen-mode .topbar,
  .body-live.live-fullscreen-mode .chat-panel,
  .body-live.live-fullscreen-mode .live-support-auction,
  .body-live.live-fullscreen-mode .site-footer{
    display:none!important;
  }
  .body-live.live-fullscreen-mode main,
  .body-live.live-fullscreen-mode .live-content,
  .body-live.live-fullscreen-mode .live-layout{
    height:100dvh;
    min-height:100dvh;
    overflow:hidden;
  }
  .body-live.live-fullscreen-mode .live-layout{
    display:block;
  }
  .body-live.live-fullscreen-mode .video-panel{
    position:fixed;
    inset:0;
    z-index:10000;
    height:100dvh;
    min-height:100dvh;
    border:0;
    background:#000;
  }
  .body-live.live-fullscreen-mode .video-wrap{
    width:100vw;
    height:100dvh;
    max-height:none;
    aspect-ratio:auto;
    overflow:hidden;
    background:#000;
  }
  .body-live.live-fullscreen-mode #player{
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .body-live.live-fullscreen-mode .player-fullscreen-toggle{
    display:none;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-close{
    display:block;
  }
  .body-live.live-fullscreen-mode .player-audio-toggle{
    right:60px;
    top:10px;
    bottom:auto;
    z-index:10080;
  }
  .body-live.live-fullscreen-mode .auction-player-overlay{
    z-index:10030;
    left:176px;
    right:56px;
    inset-block:0 auto;
    width:auto;
    padding:8px;
  }
  .body-live.live-fullscreen-mode .auction-player-card{
    grid-template-columns:auto minmax(0,1fr);
    padding:6px 8px;
    background:rgba(5,8,12,.72);
  }
  .body-live.live-fullscreen-mode .auction-player-timer{
    min-width:48px;
    font-size:clamp(22px,8svh,40px);
  }
  .body-live.live-fullscreen-mode .auction-player-title,
  .body-live.live-fullscreen-mode .auction-player-top{
    font-size:clamp(10px,3svh,14px);
  }
  .body-live.live-fullscreen-mode .live-fullscreen-chat{
    display:flex;
    position:absolute;
    left:8px;
    top:8px;
    bottom:8px;
    z-index:10060;
    width:min(38vw,270px);
    min-width:172px;
    flex-direction:column;
    justify-content:flex-end;
    gap:8px;
    pointer-events:none;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-feed{
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:5px;
    min-height:0;
    overflow:hidden;
    pointer-events:none;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg{
    max-width:100%;
    padding:5px 7px;
    background:rgba(5,8,12,.62);
    color:#f8fafc;
    font-size:12px;
    line-height:1.25;
    text-shadow:0 1px 2px rgba(0,0,0,.75);
    overflow-wrap:anywhere;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg .author{
    font-weight:900;
    color:#facc15;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg.type-system,
  .body-live.live-fullscreen-mode .live-fullscreen-msg.type-auction_start,
  .body-live.live-fullscreen-mode .live-fullscreen-msg.type-auction_end,
  .body-live.live-fullscreen-mode .live-fullscreen-msg.type-auction_winner{
    background:rgba(30,64,175,.68);
    color:#dbeafe;
    font-style:italic;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form{
    display:flex;
    gap:5px;
    pointer-events:auto;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form input{
    min-width:0;
    flex:1;
    min-height:38px;
    border:1px solid rgba(250,204,21,.72);
    background:rgba(5,8,12,.82);
    color:#f8fafc;
    padding:0 9px;
    font-size:16px;
    outline:none;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form button{
    min-height:38px;
    padding:0 10px;
  }
  .body-live.live-fullscreen-mode .inbox-overlay,
  .body-live.live-fullscreen-mode .dm-overlay,
  .body-live.live-fullscreen-mode .msg-popup{
    z-index:13000;
  }
}

@media (max-width: 720px) and (orientation: portrait){
  .body-live.live-fullscreen-mode .video-panel{
    transform:rotate(90deg);
    transform-origin:center center;
    left:calc((100vw - 100dvh) / 2);
    top:calc((100dvh - 100vw) / 2);
    width:100dvh;
    height:100vw;
    min-height:100vw;
  }
  .body-live.live-fullscreen-mode .video-wrap{
    width:100dvh;
    height:100vw;
  }
}

/* Mobile tune: keep auction overlay from covering the product view. */
@media (max-width: 720px){
  .body-live:not(.live-fullscreen-mode) .auction-player-overlay{
    justify-content:flex-end;
    align-items:flex-start;
    padding:6px;
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-card{
    width:min(48vw,230px);
    display:block;
    padding:5px 7px;
    text-align:left;
    background:rgba(5,8,12,.72);
    box-shadow:0 6px 18px rgba(0,0,0,.28);
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-kicker{
    font-size:8px;
    line-height:1;
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-timer{
    min-width:0;
    margin:1px 0 0;
    font-size:clamp(20px,5.5svh,34px);
    line-height:.95;
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-title,
  .body-live:not(.live-fullscreen-mode) .auction-player-top{
    margin:2px 0 0;
    font-size:clamp(10px,2.7vw,12px);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-overlay.is-ended .auction-player-timer{
    font-size:clamp(18px,5svh,28px);
  }
  .body-live.live-fullscreen-mode .live-support-auction{
    display:grid!important;
    position:absolute;
    right:8px;
    bottom:8px;
    z-index:10070;
    width:min(46vw,390px);
    grid-template-columns:1fr;
    gap:5px;
    padding:6px;
    background:rgba(5,8,12,.78);
    border:1px solid rgba(250,204,21,.38);
  }
  .body-live.live-fullscreen-mode .live-support-auction .auction-compact-form{
    grid-template-columns:1fr 1fr 1fr;
    gap:4px;
  }
  .body-live.live-fullscreen-mode .live-support-auction .auction-compact-form input,
  .body-live.live-fullscreen-mode .live-support-auction .auction-compact-form select{
    min-height:30px;
    padding:4px 6px;
    font-size:11px;
  }
  .body-live.live-fullscreen-mode .live-support-auction .auction-compact-form button{
    min-height:30px;
    padding:0 6px;
    font-size:11px;
  }
  .body-live.live-fullscreen-mode .live-auction-state{
    padding:5px 6px;
    font-size:11px;
    background:rgba(5,8,12,.72);
  }
  .body-live.live-fullscreen-mode.audio-toggle-hidden .player-audio-toggle{
    display:none;
  }
}

@media (max-width: 420px){
  .body-live:not(.live-fullscreen-mode) .auction-player-card{
    width:min(52vw,190px);
  }
  .body-live.live-fullscreen-mode .live-support-auction{
    width:min(52vw,330px);
  }
}

/* Fullscreen must keep working after the phone rotates to landscape. */
.body-live.live-fullscreen-mode{
  height:100dvh!important;
  overflow:hidden!important;
  background:#000!important;
}
.body-live.live-fullscreen-mode .topbar,
.body-live.live-fullscreen-mode .chat-panel,
.body-live.live-fullscreen-mode .site-footer{
  display:none!important;
}
.body-live.live-fullscreen-mode main,
.body-live.live-fullscreen-mode .live-content,
.body-live.live-fullscreen-mode .live-layout{
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}
.body-live.live-fullscreen-mode .live-layout{
  display:block!important;
}
.body-live.live-fullscreen-mode .video-panel{
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  transform:none!important;
  border:0!important;
  background:#000!important;
}
.body-live.live-fullscreen-mode .video-wrap{
  width:100vw!important;
  height:100dvh!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#000!important;
}
.body-live.live-fullscreen-mode #player{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
.body-live.live-fullscreen-mode .player-fullscreen-toggle{
  display:none!important;
}
.body-live.live-fullscreen-mode .player-audio-toggle.is-on,
.body-live.live-fullscreen-mode.audio-toggle-hidden .player-audio-toggle{
  display:none!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-close{
  display:block!important;
  z-index:10100!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-chat{
  display:flex!important;
  z-index:10060!important;
}
.body-live.live-fullscreen-mode .live-support-auction{
  display:grid!important;
}

@media (orientation: portrait){
  .body-live.live-fullscreen-mode .video-panel,
  .body-live.live-fullscreen-mode .video-wrap{
    transform:none!important;
    left:0!important;
    top:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
  }
}

/* Fullscreen refinement: compact left chat and low auction badge. */
.body-live.live-fullscreen-mode .live-fullscreen-chat{
  left:10px!important;
  right:auto!important;
  top:auto!important;
  bottom:10px!important;
  width:min(24vw,220px)!important;
  min-width:150px!important;
  max-height:52dvh!important;
  justify-content:flex-end!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-feed{
  gap:4px!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-msg{
  padding:4px 6px!important;
  font-size:clamp(10px,1.8vw,12px)!important;
  line-height:1.18!important;
  background:rgba(5,8,12,.48)!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-form{
  gap:4px!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-form input{
  min-height:32px!important;
  padding:0 7px!important;
  font-size:14px!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-form button{
  min-height:32px!important;
  padding:0 8px!important;
  font-size:12px!important;
}
.body-live.live-fullscreen-mode .auction-player-overlay{
  inset:auto auto 10px 50%!important;
  z-index:10050!important;
  width:min(34vw,300px)!important;
  padding:0!important;
  transform:translateX(-50%)!important;
  align-items:flex-end!important;
  justify-content:center!important;
}
.body-live.live-fullscreen-mode .auction-player-card{
  width:100%!important;
  display:block!important;
  padding:6px 8px!important;
  text-align:left!important;
  background:rgba(5,8,12,.62)!important;
  border-color:rgba(250,204,21,.42)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.26)!important;
}
.body-live.live-fullscreen-mode .auction-player-kicker{
  font-size:8px!important;
  line-height:1!important;
}
.body-live.live-fullscreen-mode .auction-player-timer{
  min-width:0!important;
  margin:1px 0 0!important;
  font-size:clamp(20px,5.2dvh,34px)!important;
  line-height:.95!important;
}
.body-live.live-fullscreen-mode .auction-player-title,
.body-live.live-fullscreen-mode .auction-player-top{
  margin:2px 0 0!important;
  font-size:clamp(10px,2.6dvh,13px)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.body-live.live-fullscreen-mode .auction-player-overlay.is-ended .auction-player-timer{
  font-size:clamp(18px,4.6dvh,28px)!important;
}

@media (orientation: portrait){
  .body-live.live-fullscreen-mode .live-fullscreen-chat{
    left:8px!important;
    bottom:8px!important;
    width:min(38vw,180px)!important;
    min-width:128px!important;
    max-height:42dvh!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg{
    font-size:10px!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form{
    flex-direction:column!important;
  }
  .body-live.live-fullscreen-mode .auction-player-overlay{
    left:auto!important;
    right:8px!important;
    bottom:76px!important;
    width:min(42vw,180px)!important;
    transform:none!important;
  }
  .body-live.live-fullscreen-mode .auction-player-card{
    padding:5px 6px!important;
  }
  .body-live.live-fullscreen-mode .auction-player-timer{
    font-size:clamp(18px,4.8dvh,28px)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-title,
  .body-live.live-fullscreen-mode .auction-player-top{
    font-size:10px!important;
  }
}

/* Fullscreen layout v2: TikTok-like overlays per orientation. */
@media (orientation: landscape){
  .body-live.live-fullscreen-mode .live-fullscreen-chat{
    left:14px!important;
    right:auto!important;
    top:auto!important;
    bottom:14px!important;
    width:min(26vw,300px)!important;
    min-width:210px!important;
    max-height:58dvh!important;
    justify-content:flex-end!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-feed{
    max-height:calc(58dvh - 44px)!important;
    overflow:hidden!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg{
    padding:4px 7px!important;
    font-size:clamp(10px,1.45vw,12px)!important;
    line-height:1.18!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form{
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:5px!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form input{
    min-width:0!important;
    min-height:36px!important;
    font-size:14px!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form button{
    min-height:36px!important;
    flex:0 0 auto!important;
  }
  .body-live.live-fullscreen-mode .auction-player-overlay{
    top:12px!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    width:min(34vw,340px)!important;
    transform:translateX(-50%)!important;
    padding:0!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }
  .body-live.live-fullscreen-mode .auction-player-card{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    grid-template-areas:
      "kicker title"
      "timer top"!important;
    gap:2px 8px!important;
    padding:6px 8px!important;
  }
  .body-live.live-fullscreen-mode .auction-player-kicker{grid-area:kicker!important}
  .body-live.live-fullscreen-mode .auction-player-timer{
    grid-area:timer!important;
    font-size:clamp(20px,7dvh,36px)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-title{
    grid-area:title!important;
    margin:0!important;
    font-size:clamp(11px,2.7dvh,14px)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-top{
    grid-area:top!important;
    margin:0!important;
    font-size:clamp(10px,2.4dvh,13px)!important;
  }
}

@media (orientation: portrait){
  .body-live.live-fullscreen-mode .auction-player-overlay{
    top:max(12px, env(safe-area-inset-top))!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    width:min(82vw,360px)!important;
    transform:translateX(-50%)!important;
    padding:0!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }
  .body-live.live-fullscreen-mode .auction-player-card{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    grid-template-areas:
      "kicker title"
      "timer top"!important;
    gap:2px 8px!important;
    padding:6px 8px!important;
    text-align:left!important;
  }
  .body-live.live-fullscreen-mode .auction-player-kicker{grid-area:kicker!important}
  .body-live.live-fullscreen-mode .auction-player-timer{
    grid-area:timer!important;
    font-size:clamp(22px,4.8dvh,34px)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-title{
    grid-area:title!important;
    margin:0!important;
    font-size:clamp(11px,3.2vw,14px)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-top{
    grid-area:top!important;
    margin:0!important;
    font-size:clamp(10px,3vw,13px)!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-chat{
    left:10px!important;
    right:auto!important;
    top:auto!important;
    bottom:10px!important;
    width:min(42vw,190px)!important;
    min-width:140px!important;
    max-height:42dvh!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-feed{
    max-height:calc(42dvh - 84px)!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form{
    flex-direction:column!important;
    gap:5px!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form input,
  .body-live.live-fullscreen-mode .live-fullscreen-form button{
    width:100%!important;
    min-height:36px!important;
  }
}

/* Fullscreen landscape rebuild: isolated, compact, no inherited chat layout leaks. */
@media (orientation: landscape){
  .body-live.live-fullscreen-mode{
    width:100vw!important;
    height:100dvh!important;
    overflow:hidden!important;
    background:#000!important;
  }
  .body-live.live-fullscreen-mode .video-panel,
  .body-live.live-fullscreen-mode .video-wrap{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:none!important;
    transform:none!important;
    overflow:hidden!important;
    background:#000!important;
  }
  .body-live.live-fullscreen-mode #player{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  .body-live.live-fullscreen-mode .overlay{
    z-index:10010!important;
  }
  .body-live.live-fullscreen-mode .overlay-msg{
    max-width:54vw!important;
    text-align:center!important;
    font-size:clamp(15px,2.4vw,22px)!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-close{
    display:block!important;
    top:max(10px, env(safe-area-inset-top))!important;
    right:max(10px, env(safe-area-inset-right))!important;
    width:42px!important;
    height:42px!important;
    z-index:10120!important;
  }
  .body-live.live-fullscreen-mode .player-fullscreen-toggle,
  .body-live.live-fullscreen-mode .player-audio-toggle.is-on,
  .body-live.live-fullscreen-mode.audio-toggle-hidden .player-audio-toggle{
    display:none!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-chat{
    display:flex!important;
    position:absolute!important;
    left:max(12px, env(safe-area-inset-left))!important;
    right:auto!important;
    top:auto!important;
    bottom:max(12px, env(safe-area-inset-bottom))!important;
    z-index:10070!important;
    width:clamp(190px,24vw,280px)!important;
    min-width:0!important;
    max-height:58dvh!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    gap:6px!important;
    pointer-events:none!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-feed{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    gap:4px!important;
    max-height:calc(58dvh - 44px)!important;
    min-height:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-msg{
    width:auto!important;
    max-width:100%!important;
    padding:4px 7px!important;
    background:rgba(5,8,12,.54)!important;
    color:#f8fafc!important;
    border:0!important;
    font-size:clamp(10px,1.45vw,12px)!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:stretch!important;
    gap:5px!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    pointer-events:auto!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form input{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 8px!important;
    border:1px solid rgba(250,204,21,.74)!important;
    background:rgba(5,8,12,.86)!important;
    color:#f8fafc!important;
    font-size:14px!important;
    line-height:36px!important;
    outline:none!important;
    box-shadow:none!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-form button{
    display:block!important;
    width:auto!important;
    min-width:54px!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 10px!important;
    border:1px solid #ffc400!important;
    background:#ffc400!important;
    color:#080a0d!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:34px!important;
  }
  .body-live.live-fullscreen-mode .auction-player-overlay{
    position:absolute!important;
    top:max(12px, env(safe-area-inset-top))!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    z-index:10065!important;
    width:clamp(210px,30vw,340px)!important;
    height:auto!important;
    padding:0!important;
    transform:translateX(-50%)!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    background:transparent!important;
    pointer-events:none!important;
  }
  .body-live.live-fullscreen-mode .auction-player-card{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    grid-template-areas:"timer title" "timer top"!important;
    gap:1px 8px!important;
    align-items:center!important;
    padding:6px 8px!important;
    text-align:left!important;
    background:rgba(5,8,12,.66)!important;
    border:1px solid rgba(250,204,21,.44)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.24)!important;
  }
  .body-live.live-fullscreen-mode .auction-player-kicker{
    display:none!important;
  }
  .body-live.live-fullscreen-mode .auction-player-timer{
    grid-area:timer!important;
    min-width:46px!important;
    margin:0!important;
    color:#ffc400!important;
    font-size:clamp(24px,7dvh,42px)!important;
    line-height:.92!important;
  }
  .body-live.live-fullscreen-mode .auction-player-title{
    grid-area:title!important;
    margin:0!important;
    color:#f8fafc!important;
    font-size:clamp(11px,2.7dvh,15px)!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .body-live.live-fullscreen-mode .auction-player-top{
    grid-area:top!important;
    margin:0!important;
    color:#93c5fd!important;
    font-size:clamp(10px,2.3dvh,13px)!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .body-live.live-fullscreen-mode .live-support-auction{
    right:12px!important;
    bottom:12px!important;
    width:clamp(230px,30vw,380px)!important;
    max-height:44dvh!important;
    overflow:hidden!important;
  }
}

/* Final overlay safety: hidden wins, normal mobile stays centered. */
.body-live .auction-player-overlay.hidden{
  display:none!important;
}
@media (max-width: 720px){
  .body-live:not(.live-fullscreen-mode) .auction-player-overlay{
    left:0!important;
    right:0!important;
    top:0!important;
    bottom:auto!important;
    transform:none!important;
    width:auto!important;
    justify-content:center!important;
    align-items:flex-start!important;
    padding:6px!important;
  }
  .body-live:not(.live-fullscreen-mode) .auction-player-card{
    width:min(52vw,230px)!important;
    text-align:left!important;
  }
}

/* Fullscreen chat readability and manual scroll. */
.body-live.live-fullscreen-mode .live-fullscreen-feed{
  justify-content:flex-start!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  pointer-events:auto!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-chat{
  pointer-events:auto!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-msg{
  font-size:calc(clamp(10px,1.45vw,12px) + 2px)!important;
}
.body-live.live-fullscreen-mode #quick-bid-bar{
  display:none!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-quick-bid{
  display:flex!important;
  position:static!important;
  transform:none!important;
  z-index:auto!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  width:100%!important;
  padding:0!important;
  background:transparent!important;
  pointer-events:auto!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-quick-bid.hidden{
  display:none!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-quick-bid button{
  min-width:74px!important;
  min-height:38px!important;
  padding:0 10px!important;
  font-size:14px!important;
}
@media (orientation: portrait){
  .body-live.live-fullscreen-mode .live-fullscreen-quick-bid{
    gap:8px!important;
  }
  .body-live.live-fullscreen-mode .live-fullscreen-quick-bid button{
    min-width:78px!important;
    min-height:40px!important;
    font-size:14px!important;
  }
}
@media (orientation: portrait){
  .body-live.live-fullscreen-mode .live-fullscreen-msg{
    font-size:12px!important;
  }
}

/* Chat scroll fixes: keep message lists manually scrollable in every live view. */
.body-live .chat-feed{
  scroll-behavior:smooth;
}
.body-live.live-fullscreen-mode .live-fullscreen-chat{
  pointer-events:auto!important;
}
.body-live.live-fullscreen-mode .live-fullscreen-feed{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
}
.inbox-chat-messages,
.dm-messages{
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
