*{box-sizing:border-box}body{margin:0;background:#f6f8fa;color:#142235;font-family:'Noto Sans KR','Noto Sans JP',Arial,sans-serif;line-height:1.55}main{max-width:1220px;margin:auto;padding:24px}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #187c69;outline-offset:3px}.top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;font-weight:600}.top div{display:flex;gap:12px}.top [aria-current]{color:#087965;text-decoration:underline}header{margin:22px 0 28px;padding:36px 24px;background:#112536;color:white;border-radius:16px;text-align:center}.brand{font-size:38px;font-weight:800;letter-spacing:2px}.brand b{color:#b2ded0}h1{font-size:23px;margin:8px 0}header p{margin:4px 0;font-size:17px}header small{color:#bbd5df}.filters{display:flex;gap:10px;margin:24px 0;flex-wrap:wrap}.filters input{flex:1;min-width:140px}.filters input,.filters select,.filters button,.button{font:inherit;border:1px solid #cbd5df;border-radius:8px;padding:10px 14px;background:white;color:#142235}.filters button,.button{background:#176b60;color:white;border-color:#176b60;cursor:pointer}.section-title{font-size:20px}.section-title span{color:#176b60}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}article{border:1px solid #dce4eb;border-radius:12px;overflow:hidden;background:white;min-width:0}.thumb{display:block;position:relative;aspect-ratio:9/16;overflow:hidden;background:#142735}.thumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#112536dd;color:white;border-radius:50%;width:44px;height:44px;display:grid;place-items:center}.meta{padding:12px}.meta h3{font-size:17px;margin:0;overflow-wrap:anywhere}.meta p{font-size:14px;color:#526477;margin:5px 0}.player{display:flex;gap:24px;align-items:center;background:white;border:1px solid #dce4eb;padding:20px;border-radius:12px}.player iframe{width:min(100%,290px);aspect-ratio:9/16;border:0;background:#112536}.empty{background:white;border:1px dashed #ccd8df;border-radius:12px;padding:60px 16px;text-align:center;color:#526477}.pages{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:24px 0}.pages a{padding:6px 12px;border:1px solid #dce4eb;border-radius:6px}.pages [aria-current]{background:#176b60;color:white}footer{text-align:center;color:#526477;font-size:12px;margin:30px 0}@media(max-width:850px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){main{padding:14px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.player{flex-direction:column}header{padding:24px 12px}.brand{font-size:32px}.filters{gap:6px}.meta{padding:9px}}

#watch-dialog{border:1px solid #395366;border-radius:16px;background:#112536;color:white;padding:16px;width:min(96vw,560px);max-height:96dvh;overflow:auto;text-align:center}#watch-dialog::backdrop{background:#08131cdb}body:has(#watch-dialog[open]){overflow:hidden}.watch-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.watch-stage{display:flex;align-items:center;justify-content:center;gap:8px}#watch-frame{width:min(100%,calc(58dvh * 9 / 16),320px);aspect-ratio:9/16;background:#000;flex-shrink:1}#watch-frame iframe{width:100%;height:100%;border:0;display:block}#watch-dialog button,.watch-actions a{border:1px solid #547182;border-radius:7px;background:#243e4e;color:white;padding:8px 10px;cursor:pointer;font:inherit}#watch-dialog button:disabled{opacity:.35;cursor:default}#watch-dialog button[aria-pressed=true]{background:#b2ded0;color:#112536}.watch-stage button,#watch-close{font-size:24px!important;line-height:1}.watch-actions{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;font-size:13px}#watch-title{margin:10px 0 2px;font-size:20px}#watch-author,#watch-count,#watch-status{margin:4px 0;font-size:13px}#watch-status:empty{display:none}@media(max-width:600px){#watch-dialog{padding:10px;max-width:100%;width:100%;max-height:98dvh;margin:auto}#watch-frame{width:min(calc(100vw - 90px),calc(65dvh * 9 / 16))}}

/* v1.6.4b: fit desktop dialog to the portrait player and controls. */
@media(min-width:601px){
#watch-dialog{--video-width:min(440px,calc((100dvh - 210px) * 9 / 16),calc(96vw - 100px));width:min(96vw,calc(var(--video-width) + 96px));padding:10px 12px;max-height:98dvh;margin:auto}
.watch-head{margin-bottom:6px}
#watch-close{padding:6px 9px!important}
.watch-stage{gap:6px}
#watch-frame{width:var(--video-width);flex:0 0 auto}
.watch-stage button{flex:0 0 30px;padding:8px 0!important}
#watch-title{margin:6px 0 2px;line-height:1.3}
#watch-author,#watch-count{margin:2px 0;line-height:1.3}
.watch-actions{gap:4px}
.watch-actions button,.watch-actions a{padding:6px 8px!important}
}

/* v1.6.4c: retain dynamic accessible dialog title, hide duplicate visual metadata. */
#watch-title,#watch-author{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.watch-actions{margin-top:8px}

.create-action{margin-top:18px}.create-action a{display:inline-block;padding:11px 24px;border-radius:8px;background:#b2ded0;color:#112536;font-weight:700;max-width:100%;text-align:center}.create-action a:hover{background:#d2eee6}.create-action a:focus-visible{outline-color:white}

/* v1.6.6 CINEMA: separate artwork and live multilingual controls. */
main > header{position:relative;isolation:isolate;overflow:hidden;min-height:288px;padding:28px 30% 28px 26%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 24% 55%,#74604d 0%,#3b5060 26%,#203a50 56%,#162c3e 100%);color:#fff}
main > header::before,main > header::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:cover}
main > header::before{left:0;width:26%;background-image:linear-gradient(90deg,transparent 76%,#3b5060),url('cinema-projector.webp');background-position:center,left center}
main > header::after{right:0;width:31%;background-image:linear-gradient(90deg,#203a50,transparent 16%),url('cinema-screen.webp');background-position:center,right center}
main > header .brand{font-size:clamp(30px,3.5vw,48px);line-height:1.15;text-shadow:0 2px 8px #112536}
main > header h1{font-size:clamp(18px,2vw,25px);margin:10px 0 4px;text-shadow:0 2px 5px #112536}
main > header p{color:#ffe4a5;font-weight:700;font-size:clamp(14px,1.5vw,19px);text-shadow:0 1px 4px #112536}
main > header small{color:#fff;text-shadow:0 1px 4px #112536}
main > header .create-action{margin-top:14px}
@media(max-width:760px){main > header{padding:22px 16px 125px;min-height:0;background:linear-gradient(160deg,#344f63,#172e40)}main > header::before,main > header::after{top:auto;height:110px;width:50%;background-size:auto 110px;background-color:#203a50}main > header::before{background-position:center,left center}main > header::after{background-position:center,right center}main > header .brand{font-size:34px}}

/* v1.6.7 independent navigation */
.top .brand-nav{flex-wrap:wrap;align-items:center;gap:10px 18px}.brand-nav a:hover{text-decoration:underline;color:#176b60}.guide-panel{background:white;border:1px solid #dce4eb;border-radius:14px;padding:clamp(18px,4vw,36px);margin:20px 0}.guide-panel h2{font-size:21px;margin-top:0}.guide-panel p{line-height:1.8}.guide-panel .button{display:inline-block;margin:8px 8px 0 0}.guide-step{border-bottom:1px solid #dce4eb;padding:14px 0}.guide-step:last-child{border:0}.guide-step h3{margin:0;color:#176b60;font-size:17px}.guide-step p{margin:6px 0}

/* v1.6.7c: single continuous mobile cinema strip. */
@media(max-width:760px){
 main > header{padding-bottom:calc(20px + clamp(90px, 31vw, 220px));background:linear-gradient(160deg,#344f63,#172e40)}
 main > header::before{inset:auto 0 0;width:100%;height:clamp(90px,31vw,220px);background: url('cinema-mobile.webp') center bottom / 100% 100% no-repeat;mask-image:none;-webkit-mask-image:none}
 main > header::after{display:none}
}
