/* BABAR DRAMA: approved ornamental gold / charcoal reference direction. */
body{background:radial-gradient(ellipse at 80% 0,#29272d55,transparent 50%),#0a0a0d;color:#e5ded3}
header{background:#111115d9;min-height:88px;height:auto;padding-top:16px;padding-bottom:16px;gap:26px}
.brand{display:inline-flex;align-items:center;gap:12px;background:none;color:#e3bb76;animation:none;filter:drop-shadow(0 0 8px #b8945730);flex-shrink:0}
.brand-mark{width:48px;height:48px;object-fit:contain}
.brand .brand-wordmark{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:700;letter-spacing:1px;color:#e3bb76;background:linear-gradient(110deg,#bb8a44,#ffe8b4,#bd8b45);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
h1,h2,.hero-copy h1,.detail-copy h2{font-family:Georgia,'Microsoft JhengHei',serif;color:#e5bd76}
.primary{border-radius:999px;background:linear-gradient(115deg,#ffe1a2,#d1a05b);box-shadow:0 6px 24px #b8945718;color:#20160e;padding:14px 25px;font-weight:700}
.secondary{border-radius:999px;background:#242428;border-color:#b8945750}
input,textarea,select{border-radius:16px;background:#202024;border-color:#b8945733}
#hero{margin:25px 5% 0;border-radius:30px;height:520px;box-shadow:0 20px 70px #0008}
#hero img[data-drama-poster]{opacity:.76;filter:saturate(.85)}
#hero:after{background:linear-gradient(90deg,#0a0a0dee,#0a0a0d1a 80%),linear-gradient(0deg,#0a0a0dee,transparent 80%)}
.hero-copy{padding:82px 5%}.hero-copy h1{color:#f1d39b;text-shadow:0 3px 18px #0009}
.artwork{border-radius:22px;background:linear-gradient(145deg,#3e3022,#202025);box-shadow:0 12px 30px #0004;border:1px solid #b8945720}
.artwork img{filter:saturate(.85);opacity:.95;transition:transform .25s}.card:hover .artwork img{transform:scale(1.035)}
.artwork strong{font-family:Georgia,'Microsoft JhengHei',serif;color:#ecd3a3}
.card h3{font-size:15px;color:#e5ded3}.membership{border-radius:26px;background:radial-gradient(ellipse at right,#53402b66,transparent),#202024;border:1px solid #b894574a;box-shadow:0 10px 45px #0003}
.membership>span{background:url("/static/brand/ornament-web.9e7cee06adc0.png") center/contain no-repeat;color:transparent;width:72px;height:72px;flex-shrink:0}
dialog,#workspace{background:linear-gradient(150deg,#25242a,#111115);border-radius:28px;border-color:#b8945745}
.detail-art{border-radius:24px;filter:saturate(.85)}.episode-link,.episodes>div{border-radius:15px!important;background:#242428!important;padding:15px 8px!important}
#products section,#orders section{background:linear-gradient(140deg,#25252a,#17171b);border:1px solid #b8945733;border-radius:24px;padding:24px;margin-bottom:18px}
.notice,.stage-note{border-radius:14px}.record{border-color:#b8945722}footer{color:#a1937f}
@media(max-width:600px){header{gap:12px;min-height:78px}.brand-mark{width:38px;height:38px}.brand .brand-wordmark{font-size:20px}#hero{height:400px;margin:18px 4% 0;border-radius:24px}.hero-copy{padding:48px 6%}.hero-copy h1{font-size:34px}.artwork{border-radius:18px}.membership{padding:22px}.membership>span{width:56px;height:56px}.detail-art{width:100%;max-height:300px;object-fit:cover;aspect-ratio:4/3}.detail-copy h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.artwork img{transition:none}}

.discovery-row{display:flex;gap:18px;overflow-x:auto;padding-bottom:18px}.discovery-row .card{flex:0 0 180px;min-width:0}.discovery-row h3{white-space:normal;overflow-wrap:anywhere}@media(max-width:600px){.discovery-row .card{flex-basis:140px}}

.cms-tools{display:flex;gap:20px;align-items:end;flex-wrap:wrap;margin:24px 0}.cms-tools label{display:grid;gap:8px}.cms-row small{display:block;margin:8px 0}.cms-row h3{overflow-wrap:anywhere}

/* Mobile Safari: stable rows and readable, non-shrinking navigation. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
header a{color:#c9b28c;text-decoration:none}
header>*{min-width:0}
@media(max-width:750px){
 header{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;min-height:0;gap:12px;padding:18px 5%;align-items:center;justify-content:stretch}
 header .brand{grid-column:1/-1;max-width:100%;min-width:0;gap:10px;justify-self:start}
 .brand-mark{width:36px;height:36px;flex:0 0 36px}
 .brand .brand-wordmark{font-size:clamp(17px,5vw,23px);letter-spacing:.6px;white-space:nowrap;line-height:1.25}
 header>div,header .header-tools,header nav{grid-column:1/-1;width:100%;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;font-size:12px}
 header nav{order:3;justify-content:flex-start;gap:12px 24px;padding-top:4px}
 header a:not(.brand),header button{white-space:nowrap;flex-shrink:0;line-height:1.5;font-size:12px}
 header>a:not(.brand){padding:8px 0}
 header select,header .header-tools select{font-size:16px;max-width:100%;padding:8px 10px;min-height:40px}
 header nav button{min-height:36px;padding:6px 0}
 main{min-width:0;max-width:100%}
 #workspace{padding:22px 18px;max-width:100%;overflow-wrap:anywhere}
 #workspace .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 24px}
 #workspace .tabs button{padding:10px 8px;min-height:44px;font-size:13px;line-height:1.4;text-align:center;white-space:normal;border:1px solid #b8945730;border-radius:10px}
 #workspace .tabs button.active{background:#b894571c;border-color:#b89457}
 #workspace input,#workspace select,#workspace textarea{font-size:16px;max-width:100%}
 aside h1{font-size:clamp(25px,7vw,32px);line-height:1.4;letter-spacing:0;overflow-wrap:break-word}
 #hero{height:auto;min-height:360px;margin:18px 4% 0}
 .hero-copy{padding:38px 6%;max-width:100%}
 .hero-copy h1{font-size:32px;line-height:1.3;margin:18px 0 14px;overflow-wrap:anywhere}
 .hero-copy p{font-size:13px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}
 .hero-copy p:first-of-type{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 .hero-copy .kicker{display:block;font-size:9px;line-height:1.7;letter-spacing:1.5px}
 .collection-heading{align-items:stretch}
 .collection-heading>*{min-width:0;max-width:100%}
 .card h3,.card small{overflow-wrap:anywhere}
 .membership{align-items:flex-start;gap:14px}
 .membership>div{min-width:0}
 dialog{max-width:calc(100% - 24px);max-height:85vh;max-height:85dvh}
}

/* Homepage recommendation must grow with its text instead of clipping actions. */
#hero{height:auto;min-height:520px;isolation:isolate}
#hero .hero-copy{width:100%;max-width:960px;padding:clamp(32px,4vw,64px) 5%;min-width:0}
#hero .hero-copy h1{font-size:clamp(32px,3.3vw,56px);line-height:1.3;overflow-wrap:anywhere;margin:22px 0 18px}
#hero .hero-copy p{max-width:620px;overflow-wrap:anywhere;line-height:1.8}
#hero .hero-copy p:first-of-type{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
#hero .hero-copy .primary{display:inline-block;max-width:100%;white-space:normal;height:auto;margin-top:8px}
#hero .hero-copy .kicker{display:block;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:600px){
 #hero{height:auto;min-height:0}
 #hero .hero-copy{padding:32px 6%}
 #hero .hero-copy h1{font-size:clamp(26px,7vw,34px);margin:16px 0}
 #hero .hero-copy p:first-of-type{-webkit-line-clamp:3}
}


/* Shared type scale, stable language control, and inline episode source editor. */
:root{--text-body:16px;--text-secondary:15px;--text-label:14px;--text-control:16px;--text-small:13px;--text-title:32px}
body{font-size:var(--text-body);line-height:1.6}
main p,main li{font-size:var(--text-secondary);line-height:1.75}
main label{font-size:var(--text-label);line-height:1.5}
main input,main textarea,main select{font-size:var(--text-control);line-height:1.4}
main button,.primary,.secondary{font-size:14px;line-height:1.4}
main h1{font-size:var(--text-title);line-height:1.3}
main h2{font-size:22px;line-height:1.35}
main h3{font-size:18px;line-height:1.4}
main small,.record small{font-size:var(--text-small);line-height:1.5}
header .site-language-slot{margin-left:auto;flex:0 0 auto;display:flex;align-items:center;order:99}
.site-language-slot select{min-height:42px;min-width:126px;padding:8px 12px;font-size:14px;line-height:1.3}
.site-language-slot .language-label{margin:0;display:block;width:auto}
.site-language-slot .language-label select{margin:0}
.cms-row-wrap{border-bottom:1px solid #b8945720}
.cms-row-wrap .cms-row{border-bottom:0}
.inline-media-panel{margin:0 20px 22px;padding:20px;background:#1b1a1e;border:1px solid #b8945735;border-radius:20px;min-width:0}
.inline-media-panel h3{margin:0 0 8px}
.inline-media-form{display:grid;grid-template-columns:minmax(120px,.5fr) minmax(120px,.5fr) minmax(240px,2fr) auto;gap:14px;align-items:end}
.inline-media-form label{display:block;margin:0}
.inline-media-form input,.inline-media-form select{display:block;width:100%;min-width:0;margin-top:8px}
.inline-media-form .inline-enabled{display:flex;align-items:center;gap:8px;white-space:nowrap}
.inline-media-form .inline-enabled input{width:18px;height:18px;margin:0;accent-color:#b89457}
.inline-media-form .inline-advanced{grid-column:1/-1;color:#d0ad6e;font-size:13px}
.inline-media-status{min-height:1.6em;margin:10px 0 0;color:#f1d39b}
@media(max-width:750px){
 body{font-size:16px}
 main p,main li{font-size:15px}
 main label{font-size:14px}
 main input,main textarea,main select{font-size:16px}
 main button,.primary,.secondary{font-size:14px}
 main h1{font-size:28px}
 main h2{font-size:21px}
 main h3{font-size:17px}
 header .site-language-slot{grid-column:1/-1;grid-row:auto;justify-self:end;align-self:center;margin-left:0}
 .site-language-slot select{min-height:42px;font-size:16px;max-width:min(46vw,180px)}
 .inline-media-panel{margin:0 0 18px;padding:16px;border-radius:16px}
 .inline-media-form{grid-template-columns:1fr 1fr}
 .inline-media-form .inline-video-url,.inline-media-form .inline-advanced{grid-column:1/-1}
 .inline-media-form .inline-enabled{grid-column:1/-1}
 .inline-media-form button{grid-column:1/-1;width:100%}
}
