/* --- GachaBytes Encyclopedia Modern UI --- */
.gbenc-browse-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Inter', sans-serif;
}

.gbenc-header {
  text-align: center;
  margin-bottom: 30px;
}

.gbenc-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gbenc-search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.gbenc-search-form input {
  width: 60%;
  padding: 10px 15px;
  border-radius: 8px 0 0 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.gbenc-search-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* Cards */
.gbenc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gbenc-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.gbenc-card:hover { transform: translateY(-3px); }

.gbenc-thumb {
  background-size: cover;
  background-position: center;
  height: 180px;
}

.gbenc-card-body {
  padding: 15px;
}

.gbenc-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.gbenc-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.gbenc-rating {
  font-weight: 600;
  color: #f39c12;
  font-size: 14px;
}

.gbenc-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 14px;
}

/* --- Detail page --- */
.gbenc-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.gbenc-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gbenc-hero img {
  width: 350px;
  border-radius: 16px;
  object-fit: cover;
}

.gbenc-hero-info {
  flex: 1;
}

.gbenc-hero-info h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gbenc-tags .tag {
  display: inline-block;
  background: #f2f2f2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-right: 6px;
}

.gbenc-summary {
  margin: 15px 0;
  color: #555;
  line-height: 1.6;
}

.gbenc-stats span {
  display: inline-block;
  margin-right: 15px;
  font-weight: 500;
}

.gbenc-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.gbenc-section {
  margin-top: 40px;
}

.gbenc-similar-grid {
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.gbenc-card.small {
  flex: 0 0 150px;
}

.gbenc-card.small .thumb {
  height: 100px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

/* GachaBytes Encyclopedia v0.4 */
.gbenc-wrap{max-width:1200px;margin:0 auto;padding:40px 20px;font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.gbenc-archive-header h1{font-size:28px;margin:0 0 6px}
.gbenc-archive-header p{opacity:.8;margin:0 0 16px}
.gbenc-search{display:flex;gap:8px;margin-bottom:20px}
.gbenc-search input{flex:1;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px}
.gbenc-search button{padding:10px 14px;border:none;background:#111;color:#fff;border-radius:8px;cursor:pointer}
.gbenc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.gbenc-card{display:block;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.06);text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.gbenc-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.10)}
.gbenc-thumb{height:170px;background:#f3f4f6;background-size:cover;background-position:center}
.gbenc-card-body{padding:12px 14px}
.gbenc-card-body h3{font-size:16px;margin:0 0 6px;line-height:1.3}
.gbenc-meta{font-size:12px;color:#6b7280;display:flex;gap:8px;margin-bottom:6px}
.gbenc-row{display:flex;justify-content:space-between;align-items:center}
.gbenc-rating{color:#f59e0b;font-weight:600}
.gbenc-price{color:#ef4444;font-weight:700}
.gbenc-empty{opacity:.7}
/* Single */
.gbenc-detail{max-width:1100px;margin:0 auto;padding:34px 20px;font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.gbenc-hero{display:grid;grid-template-columns:360px 1fr;gap:20px;align-items:end}
.gbenc-hero img{width:100%;border-radius:16px;object-fit:cover;box-shadow:0 10px 28px rgba(0,0,0,.1)}
.gbenc-hero-info h1{font-size:28px;margin:0 0 6px}
.gbenc-romaji{opacity:.7;margin-bottom:8px}
.gbenc-chips span{display:inline-block;margin-right:12px;opacity:.85}
.gbenc-stats span{display:inline-block;margin-right:14px;margin-top:8px}
.gbenc-actions .gbenc-btn{display:inline-block;margin-top:12px;margin-right:8px;padding:10px 14px;border-radius:10px;background:#111;color:#fff;text-decoration:none}
.gbenc-actions .gbenc-btn.light{background:#e5e7eb;color:#111}
.gbenc-about{margin-top:28px}
.gbenc-about h2,.gbenc-gallery h2,.gbenc-similar h2{font-size:20px;margin:20px 0 10px}
.gbenc-content{background:#f9fafb;border:1px solid #f3f4f6;border-radius:12px;padding:14px}
.gbenc-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.gbenc-similar-grid{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px}
.gbenc-card.small{flex:0 0 160px}
.gbenc-card.small .thumb{height:100px;background-size:cover;background-position:center}
@media(max-width:860px){.gbenc-hero{grid-template-columns:1fr}}
