/* Generated from cytube-custom.css by scripts/generate-critical-css.js.
   Keep only first-render layout and common chat rules here. */
@font-face { font-display: swap;}



:root { --body:#141517; --header:#141517; --bg: #141517; --bgsub: #141517; --main:#3073ff; --sub: rgb(103, 111, 151); --other:#3f444f; --del:#e44d4d;  --textbar: #444950; --font-primary:'Pretendard', sans-serif;}
:root {--ui-surface:#191925; --ui-surface-raised:#252630; --ui-text:#eee; --ui-text-muted:#b8bac5; --ui-border:rgba(255,255,255,.2); --ui-focus:#8bb5ff; --ui-radius-sm:6px; --ui-radius:10px; --ui-space-1:4px; --ui-space-2:8px; --ui-space-3:12px; --ui-space-4:16px; --ui-space-6:24px; --ui-control-height:44px; --ui-popup-gap:12px; --ui-popup-header:50px; --ui-popup-height:calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); --ui-popup-shadow:0 8px 24px rgba(0,0,0,.5);}
@supports (height:100dvh) {:root {--ui-popup-height:calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));}}
html, body {
    margin: 0;
    padding: 0;

    padding-left: calc(env(safe-area-inset-left) * 0);
    padding-right: calc(env(safe-area-inset-right) * 0);
    padding-top: calc(env(safe-area-inset-top) * 0);
    padding-bottom: calc(env(safe-area-inset-bottom) * 0) !important;

    min-height: 100%;
}

a:focus {outline:none;}
/* Solar alt-arrow-down-bold from @iconify-json/solar; see solar-icons-LICENSE.txt. */
:root {--ui-select-arrow:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M12.3704%2015.8351L18.8001%209.20467C19.2013%208.79094%2018.9581%208%2018.4297%208H5.5703C5.04189%208%204.79869%208.79094%205.1999%209.20467L11.6296%2015.8351C11.8427%2016.0549%2012.1573%2016.0549%2012.3704%2015.8351Z%22%2F%3E%3C%2Fsvg%3E");}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]) {appearance:none !important; -webkit-appearance:none !important; background-image:var(--ui-select-arrow) !important; background-position:right 10px center !important; background-size:18px 18px !important; background-repeat:no-repeat !important; padding-right:36px !important;}

:root {--ui-border-hover:rgba(255,255,255,.28); --ui-border-focus:#8f96a3; --ui-popup-text:15px; --ui-popup-small:13px;}
body :is(input,select,textarea,button,[role="button"]):is(:focus,:focus-visible):not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {outline:none !important; box-shadow:none !important;}
body :is(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,[role="combobox"]):focus:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {border-color:var(--ui-border-focus) !important;}
body :is(button,input[type="button"],input[type="submit"],input[type="reset"],[role="button"]):focus-visible {text-decoration:underline; text-underline-offset:3px;}
body input:is([type="checkbox"],[type="radio"]):focus-visible:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {box-shadow:inset 0 0 0 1px var(--ui-border-focus) !important;}


@supports (-webkit-touch-callout: none) {
    @media (orientation: portrait) {
       #wrap { padding-top: env(safe-area-inset-top) !important;}   
       .navbar-fixed-bottom, .navbar-fixed-top {top:env(safe-area-inset-top) !important;}
    }
}



img {
  content-visibility: auto;
  contain-intrinsic-size: 100px 100px;
}

/* 화면 하단 중앙 */
#pushToast { position: fixed !important; left: 50% !important; bottom: 24px !important; top: auto !important; transform: translateX(-50%) !important; background: rgba(255,255,255,0.86) !important; color: #111 !important; padding: 12px 44px 12px 14px !important; border-radius: 10px !important; font-size: 14px !important; z-index: 2147483647 !important; display: none; max-width: 92vw !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; opacity: 0 !important; transition: opacity 220ms ease, transform 220ms ease; }
#pushToast.show { display: block !important; opacity: 1 !important; transform: translateX(-50%) translateY(0) !important; }
#pushToast.hide { opacity: 0 !important; transform: translateX(-50%) translateY(10px) !important; }
#pushToast .toast_close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #111; font-size: 18px; line-height: 1; cursor: pointer; padding: 6px; }

/* pwa */
.pwa-banner {display:none; opacity:0; pointer-events:none; visibility:hidden; position:fixed; bottom:40px; left:50%; transform:translateX(-50%); border:1px solid rgba(255,255,255,0.25); text-align:center; z-index:10000; padding:22px 30px; background:rgba(0,0,0,0.6); border-radius:10px; color:#fff; font-size:14px; align-items:center; flex-direction:column; gap:5px; box-shadow:0 4px 12px rgba(0,0,0,0.4); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); transition:opacity .2s ease;}
.pwa-banner.active {display:flex !important; opacity:1 !important; pointer-events:auto; visibility:visible;}
.pwa-banner * {font-size:15px !important;}
.pwa-banner p {gap:10px; color:#fff; display:block; margin-bottom:10px; line-height:1.45; display:flex; align-items:center;}
.pwa-banner p img {width:40px;}
.pwa-banner p span {font-weight:700;}
.pwa-banner .pwa-btn {display:inline-block; width:40px; height:40px; border-radius:6px; transition:.3s; border:0; outline:none;}
.pwa-banner .pwa-btn:hover {opacity:.8;}
.pwa-banner .pwa-btn:active {opacity:.5;}
.pwa-banner .btns {display:flex; align-items:center; gap:10px; width:100%;}
.pwa-banner #pwaInstallBtn {background:var(--main); width:200px; flex:1;}
.pwa-banner #pwaInstallCloseBtn {background:var(--bg);}
.pwa-banner #pwaIOSGuideBtn {background:var(--main); width:200px; flex:1;}
.pwa-banner #pwaIOSCloseBtn {background:var(--bg);}
.pwa-banner .pwa-img-area {width:100%; font-size:0; max-height:400px; overflow-y:auto; margin-bottom:10px;}
.pwa-banner .pwa-img-area img {width:100%;}


/**
 * Minified by jsDelivr using clean-css v5.3.2.
 * Original file: /gh/deafnv/bokitube-server@master/channel/style.css
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
::-webkit-scrollbar{width:8px;height:3px;border:0 solid #444;border-top:0;border-bottom:0;display:none}::-webkit-scrollbar-corner{background-color:#1a1a1a}::-webkit-scrollbar-track{border-radius:4px;background:var(--primarycolor)}::-webkit-scrollbar-thumb{border-radius:10px;background:#686868}::-webkit-scrollbar-thumb:hover{background:#555}#wrap{padding:0}#drinkbarwrap, #resizewrap{display:none}#chatwrap>.profile-box{height:100vh!important;width:100vw!important;z-index:1039!important;max-height:unset;max-width:unset;position:fixed!important;top:0!important;left:0!important;padding:unset!important;overflow:visible;border:none}.fluid>.profile-box{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:1020}div#chanjs-allow-prompt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#chanjs-allow-prompt>button.close{display:none}#mainpage{padding-top:50px}.navbar{border:none}.navbar-header, .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form{background:var(--primarycolor)}.navbar-inverse .navbar-brand{letter-spacing:2px}.navbar-inverse .navbar-brand, .navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover{color:#cee8ff}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px;height:50px}.nav .open>a:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .nav .open>a:focus:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .nav .open>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)){background-color:var(--tertiarycolor)!important}.navbar-nav>li:hover{background-image:var(--tertiarycolor)!important}.nav>li>a:focus:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .nav>li>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)){background-color:var(--tertiarycolor)!important}#content-wrap{display:grid}#leftcontent{width:var(--leftcontentvw);background-image:var(--bgimageurl);background-repeat:no-repeat;background-attachment:fixed}#pollwrap{position:absolute}.poll-menu{position:absolute;z-index:1020;max-width:30%;background:rgba(0,0,0,.6);border:#bbb;border-style:solid;border-width:thin;border-radius:16px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(3.8px);-webkit-backdrop-filter:blur(3.8px)}.well.active{position:absolute;z-index:1020}#video-container{display:flex;flex-direction:column;justify-content:center;align-content:center;height:calc(100vh - 50px);background-color:#000}#videowrap{width:100%;padding:0}div.embed-responsive *{max-height:calc(100vh - 50px)}#motdwrap{background:rgba(28,30,34,.75);border-radius:16px;box-shadow:0 4px 30px rgba(0,0,0,.1);border:1px solid rgba(28,30,34,.34)}#motdrow{padding-top:15px}.row{margin-left:60px;margin-right:50px}#announcements{height:0;margin-top:15px}#controlsrow{margin-left:75px}#rightcontrols{display:flex;justify-content:space-between;flex-wrap:wrap;width:100%!important}#playlistrow{margin-left:initial}#playlistrow ::before{display:initial}#rightpane{width:var(--leftcontentvw)}#rightcontent{display:flex;flex-direction:column;height:calc(100vh - 50px);width:calc(100vw - var(--leftcontentvw));min-width:auto;position:fixed;right:0}#chatheader{background-color:var(--primarycolor);border-radius:unset}#chatheader .label{height:unset}.currenttitlewrap{overflow:hidden}#videowrap-header{display:flex;overflow-wrap:break-word;overflow-y:auto;background-color:var(--secondarycolor);padding:9px 15px 15px 15px;border-radius:0}#currenttitle{overflow-x:hidden;overflow-y:scroll;max-height:40px}#usercount{padding-left:20px;pointer-events:none}#userlist{height:30px!important;min-height:30px;width:inherit;min-width:inherit;float:unset;display:flex;overflow-x:scroll;overflow-y:hidden;background-color:var(--primarycolor)}#userlist::-webkit-scrollbar{display:block}#chatheader, #messagebuffer, #userlist, #videowrap-header{border:initial}.userlist_item{display:flex;padding-left:15px;padding-top:3px}.userlist_owner{font-size:small}#messagebuffer{height:unset!important;flex-grow:1;padding-left:10px;padding-right:10px;background-color:var(--secondarycolor)}#messagebuffer>div{position:relative;border-radius:.5rem;padding:.2rem;padding-right:5rem;margin-bottom:10px}#messagebuffer>div:last-child{padding-bottom:0;margin-bottom:1.25rem}.server-whisper{padding-left:100px;padding-bottom:0}.server-msg-disconnect, .server-msg-reconnect{padding-bottom:0!important;border-radius:6px}.label{display:flex}.username{display:flex}.timestamp{position:absolute;top:.6rem;right:0;color:#8f8f8f;visibility:visible}.channel-emote{max-width:80px;max-height:80px}.emote-big{max-width:120px;max-height:120px}.emote-big>img{max-width:-webkit-fill-available;max-height:-webkit-fill-available}.nick-highlight{border-radius:8px}#rightcontent>form{background-color:var(--primarycolor)}#chatline{height:3.6rem;max-height:10rem;margin:10px 0;border-radius:10px;resize:none}#chatline::placeholder{font-style:italic;opacity:.5;color:grey}.form-control{border:initial;border-radius:8px}#leftcontrols{background-color:var(--primarycolor);display:flex;padding:6px;min-height:42px;width:inherit;min-width:inherit}.btn{background-image:none;background-color:var(--tertiarycolor)}.btn:hover:not(:disabled):not(.disabled){filter:none;opacity:.96}.btn-danger{color:#fff;background-color:#ee5f5b}.btn-danger:hover:not(:disabled):not(.disabled){filter:none;opacity:.96}#jump-btn{color:#fff}#newpollbtn{display:flex;justify-content:center;align-items:center}#emotes-btn{display:flex;justify-content:center;align-items:center}#afk-btn{margin-left:auto}#needpw{top:50%!important;left:50%!important;transform:translate(-50%,-50%)}#needpw input{background-color:var(--secondarycolor)!important}.container .credit{margin:10px 0;text-align:center}.text-muted{color:#7a8288}#footer{font-size:11px}@media only screen and (max-width:1264px){#leftcontent{width:calc(100vw - 273px)}}@media only screen and (max-width:768px){@media only screen and (max-height:560px){#chatheader, #userlist{display:none}}@media only screen and (max-height:900px){#currenttitlewrap{display:none}}#leftcontent{width:100vw}#videowrap{padding-top:0;padding-bottom:0;margin-bottom:0}#video-container{position:fixed;height:calc(100vw / 16 * 9);width:100vw;z-index:1000}#emotewrap{/*position:fixed;top:calc(139vw / 16 * 9)!important;left:-4vw!important*/}#emotespanel{display:flex;flex-wrap:wrap;flex-direction:column;z-index:999}#chatwrap{height:485px!important;width:100%}#messagebuffer{height:336px!important}#rightcontent{position:initial;margin-top:calc(100vw / 16 * 9);height:calc((var(--vh,1vh) * 100 - 100vw / 16 * 9) - 50px);width:100%}#announcements{display:contents}.row{margin-left:0;margin-right:0}#controlsrow{margin-left:15px;margin-right:15px}#playlistrow{margin-right:50px}#rightpane{width:108%}}.modal-body::before{content:"";background-image:var(--dialogbgimageurl);background-size:contain;background-repeat:no-repeat;background-position-y:bottom;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.5}.modal-backdrop.in{opacity:.3}.form-group, .pm-history-content, .tab-content>.tab-pane{position:relative}textarea.form-control{height:500px}.nick-hover{background-color:rgba(0,0,0,0)}.emotewrap{position:absolute;cursor:move;top:17%;left:-4%}.ep__floating{position:fixed;z-index:1020;height:28%!important;overflow:scroll;text-align:center;width:380px;margin:10px 20px 0 30px;opacity:1;background:rgba(0,0,0,.27);border-radius:16px;border:#bbb;border-style:solid;border-width:thin;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(3.8px);-webkit-backdrop-filter:blur(3.8px)}.ep__fixed{z-index:1020; width:100%;margin:0;text-align:left;border:var(--primarycolor);border-style:none none solid none;border-width:thick;background-color:var(--secondarycolor)}#emotespanel img{cursor:pointer}#emotesbtnwrap{text-align:center;margin:5px}#emotespanel .alert{text-align:left;margin:5px -10px}#cs-csspreview{position:absolute;margin-left:10px;margin-top:10px}.banner-slideshow{height:215px;max-width:100%;margin:0 auto;border-style:solid;position:relative;overflow:hidden;transform:translate3d(0,0,0);border-color:#916907}.banner-slideshow>div{height:400px;width:5066px;background:var(--bannerimg);background-size:50%;background-position:center;position:absolute;top:0;left:0;height:100%;transform:translate3d(0,0,0)}.banner-slideshow .mover-1{animation:moveSlideshow 20s linear infinite}@keyframes moveSlideshow{100%{transform:translateX(-50%)}}.autocomplete-items{position:absolute;max-height:150px;overflow:scroll;border:1px solid #d4d4d4;border-left:none;border-right:none;border-bottom:none;z-index:99;bottom:100px;left:0;right:0;background:rgba(0,0,0,.67);border-style:none;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(7.8px);-webkit-backdrop-filter:blur(7.8px)}.autocomplete-items div{display:flex;align-items:center;padding:0 10px;cursor:pointer;background:0 0;border:none}.autocomplete-items div:hover{background-color:#4a4a4a}#autocomplete-image{margin-left:auto;display:block;height:42px}.autocomplete-active{background-color:var(--tertiarycolor)!important;color:#fff}.reply{position:relative;background-color:var(--tertiarycolor);padding:.5rem;padding-top:0;margin-bottom:.4rem;border:gray 1px solid;border-radius:1rem 1rem 1rem 0;overflow:hidden;max-height:10rem;width:98%;transition-property:background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:75ms;cursor:pointer}.reply:hover{background-color:var(--secondarycolor)}.reply:hover::after{background-image:unset}.reply::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1rem;background-image:linear-gradient(to bottom,transparent,var(--tertiarycolor))}.reply-header{font-size:small}.reply-msg{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;-webkit-user-select:none;-ms-user-select:none;user-select:none;font-size:small;color:#fff}.reply-button{visibility:hidden;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;height:2.5rem;width:2.5rem;background:0 0;padding:0;border:none;border-radius:10000px;transition-property:background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:75ms}.reply-button:hover{background-color:var(--tertiarycolor)}#messagebuffer>div:hover .reply-button{visibility:visible}.reply-icon{display:block;height:2.5rem;width:2.5rem;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCI+PHBhdGggZD0iTTIwIDE4di04TDYgMjRsMTQgMTR2LTguMmMxMCAwIDE3IDMuMiAyMiAxMC4yLTItMTAtOC0yMC0yMi0yMnoiIGZpbGw9IiNjMmMyYzIiLz48cGF0aCBmaWxsPSJub25lIiBkPSJNMCAwaDQ4djQ4SDB6Ii8+PC9zdmc+);background-size:2.5rem 2.5rem;pointer-events:none}
/*# sourceMappingURL=/sm/a7293c5ef1f1ba15e2aac2b60f73aaaef4a2b4ec290e678a2582169bb7533000.map */
*:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-size:inherit !important;}
#chatwrap, #videowrap {margin-bottom:0 !important;}
#result {font-size:14px !important;}
.modal.none {display:none !important;}
.drink {border:0 !important; padding:0 !important; margin:0 !important;}
li {list-style-type: none;}
.navbar {background:var(--header) !important;} 
#rightcontent {background:var(--bgsub) !important;}
html.window .navbar {display:none;}
html.window #mainpage {padding-top:0 !important;}
html.window #channel-content {display:none;}
html.fullscreen #mainpage {padding-top:0 !important;}
html.fullscreen #video-container, html.fullscreen #rightcontent {height:calc(100vh);}
*:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-family:var(--font-primary) !important;}
pre:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background-color:#333 !important; border:0 !important; font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important; color:#ccc !important;}
:root {  --leftcontentvw:  81.5dvw; /* Width of video player section, chat will fill the rest */}
h1, h2, h3, h4, h5, h6 {text-shadow:none;}
.page_title {margin-bottom:20px; text-align:center; font-size:24px !important; font-weight:bold;}
body {background-color:var(--body) !important; color:#fff; line-height:1.5; font-size:15px; font-weight:500;}
#cs-csstext, #cs-jstext, #cs-motdtext { font-family:var(--font-primary); line-height:1.7;}
code {background:transparent; color:#fff; font-size:13px; font-weight:bold;}
.server-whisper {margin:10px 0; display:block; font-style:normal; font-size:calc(11px + var(--dg-chat-font-increase,0px)) !important; padding:5px 0; padding-left:0 !important; text-align:center !important;}
input.form-control[type="text"]:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), input.form-control[type="password"]:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), input.form-control[type="email"]:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), textarea.form-control:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:var(--textbar) !important; border:0;}
/*
#motdwrap.well {background:transparent !important; padding:0; min-height:auto; font-size:10px; line-height:50px; border:0; box-shadow:none;}
*/
#motdwrap.well {height:0; min-height:0; margin:0; background:transparent !important; box-shadow:none; border:0; padding:0 !important;}
.solar-time {display:none;}
#plmeta {border:none; font-size:12px;}
#motd + .clear {display:none;}
#motdwrap .close {display:none;}
#messagebuffer {position:relative; font-size:0 !important;}
#messagebuffer .dg-odd-even-result, #messagebuffer .dg-odd-even-notice {font-size:calc(15px + var(--dg-chat-font-increase,0px)) !important; line-height:1.6; overflow-wrap:anywhere;}
#messagebuffer > .dg-chat-offscreen, #messagebuffer > .dg-chat-offscreen *, #messagebuffer > .dg-chat-offscreen::before, #messagebuffer > .dg-chat-offscreen::after, #messagebuffer > .dg-chat-offscreen *::before, #messagebuffer > .dg-chat-offscreen *::after {animation-play-state:paused !important;}
#messagebuffer.dg-chat-rendering-hidden *, #messagebuffer.dg-chat-rendering-hidden *::before, #messagebuffer.dg-chat-rendering-hidden *::after {animation-play-state:paused !important;}
/* 800px 넘게 벗어난 줄은 합성 레이어를 붙잡는 아이콘·장식만 숨긴다. 글자는 남겨 찾기(Ctrl+F)와 화면 읽기는 유지한다. */
#messagebuffer > .dg-chat-far .usericon, #messagebuffer > .dg-chat-far *::before, #messagebuffer > .dg-chat-far *::after {visibility:hidden !important;}
/* 모바일은 닉효과가 새 줄에서만 8초 움직이고 멈춘다. 효과가 하나라도 움직이면 매 프레임 화면 전체를 다시 계산하기 때문이다. 팝아웃 채팅창은 PC라 제외한다. */
@media (max-width:768px), (pointer:coarse) and (max-width:1440px) {
html:not(.chat-popout) #messagebuffer > div:not(.dg-chat-fx-live) :is(.usertext, .usericon), html:not(.chat-popout) #messagebuffer > div:not(.dg-chat-fx-live) .usertext::before, html:not(.chat-popout) #messagebuffer > div:not(.dg-chat-fx-live) .usertext::after {animation-play-state:paused !important;}
}
#messagebuffer .dg-dice-message {display:inline-flex; align-items:center; gap:6px; max-width:100%; vertical-align:middle;}
#messagebuffer .dg-dice-icon {display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:26px; height:26px; font-size:23px !important; line-height:1; transform-origin:center;}
#messagebuffer .dg-dice-text {min-width:0; line-height:1.5; overflow-wrap:anywhere;}
#messagebuffer .dg-dice-result {display:inline-block; min-width:1ch; color:var(--main); font-size:inherit !important; font-weight:700; text-align:center;}
#messagebuffer .dg-reward-token {display:inline-flex; align-items:center; gap:6px; max-width:100%; vertical-align:baseline; line-height:inherit;}
#messagebuffer .dg-reward-name {align-self:baseline; min-width:0; font-size:inherit !important; overflow-wrap:anywhere;}
#messagebuffer .dg-reward-thumb {display:block; flex:0 0 24px; width:24px !important; height:24px !important; max-width:24px !important; max-height:24px !important; margin:0 !important; border-radius:5px; object-fit:contain; content-visibility:visible; contain-intrinsic-size:24px 24px; animation:none !important; transform:none !important;}
#messagebuffer .dg-reward-thumb + .dg-reward-name {line-height:max(24px,1lh);}
#messagebuffer .dg-reward-arcana .dg-reward-name, #messagebuffer .dg-reward-jackpot .dg-reward-name {color:#b7ffe0; font-weight:800; background-image:linear-gradient(105deg,#8dffc2 0%,#74e5ff 22%,#e7b7ff 45%,#fff 55%,#a0ffdc 75%,#8dffc2 100%); background-size:250% 100%; animation:dgRewardShine 3.8s ease-in-out infinite;}
#messagebuffer .dg-reward-jackpot .dg-reward-name {color:#ffe49b; background-image:linear-gradient(105deg,#ffc35c 0%,#ffe8a4 22%,#ffb6dc 45%,#fff 55%,#ffe88b 75%,#ffc35c 100%);}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
#messagebuffer .dg-reward-arcana .dg-reward-name, #messagebuffer .dg-reward-jackpot .dg-reward-name {background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent;}
}
@keyframes dgRewardShine {0%,100% {background-position:0% 50%; filter:drop-shadow(0 0 2px rgba(178,255,227,.22));} 50% {background-position:100% 50%; filter:drop-shadow(0 0 4px rgba(220,255,242,.45));}}
@media (prefers-reduced-motion:reduce) {
#messagebuffer .dg-reward-arcana .dg-reward-name, #messagebuffer .dg-reward-jackpot .dg-reward-name {animation:none;}
}
#messagebuffer .dg-dice-message.is-rolling .dg-dice-icon {animation:dgDiceTumble .9s ease-out both;}
#messagebuffer .dg-dice-message.is-rolling .dg-dice-result {animation:dgDiceRoll .9s ease-out both;}
@keyframes dgDiceTumble {0% {transform:translateY(0) rotate(-25deg) scale(.85);} 20% {transform:translateY(-4px) rotate(100deg);} 45% {transform:translateY(1px) rotate(225deg);} 70% {transform:translateY(-2px) rotate(320deg);} 100% {transform:translateY(0) rotate(360deg) scale(1);}}
@keyframes dgDiceRoll {0% {transform:translateY(0) rotateX(0deg) scale(.9);} 18% {transform:translateY(-3px) rotateX(360deg);} 45% {transform:translateY(1px) rotateX(540deg);} 75% {transform:translateY(-2px) rotateX(720deg);} 88% {transform:translateY(0) rotateX(720deg) scale(1.2);} 100% {transform:translateY(0) rotateX(720deg) scale(1);}}
@media (prefers-reduced-motion:reduce) {
#messagebuffer .dg-dice-message.is-rolling .dg-dice-icon, #messagebuffer .dg-dice-message.is-rolling .dg-dice-result {animation:none;}
}
#messagebuffer .list_rule {margin-top:10px; padding:10px 10px 10px 10px; line-height:1.4; border:1px solid #666; }
#messagebuffer .list_rule li {display:block; font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important; margin-bottom:3px; word-break:keep-all;}
#messagebuffer .list_rule li:last-child {margin-bottom:0;}
#messagebuffer .list_schedule {width:100%; display:table; margin:10px 0; padding:0;}
#messagebuffer .list_schedule li {display:table-row; width:100%;}
#messagebuffer .list_schedule li span {display:table-cell; font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important; color:var(--sub); }
#messagebuffer .list_schedule li span.th {font-weight:bold;}
.reply-button:hover + span {text-decoration:underline; opacity:.6; transition:.2s;}
.h4, h4 {font-size:16px;}
table {background:transparent;}
.form-control:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {border-color:#666; height:48px; color:#eee !important;}
#footer {display:none;}
.autocomplete-items div {font-family:var(--font-primary) !important;}
#jump-btn {display:none;}
input::-webkit-input-placeholder {color:#eee !important;}
input:-ms-input-placeholder {color:#eee !important;}
textarea::-webkit-input-placeholder {color:#eee !important;}
textarea:-ms-input-placeholder {color:#eee !important;}
.tab_cont_wrap {overflow-y:auto; height:365px; background:rgba(0,0,0,0.4); touch-action: pan-y; /* 세로 스크롤 방지 */}


/* 팝업 */
.popup_iframe {display:block; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%)!important; width:calc(100% - 30px); max-width:1700px; border-radius:10px; box-shadow:0px 10px 25px rgba(0,0,0,0.3); z-index:9999;  overflow:hidden; background:var(--textbar); font-size:0;}
.popup_iframe .popup_title {position:relative; width:100%; padding:0 25px; border-bottom:1px solid var(--textbar); }
.popup_iframe .popup_title h6 {margin:0; font-size:18px !important; font-weight:bold; text-align:left; line-height:55px;}
.popup_iframe .popup_cont {position:relative; min-height:700px;}
.popup_iframe iframe {position:absolute; top:0; left:0; border:0; width:100%; height:100%;}






/* 헤더 */
.dropdown-menu {background:rgba(10,10,10,.7); backdrop-filter: blur(3px);}
.dropdown-menu li:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-size:14px !important;}
.navbar {height:50px; backdrop-filter: blur(2px); border-bottom:1px solid #222;}
.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {background:inherit;}
.navbar-inverse .navbar-nav>li>a, .navbar-inverse .navbar-brand, .navbar-inverse .navbar-text {color:#fff;}
.navbar-text {margin-top:8px;}
.navbar-text * {font-size:14px !important;}
.navbar-nav>li>a {border:0;}
.navbar-nav>li>a:hover {background:rgba(0,0,0,0) !important;}
.navbar-brand {position:relative; font-size:0 !important; padding-left:51px !important; }
.navbar-brand:hover:before {color:var(--sub) !important;}

/*.navbar-brand:hover:after {background:url(https://s10.gifyu.com/images/SDxG9.png) 10px center no-repeat; background-size:24px;}*/
.navbar-toggle {padding:9px 6px !important;}
.navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus {background:#2d3147;}
.navbar-form input.form-control {width:140px; height:28px; background-color:var(--textbar) !important; border:0; font-size:12px !important;}
.navbar-text-nofloat {font-size:11px !important; color:#fff; opacity:.85; display:inline-block; top:-2px; position:relative; margin-left:5px;}
.navbar .form_control {color:#333 !important;}
.navbar-nav {font-weight:bold;}
.navbar-nav>li a:hover {color:var(--sub) !important;}
.navbar.scroll {background:var(--bg) !important;}
.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {background:rgba(255,255,255,0.23);}
.navbar-toggle {background:transparent !important;}
.navbar-inverse .navbar-toggle, .modal-footer {border-color:rgba(255,255,255,0.35);}
.navbar-inverse .navbar-toggle .icon-bar {background:#fff;}
.nav-tabs, .table>thead>tr>th {border-bottom-color:rgba(255,255,255,0.3);}
.nav-tabs>li {font-size:14px;}
.nav-tabs>li.active>a:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .nav-tabs>li.active>a:focus:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .nav-tabs>li.active>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:#fff !important;background:#fff; color:#222; font-weight:bold; opacity:1 !important;}
.nav-tabs>li.active>a:active:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:#fff !important;}
.nav-tabs>li>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:rgba(255,255,255,.2) !important;}
.nav-tabs>li.active>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:#fff !important;}
input#logout[type="submit"] {background:var(--main) !important; color:#fff !important; border-radius:8px; padding:5px 15px;}

/* 영상 & 채팅창 */
.reply-icon {width:25px; height:20px; background:url("https://s12.gifyu.com/images/SD2aM.png") center no-repeat; background-size:100%;}
.nick-highlight {background:transparent!important;}
.nick-highlight .server-whisper {color:#fff !important;}
#video-container {border-bottom:1px solid #333;}
#modflair {display:none;}
#userlistwrap {display:flex; flex:0 0 auto; align-items:flex-start; width:100%; min-width:0; border-bottom:1px solid #333;}
#userlist {box-sizing:border-box; flex:1 1 auto; width:calc(100% - 30px) !important; min-width:0; height:30px !important; min-height:30px; max-height:30px !important; flex-wrap:nowrap; align-content:flex-start; gap:0 10px; padding:4px 0 4px 10px; overflow:hidden; border-bottom:0 !important;}
#userlist.is-expanded {flex-wrap:wrap; height:auto !important; max-height:min(200px, 30dvh) !important; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;}
#userlist .userlist_item {box-sizing:border-box; flex:0 0 auto; align-items:center; max-width:100%; height:22px; padding:0; gap:4px;}
#userlist .userlist_item > span:first-child {display:inline-flex; flex:0 0 auto; align-items:center; gap:3px;}
#userlist .userlist_item > span:first-child:empty {display:none;}
#userlist .userlist_item > span:nth-child(2) {min-width:0; overflow:hidden; text-overflow:ellipsis;}
#userlist .solar-time {display:inline-block; color:#8f949e;}
#userlist .solar-time::before {background-color:#8f949e;}
#userlisttoggle {display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:0; background:transparent; color:inherit; cursor:pointer;}
#userlisttoggle .solar-icon {width:14px; height:14px;}
#userlisttoggle[aria-expanded="true"] .solar-icon {transform:rotate(180deg);}
#userlisttoggle:focus-visible {outline:2px solid var(--main); outline-offset:-2px; border-radius:var(--ui-radius-sm);}
#messagebuffer {padding:15px 15px 5px !important; scrollbar-width: none; }
#messagebuffer>div {margin-bottom:0 !important; padding:0 !important; font-size:calc(14.5px + var(--dg-chat-font-increase,0px)) !important;}
.reply {border-color:var(--main); color:var(--main); border-radius:8px !important; padding:5px 10px !important; font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important; margin-top:5px; max-height:calc(10rem + 6 * var(--dg-chat-font-increase,0px));}
.reply:hover {background:#222;}
#emotelist .modal-dialog {float:right;}
.timestamp {display:none;}
.userwrap {display:block; margin-top:10px; margin-bottom:3px;}
.username {display:inline-block; color:var(--main); font-size:calc(15.5px + var(--dg-chat-font-increase,0px)) !important;}
.userlist_op {color:var(--main);}
.userlist_item {position:relative; color:#fff !important; font-size:12px !important;}
.userlist_owner {color:var(--main) !important;}
.server-whisper {color:#ddd !important;}
.nick-hover {background:transparent; background:rgba(255,255,255,0.1) !important;}
#videowrap {padding-right:0;}
#chatline, #guestname {font-size:16px !important;}
#usercount {font-weight:bold; font-size:12px !important; padding-left:15px !important;}
#videowrap {position:relative;}
#videowrap .dg-player-unmute {position:absolute; z-index:6; top:12px; left:12px; display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin:0; padding:6px 14px; border:1px solid rgba(255,255,255,.25); border-radius:4px; background:rgba(20,20,20,.92); color:#fff; font-size:14px !important; font-weight:600; line-height:1.5; cursor:pointer; touch-action:manipulation;}
#videowrap .dg-player-unmute:hover {background:#303030;}
#videowrap .dg-player-unmute:focus-visible {outline:2px solid #fff !important; outline-offset:2px;}
#videowrap .dg-player-unmute.is-hint {top:auto; bottom:56px; left:50%; max-width:calc(100% - 24px); transform:translateX(-50%); font-weight:500; pointer-events:none;}
#emotespanel.ep__fixed {position:fixed; border-color:transparent !important; background:#595367; backdrop-filter: blur(3px); border-bottom:0 !important; border-radius:0px; backdrop-filter: blur(8px); transition:0s !important; z-index:99999 !important; padding:0px 0px !important; width:calc(100vw - var(--leftcontentvw));}
#emotespanel img {width:calc(20% - 6px); margin:0px 7.5px 10px 0px; aspect-ratio:1/1; max-height:none !important; border-radius:8px;}
#emotespanel img:nth-child(5n) {margin-right:0;}
#emotespanel img:hover {opacity:.8; background:rgba(255,255,255,0.2);}
#emotespanel img:active {opacity:.6;}
#videowrap-header {display:none !important;}
#controlsrow {position:relative;}
#controlsrow, #motdrow.row, #rightpane-inner {margin-left:0px !important; margin-right:15px;}
.row .col-lg-12 {margin-left:0; padding-left:15px; margin-right:0; padding-right:0;}
.queue_entry {background-image:none; border:0; padding:7px 15px 12px !important; box-sizing:border-box; border-top:0px solid #444; border-bottom:1px solid #030303;}
.queue_entry:hover {background:#333;}
.queue_active.queue_entry {background-image:none; background:#464855 !important;}
.queue_active.queue_entry .qe_title {font-weight:bold; color:#fff !important;}
.queue_entry * {font-size:13px !important;}
#queue .btn-group .btn {padding:2px 10px;}
#queue .queue_entry > .qe_clear + .btn-group {margin-top:4px;}
#rightpane, #rightcontrols {padding:0 !important; margin-left:0;}
/*
#motdwrap.well {background:#131313 !important; border-radius:10px !important; padding:20px 0px 20px 0px !important; border-top:1px solid #444; border-bottom:1px solid #444; margin-bottom:20px;}
#motdwrap.well #motd {font-size:0 !important; text-align:center;}
#motdwrap.well .motd-link {margin-right:15px;}
#motdwrap.well .motd-link img {width:480px;}
*/
#leftcontrols  {position:relative; height:0; min-height:0; padding:0; z-index:3;}
#leftcontrols #emotes-btn svg {display:none;}
#guestlogin {padding-bottom:20px;}
.input-group-btn:last-child>.btn:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .input-group-btn:last-child>.btn-group:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-size:15px !important;}



/* 오토컴플리트 */
#autocomplete-list {max-height:200px;}
#autocomplete-list div {border-bottom:1px dotted rgba(255,255,255,0.2); font-size:14px !important;}
#autocomplete-list div:hover {background:rgba(255,255,255,0.2);}
#autocomplete-image {height:35px; border-radius:5px; padding:0px 15px;}


/* 1:1 채팅 */
.panel-heading {min-width:100px !important; background: linear-gradient(90deg, rgba(96,180,40,1) 0%, rgba(54,160,220,1) 100%) !important;
 color:#fff !important; font-weight:bold;border-bottom:0; letter-spacing:0.5px;}
.panel-heading  .close {margin-top:0px; color:#fff !important; font-size:21px !important;}
.panel-heading:after {content:" 님"; margin-right:10px;}
.pm-panel {position:relative;  left:0px; width:auto; min-width:260px; max-width:360px; background:rgba(0,0,0,0.95);border:0; }
.pm-panel > .panel-body {background:#fff; border-left:1px solid #ddd; border-right:1px solid #ddd;}
.pm-panel > .panel-body hr {display:none;}
.pm-panel > .panel-body > .pm-buffer {height:280px; padding:0 15px; font-size:14px !important; padding-bottom:10px;}
.pm-panel > .panel-body > .pm-buffer .channel-emote {width:70px !important; height:70px !important;}
.pm-panel > .panel-body div {color:#333;}
.pm-panel > .panel-body input.form-control[type="text"] {background:#ddd !important; color:#000 !important; border-top:0;}
.panel {position:absolute; left:auto !important; right:calc(100vw - var(--leftcontentvw)); bottom:0;}

/* 번역 */
#cs-emotes-exporttext {height:200px;}
#cs-chanlog-filter {display:flex; flex-wrap:nowrap; gap:2px; margin:6px 0 8px; border-bottom:1px solid rgba(255,255,255,.2); overflow-x:auto; overflow-y:hidden; scrollbar-width:none;}
#cs-chanlog-filter::-webkit-scrollbar {display:none;}
#cs-chanlog-filter .cs-chanlog-tab {flex:0 0 auto; margin:0 0 -1px; padding:8px 16px; border:1px solid transparent; border-radius:5px 5px 0 0; background:transparent; color:#bbb; font-size:14px; font-weight:700; line-height:20px; white-space:nowrap; outline:none;}
#cs-chanlog-filter .cs-chanlog-tab:hover, #cs-chanlog-filter .cs-chanlog-tab:focus {background:rgba(255,255,255,.08); color:#fff;}
#cs-chanlog-filter .cs-chanlog-tab.is-active {border-color:rgba(255,255,255,.2); border-bottom-color:#242433; background:rgba(255,255,255,.08); color:#fff;}
@media (max-width:600px) {#cs-chanlog-filter .cs-chanlog-tab {padding:8px 10px; font-size:14px;}}
#cs-chanlog-text {font-size:14px;}
#newpollbtn {font-size:0; position:relative; top:0;}
#newpollbtn .solar-icon {width:18px; height:18px;}
.userlist_item {white-space:nowrap; text-overflow:ellipsis; left:0 !important; }
.userlist_item span {font-style:normal !important;}
.user-dropdown {position:fixed;background:rgba(0,0,0,0.85) !important; border:0; left:auto !important; right:0px !important; width:calc(100vw - var(--leftcontentvw)) !important; border-radius:0; max-width:none !important; text-align:center; margin:auto !important; top:104px !important;}
#leftpane {display:block;}
#chatline {width:calc(100% - 30px); margin:20px auto !important; height:3rem !important; padding-left:20px; background:var(--textbar) !important; color:#fff; box-shadow:none; border-radius:500px !important;}
#chatline:focus {transition:.3s; background:#33353d;}
#chatheader .label {font-size:11px; line-height:20px;}
#emotelistbtn {position:fixed; bottom:121px; right:20px; width:48px; height:48px; z-index:10; background:url("https://s12.gifyu.com/images/Sr26V.png") center no-repeat var(--main) !important;  border-radius:190px; background-size:25px !important; font-size:0 !important; opacity:1; box-shadow:none;}
.pagination {margin-top:0; margin-bottom:10px;}
.emote-preview {width:100%;}
.emote-preview-container {width:calc(20% - 8px); border-radius:10px; overflow:hidden; margin:0; margin-right:8px !important; margin-bottom:8px; height:auto;}
.modal-content {background:rgba(36,36,51,0.9); backdrop-filter: blur(10px);}
.modal-backdrop.in {opacity:0.2;}
.close {opacity:1; color:#fff; text-shadow:none; font-size:28px;}
.toggleFullscreenBtn {width:50px; height:50px; position:fixed; background:#999; color:#333; }
.modal-body {font-size:12px; padding-top:0; line-height:1.5;}
.modal-body .form-control:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {height:40px; padding:0 12px; line-height:40px; background:#131313 !important; border:none;}
.modal-body textarea.form-control {height:500px; line-height:1.5;}
.modal-body input.form-control[type="text"], .modal-body textarea.form-control {}
.modal-footer {padding:10px 20px;}
#messagebuffer .server-msg-reconnect { color:var(--main); background:transparent; padding:5px 5px !important; border:1px solid var(--main); border-radius:0px; font-size:calc(12px + var(--dg-chat-font-increase,0px)) !important; }
#messagebuffer .server-msg-disconnect {color:#ff6a6a; background:transparent; padding:5px 5px !important; border:1px solid #ff6a6a; border-radius:0px; font-size:calc(12px + var(--dg-chat-font-increase,0px)) !important; }

#rightcontrols {padding-left:15px !important; font-size:0;}
#plcontrol {min-height:36px;}
#searchcontrol, #customembed, #playlistmanager {display:none !important; visibility:hidden !important;}
.plcontrol-collapse.collapse:not(.in) {display:none !important; visibility:hidden !important;}
.plcontrol-collapse.collapse.in {display:block !important; visibility:visible !important;}
.channel-emote {margin:7px 0; border-radius:0px; max-width:100px !important; max-height:100px !important;}
.channel-emote.megacon {max-width:140px !important; max-height:140px !important; width:140px !important; height:140px !important;}
.nick-hover {background:transparent !important;}

/* 외부스크립트 */
.profile-box {background:url("https://s10.gifyu.com/images/S5yPV.png") center no-repeat #000; background-size:260px !important;}


/* 버튼, 페이징 */
input:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), button:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-family:var(--font-primary) !important;}
.btn:focus:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .btn:active:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .btn:active:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)){outline:none !important; }
.btn-primary:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .btn-default:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:var(--main) !important; color:#fff; text-shadow:none;}
.btn-primary:hover:not(:disabled):not(.disabled):not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .btn-default:hover:not(:disabled):not(.disabled):not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:var(--main) !important; opacity:.96 !important;}
.btn-danger:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:#cf2743 !important;}
button.close {display:block;}
.pagination>li>a, .pagination>li>span {background:#333;}
.pagination>li.disabled>a:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .pagination>li.disabled>a:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .pagination>li.disabled>span:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .pagination>li.disabled>span:hover:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:#333 !important; opacity:.6;}
#showsearch, #qlockbtn {display:none;}
.input-group-addon {background:#222 !important; text-shadow:none; font-weight:bold;}
#voteskip, #afk-btn {display:none;}
#mediaurl, #customembed-title, #userpl_name, #customembed-content {background:var(--textbar) !important; width:calc(100% - 20px); border-radius:10px; color:#ccc !important; font-weight:bold;}
.btn-group-vertical .btn:first-child {}
.input-group-btn:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-size:0 !important;}



/* 투표: 기존 베팅 팝업의 구조와 표면 스타일을 공유한다. */
#pollwrap {position:fixed; inset:0; z-index:10000; pointer-events:none; font-size:14px !important; line-height:1.5;}
#pollwrap *, #pollwrap *::before, #pollwrap *::after {box-sizing:border-box; font-family:var(--font-primary) !important; font-size:14px !important;}
#pollwrap .poll-card-stack {position:fixed; top:90px; right:20px; width:400px; max-width:calc(100vw - 40px); max-height:calc(100vh - 120px); max-height:calc(100dvh - 120px); display:flex; flex-direction:column; gap:12px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; pointer-events:auto; scrollbar-width:thin;}
#pollwrap .poll-menu, #pollwrap .poll-list, #pollwrap .poll-card {margin:0; overflow:hidden; pointer-events:auto; color:#fff; background:var(--bgsub); border:1px solid rgba(255,255,255,.2); border-radius:10px; box-shadow:0 7px 10px rgba(0,0,0,.6); transform:none !important;}
#pollwrap .poll-menu, #pollwrap .poll-list {position:fixed; top:90px !important; right:20px; left:auto !important; width:440px !important; max-width:calc(100vw - 40px) !important; z-index:10002;}
#pollwrap .poll-card {position:relative; top:auto !important; right:auto; left:auto !important; width:100% !important; max-width:none !important; flex:0 0 auto;}
#pollwrap .poll-card.muted {opacity:.96;}
#pollwrap .poll-stack-toolbar {position:sticky; top:0; z-index:1; display:flex; min-height:40px; justify-content:flex-end; align-items:center; padding:0 8px; background:var(--bgsub); border:1px solid rgba(255,255,255,.2); border-radius:6px;}
#pollwrap .poll-stack-toolbar button {min-height:36px; padding:0 8px; color:#ddd; background:none; border:0; cursor:pointer;}
#pollwrap .popup_title {display:flex; min-height:50px; padding:7px 12px; align-items:center; flex-wrap:wrap; gap:6px 10px; background:#222; border-radius:9px 9px 0 0;}
#pollwrap .popup_title h6 {min-width:0; margin:0; flex:1 1 70px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:16px !important; font-weight:700; line-height:22px;}
#pollwrap .poll-title-actions {display:flex; margin-left:auto; flex:0 0 auto; align-items:center; gap:4px;}
#pollwrap .popup_title button {display:inline-flex; position:static; min-height:36px; min-width:40px; height:auto; padding:0 6px; align-items:center; justify-content:center; border:0; border-radius:6px; outline:none; background:none; color:#d7d7d7; line-height:22px; cursor:pointer; float:none;  white-space:nowrap;}
#pollwrap .popup_title > .btn_chatmenu_close {margin-left:auto;}
#pollwrap .popup_title button:hover, #pollwrap .popup_title button:focus-visible {color:#fff; text-decoration:underline;}
#pollwrap .popup_title .poll-end-button {color:#ff8f9e;}
#pollwrap .is-collapsed > .popup_cont {display:none;}
#pollwrap .popup_cont {position:relative; width:100%; max-height:calc(100vh - 160px); max-height:calc(100dvh - 160px); padding:25px 20px; overflow-x:hidden; overflow-y:auto;}
#pollwrap .section {margin:0 0 18px;}
#pollwrap .section > .title, #pollwrap .poll-section-heading .title {display:block; margin:0 0 7px; color:#bbb; font-weight:700;}
#pollwrap .poll-field-help {margin:-2px 0 9px; color:#999; line-height:1.5;}
#pollwrap .text_form {display:block; width:100%; height:44px; padding:0 15px; color:#fff !important; background:var(--textbar) !important; border:1px solid transparent !important; border-radius:6px; box-shadow:none; line-height:42px;}
#pollwrap .text_form:hover {border-color:#555 !important;}
#pollwrap .text_form:focus {border-color:var(--ui-border-focus) !important; outline:none; box-shadow:none;}
#pollwrap .poll-datetime {color-scheme:dark;}
#pollwrap .poll-section-heading {display:flex; margin-bottom:7px; align-items:center; justify-content:space-between; gap:12px;}
#pollwrap .poll-section-heading .title {margin:0;}
#pollwrap .poll-option-limit {color:#888;}
#pollwrap .poll-option-editor-list {display:flex; flex-direction:column; gap:8px;}
#pollwrap .poll-option-row {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px;}
#pollwrap .poll-option-remove {min-width:58px; padding:0 10px; color:#ff9ca9; background:#32252a; border:1px solid #613641; border-radius:6px; cursor:pointer;}
#pollwrap .poll-option-remove:hover, #pollwrap .poll-option-remove:focus-visible {color:#fff; background:#873347; outline:none;}
#pollwrap .poll-option-remove:disabled {color:#777; background:#2e2e2e; border-color:#444; cursor:not-allowed; opacity:.65;}
#pollwrap .poll-option-add {height:40px; margin-top:9px; color:#ddd; background:#414551; border:1px solid #5a5a5a;}
#pollwrap .poll-option-add:hover, #pollwrap .poll-option-add:focus-visible {color:#fff; background:#4d525f; outline:none;}
#pollwrap .poll-settings {padding:12px; background:#202326; border:1px solid #383b40; border-radius:6px;}
#pollwrap .poll-settings .checkbox {margin:0 0 10px;}
#pollwrap .poll-settings .checkbox:last-child {margin-bottom:0;}
#pollwrap .poll-settings label {display:flex; min-height:24px; margin:0; padding:0; align-items:center; gap:9px; color:#ccc; font-weight:400; cursor:pointer;}
#pollwrap .poll-settings input[type="checkbox"] {position:static; width:18px; height:18px; margin:0; flex:0 0 auto; accent-color:var(--main);}
#pollwrap .poll-form-error {margin:0 0 12px; padding:9px 11px; color:#ffb7c0; background:#3a2026; border:1px solid #6f313e; border-radius:6px;}
#pollwrap .poll-actions {display:flex; padding-top:19px; border-top:1px solid #333;}
#pollwrap .btn_submit {height:44px; padding:0 12px; border:0; border-radius:6px; color:#fff; cursor:pointer; line-height:44px;}
#pollwrap .btn_submit.btn_main {width:100%; background:var(--main); font-weight:700;}
#pollwrap .btn_submit:disabled {cursor:not-allowed; opacity:.55;}
#pollwrap .poll-question {margin:0 0 18px; padding:0 0 14px; color:#fff; border-bottom:1px solid #3b4147; font-size:22px !important; font-weight:900; line-height:1.4; letter-spacing:-.025em; text-shadow:0 2px 8px rgba(0,0,0,.38); overflow-wrap:anywhere;}
#pollwrap .popup_title .poll-countdown {display:inline-block; margin:0; flex:0 0 auto; color:#bbb; font-variant-numeric:tabular-nums; font-weight:400; line-height:1; white-space:nowrap;}
#pollwrap .popup_title .poll-countdown.is-ending, #pollwrap .popup_title .poll-countdown.is-ended {color:#ff4444; font-weight:700;}
#pollwrap .poll-privacy-note {margin:0 0 12px; padding:9px 11px; color:#d7d7d7; background:#292d33; border:1px solid #41464d; border-radius:4px;}
#pollwrap .poll-option-list {display:flex; flex-direction:column; gap:9px;}
#pollwrap .poll-option-button {position:relative; display:block; width:100%; min-height:62px; padding:11px 12px; overflow:hidden; color:#ddd; background:#202326; border:1px solid #3c4046; border-radius:6px; text-align:left; cursor:pointer; transition:border-color .2s ease,background-color .2s ease,transform .2s ease;}
#pollwrap .poll-option-button:hover {background:#292d31; border-color:#666; transform:translateY(-1px);}
#pollwrap .poll-option-button:focus-visible {background:#263a3a; border-color:#72f4e8; outline:2px solid #72f4e8; outline-offset:2px; box-shadow:0 0 0 4px rgba(69,225,210,.2); transform:translateY(-1px);}
#pollwrap .poll-option-button.option-selected, #pollwrap .poll-option-button.option-selected:hover, #pollwrap .poll-option-button.option-selected:focus-visible {color:#fff; background:#176f69; border-color:#72e6da; box-shadow:none;}
#pollwrap .poll-option-button:disabled {cursor:default; transform:none;}
#pollwrap .poll-option-top {position:relative; z-index:2; display:flex; min-width:0; align-items:flex-start; justify-content:space-between; gap:12px;}
#pollwrap .poll-option-label {min-width:0; flex:1; font-weight:700; line-height:1.4; overflow-wrap:anywhere;}
#pollwrap .poll-option-value {flex:0 0 auto; color:#bbb; font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap;}
#pollwrap .poll-option-track {position:relative; z-index:2; display:block; width:100%; height:8px; margin-top:10px; overflow:hidden; background:#101214; border-radius:100px;}
#pollwrap .poll-option-fill {display:block; width:0; height:100%; background:linear-gradient(90deg,#218f83,var(--main)); border-radius:inherit; box-shadow:0 0 10px rgba(70,183,171,.38); transition:width .55s cubic-bezier(.2,.8,.2,1);}
#pollwrap .poll-option-button.option-selected .poll-option-value {color:#fff;}
#pollwrap .poll-vote-status {margin:10px 0 0; padding:0; color:#8ee9dd; background:none; border:0; font-weight:700;}
#pollwrap .poll-vote-status.is-error {color:#ffabb6; background:none; border:0;}
#pollwrap .poll-results-hidden .poll-option-fill {width:100% !important; background:repeating-linear-gradient(120deg,#34383e 0,#34383e 8px,#2c3035 8px,#2c3035 16px); box-shadow:none; opacity:.75; animation:pollHiddenFlow 1.6s linear infinite;}
#pollwrap .poll-option-button.is-updated {animation:pollResultPulse .48s ease;}
#pollwrap .muted .poll-option-button.is-winner {color:#fff; background:#393622; border-color:#a9994a; box-shadow:0 0 16px rgba(210,184,71,.2);}
#pollwrap .muted .poll-option-button.is-winner .poll-option-fill {background:linear-gradient(90deg,#957d22,#dfc753); box-shadow:0 0 12px rgba(223,199,83,.35);}
#pollwrap .poll-footer {display:flex; margin-top:15px; padding-top:12px; justify-content:space-between; gap:12px; color:#929292; border-top:1px solid #333;}
#pollwrap .poll-list-tabs {display:flex; gap:6px; margin:0 0 14px;}
#pollwrap .poll-list-tabs button {flex:1; min-height:40px; padding:8px; border:1px solid #41464d; border-radius:6px; color:#ddd; background:#202326; cursor:pointer;}
#pollwrap .poll-list-tabs button.is-active {color:#fff; background:var(--main); border-color:var(--main);}
#pollwrap .poll-list-body {display:flex; flex-direction:column; gap:9px;}
#pollwrap .poll-list-item {display:flex; width:100%; min-height:64px; padding:12px; flex-direction:column; gap:6px; border:1px solid #3c4046; border-radius:6px; text-align:left; color:#ddd; background:#202326; cursor:pointer;}
#pollwrap .poll-list-item:hover, #pollwrap .poll-list-item:focus-visible {background:#292d31; border-color:#8f96a3;}
#pollwrap .poll-list-item-title {font-weight:700; overflow-wrap:anywhere;}
#pollwrap .poll-list-item-meta {color:#aaa; font-size:13px !important; overflow-wrap:anywhere;}
#pollwrap .poll-list-empty, #pollwrap .poll-list-status {margin:0; padding:12px 0; color:#bbb;}
#pollwrap .poll-list-status.is-error {color:#ffabb6;}
#pollwrap .poll-list-retry, #pollwrap .poll-list-create {display:inline-flex; min-height:44px; height:auto; padding:8px 12px; align-items:center; justify-content:center; border:1px solid #41464d; border-radius:6px; color:#ddd; background:#202326; line-height:20px; cursor:pointer;}
#pollwrap .poll-list-create {width:100%; margin-top:16px;}
#showpollsbtn .poll-active-count {margin-left:6px; font-variant-numeric:tabular-nums;}
#showpollsbtn .poll-active-count[hidden] {display:none;}
@keyframes pollResultPulse {0% {box-shadow:0 0 0 rgba(70,183,171,0);} 50% {box-shadow:0 0 0 3px rgba(70,183,171,.3);} 100% {box-shadow:0 0 0 rgba(70,183,171,0);}}
@keyframes pollHiddenFlow {from {background-position:0 0;} to {background-position:32px 0;}}
@media (max-width:600px) {#pollwrap .poll-menu, #pollwrap .poll-list, #pollwrap .poll-card-stack {top:calc(62px + env(safe-area-inset-top)) !important; right:12px !important; left:12px !important; width:auto !important; max-width:none !important; transform:none !important;} #pollwrap .poll-card-stack {max-height:calc(100vh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height:calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));} #pollwrap .popup_cont {max-height:calc(100vh - 170px - env(safe-area-inset-top)); max-height:calc(100dvh - 170px - env(safe-area-inset-top)); padding:18px 16px;} #pollwrap .poll-question {font-size:20px !important;} #pollwrap .popup_title {padding:4px 10px; gap:2px 6px;} #pollwrap .popup_title button, #pollwrap .poll-stack-toolbar button {min-height:44px; min-width:44px; padding:0 8px;} #pollwrap .popup_title .poll-countdown {order:3; flex-basis:100%; padding:0 0 8px;} #pollwrap .poll-list-tabs button, #pollwrap .poll-list-retry, #pollwrap .poll-list-create {min-height:44px;} #pollwrap .poll-option-button {min-height:60px;}}
@media (prefers-reduced-motion:reduce) {#pollwrap .poll-option-button, #pollwrap .poll-option-fill {transition:none;} #pollwrap .poll-option-button.is-updated, #pollwrap .poll-results-hidden .poll-option-fill {animation:none;}}


.username {cursor:pointer;}
#toggleOverlayScreen {position:fixed; right:0; top:50%; display:flex; align-items:center; justify-content:center; width:42px; height:36px; margin:0; padding:0; transform:translateY(-50%); z-index:1000; background:var(--main) !important;}
#toggleOverlayScreen .solar-icon {display:block; top:0; width:18px; height:18px; margin:0; line-height:1;}
#toggleOverlayScreen .solar-icon::before {display:block; width:100%; height:100%;}
body.overlay #toggleOverlayScreen {opacity:.45;}
body.overlay #toggleOverlayScreen:hover, body.overlay #toggleOverlayScreen:focus-visible {opacity:1;}
#toggleOverlayScreen:focus-visible {outline:2px solid var(--ui-text, #fff) !important; outline-offset:2px;}
#overlayScreenStatus {position:fixed; right:50px; top:50%; transform:translateY(-50%); z-index:1001; max-width:calc(100vw - 70px); padding:8px 12px; border:1px solid var(--ui-border); border-radius:var(--ui-radius-sm); background:var(--ui-surface); color:var(--ui-text); font-size:13px !important; line-height:1.5;}
#overlayScreenStatus[hidden] {display:none;}
body.overlay {overflow:hidden;}
body.overlay #emotes-btn, body.overlay #btn_chat_opt, body.overlay .navbar, body.overlay #chatheader, body.overlay #userlistwrap, body.overlay #userlist {display:none !important;}
body.overlay #formline {position:relative; inset:auto; box-sizing:border-box; flex:0 0 auto; width:100%; margin:10px 0 0; padding:0 !important; background:transparent !important;}
body.overlay #formline #chatline {box-sizing:border-box; width:100% !important; margin:0 !important; height:44px !important; padding:8px 12px !important; border:1px solid rgba(255,255,255,.28) !important; border-radius:var(--ui-radius-sm); background:rgba(18,21,28,.9) !important; color:#fff !important; font-size:16px !important;}
body.overlay #formline #chatline::placeholder {color:#c7ccd6; opacity:1; font-style:normal;}
body.overlay #formline #chatline:focus {border-color:var(--main) !important; background:rgba(18,21,28,.97) !important;}
body.overlay #currenttitlewrap {display:none;}
body.overlay #mainpage {padding-top:0 !important;}
body.overlay #leftcontent {width:100dvw !important;}
body.overlay #rightcontent {background:transparent !important; opacity:1; visibility:visible; pointer-events:auto; transform:none !important; transition:opacity .2s ease,visibility .2s ease !important;}
body.overlay.overlay-chat-hidden #rightcontent {opacity:0; visibility:hidden; pointer-events:none;}
#overlayChatToggle {display:none; position:fixed; right:8px; top:calc(50% + 30px); z-index:1001; min-height:40px; padding:8px 10px; border:1px solid var(--ui-border); border-radius:var(--ui-radius-sm); background:var(--ui-surface); color:var(--ui-text); font-size:13px !important; line-height:20px;}
body.overlay.overlay-chat-hidden #overlayChatToggle {display:block;}
#overlayChatToggle:focus-visible {outline:2px solid var(--main) !important; outline-offset:2px;}
@media (prefers-reduced-motion:reduce) {body.overlay #rightcontent {transition:none !important;}}
body.overlay .server-msg-announcement {display:none !important;}
body.overlay #messagebuffer > div { text-shadow: 0px 0px 1px rgba(0, 0, 0, 1), 0px 0px 2px rgba(0, 0, 0, .5), 0px 0px 1px rgba(0, 0, 0, .5), 0px 0px 2px rgba(0, 0, 0, 1);  }
body.overlay .username {text-shadow:none;}
body.overlay #messagebuffer {height:auto !important; min-height:0; flex:1 1 auto; line-height:1.5; padding:10px 12px !important; border-radius:var(--ui-radius-sm); background:rgba(12,15,21,var(--overlay-chat-bg-opacity,.62)) !important; opacity:1;}
#overlayChatOpacityControl {position:fixed; right:calc(52px + env(safe-area-inset-right,0px)); top:50%; transform:translateY(-50%); z-index:10002; width:240px; max-width:calc(100vw - 72px - env(safe-area-inset-right,0px) - env(safe-area-inset-left,0px)); pointer-events:none; color:var(--ui-text); font-size:13px !important; line-height:20px;}
#overlayChatOpacityControl[hidden] {display:none;}
#overlayChatOpacityPanel {box-sizing:border-box; width:100%; padding:10px 12px 4px; border:1px solid var(--ui-border); border-radius:var(--ui-radius-sm); background:var(--ui-surface); box-shadow:0 4px 16px rgba(0,0,0,.3); pointer-events:auto;}
#overlayChatOpacityPanel[hidden] {display:none;}
#overlayChatOpacityPanel .overlay-opacity-header {display:flex; align-items:center; justify-content:space-between; gap:8px;}
#overlayChatOpacityControl label {display:block; width:auto; margin:0; padding:0; color:inherit; font-size:13px !important; font-weight:normal; line-height:20px; white-space:nowrap;}
#overlayChatOpacity {display:block; box-sizing:border-box; width:100%; min-width:0; height:44px; margin:0; padding:0; accent-color:var(--main); touch-action:pan-y; cursor:pointer;}
#overlayChatOpacity::-webkit-slider-thumb {min-width:24px; min-height:24px;}
#overlayChatOpacity::-moz-range-thumb {width:22px; height:22px;}
#overlayChatOpacityValue {display:block; min-width:34px; padding:0; text-align:right; color:inherit; font-size:13px !important; line-height:20px; font-variant-numeric:tabular-nums;}
#overlayChatOpacity:focus-visible {outline:2px solid var(--ui-focus); outline-offset:2px;}
body.overlay #messagebuffer>div, body.overlay .username {font-weight:700; font-size:calc(17px + var(--dg-chat-font-increase,0px)) !important;}
body.overlay .server-whisper {display:none;}
body.overlay .channel-emote.megacon {max-width:100px !important; max-height:100px !important;}
body.overlay .channel-emote {width:70px !important; height:70px !important; max-width:70px !important; max-height:70px !important; object-fit:contain;}
.pm-panel > .panel-body div a {color:#000;}




/* 관리자 */
#channeloptions .modal-header h4 {color:var(--sub); font-weight:bold;}
.modal-body input.form-control[type="text"]:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:var(--textbar) !important;}


/* 표 */
.table-striped th:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table-striped td:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-size:14px !important;}
.table-striped>tbody>tr:nth-child(odd) {background:#222;}
.profile-box, .user-dropdown, .emotelist-table td {background:#222;}
.table>tbody>tr>td:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table>tbody>tr>th:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table>tfoot>tr>td:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table>tfoot>tr>th:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table>thead>tr>td:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .table>thead>tr>th:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-weight:normal !important; border-top:1px solid #444; font-size:14px !important;}
.table>thead>tr>th {border-bottom:0;}
.modal-body textarea.form-control:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .modal-body .form-control:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:var(--textbar) !important;}

/* 팝업 */
#wrap.dg-needpw .navbar {display:block !important; height:50px; min-height:50px; z-index:10003; visibility:visible !important; pointer-events:auto !important;}
#wrap.dg-needpw .navbar-header {display:block !important;}
#wrap.dg-needpw #nav-collapsible {display:none !important; max-height:calc(100dvh - 50px - env(safe-area-inset-top, 0px)); overflow-y:auto;}
#wrap.dg-needpw #nav-collapsible.in, #wrap.dg-needpw #nav-collapsible.collapsing {display:block !important;}
@media (min-width:768px) {
#wrap.dg-needpw #nav-collapsible {display:block !important; overflow-y:visible;}
}
@media (min-width:768px) and (orientation:portrait), (min-width:981px) {
#wrap.dg-needpw .navbar {display:flex !important;}
#wrap.dg-needpw #nav-collapsible {display:contents !important;}
}
#wrap.dg-needpw-chat #rightcontent {z-index:10002 !important;}
#wrap.dg-needpw-chat #chatwrap {z-index:10002 !important;}
#chatwrap > #needpw {display:flex; align-items:center; justify-content:center; top:calc(50px + env(safe-area-inset-top, 0px)) !important; height:calc(100dvh - 50px - env(safe-area-inset-top, 0px)) !important; transform:none !important; padding:16px !important; box-sizing:border-box; overflow-y:auto; background:var(--body);}
#chatwrap > #needpw > div {display:flex; flex-direction:column; gap:12px; width:100%; max-width:320px;}
#chatwrap > #needpw label {margin:0; color:var(--ui-text); font-size:18px !important; font-weight:600; line-height:1.5;}
#chatwrap > #needpw input {height:44px; padding:10px 12px; border:1px solid var(--ui-border); border-radius:var(--ui-radius-sm); background:var(--textbar) !important; font-size:15px !important;}
#chatwrap > #needpw button {height:44px; margin:0; padding:10px 12px; border:0; border-radius:var(--ui-radius-sm); background:var(--main); color:#fff; font-size:15px !important; line-height:24px;}
#chatwrap > #needpw .text-error {color:var(--del); font-size:13px !important; line-height:1.5;}
#chatwrap > #needpw #channel-rest-notice-message {margin:0 0 12px; color:var(--ui-text); font-size:20px !important; font-weight:600; line-height:1.5;}
#open_popup {line-height:1; display:none; overflow:hidden; position:fixed; width:100%; top:50%; max-width:360px; font-size:0 !important; border-radius:10px; z-index:99; background:transparent; left: 50%; transform: translate(-50%, -50%); box-shadow:0px 5px 15px rgba(0,0,0,0.5);}
#open_popup .btn_close {position:absolute; top:15px; right:15px; width:48px; height:48px; text-indent:-99999px; background:url("https://s12.gifyu.com/images/SDMoL.png") center no-repeat; background-size:24px; border:0;}
#open_popup a:active {transition:.3s; opacity:.8;}
#open_popup img {width:100%;}
#open_popup.on {display:block;}
#open_popup .btn_today_close {width:100%; height:50px; background:#000; color:#fff;  font-weight:bold; font-size:14px !important; border:0;}
#open_popup .btn_today_close:hover {transition:.3s; opacity:.8;}


@media (max-width:720px) {
#open_popup {max-width:280px; height:auto;z-index:9999;}
#open_popup .btn_close {background-size:18px; top:5px; right:5px;}
#formline {padding:15px 15px 25px 15px;}
#guestlogin  {padding-bottom:0;}
}


/* 모바일 */
@media (min-width:320px) and (max-width:1024px) {
html, body {height:auto; }
body {font-size:14px;}
#chatline {margin:0 !important; width:100%; height:44px !important; border:0; font-size:14px !important; padding-right:75px;}
#chatline:focus {background:#43464c !important;}
#formline.focus-up, #leftcontrols.focus-up {bottom:180px; position:absolute; width:100%;}
.navbar {background:#000 !important;}
.channel-emote {max-width:60px !important; max-height:60px  !important;}
.channel-emote.megacon {max-width:100px !important; max-height:100px  !important; width:100px !important; height:100px !important;}
.navbar-inverse .navbar-collapse {backdrop-filter:none !important;  border-top:0 !important; background:rgba(0,0,0,0.8) !important;}
#messagebuffer {background-size:200px !important; contain: layout paint; overscroll-behavior: contain; content-visibility: auto; contain-intrinsic-size: 100vh; -webkit-overflow-scrolling: touch;}
#messagebuffer>div {font-size:calc(13px + var(--dg-chat-font-increase,0px)) !important;}
.username {font-size:calc(14.5px + var(--dg-chat-font-increase,0px)) !important;}


/*
#motdwrap.well {background:transparent !important; padding:0 !important; padding-top:10px !important; ont-size:0; text-align:center;}
#motdwrap.well .motd-link {display:inline-block; font-size:0; width:100% ; max-width:360px; margin:0px 0px 10px;}
#motdwrap.well .motd-link img {width:100%;}
#motdwrap.well .motd-link:nth-child(even) {margin-right:0;}
*/
#playlistrow {padding-right:0 !important; margin-right:0 !important;}
#controlsrow, #motdrow.row, #rightpane-inner {margin-right:0 !important;}
#rightpane {width:100% !important;}
#emotespanel.ep__fixed {width:100%; display:block; background:#000 !important; top:auto; bottom:85px; left:0 !important; right:0 !important; margin:auto !important; text-align:center;}
#emotespanel img {width:calc(16.6% - 12px); margin:0px 12px 16px 0px;}
#emotespanel img:nth-child(5n) {margin-right:9px;}
#emotespanel img:nth-child(6n) {margin-right:0;}


.pm-panel  {width:260px !important;}
.panel-heading {padding:4px 15px; }
.user-dropdown {right:0 !important; top:auto !important; bottom:0; left:0 !important; width:100% !important; padding-bottom:40px;}
.user-dropdown .btn {width:240px; height:30px;}
.navbar.scroll {background:rgba(0,0,0,1) !important;}
}

/* pc 세로모드 */
@media (min-width:769px) and (max-width:1440px) and (orientation: portrait) {
#content-wrap {display:block  !important;}
#leftcontent {width:calc(100vw) !important; }
#video-container {height:43vh  !important;}
#video-container, #rightcontent {display:block  !important;}
#leftcontent + #rightcontent {width:100% !important; height:calc(57vh - 50px) !important; position:relative;}
.linewrap#messagebuffer {height:calc(100vh - 52vh - 90px) !important;}
#channel-content {display:none  !important;}
#messagebuffer * {font-size:calc(17px + var(--dg-chat-font-increase,0px)) !important;}
.slider_container {display:none;}
}

@media (max-width:2000px) {
body.overlay #rightcontent  {width:280px;}
body.overlay #messagebuffer>div, body.overlay .username {font-size:calc(16px + var(--dg-chat-font-increase,0px)) !important;}
body.overlay .channel-emote.megacon {max-width:90px !important; max-height:90px !important;}
body.overlay .channel-emote {width:60px !important; height:60px !important; max-width:60px !important; max-height:60px !important; object-fit:contain;}
}



/* 모바일 가로모드 */
@media (orientation: landscape) and (max-width:980px) {
:where(html:not(.mobile-chat-portrait)) #wrap {padding-left: calc(env(safe-area-inset-left) * 0); padding-right: calc(env(safe-area-inset-right) * 0); padding-top: calc(env(safe-area-inset-top) * 0); padding-bottom: calc(env(safe-area-inset-bottom) * 0);}
:where(html:not(.mobile-chat-portrait)) #popup_chatmenu {bottom:30px !important;}
:where(html:not(.mobile-chat-portrait)) .popup_chatmenu .list li a {padding:6px 15px !important; font-size:12px !important;}
:where(html:not(.mobile-chat-portrait)) .popup_chatmenu .list .li_chat_schedule {display:none;}
:where(html:not(.mobile-chat-portrait)) body {line-height:1.4;}
:where(html:not(.mobile-chat-portrait)) #formline {padding:0px 10px 15px 10px; z-index:100;}
:where(html:not(.mobile-chat-portrait)) .userlist_item {padding-left:10px;}
:where(html:not(.mobile-chat-portrait)) .username {font-size:calc(13px + var(--dg-chat-font-increase,0px)) !important;}
:where(html:not(.mobile-chat-portrait)) #messagebuffer>div {font-size:calc(12px + var(--dg-chat-font-increase,0px)) !important;}
:where(html:not(.mobile-chat-portrait)) #btn_chat_opt, :where(html:not(.mobile-chat-portrait)) #emotes-btn {bottom:15px !important;}
:where(html:not(.mobile-chat-portrait)) #chatline {padding-right:40px;}
:where(html:not(.mobile-chat-portrait)) #emotes-btn {display:none !important;}
:where(html:not(.mobile-chat-portrait)) #btn_chat_opt {right:20px; z-index:100 !important;}
:where(html:not(.mobile-chat-portrait)) #content-wrap #leftcontent {width:100% !important;}
:root:not(.mobile-chat-portrait) {--leftcontentvw:72dvw;}
:where(html:not(.mobile-chat-portrait)) #video-container {top:0; width:var(--leftcontentvw) !important; height:100dvh !important; display:inline-block !important; vertical-align:middle;}
:where(html:not(.mobile-chat-portrait)) #rightcontent {width:calc(100vw - var(--leftcontentvw));}
:where(html:not(.mobile-chat-portrait)) #mainpage {padding-top:0 !important;}
:where(html:not(.mobile-chat-portrait)) div.embed-responsive * {max-height:none;}
:where(html:not(.mobile-chat-portrait)) #rightcontent {position:fixed !important; top:0 !important; right:0 !important; margin-top:0 !important; height:100dvh !important;}
:where(html:not(.mobile-chat-portrait)) body #rightcontent {z-index:999;}
:where(html:not(.mobile-chat-portrait)) #channel-content {display:none;}
:where(html:not(.mobile-chat-portrait)) #messagebuffer {padding:10px 10px !important;}
:where(html:not(.mobile-chat-portrait)) #emotespanel.ep__fixed {height:160px; margin:0 !important; top:0 !important; left:auto !important; right:0 !important;}
:where(html:not(.mobile-chat-portrait)) #emotespanel img {width:calc(8.3% - 6px) !important; margin:0px 8px 8px 0px !important;}
:where(html:not(.mobile-chat-portrait)) #emotespanel img:nth-child(12n) {margin-right:0px !important;}
:where(html:not(.mobile-chat-portrait)) .tab_menu {position:static;}
:where(html:not(.mobile-chat-portrait)) .tab_cont_wrap {margin-bottom:0; height:120px;}
:where(html:not(.mobile-chat-portrait)) .channel-emote.megacon {width:90px !important; height:90px !important;}
:where(html:not(.mobile-chat-portrait)) body.overlay {overflow-y:hidden;}
:where(html:not(.mobile-chat-portrait)) body.overlay #leftcontrols {display:none;}
:where(html:not(.mobile-chat-portrait)) #channel-content {display:block !important; width:calc(var(--leftcontentvw) - 15px);}
:where(html:not(.mobile-chat-portrait)) #toggleOverlayScreen {width:40px; height:40px;}
:where(html:not(.mobile-chat-portrait)) body.overlay .userwrap {margin-top:7px;}
:where(html:not(.mobile-chat-portrait)) body.overlay #messagebuffer>div, :where(html:not(.mobile-chat-portrait)) body.overlay .username {font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important;}
:where(html:not(.mobile-chat-portrait)) body.overlay .channel-emote.megacon {max-width:75px !important; max-height:75px !important;}
:where(html:not(.mobile-chat-portrait)) body.overlay .channel-emote {width:55px !important; height:55px !important; max-width:55px !important; max-height:55px !important; object-fit:contain;}
:where(html:not(.mobile-chat-portrait)) body.overlay #formline {margin-top:8px;}
:where(html:not(.mobile-chat-portrait)) .popup_chatmenu.mypage {height:85dvh !important; overflow-y:auto;}
:where(html:not(.mobile-chat-portrait)) .popup_chatmenu.mypage canvas {width:500px !important; margin:auto;}
:where(html:not(.mobile-chat-portrait)) .popup_chatmenu.mypage .mypage_area .button_area {display:none;}
:where(html:not(.mobile-chat-portrait)) .navbar {height:0; min-height:0; padding:0;}
:where(html:not(.mobile-chat-portrait)) .navbar-header, :where(html:not(.mobile-chat-portrait)) #nav-collapsible {display:none !important;}
:where(html:not(.mobile-chat-portrait)) #odds-box {position:fixed; top:11px; left:20px;}
:where(html:not(.mobile-chat-portrait)) #odds-box .radiant, :where(html:not(.mobile-chat-portrait)) #odds-box .dire {color:#bbb;}
}

/* pc 세로모드2 */
@media (orientation: portrait) and (max-width:1280px) and (min-height:1200px) and (max-height:1400px) {
.embed-responsive.embed-responsive-16by9 {padding-bottom:40%;}
}





/* 와이드 */
@media (min-width:2560px)  {
#emotespanel img {width:calc(16.6% - 9px); margin:0px 9px 9px 0px;}
#emotespanel img:nth-child(5n) {margin-right:9px;}
#emotespanel img:nth-child(6n) {margin-right:0;}
}


@media (min-width:1280px) and (max-width:1660px) {
#emotespanel img {width:calc(25% - 6px); margin-right:8px;}
#emotespanel img:nth-child(5n) {margin-right:8px;}        
#emotespanel img:nth-child(4n) {margin-right:0px;}
}

#guestlogin > input, #guestlogin > .input-group-addon {border-radius:0 !important;}



.btn-success:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)), .btn-info:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {background:transparent !important;}
*:not(:where(#channeloptions, #channeloptions *, #popup_bet, #popup_bet *)) {font-family:var(--font-primary) !important;}
#userpl_save {border-radius:8px;}
#cs-chanranks .btn-group .dropdown-toggle {display:inline-flex; align-items:center; justify-content:center; gap:6px;}
#cs-chanranks .btn-group .dropdown-toggle .caret {position:static; margin:0; flex-shrink:0;}

#cs-chanranks .btn-group .dropdown-menu > li > a {display:flex; align-items:center; gap:6px;}
#cs-chanranks .btn-group .dropdown-menu .solar-icon {display:block; width:12px; height:12px; font-size:14px; position:static; margin:0; flex-shrink:0;}

/* 재생목록 */
#queue .btn-group .btn span {display:inline-block; vertical-align:top;}
.videolist {overflow:hidden; overflow-y:auto; border-radius:8px; max-height:280px;}
#queue_next, #queue_end, #ce_queue_next, #ce_queue_end, #userpl_save {height:48px; padding:13px 15px; font-size:14px !important;}
#queue_next, #ce_queue_next {border-radius:8px 0px 0px 8px;}
#queue_end, #ce_queue_end {border-radius:0px 8px 8px 0px;}
#plmeta {border:1px solid #333; padding:10px 15px; margin-top:10px; margin-bottom:20px; border-radius:8px; font-size:12px !important; color:#ccc;}



/* 와이드 */
@media (min-width:2560px)  {
#emotespanel img {width:calc(16.6% - 9px); margin:0px 9px 9px 0px;}
#emotespanel img:nth-child(5n) {margin-right:9px;}
#emotespanel img:nth-child(6n) {margin-right:0;}
}




.schedule-table {
  width: 100%;
  margin-bottom:0px;
  border-collapse: collapse;
  background-color: #222; /* Dark background color */
  color: #f2f2f2; /* Light text color for contrast */
  line-height: 1.4;
}

.schedule-table tr td:first-child {text-align:center;}

.schedule-table th, .schedule-table td {
  padding: 12px 5px;
  /*border-bottom: 1px solid #e3e3e3; */
  vertical-align: middle;
  color: #333;
  font-size:14px !important;
}

.schedule-table th {
  background-color:var(--main); /* Darker header background */
  font-weight: bold;
  text-align: center;
  vertical-align:middle;
  height:48px;
  color:#fff;
  border-bottom:0;
}

.schedule-table td {
  background:#fff;
  text-align:center;
  color:#444;
  position:relative;
}

.schedule-table tr td:first-child {font-size:12px !important;}
.schedule-table .schedule-date, .schedule-table .schedule-time {display:block; white-space:nowrap;}
.schedule-table td .team {width:50%; float:left; margin:0;}
.schedule-table td .team .name {font-weight:bold; color:#000; margin-top:1px;}
.schedule-table td .team .team-logo {display:inline-block; text-align:center; width:25px; height:20px;}
.schedule-table td .team .team-logo img {height:20px; max-width:100%;}
.schedule-table td .team1 {text-align:right; padding-right:25px;}
.schedule-table td .team2 {text-align:left; padding-left:25px;}
.schedule-table td .team1 .team-logo {margin-left:5px;}
.schedule-table td .team2 .team-logo {margin-right:5px;}

.schedule-table td .versus {position:absolute; left:50%; margin-left:-25px; width:50px; text-align:center;}
.schedule-table td .team, .schedule-table td .versus {display:inline-block; vertical-align:middle;}

.schedule-table + p {margin-bottom:0;}




/* 채팅팝업 */
#formline {position:relative;}
#btn_chat_opt { font-size:16px !important;right:30px; z-index:99; background:url("https://cdn.dotagall.com/ui/icon_menu_v2.png?ver=1.2") center no-repeat; }
#btn_chat_opt, #emotes-btn {display:block; position:absolute; bottom:20px;  width:32px; height:48px; padding:0; background-size:16px !important; cursor:pointer; border:0;}
#btn_chat_opt:active, #emotes-btn:active {opacity:.4; transition:.3s;}
#btn_chat_opt:focus, #emotes-btn:focus {outline:none !important;}
#emotes-btn {right:60px; background:url("https://cdn.dotagall.com/ui/icon_icon_v2.png?ver=1.2") center no-repeat !important; background-size: 16px !important;}
.popup_chatmenu {display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,0.2); background:rgba(25, 25, 37, 0.88); width:310px; z-index:9999; border-radius:10px; box-shadow:0px 5px 12px rgba(0,0,0,0.7); color:#eee; backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(10px);}
.popup_chatmenu ul, .popup_chatmenu ol {margin:0; padding:0;}
.popup_chatmenu .popup_title {width:100%; position:relative;  border-bottom:1px solid #373737; text-align:center;}
.popup_chatmenu .popup_title h6 {font-weight:bold; margin:0; font-size:16px !important;color:#fff; line-height:50px;}
.popup_chatmenu .btn_chatmenu_close, .popup_iframe .btn_chatmenu_close {position:absolute; top:0; right:0; line-height:1; width:40px; height:55px; background:url("https://s12.gifyu.com/images/SDMoL.png") center no-repeat; background-size:12px; border:0; font-size:0;  text-indent:-99999px;}
.popup_iframe .btn_chatmenu_close {right:7px;}
.popup_chatmenu .btn_chatmenu_close {height:50px;}
#popup_chatmenu {transform:none; top:auto; left:auto; bottom:85px; right:15px;}
.popup_chatmenu .list {position:relative; width:100%; margin-bottom:0; line-height:16px; padding:10px; text-align:left; display:flex; flex-wrap:wrap; gap:3px 4px;}
.popup_chatmenu .list li {display:block; width:calc(50% - 2px);}
.popup_chatmenu .list li a {display:block; width:100%; padding:9px 14px; border-radius:6px; font-size:14px !important;}
.popup_chatmenu .list li a:hover {background:rgba(110,110,110,0.4); color:#fff;}
.popup_chatmenu .list li a {text-decoration:none !important;}
.popup_chatmenu .list li .icon {width:16px; height:16px; margin-right:8px;}
.popup_chatmenu .list li .icon img {width:100%;}
.popup_chatmenu .list li .icon, .popup_chatmenu .list li span {display:inline-block; vertical-align:middle;}
.popup_chatmenu .list_rule {position:relative; width:100%; text-align:left; padding:20px 0px 10px 30px;}
.popup_chatmenu .list_rule li {font-size:14px !important; line-height:1.4; margin-bottom:7px; word-break:keep-all;}
.popup_chatmenu .list_rule li:last-child {margin-bottom:0;}
.popup_chatmenu  .group-wrap {position:relative; padding:25px 20px;}
.popup_chatmenu  .group-wrap .group {position:relative; font-size:14px; line-height:1; text-align:left; margin-bottom:20px; padding:0 0px 20px; border-bottom:1px solid #333; }
.popup_chatmenu .group-wrap .group label {display:block; color:#fff; font-weight:bold; margin:0; margin-bottom:10px; font-size:14px !important;}
.popup_chatmenu .group-wrap .group:last-child {padding-bottom:0; margin-bottom:0; border-bottom:0;}
.popup_chatmenu .group-wrap select {border:1px solid #4d536c; background:var(--textbar); width:100%; height:40px; padding-left:10px; border-radius:5px; font-size:14px !important;}
.popup_chatmenu .group-wrap select option {font-size:14px !important;}
#leftcontent.toggle-class {width:100%;}
#rightcontent.toggle-class {display:none;}
#popup_chatrule {width:280px;}
#messagebuffer.dg-chat-font-enlarged .username, #messagebuffer.dg-chat-font-enlarged .username .usertext {max-width:100%; overflow-wrap:anywhere;}
#popup_chatfont.popup_chatmenu {--ui-popup-width:340px; width:340px; z-index:10005;}
#popup_chatfont > .popup_title > .btn_chatmenu_close {display:flex; align-items:center; justify-content:center;}
#popup_chatfont .btn_chatmenu_close .solar-icon {display:block; flex:0 0 18px; width:18px; height:18px;}
#popup_chatfont .chat-font-controls {padding:var(--ui-space-4);}
#popup_chatfont .chat-font-controls label {display:block; margin:0 0 var(--ui-space-2); color:var(--ui-text); font-size:14px !important; font-weight:600; line-height:1.5;}
#popup_chatfont .chat-font-controls select {box-sizing:border-box; display:block; width:100%; min-width:0; height:44px; margin:0; padding:8px 10px; border:1px solid var(--ui-border); border-radius:var(--ui-radius-sm); background:var(--textbar); color:var(--ui-text); font-size:16px !important; line-height:1.5;}
#popup_chatcolor {width:320px;}
#color-options {padding:15px; font-size:0 !important}
#color-options .color-button {transition:.2s; border:0; width:calc(25% - 8px); height:50px; margin:5px 0; margin-right:10px;} 
#color-options .color-button.random {background:url("https://s11.gifyu.com/images/S1uAv.png") center no-repeat #35383d; background-size:14px;}
#color-options .color-button:nth-child(4n) {margin-right:0;}
#color-options .color-button:hover {opacity:.7;}
.popup_betting.popup_pointdrawjoin:not(:where(#popup_bet, #popup_bet *)) {right:0; left:auto; z-index:99999; padding:25px; text-align:center; width:calc(100vw - var(--leftcontentvw)); border:1px solid var(--main); font-size:12px !important;}
.popup_betting.popup_pointdrawjoin .title:not(:where(#popup_bet, #popup_bet *)) {font-size:18px !important; font-weight:bold;}
.popup_betting.popup_pointdrawjoin .txt:not(:where(#popup_bet, #popup_bet *)) {color:#ccc; font-size:14px !important; margin-bottom:20px;}
.popup_betting.popup_pointdrawjoin .btn_area:not(:where(#popup_bet, #popup_bet *)) {font-size:0 !important;}
.popup_betting.popup_pointdrawjoin .btn_area .btn_submit:not(:where(#popup_bet, #popup_bet *)) {width:calc(50% - 5px); display:inline-block; font-size:12px !important;}
.popup_betting.popup_pointdrawjoin .btn_area .btn_submit.btn_main {margin-right:10px;}
.tab_menu_wrapper {position: relative; display: flex; align-items: center;} 
.tab_menu {position: relative; width: 100%; height: 40px; line-height: 40px; padding: 0; margin: 0; font-size: 0 !important; background: #000; overflow-x: auto; white-space: nowrap; display: flex;} 
.tab_menu li {display: inline-block; height: 100%; font-size: 13px !important; vertical-align: top; text-align: center; border-right: 1px solid #333; background: rgba(0, 0, 0, 0.5); font-weight: bold; color: #ccc; white-space: nowrap; width: 25%; flex: 0 0 auto; transition: transform 0.3s ease; } /* 추가된 flex 설정 */
.tab_nav_btn {background: #007f59; color: #fff; border: none; width:44px; height:40px; cursor: pointer; text-indent:-99999px; color:#999;} 
.tab_nav_btn.right {background:url("https://cdn.dotagall.com/ui/tab_arrow_right.png") center no-repeat #242424; background-size:7px;}
.tab_nav_btn.left {background:url("https://cdn.dotagall.com/ui/tab_arrow_left.png") center no-repeat #242424; background-size:7px;}

.tab_menu li:first-child {border-left:1px solid #333;}
.tab_menu li a {display: block; color: inherit;} 
.tab_menu li.active, .tab_menu li.active:hover {background: var(--main); font-weight: bold; color: #fff;} 
.tab_menu li:hover {background: #222;} 
.tab_menu li a:hover, .tab_menu li a:active, .tab_menu li a:focus {text-decoration: none;}


.emote_group {display:none; padding:10px 10px 5px; font-size:0 !important;transition: transform 0.3s ease-in-out;}
.emote_group.active {display:block;}
.emote_group:last-child {border-bottom:0; padding-bottom:0; margin-bottom:0;}
.emote_group .group_wrap {width:100%; border-bottom:1px solid #666; margin-bottom:20px; padding-bottom:10px;}
.emote_group .group_wrap:last-child {border-bottom:0; margin-bottom:0; padding-bottom:0;}
.emote_group .group_wrap h6 {font-size:14px !important; padding:0; margin:0; margin-bottom:15px;}
.emote_group.tab-active {display:block;}
.emote_group.group0 {display:block;}



.channel-emote[title="/어깨"] ~ img, .channel-emote[title="/당끼"] ~ img, .channel-emote[title="/말풍"] ~ img, .channel-emote[title="/신창섭1"] ~ img, .channel-emote[title="/과징금1"] ~ img, .channel-emote[title="/표독1"] ~ img, .channel-emote[title="/호우1"] ~ img, .channel-emote[title="/버거1"] ~ img, .channel-emote[title="/이겨1"] ~ img, .channel-emote[title="/신창섭3"] ~ img, .channel-emote[title="/뇌절1"] ~ img, .channel-emote[title="/광탈1"] ~ img, .channel-emote[title="/관짝1"] ~ img, .channel-emote[title="/퓨어1"] ~ img, .channel-emote[title="/화해1"] ~ img, .channel-emote[title="/봇치1"] ~ img, .channel-emote[title="/빤1"] ~ img, .channel-emote[title="/별루1"] ~ img, .channel-emote[title="/시카1"] ~ img, .channel-emote[title="/보고1"] ~ img
{margin-left:-5px; background:#fff;}


/* fhd 세로모니터 대응 */
@media (min-width: 1080px) and (min-height: 1920px) and (orientation: portrait) {
#emotespanel.ep__fixed {width:100%; text-align:center;}
#emotespanel img {width:calc(6.25% - 5px); margin:0 4px 8px !important;}
.tab_menu li {width:12.5%;}
.slider_container {display:none;}
}


/* 닉효과 */
#popup_chatcolor2, #popup_directIcon {background:rgba(0,0,0,0.99);}
.popup_chatmenu .color_album {width:100%; position:relative; overflow:hidden; padding:10px 10px;}
.popup_chatmenu .color_album li {display:inline-block; width:25%; padding:10px 4px; text-align:center;}
.popup_chatmenu .color_album .nickcolor_preview {font-weight:bold; font-size:18px !important; width:100%; display:block;}






/* 모바일 */
@media (min-width:320px) and (max-width:1025px) {
.username {font-size:calc(14.5px + var(--dg-chat-font-increase,0px)) !important;}
.emote_group {padding:25px 10px 10px;}
#btn_chat_opt {right:27px}
#emotes-btn{right:53px; background-position:4px center !important;}
#btn_chat_opt, #emotes-btn {height:44px; bottom:25px;}
.popup_chatmenu {bottom:51px; right:10px; transform:none; top:auto; left:auto;}
.popup_chatmenu .list li.li_chat_hide, .popup_chatmenu .list li.li_chat_expand {display:none;}
.popup_chatmenu {display:none;}
.popup_chatmenu .list_rule {padding:15px 0px 5px 20px; margin-left:20px;}
.popup_chatmenu .list_rule li {margin-left:-10px; font-size:12px !important; line-height:1.4; margin-bottom:5px; word-break:keep-all;}
.popup_chatmenu .group-wrap {padding:15px;}
.popup_chatmenu .group-wrap .group label {font-size:12px !important; margin-bottom:8px;}
.popup_chatmenu .group-wrap .group {padding-bottom:15px; margin-bottom:15px;}
.popup_chatmenu .group-wrap select {height:35px; font-size:12px !important;}
.popup_vote .wrap_vote {padding:60px 0px 15px;}
.popup_vote .wrap_vote h5 {line-height:65px; !ine-height:65px;}
.popup_vote .wrap_vote .vote_group .team strong {font-size:48px !important;}
.popup_vote .wrap_vote .vote_group .team p {font-size:13px !important;}
.popup_vote .wrap_vote .vote_group:before {font-size:32px !important;}
.popup_vote .wrap_vote .vote_group .team.team_1 {padding-right:20px;}
.popup_vote .wrap_vote .vote_group .team.team_2 {padding-left:20px;}
.popup_iframe .popup_cont {min-height:500px;}
.popup_iframe .popup_cont iframe {zoom : 0.5;}
.popup_chatmenu .popup_title h6 {height:38px; line-height:38px; font-size:14px !important;}
.popup_chatmenu .list li a {padding:8px 15px; font-size:13px !important;}
.popup_chatmenu .btn_chatmenu_close, .popup_iframe .btn_chatmenu_close {height:38px;}
#messagebuffer {padding-bottom:15px !important;}
#formline.focus-on {position:fixed; left:0; right:0;  top:70%;}
#formline.focus-on #chatline { width:calc(100% - 30px); margin-top:-30px;  margin:auto !important; background:rgba(200,200,200,0.95) !important; border-radius:10px !important; box-shadow:0px 5px 40px rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index:9999; color:#000 !important;}
#formline.focus-on #emotes-btn {right:25px;}
#formline.focus-on #btn_chat_opt {display:none;}
#rightcontent.focus-on {height:calc(100%);}
#rightcontent.focus-on #messagebuffer {flex-grow: unset;}
.tab_cont_wrap {height:200px;}
				
}


/* Keep touch scrolling, but disable browser pinch/double-tap zoom in the channel. */
html.channel-touch-layout {touch-action:pan-x pan-y;}
@media (max-width:1024px) {
#formline #chatline, #formline #guestname {font-size:16px !important;}
}
@media (max-width:768px) and (orientation:portrait) {
#channel-content {display:none !important;}
}
@media (max-width:768px) {
#rightcontent {position:absolute; margin-top:calc(100vw / 16 * 9); height:calc((var(--vh, 1vh) * 100) - calc(100vw / 16 * 9) - 50px - env(safe-area-inset-top, 0px)); z-index:9999;}
.navbar-fixed-top:has(.navbar-collapse.in, .navbar-collapse.collapsing) {z-index:100000;}
}
@media (max-width:768px) and (max-height:560px) {
#userlistwrap {display:none;}
}
@media (max-width:768px), (pointer:coarse) and (max-width:1440px) {
#messagebuffer {content-visibility:visible; overflow-anchor:none;}
}
/* 바닥을 따라갈 때만 앵커링을 켜 오래된 줄 삭제가 화면 이동(CLS)으로 기록되지 않게 한다. 위로 읽는 중에는 util.js가 직접 보정한다. */
@media (max-width:768px), (pointer:coarse) and (max-width:1440px) {
#messagebuffer.dg-chat-following {overflow-anchor:auto;}
}
@media (max-width:1440px) {
html.mobile-chat-portrait #channel-content, html.mobile-chat-input-focused #channel-content {display:none !important;}
html.mobile-chat-input-focused:not(.chat-popout), html.mobile-chat-input-focused:not(.chat-popout) body {width:100%; height:100%; overflow:hidden; overscroll-behavior:none; overflow-anchor:none;}
html.mobile-chat-input-focused:not(.chat-popout) #rightcontent, html.mobile-chat-input-focused:not(.chat-popout) #leftcontent + #rightcontent {display:flex !important; position:fixed !important; inset:auto 0 auto auto !important; top:calc(var(--visual-viewport-top, 0px) + var(--mobile-chat-content-top, 0px)) !important; box-sizing:border-box; height:calc(var(--mobile-chat-viewport-height, 100dvh) - var(--mobile-chat-content-top, 0px)) !important; max-height:calc(var(--mobile-chat-viewport-height, 100dvh) - var(--mobile-chat-content-top, 0px)) !important; min-width:0 !important; min-height:0 !important; margin:0 !important; padding:0 !important; z-index:10001;}
html.mobile-chat-portrait.mobile-chat-input-focused #rightcontent, html.mobile-chat-portrait.mobile-chat-input-focused #leftcontent + #rightcontent {width:100% !important;}
html.mobile-chat-keyboard-open:not(.chat-popout) #rightcontent, html.mobile-chat-keyboard-open:not(.chat-popout) #leftcontent + #rightcontent {width:100% !important; max-width:none !important; padding-top:env(safe-area-inset-top, 0px) !important; padding-left:env(safe-area-inset-left, 0px) !important; padding-right:env(safe-area-inset-right, 0px) !important;}
html.mobile-chat-keyboard-open:not(.chat-popout) #video-container, html.mobile-chat-keyboard-open:not(.chat-popout) .navbar {visibility:hidden !important; pointer-events:none !important;}
html.mobile-chat-portrait.mobile-chat-input-focused #video-container {position:fixed !important; top:calc(var(--visual-viewport-top, 0px) + 50px + env(safe-area-inset-top, 0px)) !important; width:100% !important; height:max(0px, calc(var(--mobile-chat-content-top) - 50px - env(safe-area-inset-top, 0px))) !important;}
html.mobile-chat-input-focused:not(.chat-popout) #messagebuffer, html.mobile-chat-input-focused:not(.chat-popout) #rightcontent.focus-on #messagebuffer {height:auto !important; min-height:0 !important; flex:1 1 auto !important; contain:none; content-visibility:visible; contain-intrinsic-size:none;}
html.mobile-chat-input-focused:not(.chat-popout) #chatheader, html.mobile-chat-input-focused:not(.chat-popout) #userlist, html.mobile-chat-input-focused:not(.chat-popout) #userlistwrap {flex:0 0 auto;}
html.mobile-chat-input-focused:not(.chat-popout) #formline, html.mobile-chat-input-focused:not(.chat-popout) #formline.focus-up, html.mobile-chat-input-focused:not(.chat-popout) #formline.focus-on {position:relative !important; inset:auto !important; width:auto !important; flex:0 0 auto;}
html.mobile-chat-input-focused:not(.chat-popout) #chatline, html.mobile-chat-input-focused:not(.chat-popout) #guestname {font-size:16px !important;}
html.mobile-chat-portrait .navbar {height:50px; min-height:50px;}
html.mobile-chat-portrait.mobile-chat-input-focused .navbar {top:calc(var(--visual-viewport-top, 0px) + env(safe-area-inset-top, 0px)) !important;}
html.mobile-chat-portrait .navbar-header {display:block !important;}
html.mobile-chat-portrait #mainpage {padding-top:50px !important;}
}

.navbar-brand:after {content:""; width:40px; height:60px; position:absolute; top:50%; margin-top:-30px; left:0px;}
.user-dropdown {top:94px !important;}
/* 숨길 토큰 */
.hidden-notice-token {
  display: none !important;
}
.chatalbum .album_wrap .group .wheel_album .wheel_label {padding:3px 0; margin-bottom:0 !important; font-weight:bold;}
.chatalbum .album_wrap .group .wheel_album .wheel_label img, .chatalbum .album_wrap .group .wheel_album .wheel_label span {display:inline-block; vertical-align:middle;}
.chatalbum .album_wrap .group .wheel_album .wheel_label img {margin-right:5px;}
.chatalbum .album_wrap .group .wheel_album .wheel_label.locked {opacity:.5; font-weight:normal;}

.popup_chatmenu .store_section {position:relative; padding:15px;}
.popup_chatmenu .store_section h7 {color:#2ecc71; display:block; margin-bottom:10px;}
.popup_chatmenu .store_section:last-child {padding-top:5px;}
.popup_chatmenu .store_wrap {margin:0; text-align:left;}
.popup_chatmenu .store_wrap * {margin:0; padding:0;}
.popup_chatmenu .store_wrap .store_item {display:inline-block; width:24%; text-align:center; padding:10px 0; cursor:pointer;}
.popup_chatmenu .store_wrap .store_item img {margin-bottom:10px;}
.popup_chatmenu .store_wrap .store_item p {font-weight:bold;}
.popup_chatmenu .store_wrap .store_item .commend {font-weight:bold; font-size:15px !important;}
.popup_chatmenu .store_wrap .store_item .status {font-size:12px !important; opacity:.75}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.chatalbum .album_wrap .group .wheel_album li .wheel_label:hover {transition:.2s; background:#222;}

.usericon {width:25px !important; height:25px !important; margin-right:5px;}


html#ft_15 #messagebuffer > .chat-msg.tip, #messagebuffer > .chat-msg.tip {background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.08); border-radius:6px; box-shadow:none; color:rgba(255,255,255,.78); padding:8px 11px !important; margin:8px 0; text-align:left; line-height:1.45; font-size:calc(13px + var(--dg-chat-font-increase,0px)) !important; overflow-wrap:anywhere;}
html#ft_15 #messagebuffer > .chat-msg.tip strong, #messagebuffer > .chat-msg.tip strong {color:#f4f6f8; font-weight:700;}
html#ft_15 #messagebuffer > .chat-msg.tip .radiant, #messagebuffer > .chat-msg.tip .radiant {color:#ade438; margin-right:8px;}
html#ft_15 #messagebuffer > .chat-msg.tip .dire, #messagebuffer > .chat-msg.tip .dire {color:#ff6a4d; margin-left:8px;}
html#ft_15 #messagebuffer > .chat-msg.tip .radiant, #messagebuffer > .chat-msg.tip .radiant, html#ft_15 #messagebuffer > .chat-msg.tip .dire, #messagebuffer > .chat-msg.tip .dire {font-weight:700; font-size:calc(13px + var(--dg-chat-font-increase,0px)) !important; display:inline; vertical-align:baseline;}

#message_notice {position:fixed; z-index:100; padding:20px 20px 12px; top:98px; background: rgba(60, 110, 225, 0.9);
 right:0px; font-size:24px !important; width:calc(100vw - var(--leftcontentvw)); animation: fadeIn 0.5s ease-out, bounce 1s ease infinite;}
#message_notice span {font-size:16px !important;} 
#message_notice h5 {font-weight:bold; margin:0;}
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bounce { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-10px); } 75% { transform: translateY(-5px); } }


.btn_top {background:var(--main); color:#fff; border-radius:8px; padding:5px 15px; display:inline-block; text-shadow:none;}
.greentext {color:inherit;}

/* 채팅방 이미지(드림리그) 
.navbar-brand:after {background:url(https://i.ibb.co/Y0HGBrM/logo-dl.webp) 10px center no-repeat; background-size:24px;}
#messagebuffer {background:url("https://i.ibb.co/s16cy8y/messagebuffer-dl-2.webp") center no-repeat; background-size:140px;}
*/ 
.navbar-brand:after {background:url(https://cdn.dotagall.com/dotacon/cm_persona.png) 10px center no-repeat;}


/* 채팅방 이미지(TI) */
.daewangcon .channel-emote {width:140px !important; height:140px !important; max-width:140px !important; max-height:140px !important;}
.chatColor span {font-size:16px !important;}
.server-msg-announcement {white-space:normal; display:inline-block !important; width:100%; visibility:visible !important; height:auto !important; color:#9d6dff !important; margin:25px 0;  font-weight:bold; text-align:center; padding-right:0;}
.server-msg-announcement  * {display:inline-block; vertical-align:middle;}
.server-msg-announcement  span {margin-left:5px; letter-spacing:-0.5px;}
.server-msg-announcement img {width:40px; margin:0px 0px 0px -15px !important;  }


/* 투표팝업 */
#popup_poll {display:block; position:fixed; top:40px; right:10px; max-width:640px; border-radius:10px; z-index:1000;  overflow:hidden; font-size:0;}
#popup_poll .btn_chatmenu_close {position:absolute; top:60px; right:15px; line-height:1; width:30px; height:30px; opacity:.7; background:url("https://s12.gifyu.com/images/SDMoL.png") center no-repeat #333; border-radius:45px; background-size:12px; border:0; font-size:0;  text-indent:-99999px;}
.area_info {position:absolute;top:0;left:0;right:0;margin:auto; text-align:center; width:880px; letter-spacing:-0.5px;}

.slider_container {width:350px;height:50px; display:inline-block; vertical-align:middle;}
.slider_container * {text-shadow:none !important;}
.slider_container .slider_div {transition:.2s;display:inline-block;border-radius:50px;vertical-align:middle; padding-right:20px; position:relative;width:100%;margin-top:9px;background:url("https://cdn.dotagall.com/ui/dropdown.png") calc(100% - 0px) center no-repeat;background-size:11px !important;}
.slider_container .slider_div:last-child {margin-right:0px;}
.slider {width:100%;font-size:0;height:32px;overflow:hidden;position:relative;margin:auto;line-height:32px;background:transparent;border-radius:250px;cursor:pointer;}

.slide {position:absolute; top:0; left:0; width:100%; height:100%; display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; column-gap:6px; opacity:0; transition:opacity 0.5s ease;}
.slide * {display:inline-block;}
.slide .info {position:relative; display:flex; align-items:center; overflow:hidden; min-width:0;}
.slide .versus {position:absolute; left:50%; margin-left:-16px; width:32px; opacity:.7; font-size:12px !important; text-align:center;}
.slide span {display:inline-block;font-size:13px !important;text-shadow:none !important;}
.slide span.time {color:#ccc; text-align:left; margin-right:0px; font-size:12px !important; white-space:nowrap;}
.slide span.team {position:relative; top:-1px; width:calc(100% - 80px); font-weight:700 !important; color:#fff;}
.slider .slide.active { opacity: 1;}
.slide .team {display:flex; align-items:center; width:50%; min-width:0; margin:0;}
.slide .team .name {flex:1; min-width:0; font-weight:bold; text-overflow:ellipsis; overflow:hidden; white-space:nowrap;}
.slide .team .team-logo {display:flex; flex-shrink:0; align-items:center; justify-content:center; width:25px; height:20px;}
.slide .team .team-logo img {height:20px; max-width:100%;}
.slide .team1 {text-align:right; padding-right:16px;}
.slide .team2 {text-align:left; padding-left:16px;}
.slide .team1 .team-logo {margin-left:5px;}
.slide .team2 .team-logo {margin-right:5px;}



#odds-box  {text-shadow:none; display:inline-block; margin-right:15px; vertical-align:middle; width:fit-content; height:20px;overflow:hidden;line-height:19px; border-right:1px solid #333; text-align:left; padding-right:15px; background:transparent; font-size:14px; color:#888;}
#odds-box .radiant {color:#ade438; font-weight:bold;}
#odds-box .dire {color:#FF4500; font-weight:bold;}
#odds-box .timer {color:#ccc; font-size:13px !important; font-weight:bold;}
#odds-box span  {display:inline-block; vertical-align:middle; margin:0 5px; font-size:13px !important;}
#odds-box .bet-odds-display {position:relative; display:inline-grid; width:auto; margin:0; grid-template-areas:"odds"; align-items:center; vertical-align:middle;}
#odds-box .bet-odds-teams, #odds-box .bet-odds-total {grid-area:odds; min-width:0; margin:0; white-space:nowrap;}
#odds-box .bet-odds-teams {position:relative; display:inline-flex; align-items:center; visibility:visible;}
#odds-box .bet-odds-total {position:absolute; left:50%; transform:translateX(-50%); justify-self:center; color:#c4d6ff; font-weight:bold; font-variant-numeric:tabular-nums; visibility:hidden;}
#odds-box .bet-odds-separator {margin:0; color:#888;}
#odds-box.show-blind-total .bet-odds-teams {position:absolute; left:50%; transform:translateX(-50%); visibility:hidden;}
#odds-box.show-blind-total .bet-odds-total {position:relative; left:auto; transform:none; visibility:visible;}
#odds-box .bet-odds-loading {display:none; position:absolute; inset:0; align-items:center; gap:8px; margin:0;}
#odds-box .bet-odds-loading > span {display:block; flex:1; min-width:0; height:10px; margin:0; border-radius:3px; background:linear-gradient(90deg,rgba(255,255,255,.12) 25%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.12) 75%); background-size:200% 100%; animation:bet-odds-shimmer 1.2s linear infinite;}
#odds-box.is-odds-loading .bet-odds-loading {display:flex;}
#odds-box.is-odds-loading .bet-odds-teams, #odds-box.is-odds-loading .bet-odds-total {visibility:hidden;}
@keyframes bet-odds-shimmer {from {background-position:200% 0;} to {background-position:-200% 0;}}
#odds-box * {text-shadow:none !important;}

@media (prefers-reduced-motion:reduce) {
#odds-box .bet-odds-loading > span {animation:none;}
}


@media (max-width:980px) {
  .navbar-brand {padding-left:15px !important;}
  .navbar-brand:after {display:none;}
  .area_info {right:60px; left:auto; top:11px; width:auto;}
  #odds-box {padding-right:0; border-right:0; margin-right:0;}
  #odds-box  span {font-size:11px !important; margin:0 3px;}
  #odds-box .bet-odds-display {margin:0;}
  #odds-box .bet-odds-teams, #odds-box .bet-odds-total, #odds-box .bet-odds-separator {margin:0;}
  #odds-box .timer, .slider_container {display:none !important;}
  
}

@media (min-width:1280px) {
#chatline {padding-right:85px;}
}




/* 중계방 이름 */
.navbar-brand:before {font-family:var(--font-primary) !important; letter-spacing:0px !important; content:"도갤중계방"; font-size:18px; font-weight:bold;  text-shadow:0px 0px 5px rgba(0,0,0,0.3); color:#fff !important;}


/* 일정팝업 */
.popup_iframe {display:block; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%)!important; width:calc(100% - 30px); max-width:1700px; border-radius:10px; box-shadow:0px 10px 25px rgba(0,0,0,0.3); z-index:9999;  overflow:hidden; background:#373a3f; font-size:0;}
.popup_iframe .popup_title {position:relative; width:100%; padding:0 20px; border-bottom:1px solid #373a3f; }
.popup_iframe .popup_title h6 {margin:0; font-size:16px !important; font-weight:bold; text-align:left; line-height:45px;}
.popup_iframe .popup_cont {position:relative; min-height:600px;}
.popup_iframe iframe {position:absolute; top:0; left:0; border:0; width:100%; height:100%;}
#leftcontrols #emotes-btn svg {display:none;}
#result {font-size:14px !important;}
.popup_chatmenu button {background:#373a3f; width:100%; border:1px solid #4d536c; border-radius:5px; height:40px; font-size:14px !important;}

.channel-emote[title="/도바"]  {max-width:180px !important; max-height:none !important;}


.channel-emote[title="/축"] ~ img, .channel-emote[title="/행복1"] ~ img
{margin-left:-5px; background:#fff;}


#userlist::-webkit-scrollbar {
  height: 7px;
}

.icon-style {
    padding-left: 20px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 12px;
}
.icon-style[data-icon] {
    background-image: attr(data-icon url);
}

#color-options .color-button {vertical-align:top;}
#popup_chaticon .icon_album {display:grid; grid-template-columns:repeat(8, 1fr); gap:8px;}
#popup_chaticon .icon_album li {cursor:pointer; width:auto; float:none; margin:0; transition:transform 0.2s ease, opacity 0.2s ease;}
#popup_chaticon .icon_album li img {width:100%; height:100%; display:block; transition:transform 0.2s ease, filter 0.2s ease;}
#popup_chaticon .icon_album li:hover {opacity:1; transform:scale(1.08);}
#popup_megacon .album_tab .menu {width:25%;}
#popup_megacon .icon_album li {cursor:pointer; width:calc(20% - 7px); float:left; transition:transform 0.2s ease, opacity 0.2s ease; margin-right:8px; margin-bottom:8px;}
#popup_megacon .icon_album li:nth-child(5n) {margin-right:0;}
#popup_megacon .icon_album li img {width:100%; height:100%; display:block; transition:transform 0.2s ease, filter 0.2s ease;}
#popup_megacon .icon_album li:hover {opacity:1; transform:scale(1.08);}


.chatalbum .album_tab {width:100%; margin:0 0 20px 0; padding:4px; white-space:nowrap; overflow-x:auto; font-size:0 !important; background:rgba(54,54,54,0.75); border:1px solid rgba(255,255,255,0.1); border-radius:8px; box-sizing:border-box;}
.chatalbum .album_tab .menu {width:16.6%; font-weight:normal; font-size:14px !important; display:inline-block; padding:10px 0; text-align:center; cursor:pointer; color:rgba(255,255,255,0.54); background:transparent; border:0; border-radius:6px; box-sizing:border-box; transition:background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;}
.chatalbum .album_tab .menu:hover {color:#fff; background:rgba(255,255,255,0.06);}

.chatalbum .album_tab .menu.active {color:#fff; font-weight:bold; border:0; box-shadow:0 6px 14px rgba(0,0,0,0.26), inset 0 -1px 0 rgba(0,0,0,0.18);}
.chatalbum .album_tab .menu.common.active {background:linear-gradient(135deg, #7b8491 0%, #646c78 48%, #454b54 100%);}
.chatalbum .album_tab .menu.rare.active {background:linear-gradient(135deg, #4f9cff 0%, #2563d8 50%, #143f96 100%);}
.chatalbum .album_tab .menu.immortal.active {background:linear-gradient(135deg, #f4c766 0%, #d99a2b 48%, #9b5f13 100%);}
.chatalbum .album_tab .menu.special.active {background:linear-gradient(135deg, #b49cff 0%, #7c3aed 48%, #42177f 100%);}
.chatalbum .album_tab .menu.arcana.active {background:linear-gradient(135deg, #38d99f 0%, #00a89a 48%, #006b73 100%);}
.chatalbum .album_tab .menu.season.active {background:linear-gradient(135deg, #f06565 0%, #d83a3a 48%, #8f2020 100%);}

@media (max-width:960px) {
.navbar-brand:before {font-size:16px;}
.chatalbum {width:100% !important;}
.chatalbum .album_wrap {padding:15px 15px 20px; overflow-y:auto;}
.chatalbum .album_wrap .group {margin-bottom:18px; padding-bottom:0; border-bottom:0;}
.chatalbum .album_wrap .group .title {margin-bottom:12px;}
.chatalbum .album_wrap .group .title h6 {font-size:14px !important;}
#popup_chaticon .icon_album {grid-template-columns:repeat(6, 1fr); gap:6px;}
#popup_megacon .icon_album li {margin-right:0; margin-bottom:0; width:16.6%;}
#popup_prediction .popup_cont, #popup_predictionJoin .popup_cont {max-height:calc(100% - calc(100vw / 16 * 9) - 25px);}
.choice_list {padding:16px 0; gap:8px;}
.popup_betting .info_area {padding:10px 0;}
.choice_list label {padding:5px; font-size:12px !important;}



.popup_betting:not(:where(#popup_bet, #popup_bet *)) {width:100% !important; max-width:440px !important; left:0% !important; /*top:calc(100vw / 16 * 9  + 50px) !important;*/ top:50%!important; transform:translate(0%, -50%); left:0;}
#popup_notiMsg, #popup_schedule, #popup_standin {top:auto; bottom:0 !important; left:0; transform:none;}

.popup_betting  .timer-text:not(:where(#popup_bet, #popup_bet *)) {font-size:12px !important; margin-bottom:10px;}
#popup_betjoin .bet_join_header {padding:12px 16px;}
#popup_betjoin .bet_join_title {font-size:15px !important; margin-bottom:0;}
#popup_betjoin .bet_join_header .timer-text {font-size:11px !important; margin-bottom:0; padding:5px 8px;}
.popup_betting .popup_title {padding:10px 16px;}
.popup_betting .popup_cont {padding:15px 16px;}
.popup_betting .team label:not(:where(#popup_bet, #popup_bet *)) {font-size:14px !important;}
.popup_betting input {height:38px; line-height:38px;}
#bet_bingo_join {width:38px;}
.popup_betting .row {margin-bottom:20px;}


#text_noticeMsg {left:0px; top:75px; width:320px;}
#text_noticeMsg h6 {font-size:14px !important; margin-bottom:5px;}
#text_noticeMsg p {font-size:18px !important;}
#popup_schedule {top:0; left:0; transform:none;}
#popup_prediction .popup_cont, #popup_predictionJoin .popup_cont, #popup_schedule .popup_cont {max-height:400px;}
}

@media screen and (orientation: landscape) and (min-height: 360px) and (max-height: 430px) {
  #rightcontent {height:100dvh;}
}
@media (orientation: landscape) and (max-width:1366px) and (min-width:1024px) {
  :root {--leftcontentvw:77dvw;}
  #messagebuffer>div {font-size:calc(14px + var(--dg-chat-font-increase,0px)) !important;}
  .slider_container {display:none !important;}
  .nav>li>a {padding:15px 10px;}
  .area_info {top:11px;}
  #odds-box {padding-right:0; border-right:0; margin-right:0;}
}

/* Template layout fixes: empty #chatwrap must stay for CyTube anchors, but not consume space.
   Desktop: video fills left column edge-to-edge; chat pins to remaining viewport. */
#rightcontent > #chatwrap {position:absolute !important; inset:0 !important; width:auto !important; height:auto !important; margin:0 !important; padding:0 !important; border:0 !important; overflow:visible !important; pointer-events:none; z-index:1;}
#rightcontent > #chatwrap > * {pointer-events:auto;}
#rightcontent > #leftcontrols {min-height:0 !important; height:0 !important; padding:0 !important; overflow:visible !important; border:0 !important; background:transparent !important;}
#rightcontent > #emotewrap {position:absolute; width:0; height:0; overflow:visible; pointer-events:none;}
#rightcontent > #emotewrap > * {pointer-events:auto;}

@media (min-width:981px) and (orientation:landscape), (min-width:1441px) {
#content-wrap {display:block;}
#leftcontent {width:var(--leftcontentvw); float:left;}
#video-container {position:relative !important; display:block !important; width:100% !important; height:calc(100dvh - 50px) !important; min-height:calc(100dvh - 50px); justify-content:normal !important; align-content:normal !important;}
#video-container #videowrap {position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; margin:0 !important; padding:0 !important;}
#video-container .embed-responsive {position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; padding:0 !important; padding-bottom:0 !important; max-height:none !important;}
#video-container .embed-responsive-item, #video-container #ytapiplayer, #video-container .embed-responsive > * {position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; max-height:none !important;}
#rightcontent {position:fixed !important; top:50px !important; right:0 !important; bottom:0 !important; height:auto !important; width:calc(100vw - var(--leftcontentvw)) !important; margin:0 !important;}
}

@media (max-width:768px) {
#rightcontent > #chatwrap {height:auto !important;}
}

/* Fullscreen owns its viewport, including the responsive player's aspect-ratio wrapper. */
html body.overlay #video-container {position:fixed !important; inset:0 !important; box-sizing:border-box; border:0; width:100% !important; height:100dvh !important; min-height:0 !important; margin:0 !important; padding:0 !important; z-index:998;}
html body.overlay:not(.dg-multiview-active) #video-container {display:block !important;}
body.overlay #video-container #videowrap, body.overlay #video-container .embed-responsive {position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; min-height:0 !important; max-height:none !important; margin:0 !important; padding:0 !important;}
body.overlay #video-container .embed-responsive > * {width:100% !important; height:100% !important; max-height:none !important;}
html body.overlay #rightcontent {display:flex !important; flex-direction:column; position:fixed !important; box-sizing:border-box; top:18dvh !important; right:calc(max(var(--chat-right,25px), env(safe-area-inset-right,0px)) + 48px) !important; bottom:auto !important; width:clamp(280px,24vw,360px) !important; max-width:calc(100vw - max(var(--chat-right,25px), env(safe-area-inset-right,0px)) - 64px - env(safe-area-inset-left,0px)); height:64dvh !important; min-height:0; margin:0 !important; padding:0 !important; z-index:999;}
body.overlay #toggleOverlayScreen {right:env(safe-area-inset-right,0px); min-width:44px; min-height:44px; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;}
body.overlay #overlayChatToggle {right:calc(8px + env(safe-area-inset-right,0px));}
@media (orientation:landscape) and (max-width:980px) {
html body.overlay #rightcontent {top:max(10dvh, env(safe-area-inset-top,0px)) !important; width:clamp(230px,32vw,300px) !important; height:min(80dvh, calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px)) !important;}
html.mobile-chat-input-focused body.overlay #leftcontent + #rightcontent {right:calc(8px + env(safe-area-inset-right,0px)) !important; max-width:calc(100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)) !important;}
}

/* Shared page and channel layout. Included in critical CSS to avoid a layout jump. */
#controlsrow #rightcontrols {display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px;}
#plcontrol {display:flex; flex-wrap:wrap; gap:4px; max-width:100%;}
#plcontrol > .btn {float:none; margin:0; min-height:36px; padding:7px 10px; border-radius:var(--ui-radius-sm) !important; font-size:14px !important; line-height:20px; white-space:nowrap;}
#plcontrol > .btn .solar-icon {display:inline-block; width:18px; height:18px; top:0; margin:0; vertical-align:middle;}
#plcontrol > .btn .solar-icon::before {display:block; width:100%; height:100%;}
#plcontrol .control-label {margin-left:6px; vertical-align:middle; font-size:14px !important; line-height:20px;}
#plcontrol > .dg-labeled-control {display:inline-flex; align-items:center; justify-content:center;}
#plcontrol > #clk_chat_popup {display:none;}
@media (min-width:1026px) {
#plcontrol > #clk_chat_popup {display:inline-flex;}
}
#rightcontrols > #videocontrols {margin-left:auto;}

#emotes-btn {right:calc(62px + var(--ui-space-1));}
#formline #chatline, #formline #guestname {padding-right:90px;}
.site-page #mainpage {padding-top:50px !important; padding-bottom:var(--ui-space-6);}
.site-page .navbar {height:50px; min-height:50px;}
.site-page .navbar-header {display:block !important;}
.site-page #mainpage > .container {max-width:100%;}
.site-page #mainpage .row {margin-left:-15px; margin-right:-15px;}
.site-page #mainpage .form-control {min-height:var(--ui-control-height); border-radius:var(--ui-radius-sm); color:var(--ui-text) !important; background-color:var(--textbar) !important;}
.site-page #mainpage .btn {min-height:var(--ui-control-height); padding:10px 16px; border-radius:var(--ui-radius-sm); white-space:normal;}
.site-page #mainpage .btn-default, .site-page #mainpage .btn-primary {background:var(--main); color:#fff; border-color:transparent;}
.site-page #mainpage .help-block, .site-page #mainpage .text-muted {color:var(--ui-text-muted);}
.site-page #mainpage .table {display:block; max-width:100%; overflow-x:auto;}
.site-page :is(a, button, input, select, textarea):focus-visible, .navbar :is(a, button, input):focus-visible, .popup_chatmenu :is(a, button, input, select, [tabindex]):focus-visible, #btn_chat_opt:focus-visible, #emotes-btn:focus-visible {outline:none !important;}
.pwa-banner {box-sizing:border-box; width:360px; max-width:calc(100vw - 2 * var(--ui-popup-gap)); max-height:var(--ui-popup-height); padding:var(--ui-space-4); overflow-y:auto;}
.pwa-banner p {min-width:0; overflow-wrap:anywhere;}
.pwa-banner p img {flex:0 0 40px;}
.pwa-banner .pwa-img-area {min-height:0;}
#useroptions .modal-dialog {width:calc(100% - 2 * var(--ui-popup-gap)) !important; min-width:0 !important; max-width:1000px; margin:var(--ui-popup-gap) auto;}
#channeloptions .modal-dialog {width:calc(100% - 2 * var(--ui-popup-gap)); min-width:0; max-width:1000px; margin:var(--ui-popup-gap) auto;}
#useroptions .modal-content, #channeloptions .modal-content {display:flex; flex-direction:column; max-height:var(--ui-popup-height); border:1px solid var(--ui-border); border-radius:var(--ui-radius); background:var(--ui-surface); color:var(--ui-text);}
#useroptions .modal-header, #channeloptions .modal-header, #useroptions .modal-footer, #channeloptions .modal-footer {flex:0 0 auto;}
#useroptions .modal-body, #channeloptions .modal-body {min-height:0; overflow:auto; overscroll-behavior:contain; padding:var(--ui-space-4);}
#useroptions .modal-body::before, #channeloptions .modal-body::before {pointer-events:none;}
#useroptions .nav-tabs, #channeloptions .nav-tabs {display:flex; flex-wrap:wrap;}
#useroptions .nav-tabs > li, #channeloptions .nav-tabs > li {min-width:0;}
#useroptions .nav-tabs > li > a, #channeloptions .nav-tabs > li > a {padding:10px 12px;}
#useroptions .modal-body textarea.form-control, #channeloptions .modal-body textarea.form-control {height:clamp(160px,35dvh,360px);}
#useroptions .form-control, #channeloptions .form-control {max-width:100%;}
#useroptions :is(a, button, input, select, textarea):focus-visible {outline:none !important;}
#channeloptions :is(a, button, input, select, textarea):focus-visible {outline:none;}
@media (max-width:767px) {
.site-page #nav-collapsible {display:none !important; max-height:calc(100dvh - 50px); overflow-y:auto;}
.site-page #nav-collapsible.in, .site-page #nav-collapsible.collapsing {display:block !important;}
}
@media (min-width:768px) {
.site-page #nav-collapsible {display:block !important;}
}
@media (orientation:portrait) and (min-width:769px) and (max-width:1440px) {
#video-container {height:43dvh !important;}
#leftcontent + #rightcontent {display:flex !important; height:calc(57dvh - 50px) !important; min-height:0;}
#rightcontent #messagebuffer {height:auto !important; min-height:0; flex:1 1 auto;}
#rightcontent > #chatheader, #rightcontent > #userlistwrap, #rightcontent > #userlist, #rightcontent > #formline {flex:0 0 auto;}
}
@media (max-width:768px) and (orientation:portrait) and (display-mode:standalone), (max-width:768px) and (orientation:portrait) and (display-mode:fullscreen) {
html.channel-touch-layout, html.channel-touch-layout body {min-height:100vh;}
html:not(.mobile-chat-input-focused):not(.chat-popout) body:not(.overlay) #rightcontent {height:calc(100vh - 50px - 56.25vw - env(safe-area-inset-top, 0px)) !important;}
}
@media (orientation:landscape) and (max-width:980px) {
:root:not(.mobile-chat-portrait) {--leftcontentvw:min(72dvw, calc(100dvw - 240px));}
:where(html:not(.mobile-chat-portrait)) #rightcontent > #leftcontrols {z-index:101;}
:where(html:not(.mobile-chat-portrait)) #formline #chatline, :where(html:not(.mobile-chat-portrait)) #formline #guestname {padding-right:48px;}
}
/* Installed landscape apps keep their geometry while Android restores system bars after typing.
   The body is anchored to the window bottom, so a status bar pushing the window down leaves content still in the same frame. */
html.mobile-chat-app-landscape, html.mobile-chat-app-landscape body {height:100%; min-height:0; overflow:hidden; overflow-anchor:none;}
html.mobile-chat-app-landscape #mainpage {position:fixed; inset:0; width:100%; height:var(--mobile-chat-layout-height); overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain;}
html.mobile-chat-app-landscape #video-container, html.mobile-chat-app-landscape body.overlay #video-container {height:var(--mobile-chat-layout-height) !important;}
html.mobile-chat-app-landscape:not(.mobile-chat-input-focused) body:not(.overlay) #rightcontent {height:var(--mobile-chat-layout-height) !important;}
html.mobile-chat-app-landscape:not(.mobile-chat-input-focused) body.overlay #rightcontent {top:max(calc(var(--mobile-chat-layout-height) * .1), env(safe-area-inset-top,0px)) !important; height:min(calc(var(--mobile-chat-layout-height) * .8), calc(var(--mobile-chat-layout-height) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px)) !important;}
html.mobile-chat-app-landscape:not(.mobile-chat-keyboard-open) body {position:fixed; inset:auto 0 0; height:var(--mobile-chat-layout-height); transform:translate(0);}
@media (orientation:landscape) and (min-width:981px) and (max-width:1366px) {
:root {--leftcontentvw:min(77dvw, calc(100dvw - 280px));}
}

@media (min-width:768px) and (orientation:portrait), (min-width:981px) {
.navbar {display:flex; align-items:center;}
.navbar > .navbar-header {flex:0 0 auto;}
.navbar > #nav-collapsible {display:contents !important;}
.navbar > #nav-collapsible > .navbar-nav {order:1; flex:0 0 auto; margin:0;}
.navbar > .area_info {position:static; order:2; display:flex; flex:1 1 auto; min-width:0; width:auto; height:50px; margin:0 var(--ui-space-2); align-items:center; justify-content:center;}
.navbar > .area_info > #odds-box {flex:0 1 auto; min-width:0; max-width:100%;}
.navbar > .area_info > .slider_container {flex:0 1 350px; min-width:0;}
.navbar > #nav-collapsible > :not(.navbar-nav) {order:3; flex:0 0 auto;}
.navbar #logoutform {margin:8px 15px 8px 0; white-space:nowrap;}
}

@media (max-width:768px), (max-width:1440px) and (pointer:coarse), (min-width:769px) and (max-width:1440px) and (orientation:portrait) {
#rightcontent > #leftcontrols > #btn_chat_opt, #rightcontent > #leftcontrols > #emotes-btn {bottom:var(--chat-controls-bottom, 25px) !important; height:var(--chat-controls-height, 44px);}
#rightcontent > #emotewrap {position:static !important; cursor:default;}
#rightcontent #emotespanel {position:absolute !important; top:auto !important; right:0 !important; bottom:calc(var(--chat-input-clearance, 80px) + 8px) !important; left:0 !important; width:100% !important; height:min(240px, var(--chat-panel-space, 240px)) !important; max-height:var(--chat-panel-space, 240px); margin:0 !important; overflow:hidden;}
#rightcontent #emotespanel > .tab_menu_wrapper {height:40px;}
#rightcontent #emotespanel > .tab_cont_wrap {height:calc(100% - 40px); min-height:0; overflow-y:auto; overscroll-behavior:contain;}
#rightcontent #emotespanel img {width:clamp(36px, calc(16.666% - 8px), 60px) !important; margin:0 8px 10px 0 !important;}
body:has(#rightcontent) .quest_toast_area, body:has(#rightcontent) .daily_reward_toast_area {bottom:var(--chat-toast-clearance, 98px); max-width:calc(var(--chat-panel-width, 100vw) - 24px);}
body:has(#rightcontent):has(.popup_chatmenu[aria-hidden="false"], #rightcontent.chat-emotes-open) .quest_toast_area, body:has(#rightcontent):has(.popup_chatmenu[aria-hidden="false"], #rightcontent.chat-emotes-open) .daily_reward_toast_area {visibility:hidden;}
}
