/* ==========================================================================
   TeaHouse - UI Components & Modules
   ========================================================================== */

/* --------------------------------------------------------------------------
   Episode Stamp Box (ختم الحلقات المطابق للتصميم)
   -------------------------------------------------------------------------- */
.episode-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  gap: 20px;
  flex-wrap: wrap;
  transition: var(--transition-smooth);
}

.episode-download-card:hover {
  border-color: var(--border-matcha);
  background: var(--bg-surface-elevated);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ep-left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 260px;
}

.ep-title-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
}

.ep-date-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ep-links-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ep-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--tea-green), var(--tea-green-dark));
  color: #062e20;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.ep-link-btn:hover {
  background: linear-gradient(135deg, var(--tea-green-light), var(--tea-green));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  color: #021a11;
}

.ep-link-btn.subs {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.ep-link-btn.subs:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-hover);
  color: #fff;
}

/* ختم الحلقات المزدوج (Episode Stamp Box) */
.episode-stamp-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  width: max-content;
  max-width: 130px;
  min-height: 72px;
  background: linear-gradient(145deg, #182230, #0f1620);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  padding: 12px 12px 6px;
  text-align: center;
  margin-top: 6px;
}

.stamp-badges-row {
  position: absolute;
  top: -10px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
}

.stamp-badges-row.badge-pos-left {
  justify-content: flex-end;
}

.stamp-top-badge {
  font-family: 'Outfit', 'Cairo', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  color: #FFFFFF;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.stamp-badge-bd {
  background-color: #2563EB;
}

.stamp-badge-web {
  background-color: #C026D3;
}

.stamp-badge-tv {
  background-color: #059669;
}

.stamp-badge-new {
  background-color: #EF4444;
  font-weight: 700;
  font-size: 0.72rem;
}

.stamp-badge-movie {
  background-color: #D97706;
}

.stamp-badge-dvd {
  background-color: #EA580C;
}

.stamp-badge-special {
  background-color: #0D9488;
}

.stamp-badge-ova {
  background-color: #6366F1;
}

.stamp-badge-ona {
  background-color: #0EA5E9;
}

.stamp-badge-default {
  background-color: var(--tea-green-dark);
}

.stamp-box-label {
  font-family: 'Cairo', 'Readex Pro', sans-serif;
  font-size: 0.8rem;
  color: #D6CEC3;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stamp-box-value {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.episode-stamp-box.no-label {
  justify-content: center;
  padding: 8px 4px 6px;
}

.episode-stamp-box.no-label .stamp-box-value {
  font-size: 1.4rem;
  margin: auto 0;
}

/* --------------------------------------------------------------------------
   Related Works Section (أعمال ذات صلة)
   -------------------------------------------------------------------------- */
.related-works-section {
  margin-top: 36px;
  margin-bottom: 36px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.related-works-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-relation-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  color: #ffffff;
  font-family: 'Cairo', 'Readex Pro', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   1. Hero Spotlight Carousel
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  min-height: 480px;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: blur(2px) brightness(0.42);
  transform: scale(1.08);
  transition: transform 8s ease;
}

.hero-slide.active .hero-backdrop {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(7, 10, 13, 0.95) 0%,
    rgba(7, 10, 13, 0.8) 45%,
    rgba(7, 10, 13, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 48px;
  width: 100%;
  max-width: 800px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text-pure);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tea-green-light);
  margin-bottom: 18px;
}

/* Rating Chips */
.rating-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.rating-pill:hover {
  transform: translateY(-2px);
}

.rating-pill.mal {
  background: rgba(46, 81, 162, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.rating-pill.mal:hover {
  background: rgba(46, 81, 162, 0.45);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
  color: #fff;
}

.rating-pill.imdb {
  background: rgba(245, 197, 24, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.rating-pill.imdb:hover {
  background: rgba(245, 197, 24, 0.3);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.35);
  color: #fff;
}

.hero-synopsis {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tea-green), var(--tea-green-dark));
  color: #062e20;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--tea-green-light), var(--tea-green));
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Slider Controls */
.hero-slider-nav {
  position: absolute;
  bottom: 24px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(13, 19, 26, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

.slider-btn:hover {
  background: var(--tea-green);
  color: #062e20;
  border-color: var(--tea-green);
}

.slider-indicators {
  position: absolute;
  bottom: 38px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator-dot {
  width: 28px;
  height: 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.indicator-dot.active {
  width: 48px;
  background: var(--tea-green-light);
  box-shadow: 0 0 10px var(--tea-green);
}

/* --------------------------------------------------------------------------
   2. Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--tea-green-subtle);
  border: 1px solid var(--border-matcha);
  color: var(--tea-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* --------------------------------------------------------------------------
   4. Anime Project Cards Grid
   -------------------------------------------------------------------------- */
.anime-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.anime-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.anime-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-matcha);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.18);
}

.anime-poster-wrap {
  position: relative;
  width: 100%;
  padding-top: 142%; /* Aspect Ratio 1:1.42 */
  overflow: hidden;
  background: var(--bg-surface);
}

.anime-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.anime-card:hover .anime-poster {
  transform: scale(1.07);
}

.anime-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.anime-score-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 10, 13, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tea-amber-light);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.anime-card-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.anime-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.anime-card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

/* --------------------------------------------------------------------------
   6. Advanced Search & Filter Engine
   -------------------------------------------------------------------------- */
.filter-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.filter-row {
  margin-bottom: 22px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.filter-label svg {
  color: var(--tea-green-light);
  width: 18px;
  height: 18px;
}

.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
}

.filter-chip.active {
  background: var(--tea-green);
  color: #062e20;
  border-color: var(--tea-green);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--tea-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.search-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Anime Details Post View (Full Details Page)
   -------------------------------------------------------------------------- */
.anime-post-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.anime-post-backdrop {
  height: 360px;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.35);
  position: relative;
}

.anime-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-surface) 10%, transparent 100%);
}

.anime-post-content {
  position: relative;
  margin-top: -160px;
  padding: 0 36px 36px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

.anime-post-poster-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-matcha);
  background: var(--bg-darkest);
}

.anime-post-poster-frame img {
  width: 100%;
  height: auto;
}

.anime-post-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text-pure);
}

.anime-post-en-title {
  font-size: 1.2rem;
  color: var(--tea-green-light);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
}

/* Specs Table */
.anime-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: rgba(7, 10, 13, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 20px 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   8. Episodes Hub (Download Cards)
   -------------------------------------------------------------------------- */
.episodes-hub-section {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   10. Quick Search Modal (Ctrl + K)
   -------------------------------------------------------------------------- */
.quick-search-modal {
  width: 100%;
  max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-matcha);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quick-search-input-box {
  padding: 20px;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-search-input-box input {
  flex: 1;
  font-size: 1.15rem;
  color: var(--text-pure);
}

.quick-search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
}

.quick-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-result-item:hover,
.quick-result-item:focus-visible {
  background: var(--tea-green-subtle);
  outline: none;
}

.quick-result-thumb {
  width: 48px;
  height: 68px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}


/* Modal Overlays (Quick Search etc.) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--tea-crimson);
  color: #fff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-matcha);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: var(--text-pure);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
    Comments (التعليقات الفورية)
   -------------------------------------------------------------------------- */
.comments-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.comments-title-row {
  margin-bottom: 20px;
}

.comment-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.comment-form-row + .comment-form-row {
  margin-top: 12px;
}

.comment-input,
.comment-textarea {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: var(--transition-fast);
}

.comment-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.7;
}

.comment-input:focus,
.comment-textarea:focus {
  outline: none;
  border-color: var(--tea-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.comment-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.comment-hp {
  display: none !important;
}

.comment-actions-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.comment-submit {
  padding: 10px 26px;
  font-size: 0.9rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.comment-item.comment-fresh {
  animation: commentPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: var(--border-matcha);
}

@keyframes commentPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.comment-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-name {
  font-weight: 700;
  color: var(--tea-green-light);
  font-size: 0.92rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .comment-form {
    padding: 14px;
  }

  .comment-item {
    padding: 12px;
    gap: 10px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.85rem;
  }
}
