/* media review */

.media-section { margin-bottom: 0.6em; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px 6px 2px;
  cursor: pointer;
  user-select: none;
  background-color: #1e0f00;
}
.section-header::after { content: '+'; font-weight: bold; margin-top: 32px; margin-bottom: 16px; }
.media-section.active .section-header::after { content: '-'; }

.section-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.media-section.active .section-content-wrapper {
  max-height: 5000px;
  transition: max-height 0.5s ease-in;
}

.section-stats { font-size: 1.2em; color: #bc9b00; font-weight: normal; }

.review-grid {
  margin-top: 6px;
  padding: 6px 0px;
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: repeat(auto-fill, 7em);
  gap: 0.6em;
  border-radius: 5px;
  background-color: #0f0800;
}

.controls { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.2em; 
  padding: 0px;
  align-items: center;
}

.sort-select, .filter-select {
  padding: 6px 6px 6px 6px;
  border-radius: 5px;
  border: 1px solid #e8e6e4;
  background-color: #0f0800;
  color: #e8e6e4;
  font-size: 1em;
  cursor: pointer;
  width: auto;
}

.reset-btn {
  padding: 6px 6px 6px 6px;
  border-radius: 5px;
  border: 1px solid #e8e6e4;
  background-color: #0f0800;
  color: #bc9b00;
  font-size: 1em;
  cursor: pointer;
  margin-left: auto;
}
.reset-btn:hover {
  background-color: #e8e6e4;
  color: #0f0800;
}

.review-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.12s; }
.review-card:hover { transform: scale(1.012); }

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  min-height: 7em;
  border: 2px solid transparent;
  border-radius: 5px;
}
.poster.recommended { border-color: #218700; }
.poster.mixed-recommendation { border-color: #8f5a00; }
.poster.not-recommended { border-color: #8f0800; }

.title-year { padding: 2px 6px; text-align: center; font-size: 0.8em; font-weight: bold; line-height: 1.6; word-wrap: break-word; }
.star-rating { padding: 4px 6px; text-align: center; font-size: 0.8em; letter-spacing: 0.2em; color: #bc9b00; line-height: 1; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #1a1208;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  border: 1px solid #e8e6e4;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.modal-title { color: #e8e6e4; margin-bottom: 15px; font-size: 1.2em; }
.author-list { display: flex; flex-direction: column; gap: 10px; }
.author-btn {
  background: #0f0800;
  color: #e8e6e4;
  border: 1px solid #e8e6e4;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.author-btn:hover { background: #e8e6e4; color: #0f0800; }