/* Detail member — comments & browse (no favorite UI) — game_tgn_0008 */

.g08-comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.g08-comments-head {
  margin: 0 0 1rem;
  font-family: var(--font-pixel, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.06em;
}

.g08-comment-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.g08-comment-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.g08-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 1px solid rgba(0, 255, 255, 0.35);
}

.g08-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g08-comment-author {
  font-weight: 700;
  font-size: 0.9375rem;
}

.g08-rating-input {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.g08-rating-star {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.25);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.g08-rating-star.active,
.g08-rating-star:hover {
  color: #fde047;
}

.g08-comment-textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
}

.g08-comment-textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.g08-btn-post-comment {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #cc00cc);
  border: 1px solid rgba(255, 0, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.g08-btn-post-comment:hover {
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.3);
}

.g08-comment-login-prompt {
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.g08-comment-login-prompt[hidden] {
  display: none !important;
}

.g08-comment-login-prompt__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 8px;
  line-height: 1;
}

.g08-comment-login-prompt__title {
  margin: 0 0 6px;
  font-family: var(--font-pixel, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.g08-comment-login-prompt__text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.g08-comment-login-prompt__btn {
  min-width: 140px;
}

.g08-comment-login-prompt__footer {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.g08-comment-login-prompt__footer a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.g08-comment-form[hidden] {
  display: none !important;
}

.g08-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.g08-comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.g08-comment-item:first-child { border-top: none; }

.g08-comment-item--folded {
  display: none;
}

.g08-comment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.g08-comment-meta {
  flex: 1;
  min-width: 0;
}

.g08-comment-meta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.g08-comment-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.g08-comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.g08-comment-rating {
  color: #fde047;
  font-size: 0.8125rem;
}

.g08-comment-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-main);
  word-break: break-word;
}

.g08-comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.g08-comments-empty span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.g08-btn-load-comments {
  display: block;
  width: fit-content;
  min-width: 160px;
  min-height: 44px;
  margin: 1rem auto 0;
  padding: 0 24px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.g08-btn-load-comments--expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  padding: 0 20px;
}

.g08-btn-load-comments[hidden] {
  display: none !important;
}

.g08-comment-actions .g08-btn-load-comments[hidden] {
  display: none !important;
}

.g08-btn-load-comments:hover {
  color: #fff;
  background: rgba(0, 255, 255, 0.12);
  border-color: var(--secondary-color);
}

.g08-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
}

.g08-loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: g08-detail-spin 0.7s linear infinite;
}

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

.g08-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 40000;
  max-width: min(420px, 90vw);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.g08-toast.show {
  transform: translateX(-50%) translateY(0);
}

.g08-toast.success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

.g08-toast.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.g08-toast.warning {
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
}

@media (max-width: 480px) {
  .g08-comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }

  .g08-rating-star {
    width: 40px;
    height: 40px;
  }

  .g08-btn-post-comment,
  .g08-comment-login-prompt__btn {
    width: 100%;
  }

  .g08-toast {
    font-size: 0.8125rem;
    padding: 10px 16px;
  }
}
