.filter-section {
  margin: 20px 0;
  padding: 2rem;
  background: #faf9f6;
  border-radius: 10px;
  border: 1px solid #e4e3dc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.filter-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.filter-section-title {
  margin: 0;
  font-size: 1.05rem;
  color: #18212c;
}

.filter-section-description {
  margin: 6px 0 0;
  color: #5b6470;
  font-size: 0.92rem;
  line-height: 1.5;
}

.filter-section-toggle {
  appearance: none;
  border: 1px solid #d8d2c4;
  background: #f3eee3;
  color: #3b4756;
  border-radius: 8px;
  padding: 9px 14px;
  min-height: 40px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-section-toggle:hover {
  background: #ebe4d5;
  border-color: #c9c0ae;
  color: #243040;
}

.filter-section-body {
  margin-top: 18px;
}

.filter-section.is-collapsed .filter-section-body {
  display: none;
}

.magazine-results-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.magazine-grid.magazine-grid--list {
  display: block;
}

.magazine-grid.magazine-grid--card {
  display: grid;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faf9f6;
  border: 1px solid #e4e3dc;
  padding: 6px;
  border-radius: 10px;
}

.view-toggle-btn {
  border: 0;
  background: transparent;
  color: #475569;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.view-toggle-btn.active {
  background: #1f2937;
  color: #fff;
}

.magazine-inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  background: #eee;
}

.magazine-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  width: 100%;
}

.magazine-list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #dedbd2;
  border-radius: 10px;
  background: #fffdf8;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.magazine-list-item:hover {
  transform: translateY(-1px);
  border-color: #cfc9bc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.magazine-list-cover .magazine-cover {
  width: 100%;
  min-height: 148px;
  max-height: 164px;
  object-fit: cover;
}

.magazine-list-body {
  min-width: 0;
}

.magazine-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.magazine-list-title {
  font-size: 1rem;
  font-weight: 800;
  color: #18212c;
  line-height: 1.45;
}

.magazine-list-name {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.92rem;
}

.magazine-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #475569;
  font-size: 0.92rem;
}

.magazine-list-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: #5b6470;
  font-size: 0.88rem;
}

.search-unavailable-badge-inline {
  position: static;
  flex-shrink: 0;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .filter-section {
    padding: 1rem;
  }

  .filter-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-section-toggle {
    width: 100%;
  }

  .magazine-results-toolbar {
    justify-content: stretch;
  }

  .view-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .view-toggle-btn {
    flex: 1;
    min-height: 42px;
  }

  .magazine-list-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .magazine-list-cover .magazine-cover {
    min-height: 120px;
    max-height: 132px;
  }

  .magazine-list-heading {
    flex-direction: column;
    gap: 10px;
  }
}
