/* Book detail, listening, and events share type and spacing. */
:root { --reader-ink:#291d37; --reader-muted:#695b77; --reader-line:#e9e2ed; --reader-plum:#50336b; }
.reader-cta { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 14px; border:1px solid transparent; border-radius:10px; background:#50336b; color:white; font:inherit; font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; }
.reader-cta-light { background:#fff; color:var(--reader-plum); border-color:#ddcde8; }
.reader-cta:focus-visible, .shelf-spine:focus-visible, .quiz-option:focus-visible { outline:3px solid #e19b4e; outline-offset:3px; }
.reader-cta:disabled { opacity:.75; cursor:default; }
#bookreviews-view .book-detail-top { display:grid; grid-template-columns:clamp(92px,25%,135px) minmax(0,1fr); align-items:center; gap:clamp(14px,4vw,26px); padding:clamp(16px,4vw,28px); margin:0; background:radial-gradient(ellipse at 4% 0%,#e6d7ef,transparent 69%),linear-gradient(125deg,#f1eaf3,#faf8f3); border:1px solid #ebe3ee; border-radius:20px; }
#bookreviews-view .book-detail-cover { width:100%; align-self:center; }
#bookreviews-view .book-detail-cover img:first-child { width:100%; height:auto; aspect-ratio:108/154; object-fit:contain; filter:drop-shadow(0 8px 11px #2c163840); }
#bookreviews-view .book-detail-meta h1 { margin:0 0 10px; font-size:clamp(20px,4.8vw,30px); line-height:1.34; color:var(--reader-ink); overflow-wrap:anywhere; }
#bookreviews-view .book-detail-meta p { color:var(--reader-muted); overflow-wrap:anywhere; }
#bookreviews-view .book-detail-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 0; }
#bookreviews-view .book-detail-actions > * { justify-content:center; text-align:center; min-width:0; padding:9px 4px; min-height:42px; border-radius:10px; }
#bookreviews-view .book-detail-actions [data-detail-discussion] { grid-column:1/-1; }
#bookreviews-view .book-section-links { display:flex; gap:6px 15px; flex-wrap:wrap; padding:7px 0; border-block:1px solid var(--reader-line); }
#bookreviews-view .book-section-links button { min-height:38px; font-size:13px; color:var(--reader-plum); }
#bookreviews-view .book-detail-description, #bookreviews-view .book-detail-review-section { scroll-margin-top:20px; }
#bookreviews-view .book-detail-description p { line-height:1.85; color:#483b50; }
#bookreviews-view .detail-review-card, #bookreviews-view .detail-audio-card { background:#fff; border:1px solid var(--reader-line); border-radius:14px; padding:clamp(14px,4vw,21px); box-shadow:0 5px 16px #26133708; }
#bookreviews-view .detail-review-card h2 { font-size:19px; line-height:1.4; margin:9px 0; }
#bookreviews-view .detail-review-expand summary { cursor:pointer; list-style:none; }
#bookreviews-view .detail-review-expand summary::-webkit-details-marker { display:none; }
#bookreviews-view .review-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:#51465a; line-height:1.7; overflow-wrap:anywhere; }
#bookreviews-view .review-open-label { display:inline-block; padding:9px 0; color:var(--reader-plum); font-weight:700; font-size:13px; }
#bookreviews-view .detail-review-expand[open] .review-excerpt { display:none; }
#bookreviews-view .detail-review-expand[open] .review-open-label { display:none; }
#bookreviews-view .detail-review-expand[open] summary::after { content:'리뷰 접기'; display:inline-block; padding:9px 0; color:var(--reader-plum); font-size:13px; }
.radio-masthead { position:relative; overflow:hidden; padding:27px 22px; border-radius:18px; background:radial-gradient(circle at 94% 100%,#7d5794,transparent 54%),#30213f; color:#fff; }
.radio-masthead::after { content:''; position:absolute; pointer-events:none; right:-40px; bottom:-110px; width:270px; height:270px; border-radius:50%; background:repeating-radial-gradient(circle,transparent 0 11px,#fff2 12px 13px); }
.radio-masthead .podcast-radio-title { color:white; margin:0; position:relative; z-index:1; }
.radio-masthead p { margin:6px 0 0; color:#ece0f5; position:relative; z-index:1; }
.radio-record { position:relative; z-index:1; display:inline-flex; padding:9px 13px; margin-top:12px; border-radius:8px; background:#f1e6fa; color:#392646; font-size:13px; font-weight:700; text-decoration:none; }
.radio-episode { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:12px; align-items:center; border-block-end:1px solid var(--reader-line); padding:12px 0; }
.radio-episode img { width:46px; aspect-ratio:1; object-fit:cover; border-radius:7px; }
.radio-episode a { color:var(--reader-ink); font-weight:750; text-decoration:none; overflow-wrap:anywhere; }
.radio-episode p { margin:4px 0 0; color:var(--reader-muted); font-size:12px; }
.radio-episode .podcast-play-action { padding:5px 9px; min-height:40px; margin:0; font-size:12px; }
.listen-resume-slot:empty { display:none; }
.listen-resume { display:flex; align-items:center; justify-content:space-between; gap:12px; background:linear-gradient(120deg,#f0e6f7,#fbf8f0); padding:14px 16px; border-radius:14px; margin:0 0 12px; }
.listen-resume small,.listen-resume strong { display:block; color:var(--reader-plum); }
.listen-resume p { margin:3px 0 0; font-size:12px; }
.reader-shelf,.reader-quiz { margin:0 0 16px; padding:clamp(16px,4vw,25px); border-radius:18px; position:relative; }
.reader-shelf { overflow:hidden; color:#fff; background:radial-gradient(ellipse at 85% 4%,#6c4a81,transparent 58%),linear-gradient(150deg,#342342,#241831); }
.reader-shelf h2,.reader-quiz h2 { font-size:clamp(21px,5vw,29px); margin:0 0 5px; letter-spacing:-.055em; }
.reader-shelf > p { margin:0; padding-right:50px; color:#e9dbf0; font-size:13px; }
.shelf-cat { position:absolute; top:12px; right:15px; width:clamp(50px,15%,80px); pointer-events:none; }
.shelf-stage { position:relative; min-height:105px; margin-top:16px; }
.shelf-books { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0 5px 8px; border-bottom:6px solid #85627e; border-radius:0 0 7px 7px; }
.shelf-spine { min-width:0; min-height:103px; border:1px solid #fff7; border-radius:5px 9px 5px 5px; padding:7px 5px 7px 12px; background:linear-gradient(90deg,#0002 0 8%,transparent 9%),#decae8; color:#372344; font:inherit; font-size:13px; font-weight:750; cursor:pointer; overflow-wrap:anywhere; }
.shelf-spine:nth-child(2) { background-color:#eedabd; color:#47301d; }
.shelf-spine:nth-child(3) { background-color:#d2ded8; color:#263e34; }
.shelf-spine:hover { transform:translateY(-4px); }
.shelf-result { display:grid; grid-template-columns:60px minmax(0,1fr); gap:12px; align-items:start; }
.shelf-result img { width:60px; height:88px; object-fit:contain; border-radius:3px; }
.shelf-result h3 { margin:0; color:white; font-size:17px; }
.shelf-result p { color:#f1e5f6; margin:4px 0 9px; font-size:13px; line-height:1.6; }
.shelf-revealing .shelf-result { animation:shelf-appear .33s ease-out both; }
.shelf-revealing .shelf-cat { animation:shelf-cat .35s ease-in-out; }
@keyframes shelf-appear { from { opacity:.2; transform:translateX(14px); } to { opacity:1; transform:none; } }
@keyframes shelf-cat { 50% { transform:translate(-9px,4px) rotate(-7deg); } }
.reader-event-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.reader-quiz { border:1px solid #eadfd5; color:var(--reader-ink); background:linear-gradient(135deg,#fbf7ef,#f6edf8); }
.reader-quiz > p { margin:5px 0 0; color:var(--reader-muted); }
.reader-quiz audio { width:100%; margin:8px 0; }
.reader-quiz summary { cursor:pointer; font-size:13px; }
.quiz-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:12px; }
.quiz-option { display:grid; justify-items:center; align-content:start; gap:6px; min-height:100px; padding:7px; border:1px solid #ddcde8; background:#fff; border-radius:9px; color:var(--reader-ink); font:inherit; font-size:12px; cursor:pointer; overflow-wrap:anywhere; }
.quiz-option img { width:100%; height:80px; object-fit:contain; }
.quiz-medal { color:var(--reader-plum); font-weight:700; font-size:13px; }
#events-view .event-detail-image { margin-top:15px; }
#events-view .event-dates { color:var(--reader-muted); font-size:13px; margin:6px 0 12px; }
#events-view .event-badge.upcoming { background:#f3e4ce; color:#61431e; }
#events-view .event-card { border-radius:12px; }
@media(max-width:380px) { #bookreviews-view .book-detail-top { padding:12px; gap:12px; } #bookreviews-view .book-detail-stores { gap:4px; } .radio-episode { gap:7px; } .radio-episode .podcast-play-action { font-size:11px; } }
@media(prefers-reduced-motion:reduce) { .shelf-revealing .shelf-result,.shelf-revealing .shelf-cat { animation:none; } .shelf-spine:hover { transform:none; } }
