body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  background: #1d3557;
  color: #111;
}

.page-shell {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 14px 24px;
}

.site-header,
.panel,
.hero-box,
.review-card,
.site-footer {
  border: 3px solid #000;
  background: #f8f3e8;
  box-shadow: 5px 5px 0 #000;
}

.site-header {
  background: linear-gradient(to bottom, #69a7ff, #2e63b8);
  margin-bottom: 18px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo-block h1 {
  margin: 0;
  color: #fff200;
  text-shadow: 2px 2px 0 #000;
}

.tagline {
  color: white;
  margin-top: 6px;
}

.header-badge {
  background: #000;
  color: #00ff66;
  border: 2px solid #fff;
  padding: 10px 14px;
  font-weight: bold;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  border-top: 3px solid #000;
  background: #f7c948;
}

.top-nav a {
  padding: 12px 16px;
  border-right: 2px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 18px;
}

.panel-title {
  margin: 0;
  padding: 10px 12px;
  background: #ff5fa2;
  color: #fff;
  border-bottom: 3px solid #000;
}

.panel,
.hero-box,
.review-card {
  padding: 14px;
}

.sidebar-list {
  padding-left: 20px;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-pill,
.meta-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid #000;
  background: #ffb3d1;
  font-weight: bold;
}

.site-footer {
  margin-top: 22px;
  padding: 12px;
  text-align: center;
  background: #f7c948;
  font-weight: bold;
}

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

.post-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 2px solid #000;
}

.rating-pill {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid #000;
  background: #fff200;
  font-weight: bold;
  min-width: 56px;
  text-align: center;
}

.logo-link {
  color: #fff200;
  text-decoration: none;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.single-post-body {
  padding: 16px;
}

.single-post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 3px solid #000;
  margin-bottom: 14px;
}

.post-excerpt {
  font-style: italic;
  font-weight: bold;
}

.empty-state {
  padding: 14px;
}

.quiz-question-block {
  margin-bottom: 24px;
  padding: 14px;
  border: 2px solid #000;
  background: #fffdf7;
}

.quiz-answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: normal;
  text-transform: none;
}

.quiz-answer-option input {
  width: auto;
}

.comments-panel {
  padding-bottom: 16px;
}

.comments-list {
  padding: 14px;
}

.comment-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid #000;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.avatar-image-wrap {
  width: 56px;
  height: 56px;
  border: 2px solid #000;
  background: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.comment-content p {
  margin-top: 0;
}

.comment-name {
  margin-bottom: 6px;
}

.comment-date {
  font-size: 0.8rem;
  color: #555;
}

.post-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.spoiler-block {
  margin: 18px 0;
  border: 2px solid #000;
  background: #ffe6f0;
  padding: 12px;
}

.spoiler-toggle {
  padding: 10px 14px;
  border: 2px solid #000;
  background: #ff5fa2;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.spoiler-toggle:hover {
  background: #ff85b7;
}

.spoiler-content {
  margin-top: 12px;
  padding: 12px;
  border: 2px dashed #000;
  background: #fff;
}

.field-help {
  margin: 6px 0 8px;
  font-size: 0.85rem;
  color: #333;
}

.admin-actions {
  margin-top: 12px;
  font-weight: bold;
}

.admin-preview-image {
  width: 100%;
  max-width: 320px;
  border: 2px solid #000;
  display: block;
}

.delete-form {
  margin-top: 16px;
}

.delete-btn {
  padding: 12px 18px;
  border: 2px solid #000;
  background: #ff6b6b;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.delete-btn:hover {
  background: #ff8d8d;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}

.stat-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.stat-card p {
  margin: 0;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions .logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.logout-btn {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.header-actions a[href="/"] {
  background: #111;
  color: #fff;
}