
:root{--red:#e51f2a;--red2:#7d0c12;--bg:#080808;--panel:#101010;--line:#382022;--text:#eee;--muted:#999}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#070707;color:var(--text);font-family:Pretendard,"Noto Sans KR",Arial,sans-serif;background-image:radial-gradient(circle at 20% 20%,#4b000022,transparent 25%),radial-gradient(circle at 85% 80%,#9d000019,transparent 25%)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.wrap{width:min(1240px,calc(100% - 24px));margin:auto}
.banner{width:100%;aspect-ratio:1920/400;background:#090909 url("images/banner.webp") center/100% 100% no-repeat;border-bottom:3px solid #7d0c12}
.top{background:#0c0c0cf5;border-bottom:1px solid #4b1115;position:sticky;top:0;z-index:20}.topin{min-height:60px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.top a{padding:11px 17px;border-radius:5px;font-size:14px;font-weight:800}.top a.active,.top a:hover{background:linear-gradient(#c9212b,#7e0e15)}.search{margin-left:auto;display:flex}.search input{width:250px;background:#111;border:1px solid #333;color:#eee;padding:10px 12px;outline:none}.search button{border:0;background:var(--red);color:#fff;width:44px}
.layout{display:grid;grid-template-columns:220px minmax(0,1fr) 285px;gap:14px;margin:16px auto 60px}.panel{background:linear-gradient(180deg,#121212,#0c0c0c);border:1px solid #342124;box-shadow:0 8px 28px #0007}
.sideProfile{padding:14px}.profileImg{width:100%;aspect-ratio:1;object-fit:cover;object-position:center 25%;border:2px solid #86131a}.sideProfile h2{font-size:19px;margin:14px 0 5px}.write{display:block;text-align:center;background:linear-gradient(#ef2d38,#b3111b);padding:12px;margin-top:15px;font-weight:900;border-radius:4px}
.sideMenu{margin-top:12px}.sideMenu a{display:block;padding:12px 14px;border-left:3px solid transparent;color:#ccc;font-size:14px}.sideMenu a:hover,.sideMenu a.active{border-left-color:#f12631;background:linear-gradient(90deg,#6c1018aa,transparent);color:white}.sideMenu span{display:inline-block;width:25px;color:#e02a34}
.quote{margin:14px;padding:17px 10px;border:1px dashed #7b2529;color:#c7c7c7;text-align:center;background:#25080a}.head{min-height:52px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid #362023}.head h2{font-size:18px;margin:0}.head h2 b{color:#ed2531;margin-right:8px}.head .more{margin-left:auto;color:#888;font-size:12px}
.board{margin-top:14px}.row{display:grid;grid-template-columns:60px minmax(0,1fr) 100px 85px 60px;min-height:44px;align-items:center;border-top:1px solid #252525;padding:0 13px;font-size:13px;cursor:pointer}.row:hover{background:#181010}.badge{width:44px;text-align:center;padding:4px;border-radius:4px;background:#333;color:#ddd;font-size:11px}.badge.notice{background:#d51d29}.badge.galleryBadge{background:#6b2a6b}.subject{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.author,.date,.views{color:#888;font-size:11px}.views{text-align:right}.empty{padding:34px 16px;text-align:center;color:#777}
.hot{padding:5px 12px 12px}.hotrow{display:grid;grid-template-columns:34px 1fr 42px;align-items:center;padding:11px 0;border-bottom:1px solid #272727;font-size:13px;cursor:pointer}.rank{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#282828;font-weight:900}.hotrow:nth-child(-n+3) .rank{background:#d91e29}.count{color:#777;text-align:right;font-size:11px}
.gallery{margin-top:14px}.galleryGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px}.galleryItem{position:relative;cursor:pointer;background:#111;border:1px solid #333}.galleryItem img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.galleryCaption{padding:7px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noticeBox{margin-top:14px;padding:15px;color:#8e8e8e;font-size:11px;line-height:1.65}.noticeBox b{color:#d4d4d4}
.videos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px}.video{background:#111;border:1px solid #282828;overflow:hidden}.thumb{aspect-ratio:16/9;position:relative;background:#222;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border:3px solid white;border-radius:50%;background:#0006}.play:after{content:"";position:absolute;left:18px;top:12px;border-left:15px solid white;border-top:9px solid transparent;border-bottom:9px solid transparent}.vbody{padding:11px}.vtitle{font-weight:800;font-size:14px}.vmeta,.vodDate{color:#777;font-size:11px;margin-top:6px}.vodDuration{position:absolute;right:7px;bottom:7px;background:#000c;color:#fff;padding:3px 6px;border-radius:3px;font-size:10px;font-weight:800}.vodLoading{grid-column:1/-1;padding:38px 15px;text-align:center;color:#888}.vodError{grid-column:1/-1;padding:22px;text-align:center;color:#aaa}.vodError a{color:#ef3943;font-weight:800}
.modal{display:none;position:fixed;inset:0;background:#000c;z-index:50;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modalBox{width:min(620px,100%);max-height:92vh;overflow:auto;background:#111;border:1px solid #672027;padding:20px}.modalBox h3{margin:0 0 15px}.modalBox input,.modalBox textarea,.modalBox select{width:100%;background:#080808;border:1px solid #333;color:#eee;padding:12px;margin-bottom:9px}.modalBox textarea{height:170px;resize:vertical}.anonRow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.postHelp{font-size:11px;color:#777;line-height:1.5;margin:0 0 12px}.actions{text-align:right}.actions button{border:0;padding:10px 16px;margin-left:5px;color:#fff;background:#333}.actions .submit{background:#c51b25}.imagePick{border:1px dashed #444;padding:12px;margin-bottom:10px}.previewGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.previewGrid img{width:100%;aspect-ratio:1;object-fit:cover}
.postView{padding:20px}.postTitle{font-size:24px;font-weight:900;margin-bottom:8px}.postMeta{font-size:12px;color:#888;border-bottom:1px solid #333;padding-bottom:14px}.postContent{white-space:pre-wrap;line-height:1.8;padding:22px 0}.postImages{display:grid;gap:10px}.postImages img{max-width:100%;height:auto;display:block;margin:auto}
@media(max-width:1000px){.layout{grid-template-columns:200px minmax(0,1fr)}.right{display:none}}
@media(max-width:720px){.topin{justify-content:center}.top a{padding:9px 8px;font-size:12px}.search{display:none}.layout{grid-template-columns:1fr}.left{display:none}.videos{grid-template-columns:1fr}.row{grid-template-columns:52px 1fr 65px}.author,.views{display:none}.wrap{width:calc(100% - 14px)}}
@media(max-width:1100px){.galleryGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.galleryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.anonRow{grid-template-columns:1fr}.galleryGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v3 board/detail spacing */
.pageWide{width:min(1180px,calc(100% - 64px));margin:22px auto 70px}
.pageWide .singleMain{width:100%}
.pageTopActions{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.backBtn{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid #3a2527;background:#101010;color:#ddd;border-radius:4px}
.write,.pageTopActions .write{color:#fff!important}
.voteBar{display:flex;justify-content:center;gap:10px;padding:18px 0;border-top:1px solid #282828}
.voteBtn{min-width:105px;border:1px solid #444;background:#151515;color:#fff;padding:11px 15px;border-radius:5px;font-weight:800;cursor:pointer}
.voteBtn:hover{border-color:#a42a31}.voteBtn.on{background:#681117;border-color:#d72b35}
.comments{margin-top:14px}.commentForm{padding:14px;border-bottom:1px solid #292929}.commentForm .anonRow{grid-template-columns:150px 1fr}.commentForm textarea{width:100%;height:78px;background:#090909;color:#fff;border:1px solid #333;padding:10px;resize:vertical}.commentForm button{float:right;margin-top:8px;background:#bd1923;color:#fff;border:0;padding:9px 16px}
.commentList{clear:both;padding-top:8px}.comment{padding:13px 15px;border-top:1px solid #242424}.commentHead{font-size:11px;color:#888;margin-bottom:7px}.commentBody{white-space:pre-wrap;line-height:1.55}
@media(max-width:720px){.pageWide{width:calc(100% - 18px);margin-top:12px}.commentForm .anonRow{grid-template-columns:1fr}}

.commentIdentity{display:grid;grid-template-columns:180px 220px;gap:8px;margin-bottom:8px}
.commentIdentity input{background:#090909;color:#fff;border:1px solid #333;padding:10px}
.commentForm>textarea{box-sizing:border-box;width:100%;height:78px;background:#090909;color:#fff;border:1px solid #333;padding:10px;resize:vertical}
@media(max-width:720px){.commentIdentity{grid-template-columns:1fr 1fr}}

/* v5 detail page */
.detailLayout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;margin:18px auto 70px;align-items:start}
.detailMain{min-width:0}
.detailMain .pageTopActions{margin:0 0 10px}
.detailMain .backBtn{font-size:13px;font-weight:700;padding:8px 12px;border:1px solid #43262a;background:#141112;color:#ddd;border-radius:4px}
.detailMain .backBtn:hover{background:#241316;border-color:#7d2027;color:#fff}
.comments{margin-top:14px}
.commentForm{padding:18px;background:#0d0d0d;border-bottom:1px solid #292929}
.commentIdentity{display:grid;grid-template-columns:180px 230px;gap:9px;margin-bottom:9px}
.commentIdentity input,.commentForm>textarea{background:#090909!important;color:#eee!important;border:1px solid #3a3031!important;border-radius:4px;outline:none;transition:.15s}
.commentIdentity input{width:100%;height:42px;padding:0 12px!important}
.commentForm>textarea{display:block;width:100%!important;height:100px!important;padding:12px!important;resize:vertical;line-height:1.55}
.commentIdentity input:focus,.commentForm>textarea:focus{border-color:#a51c25!important;box-shadow:0 0 0 2px #6d101533}
.commentIdentity input::placeholder,.commentForm>textarea::placeholder{color:#686868}
.commentFormBottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px}
.commentFormBottom .postHelp{margin:0;color:#666}
.commentForm button{float:none!important;margin:0!important;min-width:104px;height:40px;border-radius:4px;background:linear-gradient(#e42a35,#a8111a)!important;color:#fff!important;font-weight:800;cursor:pointer}
.commentForm button:hover{filter:brightness(1.1)}
.commentList{padding-top:0}
@media(max-width:900px){.detailLayout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:720px){.detailLayout{grid-template-columns:1fr;width:calc(100% - 18px)}.detailLayout>.left{display:none}.commentIdentity{grid-template-columns:1fr 1fr}.commentFormBottom{align-items:flex-end}}
@media(max-width:520px){.commentIdentity{grid-template-columns:1fr}.commentFormBottom{display:block}.commentFormBottom button{width:100%;margin-top:10px!important}}

/* v6: board pages keep the left navigation but remove the right guide/sidebar. */
.boardLayout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;margin:16px auto 60px;align-items:start}
.boardLayout .singleMain{min-width:0;width:100%}
.boardLayout .board{margin-top:0}
@media(max-width:720px){.boardLayout{grid-template-columns:1fr;width:calc(100% - 14px)}.boardLayout>.left{display:none}}
/* v8: 목록은 분류 | 제목(댓글수) | 작성자 | 시간 */
.row{grid-template-columns:60px minmax(0,1fr) 100px 85px}
.commentCount{color:#e33a44;font-size:12px;margin-left:3px}
@media(max-width:720px){.row{grid-template-columns:52px 1fr 65px}.date{display:none}}

/* v8 */
.row{grid-template-columns:60px minmax(0,1fr) 100px 85px}
.commentCount{color:#e33a44;font-size:12px;margin-left:3px}
@media(max-width:720px){.row{grid-template-columns:52px 1fr 65px}.date{display:none}}

/* v9: 게시글 비밀번호 삭제 */
.postMeta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.postDeleteBtn{border:1px solid #4a292b;background:#171010;color:#aaa;padding:5px 10px;border-radius:3px;font-size:11px;cursor:pointer}
.postDeleteBtn:hover{border-color:#b8232c;color:#fff;background:#351014}
.deleteModalBox{width:min(390px,100%)}
.deleteModalBox input{margin:8px 0 16px}
.deleteHelp{font-size:12px;color:#999;line-height:1.6;margin:0 0 8px}
.actions .danger{background:#b51620!important}

/* v10 cursor pagination */
.pagination{display:flex;justify-content:center;align-items:center;gap:5px;padding:18px 12px 20px;border-top:1px solid #252525}
.pagination button{min-width:34px;height:34px;padding:0 9px;border:1px solid #383838;border-radius:4px;background:#111;color:#aaa;font-size:12px;cursor:pointer}
.pagination button:hover:not(:disabled){border-color:#a52a31;color:#fff;background:#1b1011}
.pagination button.active{background:#a81821;border-color:#c7252f;color:#fff;font-weight:800}
.pagination button:disabled{opacity:.3;cursor:default}

/* v11 notice/admin */
.noticeRow{display:grid;grid-template-columns:64px 1fr 90px;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid #252525;cursor:pointer}.noticeRow:hover{background:#151515}.noticeBadge{display:inline-block;background:#8e1119;color:#fff;border:1px solid #c52a34;border-radius:3px;padding:3px 7px;font-size:11px;font-weight:800}.noticeRow .date{text-align:right;color:#888;font-size:12px}.adminWrap{width:min(900px,calc(100% - 32px));margin:24px auto 70px}.adminPanel{padding-bottom:22px}.adminForm{padding:22px;display:grid;gap:12px}.adminForm h3,.adminList h3{margin:0 0 5px;color:#eee}.adminForm input,.adminForm textarea{width:100%;box-sizing:border-box;background:#090909;border:1px solid #3a3030;color:#fff;border-radius:4px;padding:12px;font:inherit}.adminForm textarea{min-height:220px;resize:vertical}.adminForm input:focus,.adminForm textarea:focus{outline:none;border-color:#a82029;box-shadow:0 0 0 2px rgba(168,32,41,.14)}.adminPrimary{justify-self:end;background:#a81720;color:#fff;border:1px solid #d52a35;border-radius:4px;padding:10px 22px;font-weight:800;cursor:pointer}.adminList{padding:0 22px}.adminNoticeRow{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #292929}.adminNoticeRow button{background:#171717;color:#ddd;border:1px solid #543036;padding:7px 12px;cursor:pointer}@media(max-width:720px){.noticeRow{grid-template-columns:52px 1fr}.noticeRow .date{display:none}}

/* v12 comment delete */
.commentHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.commentDeleteBtn{border:0!important;background:transparent!important;color:#777!important;padding:2px 5px!important;margin:0!important;min-width:0!important;height:auto!important;font-size:11px!important;font-weight:400!important;cursor:pointer}
.commentDeleteBtn:hover{color:#e33a44!important;text-decoration:underline}

/* rich post editor */
.editorToolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px;background:#111;border:1px solid #3a3031;border-bottom:0;border-radius:4px 4px 0 0}
.editorToolbar button,.editorToolbar select{height:32px;border:1px solid #403638;background:#191919;color:#ddd;border-radius:3px;padding:0 9px;cursor:pointer}
.editorToolbar button:hover,.editorToolbar select:hover{border-color:#a51c25;color:#fff}
.editorToolbar select{cursor:pointer}.editorSep{width:1px;height:22px;background:#3a3031;margin:0 2px}
.editorColor{display:flex;align-items:center;gap:5px;height:30px;padding:0 7px;border:1px solid #403638;border-radius:3px;background:#191919;color:#aaa;font-size:12px}
.editorColor input{width:24px!important;height:22px!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer}
.richEditor{box-sizing:border-box;width:100%;min-height:190px;max-height:430px;overflow:auto;padding:12px;background:#090909;color:#eee;border:1px solid #3a3031;border-radius:0 0 4px 4px;outline:none;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.richEditor:focus{border-color:#a51c25;box-shadow:0 0 0 2px #6d101533}
.richEditor:empty:before{content:attr(data-placeholder);color:#686868;pointer-events:none}
.postContent{white-space:pre-wrap;word-break:break-word;line-height:1.7}
@media(max-width:600px){.editorToolbar{gap:4px}.editorToolbar button{padding:0 7px}.editorSep{display:none}}


/* inline write editor: the center content area becomes the editor instead of a popup */
#modal{position:static;inset:auto;z-index:auto;width:100%;padding:0;background:transparent;align-items:stretch;justify-content:stretch}
#modal.open{display:block}
#modal .modalBox{box-sizing:border-box;width:100%;max-height:none;overflow:visible;background:#111;border:1px solid #672027;padding:20px}
#modal .modalBox h3{font-size:18px;padding-bottom:12px;border-bottom:1px solid #302426}
#modal .editorToolbar{position:relative;z-index:1;flex-wrap:wrap}
#modal .richEditor{height:520px;min-height:520px;max-height:520px;overflow-y:auto;overflow-x:hidden;resize:none;overscroll-behavior:contain;scrollbar-gutter:stable}
#modal .imagePick{margin-top:12px}
#modal .actions{position:relative;padding-top:4px}
@media(max-width:900px){#modal .richEditor{height:460px;min-height:460px;max-height:460px}}
@media(max-width:600px){#modal .modalBox{padding:12px}#modal .richEditor{height:52vh;min-height:300px;max-height:52vh}}

/* v20 notice rich editor + pinned notices */
.noticePinnedRow{background:#120b0c}.noticePinnedRow:hover{background:#1b0d0f}.noticePinnedRow .subject{font-weight:700;color:#f0dddd}
.noticeRichEditor{height:360px;min-height:360px;max-height:360px;overflow-y:auto;overflow-x:hidden;resize:none;overscroll-behavior:contain;scrollbar-gutter:stable}
.adminForm .editorToolbar{width:100%;box-sizing:border-box}
@media(max-width:600px){.noticeRichEditor{height:48vh;min-height:300px;max-height:48vh}}


/* v21: force writer into the page center on every page */
main.writeMode{display:block!important;min-width:0!important}
#modal.inlineWriter{display:block!important;position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;z-index:auto!important;overflow:visible!important}
#modal.inlineWriter .modalBox{position:static!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;transform:none!important;overflow:visible!important}
#modal.inlineWriter .richEditor{box-sizing:border-box!important;height:520px!important;min-height:520px!important;max-height:520px!important;overflow-y:auto!important;overflow-x:hidden!important;white-space:pre-wrap!important}
.postContent,.postBody{white-space:pre-wrap!important;word-break:break-word;line-height:1.7}
.richEditor div,.richEditor p{white-space:pre-wrap}
@media(max-width:900px){#modal.inlineWriter .richEditor{height:460px!important;min-height:460px!important;max-height:460px!important}}
@media(max-width:600px){#modal.inlineWriter .richEditor{height:52vh!important;min-height:300px!important;max-height:52vh!important}}

/* v24: editor controls stay on one horizontal row */
.editorToolbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
.editorToolbar>button,.editorToolbar>select,.editorToolbar>.editorSep{flex:0 0 auto}
@media(max-width:600px){.editorToolbar{flex-wrap:nowrap!important;overflow-x:auto}.editorSep{display:block}}

/* v25: keep editor controls compact instead of stretching across the toolbar */
.editorToolbar .editorFont{width:140px!important;min-width:140px!important;max-width:140px!important;flex:0 0 140px!important}
.editorToolbar .editorSize{width:92px!important;min-width:92px!important;max-width:92px!important;flex:0 0 92px!important}


/* v26: vertically align editor controls and use standard alignment icons */
.editorToolbar{min-height:48px!important;box-sizing:border-box!important}
.editorToolbar>button,.editorToolbar>select{height:32px!important;min-height:32px!important;max-height:32px!important;box-sizing:border-box!important;margin:0!important;vertical-align:middle!important}
.editorToolbar>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
.editorToolbar>select{align-self:center!important;line-height:30px!important}
.editorToolbar button[data-cmd^="justify"]{width:36px!important;min-width:36px!important;max-width:36px!important;padding:0!important}
.editorToolbar button[data-cmd^="justify"] svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}

/* v27: 게시글/공지 상세 - 제목·작성정보와 본문 사이 여백 */
.postView .postContent,
.postView .postBody{
  padding-top:32px !important;
  padding-bottom:22px;
}

/* v29: dark page scrollbar + banner edge cleanup */
html{background:#070707;scrollbar-color:#555 #0b0b0b;scrollbar-width:thin}
body{overflow-x:hidden}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0b0b0b}
::-webkit-scrollbar-thumb{background:#555;border-radius:8px;border:2px solid #0b0b0b}
::-webkit-scrollbar-thumb:hover{background:#777}
.banner{display:block;overflow:hidden;background-color:#090909;background-size:100% 100%;background-position:center;background-repeat:no-repeat}
