﻿/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* Backgrounds — neutral charcoal, no colour tint */
  --bg:           #141414;
  --bg-card:      #1e1e1e;
  --bg-hover:     #262626;
  --bg-input:     #191919;

  /* Borders — neutral grey */
  --border:       #2e2e2e;
  --border-light: #3c3c3c;

  /* Text — neutral off-white */
  --text:         #e0e0e0;
  --text-sub:     #909090;
  --text-muted:   #808080;

  /* Blue — main accent. Used for UI chrome, active states, borders */
  --accent:       #4a8fd4;
  --accent-hover: #3a7fc4;
  --accent-dim:   rgba(74, 143, 212, 0.12);

  /* Gold — scores, rank numbers, active nav */
  --gold:         #c9a830;

  /* Aqua-blue — CTA buttons */
  --aqua:         #4ab3e8;
  --aqua-hover:   #359fd4;

  /* Green/red — comparison modal only */
  --green:        #4ade80;
  --red:          #f87171;

  /* Aliases */
  --violet:       #4a8fd4;
  --yellow:       #c9a830;
  --purple-light: #909090;

  --radius:       4px;
  --nav-h:        52px;
}


/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 65%,  rgba(74, 143, 212, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 88% 25%,  rgba(210, 110, 30, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 55% 100%, rgba(240, 180, 41,  0.07) 0%, transparent 60%),
    radial-gradient(ellipse 30% 20% at 75% 70%,  rgba(74, 143, 212, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; font-size: 13px; }
input, select, textarea { font-family: inherit; font-size: 13px; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0 0;
}

/* Gold gradient line — replaces the flat border-bottom */
.navbar::after {
  content: '';
  display: block;
  height: 2px;
  width: 55%;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,168,40,0.12) 10%,
    rgba(201,168,40,0.45) 35%,
    rgba(201,168,40,0.55) 50%,
    rgba(201,168,40,0.45) 65%,
    rgba(201,168,40,0.12) 90%,
    transparent 100%
  );
}

/* Row 1 — site name */
.navbar-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
}

.nav-site-name {
  font-family: 'Righteous', sans-serif;
  font-size: 34px;
  font-weight: 400; /* Righteous has no weight variants — 400 is correct */
  background: linear-gradient(90deg, #c9a830 0%, #f0d060 55%, #c9a830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Row 2 — nav links + avatar + sign-in */
.navbar-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-bottom: 14px;
}

.nav-links-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--gold);
}
.nav-link.active {
  background: var(--gold);
  color: #141414;
  border-color: var(--gold);
  font-weight: 700;
}

.btn-sign-in {
  padding: 5px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}
.btn-sign-in:hover { background: var(--accent-hover); }

.nav-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua) 0%, #2a8fc4 100%);
  border: 2px solid rgba(74,179,232,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(74,179,232,0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-avatar:hover {
  border-color: rgba(74,179,232,0.7);
  box-shadow: 0 2px 18px rgba(74,179,232,0.35);
}

/* Small About / Contact links in nav-links-right */
.nav-text-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: color 0.15s;
  white-space: nowrap;
  align-self: flex-end;       /* bottom-align with the avatar */
  margin-bottom: 2px;         /* sit just above the very bottom edge */
}
.nav-text-link:hover { color: var(--text-sub); }

/* Extra breathing room between Contact and the avatar */
.nav-links-right .nav-avatar { margin-left: 14px; }

.nav-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-settings-btn:hover {
  background: var(--bg-hover);
  color: var(--gold);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-sub);
  border-radius: 0;
}

/* =============================================
   PAGE TITLE ROW (title + ranker count)
   ============================================= */
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.ranker-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.ranker-stat-num {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--gold);
  line-height: 1;
}

.ranker-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* =============================================
   RANK TOP BAR (search + start-rating above panel)
   ============================================= */
.rank-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

/* Search + year filter grouped flush together */
.rank-search-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.rank-search-group .rank-search {
  width: 260px;
}

.rank-search-group .rank-search-input {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.rank-search-group .year-filter-btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
  border-left: 1px solid var(--border);
}

.rank-search {
  position: relative;
  width: 300px;
}

.rank-search-input {
  width: 100%;
  height: 34px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px 0 36px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.rank-search-input::placeholder { color: var(--text-muted); }
.rank-search-input:focus { border-color: var(--accent); }

.rank-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* Search dropdown */
.rank-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 60;
  overflow: hidden;
}

.rsd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.rsd-item:last-child { border-bottom: none; }
.rsd-item:hover { background: var(--bg-hover); }

.rsd-thumb {
  width: 34px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-hover);
}

.rsd-info { flex: 1; min-width: 0; }

.rsd-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsd-item:hover .rsd-title { color: var(--gold); }

.rsd-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Year filter dropdown */
.year-filter-wrap {
  position: relative;
  flex-shrink: 0;
}

.year-filter-btn {
  height: 34px;
  padding: 0 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.year-filter-btn:hover,
.year-filter-wrap.open .year-filter-btn {
  border-color: var(--gold);
  color: var(--text);
}

.year-filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  width: 240px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.year-filter-wrap.open .year-filter-panel { display: block; }

.yfp-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.yfp-range-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.yfp-dash { color: var(--text-muted); font-weight: 300; }

/* Dual-handle range slider */
.dual-range-wrap {
  position: relative;
  height: 28px;
  margin-bottom: 14px;
}

.dual-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}

.dual-range-fill {
  position: absolute;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

.yfp-slider {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  pointer-events: none;
}
.yfp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}
.yfp-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.yfp-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.yfp-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.yfp-clear {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.15s;
}
.yfp-clear:hover { border-color: var(--border-light); color: var(--text); }

.yfp-apply { padding: 5px 14px; font-size: 12px; }

/* =============================================
   PAGE TITLE (plain text on background, no box)
   ============================================= */
.page-header { display: none; } /* legacy — hidden */

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =============================================
   RANK PANEL — light card behind all rows
   ============================================= */
.rank-panel {
  background: #2a2a2a;
  border: 1px solid var(--border);
  padding: 0;
}

/* Column header row — padding matches rank-list's 8px padding */
.rank-col-header {
  display: flex;
  align-items: center;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: #222;
  border-left: 4px solid var(--gold); /* match card's gold left border */
}
.rch-rank   { width: 64px; flex-shrink: 0; text-align: center; color: var(--gold); }
.rch-poster { width: 92px; flex-shrink: 0; } /* spacer matching .rank-poster width + borders */
.rch-title  { flex: 1; padding-left: 22px; } /* matches rank-info padding */
.rch-info   { width: 230px; flex-shrink: 0; padding-left: 20px; }
.rch-score  { width: 104px; flex-shrink: 0; text-align: center; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-btn {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 12px;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--border-light); color: var(--text); }
.filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* =============================================
   RANKING LIST
   ============================================= */
/* ---- RANKING LIST ---- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

/* Card */
.rank-item {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.rank-item:hover { background: var(--bg-hover); }

/* Rank number — gold */
.rank-num {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geologica', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.rank-num.top3 { font-size: 30px; font-weight: 900; }

/* Poster — double the old 60px */
.rank-poster {
  width: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  align-self: stretch;
}
.rank-poster .ph-img { height: 100%; min-height: 128px; }

/* Title block — flex:1 takes remaining space after fixed columns */
.rank-info {
  flex: 1;
  min-width: 0;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.rank-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.15s;
}
.rank-item:hover .rank-title { color: var(--gold); }

.rank-romaji {
  font-size: 12px;
  color: var(--text-sub);
  font-style: italic;
}

/* Details region — fixed width so title doesn't get squeezed */
.rank-details {
  width: 230px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px;
  gap: 8px;
}

.rank-details-genres {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
}

.rank-details-secondary {
  font-size: 13px;
  color: var(--text-sub);
}

/* Score block — far right, hero number */
.rank-score-block {
  width: 104px;
  flex-shrink: 0;
  border-left: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  gap: 2px;
}

.rs-score {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: 0.5px;
}

.rs-score-lbl { display: none; }

.rs-ratings {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
}
.rs-ratings-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.2;
}
.rs-ratings-word {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* =============================================
   RANKINGS PAGINATION
   ============================================= */
#rank-pagination {
  margin-top: 8px;
}
.rank-pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 4px;
}
.rank-pag-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'Geologica', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.rank-pag-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.rank-pag-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.rank-pag-info {
  font-size: 13px;
  color: var(--text-muted);
}
.rank-pag-range {
  color: var(--text-sub);
  font-weight: 600;
}
.rank-pag-sep {
  color: var(--text-muted);
}
.rank-pag-total {
  color: var(--text-muted);
}

/* =============================================
   PLACEHOLDER IMAGE
   ============================================= */
.ph-img {
  background: #121212;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-img svg { color: #333; }

/* =============================================
   SEASONAL PAGE
   ============================================= */
.seasonal-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
}

/* Left sidebar */
.season-sidebar {
  width: 172px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.season-sidebar::-webkit-scrollbar { width: 3px; }
.season-sidebar::-webkit-scrollbar-track { background: transparent; }
.season-sidebar::-webkit-scrollbar-thumb { background: #383838; border-radius: 2px; }

/* Fade hint at bottom */
.season-sidebar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 172px;
}
.season-sidebar-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #141414);
  pointer-events: none;
  border-radius: 0 0 6px 6px;
}

.season-sidebar-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}

/* Year group header */
.ssb-year-header {
  padding: 10px 14px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3px;
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.season-sidebar-item {
  padding: 10px 14px 10px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.season-sidebar-item:hover { background: var(--bg-hover); }
.season-sidebar-item.active {
  background: rgba(201, 168, 40, 0.07);
  border-left-color: var(--gold);
}

.ssb-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.12s;
}
.season-sidebar-item:hover .ssb-label { color: var(--text); }
.season-sidebar-item.active .ssb-label { color: var(--text); font-weight: 600; }

.ssb-current {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right content */
.season-main {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Season heading above grid */
.season-main-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Keep old .season-tab for any stale references */
.season-tab { display: none; }

.season-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
}
.season-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Title + romaji block above the image */
.sc-header {
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--border);
}

/* English title — link, lighter aqua blue */
.sc-title {
  display: -webkit-box;
  font-size: 14px;
  font-weight: 700;
  color: var(--aqua);
  line-height: 1.4;
  min-height: calc(14px * 1.4 * 2); /* always reserve 2 lines */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
  user-select: text;
}
.sc-title:hover { color: var(--gold); text-decoration: underline; }

/* Romaji title — bigger, clearer */
.sc-romaji {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  user-select: text;
}

/* Image — its own link */
.season-card-thumb-link {
  display: flex;
  justify-content: center;
  background: #111;
}

.season-card-thumb {
  width: 155px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}

/* Zoom the cover on hover */
.season-card-thumb img {
  transition: transform 0.35s ease;
}
.season-card:hover .season-card-thumb img {
  transform: scale(1.06);
}

.season-card-body {
  padding: 7px 10px 8px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Genres row */
.sc-genres {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Date · eps row */
.sc-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-meta-item {
  font-size: 11px;
  color: var(--text-sub);
}
.sc-dot {
  font-size: 10px;
  color: var(--text-muted);
}

/* Score chip + ratings row */
.sc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Outlined gold score badge */
.sc-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border: 1px solid rgba(201, 168, 40, 0.5);
  background: rgba(201, 168, 40, 0.08);
  border-radius: 3px;
}
.sc-score-chip-star {
  font-size: 9px;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1;
}
.sc-score-chip-num {
  font-size: 12px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--gold);
  line-height: 1;
}

.sc-ratings {
  font-size: 11px;
  color: var(--text-sub);
  text-align: right;
  white-space: nowrap;
}

/* Legacy — kept for safety */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}
.score-pill svg { width: 10px; height: 10px; fill: var(--gold); }
.season-card-tag { font-size: 10px; color: var(--text-muted); }

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-head {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
}
.profile-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.profile-joined {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.profile-stats-bar {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.profile-stat {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }

.profile-stat-num {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--accent);
  line-height: 1;
}
.profile-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Profile tabs */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #1a1a1a;
}
.profile-tab {
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Anime list table */
.list-table {
  width: 100%;
  border-collapse: collapse;
}
.list-table thead tr {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
.list-table th {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.list-table th.right { text-align: right; }

.list-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.list-table tbody tr:hover { background: var(--bg-hover); }

.list-table td {
  padding: 8px 12px;
  font-size: 13px;
  vertical-align: middle;
}

.list-thumb {
  width: 36px;
  height: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.list-title {
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.list-table tbody tr:hover .list-title { color: var(--accent); }

.list-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.list-score {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}
.list-score.high { color: var(--green); }
.list-score.mid  { color: var(--gold); }
.list-score.low  { color: var(--red); }

.list-progress {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
}
.status-watching  { background: rgba(90,171,122,0.12); color: var(--green); }
.status-completed { background: var(--accent-dim); color: var(--accent); }
.status-plan      { background: rgba(150,150,170,0.1); color: var(--text-muted); }
.status-dropped   { background: rgba(224,85,85,0.12); color: var(--red); }

/* Favorites grid */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 20px 0;
}
.fav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
  cursor: pointer;
}
.fav-card:hover { border-color: var(--accent); }
.fav-card-thumb { aspect-ratio: 2/3; width: 100%; }
.fav-card-title {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Score distribution */
.dist-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 5px;
}
.dist-bar-label {
  width: 16px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.dist-bar-track {
  flex: 1;
  height: 7px;
  background: var(--bg-hover);
  border-radius: 0;
}
.dist-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
}
.dist-bar-count {
  width: 30px;
  color: var(--text-muted);
  font-size: 11px;
}

/* =============================================
   ANIME DETAIL PAGE
   ============================================= */
.anime-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.anime-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.anime-poster-wrap {
  aspect-ratio: 2/3;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 13px 15px;
}

.sidebar-card-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.sidebar-card table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}
.sidebar-card table tbody tr td {
  padding: 5px 4px;
}

.info-lbl {
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 4px;
  white-space: nowrap;
  width: 68px;
  vertical-align: top;
}
.info-val {
  font-size: 12px;
  color: var(--text-sub);
  padding: 5px 4px;
}

.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sidebar-stat-lbl { font-size: 12px; color: var(--text-muted); }
.sidebar-stat-val { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.sidebar-stat-val.accent { color: var(--yellow); font-size: 15px; }

/* Site stats grid (Statistics sidebar card) */
.site-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.site-stat-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.site-stat-score-block {
  grid-column: span 2;
  background: rgba(201, 168, 40, 0.07);
  border-color: rgba(201, 168, 40, 0.28);
}

.site-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-family: 'Geologica', sans-serif;
}

.site-stat-score-block .site-stat-num {
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(201,168,40,0.25);
}

.site-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
}

/* Main column */
.anime-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.anime-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.anime-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.anime-genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.anime-genre-tag {
  padding: 3px 11px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-sub);
  background: transparent;
  transition: border-color 0.15s, color 0.15s;
}
.anime-genre-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Score strip */
.score-strip {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: 2px solid rgba(201, 168, 40, 0.3);
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
}

.score-strip-hero {
  padding: 22px 36px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(150deg, rgba(201,168,40,0.13) 0%, rgba(201,168,40,0.03) 100%);
  position: relative;
}

.strip-score-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(201,168,40,0.65);
}

.strip-score-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 0 28px rgba(201,168,40,0.3);
  font-family: 'Geologica', sans-serif;
}

.score-strip-stats {
  display: flex;
  flex: 1;
}

.strip-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  border-right: 1px solid var(--border);
  gap: 7px;
  transition: background 0.15s;
}
.strip-stat:last-child { border-right: none; }
.strip-stat:hover { background: var(--bg-hover); }

.strip-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.strip-stat-val {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--text);
  line-height: 1;
}

/* Sections */
.anime-section {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.anime-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.anime-synopsis {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* Your Status */
.user-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-status-select {
  width: 280px;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s;
  cursor: pointer;
}
.user-status-select:focus  { border-color: var(--accent); }
.user-status-select:hover  { border-color: var(--border-light); }

/* Favorite button */
/* Rate this Anime CTA button */
.rate-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3d7ef8, #5b9cf6);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(91,156,246,0.12);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.rate-cta-btn:hover {
  background: linear-gradient(135deg, #2f6ee8, #4a8fef);
  box-shadow: 0 6px 18px rgba(91,156,246,0.18);
  transform: translateY(-2px);
}
.rate-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(91,156,246,0.1);
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-fav .fav-icon {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s;
}
.btn-fav:hover {
  border-color: #e57373;
  color: #e57373;
  background: rgba(229, 115, 115, 0.07);
}
.btn-fav:hover .fav-icon { transform: scale(1.2); }

.btn-fav.active {
  background: rgba(229, 115, 115, 0.12);
  border-color: #e57373;
  color: #e57373;
}
.btn-fav.active .fav-icon { transform: scale(1.1); }

@media (max-width: 640px) {
  .anime-layout { grid-template-columns: 1fr; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text-sub); border-color: var(--border); }
.btn-outline:hover { border-color: var(--border-light); color: var(--text); }
.btn-undo {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-undo:hover {
  background: var(--gold);
  color: #111;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #161616;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.modal-close {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
/* Start Rating button — aqua CTA */
#start-rating-btn {
  background: var(--aqua) !important;
  border-color: var(--aqua) !important;
  color: #141414 !important;
  font-weight: 700 !important;
}
#start-rating-btn:hover {
  background: var(--aqua-hover) !important;
  border-color: var(--aqua-hover) !important;
}

/* Quick Rank submit — yellow */
#qr-submit {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #141414 !important;
  font-weight: 700 !important;
}
#qr-submit:hover {
  background: #b8941f !important;
  border-color: #b8941f !important;
}

#modal-confirm {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 32px;
}

/* Compare cards */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.compare-card:hover { border-color: var(--accent); }
.compare-card-link { display: block; flex-shrink: 0; }
.compare-thumb { aspect-ratio: 2/3; width: 100%; }
.compare-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  gap: 4px;
}
.compare-edit-btn {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  border-radius: 2px;
}
.compare-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.compare-info { padding: 8px 10px; }
.compare-card-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(12px * 1.35 * 2);
}
.compare-score {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Geologica', sans-serif;
  color: var(--yellow);
}

.compare-notice {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}
.compare-notice strong { color: var(--text); }

/* =============================================
   RATING WIDGET
   ============================================= */
.rating-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.rating-widget h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.score-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.score-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.score-btn:hover,
.score-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.score-label {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
  margin-bottom: 12px;
}

/* =============================================
   AUTH MODAL
   ============================================= */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab {
  padding: 8px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  margin-bottom: -1px;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}
.auth-google-btn:hover { background: #f7f7f7; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.auth-google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}
.auth-field input {
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-field input::placeholder { color: var(--text-muted); }

.auth-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  margin-bottom: 8px;
}

.auth-success {
  font-size: 12px;
  color: var(--green);
  min-height: 16px;
  margin-bottom: 8px;
}

/* Navbar avatar dropdown */
.nav-avatar-wrap {
  position: relative;
}
.nav-avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 160px;
  z-index: 200;
  display: none;
  flex-direction: column;
}
.nav-avatar-wrap:hover .nav-avatar-menu,
.nav-avatar-wrap.open .nav-avatar-menu { display: flex; }
.nav-avatar-menu-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background: none;
  border: none;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  cursor: pointer;
}
.nav-avatar-menu-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-avatar-email {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* =============================================
   FOOTER
   ============================================= */

/* =============================================
   PAGE LOADING BAR
   ============================================= */
#page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 99999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold), #f5d060, var(--gold));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.15s;
}
#page-load-bar.running {
  opacity: 1;
  animation: load-bar-slide 1.2s ease-in-out infinite;
}
@keyframes load-bar-slide {
  0%   { width: 0%;   background-position: 100% 0; }
  50%  { width: 70%;  background-position: 0% 0; }
  100% { width: 85%;  background-position: 100% 0; }
}
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 48px;
  background: #1a1a1a;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: 'Righteous', sans-serif;
  font-size: 15px;
  font-weight: 400;
  background: linear-gradient(90deg, #c9a830 0%, #f0d060 55%, #c9a830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-link { font-size: 12px; color: var(--text-muted); transition: color 0.15s; }
.footer-link:hover { color: var(--text); }

/* =============================================
   MISC
   ============================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.section-head h2 { font-size: 15px; font-weight: 700; }
.section-head a { font-size: 12px; color: var(--accent); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 2px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links-right { display: none; }
  .rank-search { width: 100%; }

  .rank-members { display: none; }
  .rank-add { display: none; }

  .list-table th.hide-mobile,
  .list-table td.hide-mobile { display: none; }

  .profile-stats-bar { flex-wrap: wrap; }
  .profile-stat { min-width: 50%; }
}

@media (max-width: 900px) {
  .season-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .fav-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .compare-grid { grid-template-columns: repeat(3, 1fr); }

  /* Modals: use almost full screen on small phones */
  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal {
    max-height: 92vh;
    border-radius: 6px 6px 0 0;
  }

  /* Quick rate card stacks vertically on small phones */
  .qr-card { flex-direction: column; }
  .qr-img  { width: 100%; height: 160px; }

  /* Score buttons wrap better on small screens */
  .score-btns { gap: 4px; }
  .score-btn  { width: 26px; height: 26px; font-size: 12px; }
}

/* =============================================
   SCORE SLIDER
   ============================================= */
.score-slider-wrap { width: 100%; }

.score-display-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.score-display-num {
  font-size: 48px;
  font-weight: 300;
  font-family: 'Geologica', sans-serif;
  color: var(--yellow);
  line-height: 1;
  min-width: 80px;
}
.score-display-max {
  font-size: 48px;
  font-family: 'Geologica', sans-serif;
  color: var(--text-muted);
  font-weight: 300;
}
.score-display-label {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
  margin-left: 4px;
}

.score-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--gold) var(--fill, 0%), var(--bg-hover) var(--fill, 0%));
  outline: none;
  cursor: pointer;
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.1s;
}
.score-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.score-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  cursor: pointer;
}
.score-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================
   COMPARE MODAL — TALL TWO-ROW LAYOUT
   ============================================= */
.compare-modal-tall {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Hold Up strip */
.compare-hold-up {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px 11px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.compare-close-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.compare-close-btn:hover { border-color: var(--red); color: var(--red); }

/* Cards rows (top & bottom) */
.compare-band {
  flex: 1;
  padding: 14px 20px;
  min-height: 0;
}
.compare-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  height: 100%;
}

/* Card image height in this modal */
.compare-modal-tall .compare-thumb {
  aspect-ratio: unset;
  height: 155px;
}

/* Middle section */
.compare-middle-section {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-divider-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-higher-lbl {
  color: var(--green);
  background: rgba(90,171,122,0.07);
  border-bottom: 1px solid var(--border);
}
.compare-lower-lbl {
  color: #e57373;
  background: rgba(229,115,115,0.07);
  border-top: 1px solid var(--border);
}

/* Middle row: current anime */
.compare-middle-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0;
  background: var(--bg-hover);
}
.compare-current-thumb {
  min-height: 155px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.compare-current-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare-current-info {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}
.compare-current-anime-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compare-current-score-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.compare-current-score-num {
  font-size: 32px;
  font-weight: 800;
  font-family: 'Geologica', sans-serif;
  color: var(--yellow);
  line-height: 1;
}
.compare-current-score-denom {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.compare-current-score-word {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 600;
}
.compare-current-msg {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: 4px;
}

/* Placeholder card */
.compare-ph {
  opacity: 0.3;
  pointer-events: none;
}
.compare-ph-thumb {
  height: 185px;
  width: 100%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-ph-text {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 8px;
  line-height: 1.4;
}

/* =============================================
   RATE THIS ANIME — slider container & display
   ============================================= */
#rating-input-wrap {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
}

/* Blue theme for the main anime-page rating widget */
#rating-input-wrap .score-display-num {
  color: #5b9cf6;
  font-weight: 700;
}
#rating-input-wrap .score-display-num.score-display-placeholder {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  min-width: unset;
  line-height: normal;
  align-self: center;
}
#rating-input-wrap .score-slider {
  background: linear-gradient(to right, #5b9cf6 var(--fill, 0%), var(--bg-hover) var(--fill, 0%));
}
#rating-input-wrap .score-slider::-webkit-slider-thumb {
  background: #5b9cf6;
}
#rating-input-wrap .score-slider::-moz-range-thumb {
  background: #5b9cf6;
}

/* X cancel button — top-right corner of the rating box */
.rating-cancel-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.rating-cancel-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(248, 113, 113, 0.08);
}

/* Clear Rating — outlined destructive */
.btn-clear-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-clear-rating:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(248, 113, 113, 0.08);
}
.btn-clear-rating:disabled {
  opacity: 0.5;
  cursor: default;
}

/* =============================================
   USER RATING DISPLAY (anime detail page)
   ============================================= */
.user-rating-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, rgba(74,143,212,0.09) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.user-rating-left {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.user-rating-num {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Geologica', sans-serif;
  color: var(--accent);
  line-height: 1;
}
.user-rating-out {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.user-rating-right { display: flex; flex-direction: column; gap: 2px; }
.user-rating-word {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.user-rating-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   RATINGS CARD GRID (My Ratings tab)
   ============================================= */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
  padding-top: 20px;
}

/* Square card */
.ratings-card {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ratings-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

/* Full-bleed artwork — bright */
.ratings-card-bg {
  position: absolute;
  inset: 0;
}
.ratings-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}
.ratings-card:hover .ratings-card-bg img {
  transform: scale(1.06);
}

/* Gradient — only darkens the bottom third for text */
.ratings-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)   45%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

/* Score badge — top-right corner */
.ratings-card-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.68);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Geologica', sans-serif;
  color: var(--gold);
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

/* Title + romaji pinned to bottom */
.ratings-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 11px;
}
.ratings-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   FAV CARD SCORE
   ============================================= */
.fav-card-score {
  padding: 2px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

/* =============================================
   QUICK RATE MODAL
   ============================================= */
.qr-progress-bar {
  height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.qr-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.qr-counter {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.qr-card {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.qr-img {
  width: 170px;
  height: 240px;
  flex-shrink: 0;
  background: var(--bg-hover);
  overflow: hidden;
}
.qr-info { flex: 1; }
.qr-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text);
}
.qr-genres {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.qr-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.qr-synopsis {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

.qr-score-label {
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

/* =============================================
   SETTINGS PAGE
   ============================================= */
.settings-container {
  max-width: 660px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.settings-page-header {
  margin-bottom: 32px;
}
.settings-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.settings-page-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.danger-label { color: var(--red); border-color: rgba(248,113,113,0.25); }

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 10px;
}

.settings-danger-card {
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.03);
}

.settings-card-header {
  margin-bottom: 14px;
}
.settings-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.settings-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Input + button on same row */
.settings-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Stacked inputs */
.settings-field-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-input {
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.settings-input:focus { border-color: var(--accent); }
.settings-input::placeholder { color: var(--text-muted); }

/* Feedback messages */
.settings-msg {
  min-height: 18px;
  font-size: 12px;
  margin-top: 10px;
}
.settings-msg-error   { color: var(--red); }
.settings-msg-success { color: var(--green); }

/* Delete warning box */
.delete-warning-box {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 13px;
  color: #f87171;
  line-height: 1.5;
}

/* Danger button */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(248,113,113,0.5);
  background: rgba(248,113,113,0.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger:hover {
  background: rgba(248,113,113,0.18);
  border-color: var(--red);
}
.btn-danger:disabled {
  opacity: 0.45;
  cursor: default;
}

/* =============================================
   SMART RATE
   ============================================= */
.smart-rate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid #7c5cbf;
  background: rgba(124,92,191,0.12);
  color: #b89aff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.smart-rate-btn:hover {
  background: rgba(124,92,191,0.22);
  border-color: #9d7be0;
  transform: translateY(-1px);
}
.smart-rate-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Modal */
.sr-modal {
  width: min(860px, 96vw);
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

/* Header */
.sr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.sr-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #b89aff;
  letter-spacing: 0.3px;
}
.sr-round-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Progress bar */
.sr-progress-track {
  height: 3px;
  background: var(--border);
}
.sr-progress-fill {
  height: 100%;
  background: #7c5cbf;
  transition: width 0.35s ease;
}

/* Game area */
#sr-game {
  padding: 28px 28px 24px;
}
.sr-question {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.5;
}
.sr-question strong { color: var(--text); }

/* Comparison card */
.sr-comp-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 22px;
}
.sr-comp-poster {
  width: 155px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
}
.sr-comp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-comp-info { flex: 1; min-width: 0; }
.sr-comp-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.sr-comp-score-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.sr-comp-score-star { color: #f5c518; font-size: 13px; }
.sr-comp-score-num  { font-size: 15px; font-weight: 700; color: var(--text); }
.sr-comp-score-lbl  { font-size: 11px; color: var(--text-muted); }
.sr-comp-synopsis {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Yes / No buttons */
.sr-btn-row {
  display: flex;
  gap: 10px;
}
.sr-no-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sr-no-btn:hover { background: rgba(248,113,113,0.1); border-color: var(--red); color: var(--red); }
.sr-yes-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  background: rgba(74,143,212,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.sr-yes-btn:hover { background: rgba(74,143,212,0.22); }

/* Result screen */
#sr-result { padding: 28px 22px; }
.sr-result-inner { text-align: center; }
.sr-result-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sr-result-score {
  font-size: 52px;
  font-weight: 700;
  color: #b89aff;
  line-height: 1;
  margin-bottom: 6px;
}
.sr-result-word {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
  min-height: 20px;
}
.sr-result-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.sr-confirm-btn { min-width: 160px; }
