[hidden] {
  display: none !important;
}

.bv-main {
  padding: 28px 20px 56px;
}

.bv-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.bv-state {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  gap: 12px;
}

.bv-state-error h1 {
  margin: 0;
  font-size: 34px;
  color: var(--text);
}

.bv-state-error p {
  margin: 0;
  font-size: 14px;
}

.bv-spinner {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--red);
  animation: bv-spin 0.8s linear infinite;
}

@keyframes bv-spin {
  to {
    transform: rotate(360deg);
  }
}

.bv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bv-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.bv-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.06;
}

.bv-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.bv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f6f0ee;
  color: #6b4d4d;
}

.bv-badge.is-draft {
  background: #fff3cd;
  color: #856404;
}

.bv-badge.is-published {
  background: #ecf8ef;
  color: #2e7d32;
}

.bv-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.bv-cover-panel,
.bv-info-panel,
.bv-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.bv-cover-panel {
  padding: 22px;
}

.bv-cover-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f0ee, #efe7e5);
  display: grid;
  place-items: center;
}

.bv-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bv-cover-fallback {
  font-size: 72px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.28);
}

.bv-info-panel {
  padding: 22px;
}

.bv-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bv-info-item {
  background: #faf8f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.bv-info-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.bv-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.bv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.bv-btn {
  border: none;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bv-btn:hover {
  transform: translateY(-1px);
}

.bv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bv-btn-primary {
  background: var(--red);
  color: #fff;
}

.bv-btn-secondary {
  background: #f3f3f3;
  color: var(--text);
}

.bv-btn-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.bv-btn-danger {
  background: #fff4f4;
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.18);
}

.bv-notice {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff8e6;
  color: #8a6d3b;
  font-size: 13px;
  line-height: 1.6;
}

.bv-chip-block {
  margin-top: 18px;
}

.bv-chip-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bv-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6f0ee;
  color: #6b4d4d;
  font-size: 12px;
  font-weight: 600;
}

.bv-chip-muted {
  background: #f3f3f3;
  color: var(--muted);
}

.bv-section {
  padding: 22px;
  margin-bottom: 22px;
}

.bv-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.bv-section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.bv-section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bv-description {
  margin: 0;
  color: #444;
  line-height: 1.8;
  font-size: 15px;
  white-space: pre-wrap;
}

.bv-empty {
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #fcfcfc;
}

.bv-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bv-chapter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.bv-chapter-main {
  min-width: 0;
}

.bv-chapter-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.bv-chapter-number {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.bv-chapter-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.bv-chapter-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.bv-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f6f0ee;
  color: #6b4d4d;
}

.bv-pill-preview {
  background: #eaf6ff;
  color: #1769aa;
}

.bv-rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bv-stars {
  display: flex;
  gap: 2px;
}

.bv-star {
  font-size: 16px;
  line-height: 1;
  color: #d0d0d0;
}

.bv-star.is-filled {
  color: #f4a623;
}

.bv-rating-average {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bv-rating-count {
  font-size: 13px;
  color: var(--muted);
}

.bv-my-review-card {
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: #fcfcfc;
}

.bv-my-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bv-my-review-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bv-my-review-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.bv-review-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bv-review-login-copy {
  max-width: 560px;
}

.bv-review-login-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.bv-review-login-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.bv-review-login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bv-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bv-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bv-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bv-input-stars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bv-input-star {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #d0d0d0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.bv-input-star:hover {
  transform: translateY(-1px);
  color: #f4a623;
}

.bv-input-star.is-active {
  color: #f4a623;
  border-color: rgba(244, 166, 35, 0.35);
  background: #fffaf0;
}

.bv-textarea {
  width: 100%;
  min-height: 130px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  padding: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  background: #fff;
}

.bv-textarea:focus {
  border-color: rgba(240, 84, 84, 0.45);
  box-shadow: 0 0 0 4px rgba(240, 84, 84, 0.08);
}

.bv-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bv-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bv-review-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.bv-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bv-review-user {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.bv-review-date {
  font-size: 12px;
  color: var(--muted);
}

.bv-review-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .bv-hero {
    grid-template-columns: 1fr;
  }

  .bv-cover-panel {
    max-width: 360px;
  }

  .bv-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bv-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bv-main {
    padding: 20px 14px 40px;
  }

  .bv-header,
  .bv-section-head,
  .bv-chapter-card,
  .bv-review-login,
  .bv-review-head {
    flex-direction: column;
    align-items: stretch;
  }

  .bv-info-grid {
    grid-template-columns: 1fr;
  }

  .bv-actions,
  .bv-form-actions,
  .bv-review-login-actions {
    flex-direction: column;
  }

  .bv-btn {
    width: 100%;
  }

  .bv-section,
  .bv-info-panel,
  .bv-cover-panel,
  .bv-my-review-card {
    padding: 16px;
    border-radius: 18px;
  }

  .bv-input-stars {
    gap: 6px;
  }

  .bv-input-star {
    width: 42px;
    height: 42px;
  }
}

.bv-info-link {
  color: var(--red);
  text-decoration: none;
}

.bv-info-link:hover {
  text-decoration: underline;
}