* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font-family: Poppins, Arial, sans-serif; }
a { text-decoration: none; color: inherit; }
.layout { max-width: 1400px; margin: auto; display: flex; min-height: 100vh; }
main { flex: 1; padding: 32px; min-width: 0; }
.header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.search { position: relative; width: min(520px, 100%); }
.search i { position: absolute; left: 16px; top: 14px; color: var(--orange); }
.search input { width: 100%; border: 1px solid #f9dfd2; border-radius: 16px; padding: 12px 16px 12px 44px; background: #fff; outline: 0; box-shadow: 0 2px 8px #ff6b350d; }
.actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border: 1px solid #f9dfd2; border-radius: 12px; background: #fff; color: var(--muted); }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.crumbs span { color: var(--orange); }
.hero { background: #fff; border: 1px solid #f8e5dc; border-radius: 22px; padding: 28px; box-shadow: 0 5px 20px #ff6b350b; }
.book-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.cover { width: 210px; height: 290px; border-radius: 16px; object-fit: cover; background: linear-gradient(145deg, #ffe3d4, #fff8f3); box-shadow: 0 12px 28px #5b2c1a18; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
h1, h2, h3 { font-family: Lora, serif; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: 22px; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.7; }
.author-link { color: var(--orange); font-weight: 600; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn { border: 0; border-radius: 12px; padding: 11px 17px; font-size: 13px; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; }
.btn-light { background: #fff3ee; color: var(--orange); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 22px; }
.section { background: #fff; border: 1px solid #f8e5dc; border-radius: 20px; padding: 24px; margin-bottom: 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.section-title .count { font-size: 11px; color: var(--muted); }
.description { font-size: 14px; line-height: 1.8; white-space: pre-line; color: #4a5568; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.fact { padding: 11px 0; border-bottom: 1px solid #f7eee9; }
.fact dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #a0aec0; margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 13px; line-height: 1.5; }
.contents { font-size: 13px; line-height: 1.65; white-space: pre-line; color: #4a5568; }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-item { padding: 12px; background: #fff9f5; border-radius: 12px; }
.side-item b { font-size: 12px; }
.side-item small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.access-list { margin: 0; padding: 0; list-style: none; }
.access-list li { padding: 3px 0; font-size: 13px; }
.role-badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 9999px; background: #f7eee9; border: 1px solid #f0ded3; font-size: 10px; font-weight: 600; color: var(--muted); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { padding: 6px 9px; background: #fff8e7; border-radius: 9px; color: #806c39; font-size: 11px; }
.author-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: start; }
.author-photo { width: 150px; height: 180px; border-radius: 18px; object-fit: cover; background: #fff3ee; }
.thumb-placeholder { display: grid; place-items: center; color: #ff6b35; }
.meta-line { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.book-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.book-card { background: #fff; border: 1px solid #f8e5dc; border-radius: 16px; overflow: hidden; transition: .2s; }
.book-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #ff6b3518; }
.book-thumb { height: 180px; width: 100%; object-fit: cover; background: #fff3ee; }
.book-body { padding: 13px; }
.book-title { font-family: Lora, serif; font-weight: 700; font-size: 15px; line-height: 1.3; }
.book-sub { font-size: 11px; color: var(--muted); margin-top: 5px; }
@media (max-width: 1000px) { .content-grid { grid-template-columns: 1fr; } .book-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .layout { display: block; } .sidebar { display: none; } main { padding: 18px; } .header { margin-bottom: 18px; } .actions { display: none; } .book-head, .author-head { grid-template-columns: 1fr; } .cover { width: 150px; height: 210px; } .author-photo { width: 120px; height: 145px; } .book-list { grid-template-columns: 1fr 1fr; } .hero, .section { padding: 18px; } h1 { font-size: 28px; } }
