body{margin:0;font-family:'Gowun Dodum','Malgun Gothic',sans-serif;color:#33293b;background:#f6f3f8}
a{color:inherit;text-decoration:none}
a:hover{color:#6a3f80}
h1,h2{margin:0;font-family:'Gowun Batang',serif;font-weight:700}
button{font-family:inherit}
[hidden]{display:none!important}
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.sr{position:absolute;left:-9999px}

/* 머리글 */
.head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding:24px 0}
.head--home{justify-content:space-between;gap:10px 28px}
.head-top{display:contents}
.logo{font-family:'Gowun Batang',serif;font-size:26px;font-weight:700;color:#6a3f80}
.head-note{order:3;font-size:15px;color:#55495e}
.nav{display:flex;flex-wrap:wrap;gap:0 22px;font-size:16px;color:#55495e}
.head--home .nav{gap:0 26px}
.nav a{padding:12px 0}
.search{flex:1 1 320px;min-width:0;display:flex;gap:10px}
.search--hero{flex:0 1 auto;max-width:760px;flex-wrap:wrap}
.search input{flex:1 1 auto;min-width:0;height:50px;box-sizing:border-box;border:0;border-radius:25px;padding:0 22px;font-size:16px;font-family:inherit;background:#fff;color:#33293b;box-shadow:0 6px 18px rgba(106,63,128,.08)}
.search--hero input{flex:1 1 280px;height:56px;border-radius:28px;padding:0 26px;font-size:17px;background:#f1ebf5;box-shadow:none}
.btn{display:inline-flex;align-items:center;height:50px;padding:0 26px;border:0;border-radius:25px;background:#6a3f80;color:#fff;font-size:16px;cursor:pointer}
.btn:hover{color:#fff}
.search--hero .btn{height:56px;padding:0 32px;border-radius:28px;font-size:17px}
.head-icon{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:22px;background:#fff;box-shadow:0 6px 18px rgba(106,63,128,.08)}

/* 공통 덩어리 */
main{display:flex;flex-direction:column}
.main--home{gap:56px}
.main--list{gap:36px}
.main--detail{gap:28px}
.main--group{gap:28px}
.panel{background:#fff;border-radius:28px;box-shadow:0 20px 50px rgba(106,63,128,.10)}
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 20px}
.sec-head h2{font-size:28px}
.sec-link{font-size:16px;color:#6a3f80;padding:12px 0}
.ad{display:flex;align-items:center;justify-content:center;min-height:110px;border:1px dashed #b9a6c4;border-radius:18px;font-size:14px;color:#6b5f73;overflow:hidden}
.ad ins{width:100%}
.ad-live{border:0;border-radius:0;min-height:0;display:block}

/* 칩 */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:14px;font-size:16px;color:#33293b;cursor:pointer}
.chip span+span{font-size:13px}
.chip--genre{padding:0 18px;border-radius:22px;background:#f1ebf5}
.t0{background:#f1ebf5}
.t1{background:#e6f4ef}
.t2{background:#fbe9ee}
.chip.on{background:#6a3f80;color:#fff}
.chip.on:hover{color:#fff}
.chip--add{gap:6px;padding:0 14px;border:1px dashed #9a82a8;background:transparent;font-size:15px}
.chip-x{margin-left:0}
.kw-extra{display:none}
.show-all .kw-extra{display:inline-flex}
.tile{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:0 24px;border-radius:20px}
.tile span:first-child{font-family:'Gowun Batang',serif;font-size:20px;font-weight:700}
.tile span+span{font-size:15px;color:#55495e}
.g0{background:#ece4f2}
.g1{background:#dff1ea}
.g2{background:#f8e2e9}
.g3{background:#fbf0d2}

/* 홈 */
.hero{padding:48px 48px 40px;display:flex;flex-direction:column;gap:22px}
.hero h1{font-size:42px;line-height:1.35;letter-spacing:-.02em;text-wrap:balance;max-width:760px}
.hero p{margin:0;font-size:17px;line-height:1.8;color:#55495e;max-width:720px}
.hero-tags{display:flex;flex-direction:column;gap:12px;padding-top:10px;border-top:1px solid #e9e2ee;margin-top:6px}
.hero-tags .sec-head{padding-top:12px;justify-content:space-between}
.hero-tags h2{font-size:18px}
.hero-tags .sec-link{font-size:15px;padding:10px 0}
.block{display:flex;flex-direction:column;gap:22px}
.top-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:24px 20px}
.tcard{position:relative;display:flex;flex-direction:column;gap:10px;padding:12px 12px 16px;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(106,63,128,.08)}
.rank{position:absolute;top:20px;left:20px;min-width:30px;height:30px;box-sizing:border-box;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:15px;background:#6a3f80;color:#fff;font-size:14px}
.tcard img,.rcard img,.mini img{display:block;object-fit:cover;background:#f1ebf5}
.tcard img{width:100%;height:auto;aspect-ratio:2/3;border-radius:12px}
.tcard .gn{font-size:13px;color:#6a3f80}
.tcard strong{font-size:15px;line-height:1.55;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px}
.tcard .pills{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;height:54px;overflow:hidden}
.pill{display:inline-flex;align-items:center;height:24px;box-sizing:border-box;padding:0 10px;border-radius:12px;background:#f1ebf5;font-size:12px;white-space:nowrap}
.grid-genre{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:16px}

/* 목록·결과 카드 */
.filter{padding:30px 34px;display:flex;flex-direction:column;gap:22px}
.f-block{display:flex;flex-direction:column;gap:12px}
.f-block h2{font-size:18px}
.f-block .sec-head{justify-content:space-between;align-items:baseline;gap:6px 20px}
.link-btn{min-height:44px;padding:10px 0;border:0;background:none;font-size:15px;color:#6a3f80;cursor:pointer}
.f-picked{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;border-top:1px solid #e9e2ee;padding-top:20px}
.f-picked[hidden]{display:none}
.f-picked .lbl{font-size:15px;color:#55495e}
.f-picked .lbl2{padding-left:10px}
.res{display:flex;flex-direction:column;gap:24px}
.res-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 20px}
.res-head h1{font-size:32px;letter-spacing:-.02em}
.sort{display:flex;align-items:center;gap:8px;font-size:15px}
.sort label{color:#55495e}
.sort select{height:44px;padding:0 14px;border:0;border-radius:22px;background:#fff;font-family:inherit;font-size:15px;color:#33293b;box-shadow:0 6px 18px rgba(106,63,128,.08)}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:24px}
.rcard{display:grid;grid-template-columns:124px 1fr;gap:18px;padding:16px;border-radius:22px;background:#fff;box-shadow:0 10px 26px rgba(106,63,128,.08)}
.rcard img{width:124px;height:auto;aspect-ratio:2/3;border-radius:12px}
.rcard .body{display:flex;flex-direction:column;gap:8px;min-width:0}
.rcard .meta{font-size:13px;color:#6a3f80}
.rcard strong{font-family:'Gowun Batang',serif;font-size:18px;line-height:1.45;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rcard .by{font-size:14px;color:#6b5f73}
.rcard .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:6px}
.tag{padding:4px 11px;border-radius:999px;font-size:13px;background:#f1ebf5;color:#33293b}
.tag.on{background:#6a3f80;color:#fff}
.more{align-self:center;display:inline-flex;align-items:center;min-height:52px;padding:0 34px;border:0;border-radius:26px;background:#fff;color:#6a3f80;font-size:16px;cursor:pointer;box-shadow:0 10px 26px rgba(106,63,128,.10)}
.empty{margin:0;padding:30px 0;text-align:center;color:#55495e}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.pg{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;box-sizing:border-box;padding:0 16px;border-radius:22px;background:#fff;color:#6a3f80;font-size:16px;box-shadow:0 6px 18px rgba(106,63,128,.08)}
.pg.cur{background:#6a3f80;color:#fff}
.pg.cur:hover{color:#fff}
.group-head{display:flex;flex-direction:column;gap:8px}
.group-head h1{font-size:32px;letter-spacing:-.02em}
.group-head p{margin:0;font-size:15px;color:#55495e}

/* 상세 */
.crumb{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:#55495e;padding:0 0 18px}
.crumb .cur{color:#33293b}
.d-main{padding:40px;display:flex;flex-wrap:wrap;gap:36px 44px}
.d-cover{flex:0 0 300px;width:300px;max-width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:16px;box-shadow:0 18px 36px rgba(51,41,59,.20)}
.d-info{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:16px}
.d-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gchip{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:22px;background:#e6f4ef;font-size:14px;color:#24413a}
.gchip--jp{background:#fbe9ee;color:#5a2a3a}
.d-info h1{font-size:44px;line-height:1.25;letter-spacing:-.02em}
.orig{margin:0;font-size:16px;line-height:1.6;color:#6b5f73}
.dl{margin:6px 0 0;display:grid;grid-template-columns:72px 1fr;font-size:16px;border-top:1px solid #e9e2ee}
.dl dt{padding:12px 0;color:#6b5f73;border-bottom:1px solid #e9e2ee}
.dl dd{margin:0;padding:12px 0;border-bottom:1px solid #e9e2ee}
.dl dd a{border-bottom:1px solid #b9a6c4}
.kw{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.kw h2{font-family:'Gowun Dodum','Malgun Gothic',sans-serif;font-size:15px;font-weight:400;color:#6b5f73}
.d-row{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.card{background:#fff;border-radius:28px;box-shadow:0 10px 26px rgba(106,63,128,.08)}
.syn{flex:999 1 520px;min-width:0;padding:34px 40px;display:flex;flex-direction:column;gap:16px}
.syn h2,.buy h2{font-size:22px}
.syn p{margin:0;font-family:'Gowun Batang',serif;font-size:19px;line-height:2;text-wrap:pretty}
.syn p.note{font-family:inherit;font-size:14px;line-height:inherit;color:#6b5f73}
.buy{flex:1 1 320px;min-width:0;padding:30px 30px 32px;display:flex;flex-direction:column;gap:14px}
.out{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px;border-radius:18px;font-size:16px}
.out span span{display:block}
.out>span{display:flex;flex-direction:column;gap:2px}
.out>span span:last-child{font-size:12px}
.out--aladdin{background:#6a3f80;color:#fff}
.out--ridi{background:#f1ebf5;color:#33293b}
.out--serial{background:#e6f4ef;color:#24413a}
.out--aladdin:hover{color:#fff}
.out--ridi:hover{color:#33293b}
.out--serial:hover{color:#24413a}
.buy p{margin:0;font-size:13px;line-height:1.6;color:#6b5f73}
.rel{display:flex;flex-direction:column;gap:20px}
.rel h2{font-size:26px}
.rel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:20px}
.mini{display:grid;grid-template-columns:84px 1fr;gap:14px;padding:14px;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(106,63,128,.08)}
.mini img{width:84px;height:auto;aspect-ratio:2/3;border-radius:10px}
.mini .body{display:flex;flex-direction:column;gap:8px;min-width:0}
.mini strong{font-size:15px;line-height:1.5;font-weight:400;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mini .same{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}
.same span{padding:3px 9px;border-radius:999px;background:#6a3f80;color:#fff;font-size:12px}

/* 바닥글 */
.foot{margin-top:56px;padding:24px 0 34px;border-top:1px solid #ddd4e3;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px;color:#55495e}
.main--home+.foot{margin-top:60px}
.notfound{padding:48px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.notfound h1{font-size:36px}
.notfound p{margin:0;font-size:17px;line-height:1.8;color:#55495e}

/* 휴대폰 */
@media (max-width:640px){
.wrap{padding:0 12px}
.head{flex-direction:column;align-items:stretch;gap:12px;padding:16px 4px 14px}
.head-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{font-size:22px}
.head-note{order:0;font-size:13px}
.head--detail{padding:14px 4px}
.head--detail .search,.head--detail .nav{display:none}
.head--detail .head-icon{display:inline-flex}
.head--home{gap:6px}
.head--home .nav{gap:0 20px;font-size:15px}
.search{flex:0 0 auto;gap:8px}
.search input{height:48px;border-radius:24px;padding:0 18px}
.btn{height:48px;padding:0 20px;border-radius:24px}
.main--list{gap:0}
.main--list .res{padding-top:26px;gap:16px}
.main--detail{gap:16px}
.main--group{gap:16px}
.panel{border-radius:24px}
.hero{padding:28px 20px 24px;gap:16px;box-shadow:0 16px 40px rgba(106,63,128,.10)}
.hero h1{font-size:28px}
.hero p{font-size:15px}
.search--hero{flex:1 1 auto;gap:8px}
.search--hero input{height:48px;border-radius:24px;padding:0 18px;font-size:16px}
.search--hero .btn{height:48px;padding:0 20px;border-radius:24px;font-size:16px}
.sec-head h2{font-size:22px}
.main--home{gap:36px}
.tile{padding:0 20px}
.top-grid{gap:14px 12px}
.filter{border-radius:22px;box-shadow:0 12px 30px rgba(106,63,128,.10);padding:16px 0 16px 16px;gap:12px}
.f-block{gap:8px}
.f-block h2{font-size:15px}
.f-block .sec-head{padding-right:16px}
.link-btn{font-size:14px;padding:8px 0;min-height:44px}
.f-block .chips{flex-wrap:nowrap;overflow-x:auto;padding:0 16px 4px 0}
.f-block .chips .chip{flex:0 0 auto;white-space:nowrap;font-size:15px;padding:0 14px}
.f-block .chips .chip--genre{padding:0 16px;border-radius:22px}
.f-block .chips .chip span+span{font-size:12px}
.f-block .chips.show-all{flex-wrap:wrap;overflow-x:visible}
.f-picked{gap:8px;padding:12px 16px 0 0}
.f-picked .lbl{display:none}
.chip--add{padding:0 12px;gap:5px}
.res-head{align-items:flex-end;gap:12px;padding:0 4px}
.res-head h1{font-size:22px;line-height:1.35}
.sort label{display:none}
.sort select{padding:0 12px;font-size:14px}
.rgrid{grid-template-columns:1fr;gap:16px}
.rcard{grid-template-columns:104px 1fr;gap:14px;padding:12px;border-radius:20px}
.rcard img{width:104px;border-radius:10px}
.rcard .body{gap:6px}
.rcard .meta{font-size:12px}
.rcard strong{font-size:16px}
.rcard .by{font-size:13px}
.rcard .tags{gap:5px;padding-top:4px}
.tag{padding:3px 9px;font-size:12px}
.more{align-self:stretch;justify-content:center}
.ad{min-height:100px;font-size:13px}
.crumb{gap:6px;font-size:13px;padding:0 4px 12px}
.d-main{padding:24px 20px;gap:14px;box-shadow:0 16px 40px rgba(106,63,128,.10)}
.d-cover{flex:0 0 auto;align-self:center;width:62%;border-radius:14px;box-shadow:0 14px 30px rgba(51,41,59,.20)}
.d-info{flex:1 1 100%;gap:14px}
.gchip{min-height:44px;padding:0 13px;border-radius:22px;font-size:13px;margin-top:6px}
.d-info h1{font-size:30px;line-height:1.3}
.orig{font-size:14px}
.dl{grid-template-columns:64px 1fr;font-size:15px;margin-top:4px}
.dl dt,.dl dd{padding:11px 0}
.kw h2{display:none}
.kw{padding-top:2px}
.kw .chip{padding:0 14px;gap:6px;font-size:15px}
.kw .chip span+span{font-size:12px}
.d-row{gap:16px}
.card{border-radius:24px}
.syn{flex:1 1 100%;padding:24px 20px;gap:12px}
.syn h2,.buy h2{font-size:19px}
.syn p{font-size:17px;line-height:1.95}
.syn p.note{font-size:13px}
.buy{flex:1 1 100%;padding:22px 20px 24px;gap:12px}
.out{padding:0 18px}
.rel{gap:14px;padding-top:6px}
.rel h2{font-size:20px;padding:0 4px}
.rel-grid{grid-template-columns:1fr;gap:14px}
.mini{grid-template-columns:72px 1fr;padding:12px;border-radius:18px}
.mini img{width:72px;border-radius:8px}
.mini strong{-webkit-line-clamp:2}
.group-head h1{font-size:24px}
.foot{margin:36px 4px 0;padding:20px 0 28px;flex-direction:column;gap:10px;font-size:13px}
.main--home+.foot{margin-top:40px}
.notfound{padding:28px 20px}
.notfound h1{font-size:28px}
}
