/* ========================================== */
/*  ANIRADAR — MODERN PROFESSIONAL DESIGN    */
/* ========================================== */

:root {
  --bg: #090a0f;
  --bg-elevated: #11131e;
  --bg-card: #161824;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --text: #f1f1f5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #a855f7;
  --accent-warm: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===== SITE BANNER ===== */
.site-notice-bar {
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

.site-notice-bar strong {
  color: var(--primary-light);
  font-weight: 700;
}

/* ===== SHARE & RECOMMEND SECTION ===== */
.share-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-focus);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.share-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px dashed var(--primary-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ===== ADBLOCK DETECTION MODAL ===== */
.adblock-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adblock-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.adblock-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.adblock-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.adblock-modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.adblock-refresh {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.adblock-refresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===== STICKY HEADER ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 10, 15, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
}

.sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

[data-theme="light"] .sticky-header {
  background: rgba(248, 250, 252, 0.85);
}

.sticky-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.sticky-header-logo .logo-icon {
  width: 30px;
  height: 30px;
}

.sticky-header-logo .logo-text {
  font-size: 1.15rem;
}

.sticky-header-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px 4px 16px;
  max-width: 480px;
  margin-left: auto;
  transition: var(--transition);
}

.sticky-header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.sticky-header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 6px 0;
}

.sticky-header-search input::placeholder {
  color: var(--text-dim);
}

.sticky-header-search button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.sticky-header-search button:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

/* ===== REPORT BUTTON ===== */
.report-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.report-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== REPORT MODAL ===== */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

.report-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.report-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.report-close:hover { color: var(--text); }

.report-modal-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.report-modal-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

#report-form label {
  display: block;
  margin-bottom: 16px;
}

#report-form label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#report-form select,
#report-form textarea,
#report-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

#report-form select:focus,
#report-form textarea:focus,
#report-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

#report-form textarea {
  resize: vertical;
  min-height: 100px;
}

.report-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.report-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.report-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 28px;
  border-radius: 50%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 8px rgba(99,102,241,0.3));
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-accent {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.hero-subtitle em {
  color: var(--text);
  font-style: normal;
  background: rgba(99,102,241,0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(99,102,241,0.2);
}

/* ===== SEARCH BOX ===== */
.search-box {
  max-width: 660px;
  margin: 0 auto 28px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15), var(--shadow);
}

.search-icon {
  position: absolute;
  left: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

#search-input {
  flex: 1;
  padding: 16px 16px 16px 52px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-dim);
}

#search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

#search-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

#search-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.search-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.chip.active {
  background: rgba(99,102,241,0.12);
  border-color: var(--primary);
  color: var(--primary-light);
}

.chip input {
  display: none;
}

/* ===== TRENDING ===== */
.trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 660px;
  margin: 0 auto;
}

.trending-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.trending-chip {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.trending-chip:hover {
  background: rgba(99,102,241,0.08);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 48px;
  padding: 0 24px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== SEARCH META ===== */
.search-meta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.meta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-pill strong {
  color: var(--text);
  font-weight: 600;
}

.meta-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== RESULTS COUNT ===== */
.results-count {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeSlideDown 0.4s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-count span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--primary-light);
  font-weight: 700;
}

.results-scroll-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50%;
  color: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.results-scroll-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.loading-ripple {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.loading-ripple div {
  position: absolute;
  border: 3px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: ripple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-ripple div:nth-child(2) {
  animation-delay: -0.6s;
}

@keyframes ripple {
  0% { top: 28px; left: 28px; width: 0; height: 0; opacity: 1; }
  100% { top: 0; left: 0; width: 56px; height: 56px; opacity: 0; }
}

/* ===== RESULTS GRID ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.anime-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: cardEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anime-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.anime-card:hover .card-image {
  transform: scale(1.04);
}

.card-image-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 2s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.card-body {
  padding: 20px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.card-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state::before {
  content: '📡';
  display: block;
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-divider {
  color: var(--border);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100001;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.scroll-top-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* ===== AD BANNERS ===== */
.ad-banner {
  max-width: 728px;
  margin: 28px auto 0;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.ad-banner-bottom {
  margin: 40px auto 0;
  max-width: 1200px;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.ad-placeholder {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.ad-placeholder .ad-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
}

.ad-placeholder iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 250px;
  max-width: 100%;
  z-index: 2;
  border: none;
}

.ad-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

.ad-fallback {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  min-width: 200px;
}

.ad-fallback a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

.ad-fallback a:hover {
  text-decoration: underline;
}

.ad-banner.has-ad .ad-placeholder::before {
  display: none;
}

.ad-banner.has-ad .ad-placeholder {
  background: transparent;
  min-height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content {
    padding: 30px 16px 24px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .search-input-wrap {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .search-icon {
    display: none;
  }

  #search-input {
    padding: 12px;
    text-align: center;
  }

  #search-button {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .results-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }

  .report-btn {
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .report-btn span {
    display: none;
  }
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== FORMAT BADGE + TYPO NOTICE (backend v4.2) ===== */
.card-format-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(99, 102, 241, 0.92);
    border: 1px solid rgba(129, 140, 248, 0.5);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .card-format-badge {
    background: rgba(79, 70, 229, 0.92);
}

.typo-notice {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 0.7rem 1.1rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary, #b8b8cc);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
}
.typo-notice strong { color: var(--text-primary, #e8e8f4); }
.typo-notice.hidden { display: none; }


/* ===== SEARCH TIP ===== */
.search-tip {
    max-width: 640px;
    margin: 1.2rem auto 0;
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary, #a8a8c0);
    background: rgba(129, 140, 248, 0.07);
    border: 1px solid rgba(129, 140, 248, 0.22);
    border-radius: 12px;
    text-align: left;
    animation: tipFadeIn 0.5s ease;
}
.search-tip strong { color: var(--text-primary, #e8e8f4); }
.search-tip em { color: #a5b4fc; font-style: normal; font-weight: 600; }
.search-tip.hidden { display: none; }
.search-tip.visible { display: block; }

@keyframes tipFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ADULT 18+ CHIP ===== */
.chip-adult {
    border-color: rgba(244, 63, 94, 0.45) !important;
}
.chip-adult span { color: #fb7185; }
.chip-adult.active {
    border-color: #fb7185 !important;
    background: rgba(244, 63, 94, 0.14) !important;
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.35), 0 0 18px rgba(244, 63, 94, 0.15);
}
.chip-adult.active span { color: #fb7185; }

/* ===== SECTION HEADERS (adult grouped results) ===== */
.section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.6rem 0 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(129, 140, 248, 0.2);
}
.section-header:first-child { margin-top: 0; }
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-primary, #e8e8f4);
}
.section-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== CARD REFINEMENTS ===== */
.anime-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid rgba(129, 140, 248, 0.1);
}
.anime-card:hover {
    transform: translateY(-5px);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(99, 102, 241, 0.12);
}
[data-theme="light"] .anime-card:hover {
    box-shadow: 0 14px 34px rgba(30, 30, 60, 0.14), 0 0 22px rgba(99, 102, 241, 0.1);
}
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== EMPTY STATE POLISH ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed rgba(129, 140, 248, 0.3);
    border-radius: 16px;
    background: rgba(129, 140, 248, 0.04);
}
.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.empty-state em { color: #a5b4fc; font-style: normal; font-weight: 600; }

.lb-thumb { background: rgba(129, 140, 248, 0.08); }
img.lb-thumb:not([src]), .lb-thumb[src=""] , .lb-thumb:not([src]) { visibility: hidden; }


/* ===== ANIME LEADERBOARD ===== */
.leaderboard-section {
    max-width: 1100px;
    margin: -1rem auto 3rem;
    padding: 0 1.5rem;
}
.leaderboard-inner {
    background: var(--bg-card, rgba(20, 20, 34, 0.65));
    border: 1px solid rgba(129, 140, 248, 0.16);
    border-radius: 18px;
    padding: 1.4rem 1.6rem 1.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .leaderboard-inner {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(30, 30, 60, 0.1);
}
.leaderboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.leaderboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.leaderboard-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lb-tab {
    padding: 0.42rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary, #a8a8c0);
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lb-tab:hover { color: var(--text-primary, #e8e8f4); border-color: rgba(129, 140, 248, 0.55); }
.lb-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.leaderboard-list { display: flex; flex-direction: column; gap: 0.45rem; }
.lb-loading {
    text-align: center;
    padding: 1.6rem;
    color: var(--text-secondary, #a8a8c0);
    font-size: 0.9rem;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lb-row:hover {
    background: rgba(129, 140, 248, 0.08);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateX(4px);
}
.lb-row.dim { opacity: 0.82; }
.lb-row .rank {
    flex: 0 0 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary, #a8a8c0);
    background: rgba(129, 140, 248, 0.1);
    border-radius: 10px;
}
.lb-row .rank.gold {
    color: #1a1a00;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}
.lb-row .rank.silver {
    color: #10101a;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}
.lb-row .rank.bronze {
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #b45309);
}
.lb-thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}
.lb-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lb-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-primary, #e8e8f4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-year { font-size: 0.78rem; color: var(--text-secondary, #a8a8c0); }
.lb-score {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 0.85rem;
    color: #facc15;
    background: rgba(250, 204, 21, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.25);
}
[data-theme="light"] .lb-name { color: #1c1c2e; }
[data-theme="light"] .lb-row .rank { color: #4c4c68; }
[data-theme="light"] .lb-score { color: #a16207; }

@media (max-width: 640px) {
    .leaderboard-inner { padding: 1rem 0.9rem; }
    .lb-info { min-width: 0; }
}

/* ===== ANITRENDZ WEEKLY CHART ===== */
.at-section { margin-top: 1.6rem; }
.at-section .leaderboard-inner {
    border-color: rgba(251, 113, 133, 0.18);
    box-shadow: 0 10px 40px rgba(251, 113, 133, 0.07);
}
.at-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}
.at-source-link {
    font-size: 0.8rem;
    color: var(--text-secondary, #a8a8c0);
    text-decoration: none;
    transition: color 0.2s ease;
}
.at-source-link:hover { color: #fb7185; }
.at-thumb { border-radius: 8px; }
.at-weekly {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fb7185;
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.25);
    padding: 3px 9px;
    border-radius: 999px;
}


/* ===== UNIFIED CHARTS BOARD ===== */
.leaderboard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(129, 140, 248, 0.14);
}
.lb-foot-note {
    font-size: 0.75rem;
    color: var(--text-secondary, #8b8b9a);
}
.random-btn {
    padding: 0.5rem 1.05rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
.random-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
    filter: brightness(1.08);
}
.random-btn:active { transform: scale(0.97); }
.at-tab { color: #fb7185; border-color: rgba(251, 113, 133, 0.3); }
.at-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

/* ===== RECENT SEARCHES ===== */
.history-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0 0.25rem;
}
.history-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #a8a8c0);
}
.history-chip {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-secondary, #a8a8c0);
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.history-chip:hover {
    color: var(--text-primary, #e8e8f4);
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(129, 140, 248, 0.08);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .hero-title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
    .hero-subtitle { font-size: 0.92rem; padding: 0 0.5rem; }
    .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
    .search-options { gap: 0.4rem; }
    .chip { padding: 0.38rem 0.75rem; font-size: 0.76rem; }
    .search-tip { font-size: 0.8rem; margin: 0.9rem auto 0; }
    .trending { flex-direction: column; align-items: center; gap: 0.5rem; }
    .leaderboard-section { padding: 0 0.9rem; margin-bottom: 2rem; }
    .leaderboard-inner { padding: 1rem 0.85rem; border-radius: 14px; }
    .leaderboard-title { font-size: 1.05rem; }
    .leaderboard-tabs { width: 100%; justify-content: center; }
    .lb-tab { padding: 0.38rem 0.7rem; font-size: 0.74rem; }
    .lb-row { gap: 0.6rem; padding: 0.45rem 0.5rem; }
    .lb-row .rank { flex: 0 0 28px; height: 28px; font-size: 0.8rem; border-radius: 8px; }
    .lb-thumb { flex: 0 0 36px; width: 36px; height: 48px; }
    .lb-name { font-size: 0.85rem; }
    .lb-score { font-size: 0.75rem; padding: 3px 7px; }
    .random-btn { width: 100%; justify-content: center; text-align: center; }
    .leaderboard-foot { flex-direction: column; }
    .history-chips { justify-content: center; }
    .report-btn span { display: none; }
    .report-btn { padding: 0.7rem; border-radius: 50%; }
    .share-section { flex-direction: column; }
    .site-notice-bar { font-size: 0.72rem; padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
    .hero-stats { display: none; }
    .sticky-header-search { display: none; }
    .results-grid { gap: 1rem; }
    .lb-thumb { flex: 0 0 32px; width: 32px; height: 42px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* very small phones */
@media (max-width: 360px) {
    .lb-year, .section-count { display: none; }
    .chip { font-size: 0.7rem; }
}


/* ===== NO-PREVIEW PLACEHOLDER CARDS ===== */
.card-noart {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background:
        radial-gradient(120% 90% at 30% 10%, rgba(99, 102, 241, 0.22), transparent 60%),
        linear-gradient(150deg, rgba(30, 30, 52, 0.95), rgba(18, 18, 32, 0.98));
    border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}
[data-theme="light"] .card-noart {
    background:
        radial-gradient(120% 90% at 30% 10%, rgba(99, 102, 241, 0.14), transparent 60%),
        linear-gradient(150deg, #eef0ff, #e6e8f8);
}
.noart-icon {
    font-size: 1.9rem;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.noart-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(165, 180, 252, 0.9);
}
[data-theme="light"] .noart-label { color: #6366f1; }

.noart-note {
    max-width: 760px;
    margin: 0 auto 1rem;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary, #a8a8c0);
    background: rgba(129, 140, 248, 0.06);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 10px;
}


/* ===== TROPE GUIDES GRID ===== */
.trope-guides-section {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.tg-inner {
    background: var(--bg-card, rgba(20, 20, 34, 0.65));
    border: 1px solid rgba(129, 140, 248, 0.16);
    border-radius: 18px;
    padding: 1.6rem;
}
.tg-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}
.tg-sub {
    color: var(--text-secondary, #a8a8c0);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}
.tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.7rem;
}
.tg-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-primary, #e8e8f4);
    background: rgba(129, 140, 248, 0.06);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.tg-card:hover {
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(129, 140, 248, 0.12);
    transform: translateY(-2px);
}
.tg-icon { color: #818cf8; }

@media (max-width: 640px) {
    .tg-grid { grid-template-columns: 1fr 1fr; }
    .tg-inner { padding: 1.1rem; }
}


/* ===== QUALITY NOTICE (apology + report) ===== */
.quality-notice {
    max-width: 760px;
    margin: 1rem auto 0.4rem;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--text-secondary, #b8b8cc);
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    animation: qnFadeIn 0.4s ease;
}
.quality-notice strong { color: var(--text-primary, #e8e8f4); }
.qn-text { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.qn-report-btn {
    background: none;
    border: none;
    color: #818cf8;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.qn-report-btn:hover { color: #a5b4fc; }
.qn-close {
    background: none;
    border: none;
    color: var(--text-secondary, #8b8b9a);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.2rem;
    line-height: 1;
}
.qn-close:hover { color: var(--text-primary, #e8e8f4); }
.quality-notice.hidden { display: none; }

@keyframes qnFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .quality-notice { flex-direction: column; text-align: center; gap: 0.4rem; }
}
