* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.mkz-topbar { position: sticky; top: 0; z-index: 100; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 16px 0; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mkz-topbar .mkz-brand { font-size: 22px; color: #fff; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,.2); }

.mkz-wrap { max-width: 1400px; margin: 0 auto; padding: 12px; }

.mkz-finder { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mkz-finder .mkz-querybox { display: flex; gap: 10px; }
.mkz-finder .mkz-querybox .mkz-input { flex: 1; height: 44px; padding: 0 16px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 15px; outline: none; transition: border-color .2s; }
.mkz-finder .mkz-querybox .mkz-input:focus { border-color: #667eea; }
.mkz-finder .mkz-querybox .mkz-go { height: 44px; padding: 0 28px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.mkz-finder .mkz-querybox .mkz-go:active { opacity: .8; }

.mkz-shelf { display: grid; gap: 12px; margin-bottom: 24px; }

.mkz-book { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.mkz-book:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.mkz-book .mkz-jump { display: block; }
.mkz-book .mkz-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #e8e8e8; }
.mkz-book .mkz-detail { padding: 10px 12px 12px; }
.mkz-book .mkz-detail .mkz-name { font-size: 15px; font-weight: 700; color: #222; line-height: 1.4; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkz-book .mkz-detail .mkz-when { font-size: 12px; color: #999; margin-bottom: 6px; }
.mkz-book .mkz-detail .mkz-brief { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mkz-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 24px; }
.mkz-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: #fff; border-radius: 8px; font-size: 14px; color: #667eea; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: all .2s; }
.mkz-pager a:hover { background: #667eea; color: #fff; }
.mkz-pager a.mkz-now { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.mkz-pager .mkz-gap { color: #999; font-size: 14px; }

.mkz-ground { background: #fff; padding: 20px 0; text-align: center; border-top: 1px solid #e8e8e8; }
.mkz-ground a { color: #667eea; font-size: 14px; margin: 0 16px; }
.mkz-ground a:hover { text-decoration: underline; }

@media(max-width: 767px) {
    .mkz-shelf { grid-template-columns: repeat(3, 1fr); }
    .mkz-topbar .mkz-brand { font-size: 20px; }
    .mkz-finder { padding: 12px; }
    .mkz-finder .mkz-querybox .mkz-input { height: 40px; font-size: 14px; }
    .mkz-finder .mkz-querybox .mkz-go { height: 40px; padding: 0 20px; font-size: 14px; }
}
@media(min-width: 768px) and (max-width: 1199px) {
    .mkz-shelf { grid-template-columns: repeat(4, 1fr); }
}
@media(min-width: 1200px) {
    .mkz-shelf { grid-template-columns: repeat(6, 1fr); }
}
.mkz-ctrl { text-align: center;margin-top: 20px;margin-bottom: 20px; }
.mkz-start { display: inline-block; padding: 12px 40px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 8px; font-size: 16px; font-weight: 600; box-shadow: 0 4px 12px rgba(102,126,234,.4); transition: transform .2s, box-shadow .2s; }
.mkz-start:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102,126,234,.5); }
.mkz-start:active { transform: translateY(0); }