/* ===== Espresso Style System ===== */

/* CSS Variables */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --card: #fff;
  --border: #dfe1e5;
  --muted: #666;
  --accent: #4285f4;
  --input-bg: #fff;
  --input-border: #ccc;
  --positive: #27ae60;
  --negative: #e74c3c;
  --hover-bg: #f5f5f5;
  --topbar-height: 60px;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --fg: #e8eaed;
  --card: #161616;
  --border: #2a2a2a;
  --muted: #999;
  --accent: #79c0ff;
  --input-bg: #1a1a1a;
  --input-border: #333;
  --positive: #7ee787;
  --negative: #ff7b72;
  --hover-bg: #1f1f1f;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

/* Base */
body {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Top Bar ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0.75rem;
  z-index: 100;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  margin-left: auto;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Global Search */
.global-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
}

.global-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.global-search-input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--fg);
}

.global-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.category-filter {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--fg);
  cursor: pointer;
  flex-shrink: 0;
}

.category-filter:focus {
  outline: none;
  border-color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-toggle:hover {
  background: var(--hover-bg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--hover-bg);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.user-dropdown .dropdown-toggle {
  font-weight: 600;
}

/* Top Bar Right */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.auth-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
  white-space: nowrap;
}

.auth-btn:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

.auth-btn.sign-up {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

[data-theme="dark"] .auth-btn.sign-up {
  background: #e8eaed;
  color: #1a1a1a;
  border-color: #e8eaed;
}

.auth-btn.sign-up:hover {
  opacity: 0.9;
}

/* Theme Toggle */
#themeToggle {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-weight: 500;
}

#themeToggle:hover {
  background: var(--hover-bg);
}

/* ===== Landing Page ===== */
.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.landing-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

form {
  width: min(90vw, 560px);
}

.search-box {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  font-family: inherit;
}

.search-box:focus {
  border-color: var(--accent);
}

.options {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.option {
  padding: 0.75rem 1rem;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  font-family: inherit;
}

.option:hover {
  opacity: 0.9;
  text-decoration: none;
}

.option-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--border);
  border-color: var(--border);
  color: var(--muted);
}

/* ===== Games Page ===== */
.games-container {
  display: flex;
  padding-top: calc(var(--topbar-height) + 1rem);
}

.games-layout {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 180px;
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 12px;
}

.sidebar-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--fg);
  text-decoration: none;
}

/* Games Content */
.games-content {
  flex: 1;
  padding: 1.25rem;
  min-width: 0;
  margin-left: 180px;
}

.games-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.games-header h1 {
  font-size: 18px;
  font-weight: normal;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.games-count {
  font-size: 12px;
  color: var(--muted);
}

/* Games Table */
.games-table {
  width: 100%;
}

.table-header {
  display: grid;
  grid-template-columns: 50px 80px 1fr 120px 80px;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.games-grid {
  display: flex;
  flex-direction: column;
}

.game-card {
  display: grid;
  grid-template-columns: 50px 80px 1fr 120px 80px;
  gap: 12px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  align-items: center;
}

.game-card:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

/* Movie-specific grid layout with poster and title */
.movie-card {
  grid-template-columns: 40px 60px 1fr 80px 90px 70px;
}

.movies-table-header {
  display: grid;
  grid-template-columns: 40px 60px 1fr 80px 90px 70px;
  gap: 12px;
  padding: 4px 12px;
}

.movie-year {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.game-rank {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.game-cover img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.no-cover {
  width: 50px;
  height: 70px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  background: var(--input-bg);
}

.game-title {
  font-size: 14px;
  font-weight: normal;
}

.game-score {
  font-size: 14px;
  text-align: center;
}

.woke-score {
  font-weight: bold;
}

.no-score {
  color: var(--muted);
}

.game-reviews {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.no-reviews {
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.pagination-btn:hover {
  border-color: var(--fg);
  text-decoration: none;
}

.pagination-info {
  font-size: 12px;
  color: var(--muted);
}

.back-link {
  margin-top: 24px;
  padding: 24px 1rem;
  border-top: 1px solid var(--border);
}

.back-link a {
  font-size: 12px;
  color: var(--muted);
}

/* ===== Game Detail Page ===== */
.detail-container {
  max-width: 750px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 2rem) 1.5rem 3rem;
  min-height: 100vh;
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-block;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.back-btn:hover {
  opacity: 0.7;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

/* Movie detail layout - responsive */
.movie-detail-layout {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.movie-poster {
  flex-shrink: 0;
}

.movie-poster img {
  width: 300px;
  max-height: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  object-fit: cover;
  display: block;
}

.movie-info {
  flex: 1;
  min-width: 0;
}

.detail-hero {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.detail-cover {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}

.detail-no-cover {
  width: 120px;
  height: 160px;
  background: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.detail-header {
  flex: 1;
  min-width: 0;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.detail-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.detail-year {
  font-size: 1.1rem;
  color: var(--muted);
}

.detail-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.meta-tag {
  display: inline;
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: 1rem;
}

.meta-tag strong {
  color: var(--fg);
  font-weight: 600;
}

.detail-scores {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.score-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
}

.score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Histogram */
.histogram {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  gap: 4px;
  margin: 16px 0;
}

.hist-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.hist-bar {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--border);
  min-height: 2px;
  transition: height 0.3s ease;
}

.hist-label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.histogram-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.histogram-card {
  min-height: 200px;
}

/* Gauge */
.gauge-wrap {
  text-align: center;
}

.gauge-text {
  font-size: 32px;
  font-weight: bold;
}

/* Woke Categories Section */
.woke-categories {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.woke-categories-title {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: normal;
}

.woke-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.woke-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--hover-bg);
}

.woke-tag-label {
  font-size: 14px;
  font-weight: 500;
}

.woke-tag-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Detail Section */
.detail-section {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h2 {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.detail-summary,
.detail-storyline {
  font-size: 14px;
  line-height: 1.6;
}

/* Distribution */
.distribution-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.distribution-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.distribution-label {
  width: 50px;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}

.distribution-bar-bg {
  flex: 1;
  height: 16px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.distribution-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.distribution-count {
  width: 35px;
  text-align: right;
  color: var(--fg);
  font-weight: 600;
  font-size: 12px;
}

/* Top Categories */
.top-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.category-tag {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--hover-bg);
  text-align: center;
  font-weight: 500;
}

/* Reviews Section */
.reviews-section {
  margin-top: 40px;
}

.reviews-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.write-review-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.write-review-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.view-all-reviews-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.view-all-reviews-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.review:last-child {
  border-bottom: none;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.review-body {
  flex: 1;
  min-width: 0;
}

.review-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.review-byline {
  font-size: 12px;
}

.review-score {
  font-size: 12px;
  font-weight: bold;
}

.review-date {
  font-size: 11px;
  color: var(--muted);
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.review-tag {
  padding: 4px 8px;
  border: 1px solid var(--border);
  font-size: 11px;
  background: var(--card);
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-footer {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-like-btn,
.review-report-btn,
.review-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.review-like-btn:hover,
.review-report-btn:hover,
.review-delete-btn:hover {
  border-color: var(--fg);
}

.review-like-btn.liked {
  color: var(--accent);
  border-color: var(--accent);
}

.review-report-btn.reported {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.review-delete-btn:hover {
  color: var(--negative);
  border-color: var(--negative);
}

.disabled-action {
  opacity: 0.5;
  cursor: default;
}

.review-empty {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

/* Flash Messages */
.flash-msg {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.flash-success {
  background: var(--card);
  border-color: var(--positive);
  color: var(--positive);
}

.flash-error {
  background: var(--card);
  border-color: var(--negative);
  color: var(--negative);
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.review-modal {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.review-modal-header h3 {
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close-btn {
  border: 1px solid var(--border);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 12px;
  font-family: inherit;
  color: var(--fg);
}

.modal-close-btn:hover {
  border-color: var(--fg);
}

/* Form Elements */
.review-form-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.review-form-label:first-of-type {
  margin-top: 0;
}

.review-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  box-sizing: border-box;
}

.review-input:focus {
  outline: none;
  border-color: var(--accent);
}

.review-input-score {
  max-width: 120px;
  font-weight: bold;
}

/* Range Slider */
.review-input-slider {
  width: 100%;
  height: 6px;
  background: var(--hover-bg);
  border: 1px solid var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin: 12px 0;
}

.review-input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
}

.review-input-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: pointer;
}

.review-input-slider::-webkit-slider-thumb:hover {
  background: var(--fg);
}

.review-input-slider::-moz-range-thumb:hover {
  background: var(--fg);
}

#wokeScoreValue {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.review-input-comment {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Category Grid */
.review-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.review-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}

.review-cat-label:hover {
  border-color: var(--fg);
}

.review-cat-label input[type="checkbox"] {
  cursor: pointer;
}

.review-submit-btn {
  margin-top: 24px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.review-submit-btn:hover {
  opacity: 0.9;
}

/* ===== Auth Pages ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.auth-card h1 {
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 30px;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.auth-submit {
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-forgot {
  text-align: right;
  margin-bottom: 20px;
}

.auth-forgot a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Flash Messages */
.flash-message {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.flash-success {
  background: rgba(126, 231, 135, 0.1);
  border-color: var(--positive);
  color: var(--positive);
}

.flash-error {
  background: rgba(255, 123, 114, 0.1);
  border-color: var(--negative);
  color: var(--negative);
}

.flash-warning {
  background: rgba(255, 200, 100, 0.1);
  border-color: #ffc864;
  color: #ffc864;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.auth-error {
  color: var(--negative);
  font-size: 13px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--negative);
  background: var(--card);
}

/* ===== About/Contact Pages ===== */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.about-container h1 {
  font-size: 24px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-container h2 {
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-container p,
.about-container ul {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-container ul {
  padding-left: 20px;
}

.about-container a {
  color: var(--accent);
}

.contact-form {
  margin-top: 32px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: var(--topbar-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--topbar-height));
  background: var(--bg);
  border-left: 1px solid var(--border);
  transition: right 0.3s ease;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 1rem;
}

.mobile-search {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-search .global-search-form {
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-search .global-search-input,
.mobile-search .category-filter {
  width: 100%;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-item {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  cursor: pointer;
}

.mobile-nav-item:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

body.menu-open {
  overflow: hidden;
}

/* Hide mobile menu elements by default */
.mobile-menu {
  display: none;
}

/* ===== Inline Forms ===== */
.inline-form {
  display: inline;
}

/* ===== Responsive ===== */
/* Tablet landscape and smaller desktops */
@media (max-width: 1024px) {
  .games-content,
  .profile-container,
  .list-view-container,
  .detail-container {
    max-width: 100%;
  }

  .sidebar-nav {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .logo a {
    font-size: 1rem;
  }

  .dropdown-toggle,
  .auth-btn,
  #themeToggle {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .global-search-input {
    font-size: 0.85rem;
  }

  /* Tablet adjustments */
  .games-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail-container {
    padding: calc(var(--topbar-height) + 1.5rem) 1.5rem 1.5rem;
  }

  /* Review form tablet */
  .review-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Game detail tablets */
  .detail-header {
    gap: 1.5rem;
  }

  .detail-cover {
    width: 180px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 56px;
  }

  .top-bar {
    flex-wrap: nowrap;
    padding: 0.75rem;
    height: var(--topbar-height);
    justify-content: space-between;
  }

  .logo {
    flex-shrink: 0;
  }

  /* Hide desktop navigation and search on mobile */
  .desktop-search,
  .desktop-nav {
    display: none !important;
  }

  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
  }

  /* Show mobile menu */
  .mobile-menu {
    display: block;
  }

  /* Adjust mobile menu position */
  .mobile-menu {
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
  }

  .games-container {
    padding-top: 1rem;
  }

  .games-layout {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .games-content {
    margin-left: 0;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    padding: 0 1rem;
    white-space: nowrap;
  }

  .sidebar-nav li {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar-link {
    font-size: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: block;
    background: var(--card);
  }

  .sidebar-link.active {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
  }

  .table-header {
    display: none;
  }

  .game-card,
  .movie-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  /* Stack movie detail layout on mobile */
  .movie-detail-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .movie-poster img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .meta-info {
    margin-top: 0.75rem;
  }

  /* Hide game description on mobile - it pushes content down */
  .detail-summary {
    display: none;
  }

  .game-rank {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 10px;
    background: var(--bg);
    color: var(--muted);
    padding: 2px 6px;
    border: 1px solid var(--border);
    z-index: 1;
  }

  .game-cover,
  .movie-poster-thumb {
    width: 100%;
    max-width: 120px;
    height: auto;
    position: relative;
    margin: 0 auto;
  }

  .game-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--border);
  }

  .game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .game-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 500;
  }

  .movie-director,
  .movie-genres {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
  }

  .movie-year,
  .game-reviews {
    display: inline;
    font-size: 0.85rem;
    color: var(--muted);
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .movie-year::before {
    content: 'Year: ';
    color: var(--muted);
  }

  .movie-year::after {
    content: ' • ';
    margin: 0 0.25rem;
  }

  .game-reviews::before {
    content: 'Reviews: ';
    color: var(--muted);
  }

  .game-score {
    display: block;
    font-size: 0.85rem;
    padding: 0;
    background: none;
    border-radius: 0;
    margin-top: 0.25rem;
  }

  .game-score::before {
    content: 'Woke Score: ';
    color: var(--muted);
  }

  .game-score .woke-score,
  .game-score .no-score {
    font-weight: 600;
  }

  .games-container {
    padding-top: calc(var(--topbar-height) + 1rem);
  }

  .games-header {
    padding: 1rem;
  }

  .games-header h1 {
    font-size: 1.5rem;
  }

  .games-count {
    font-size: 0.85rem;
  }

  .games-content {
    padding: 0;
  }

  .games-grid {
    gap: 0;
  }

  .game-card {
    position: relative;
    border-bottom: 1px solid var(--border);
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .review-categories-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .review-modal {
    max-height: 95vh;
    padding: 20px;
  }

  .auth-card {
    padding: 24px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .pagination-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  .pagination-info {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .detail-container {
    padding: 90px 0.75rem 1rem;
  }

  .auth-card {
    padding: 1.25rem;
  }

  /* Very small screens */
  .logo a {
    font-size: 0.9rem;
  }

  .global-search-input {
    font-size: 0.8rem;
  }

  .category-filter {
    font-size: 0.75rem;
  }

  .game-title {
    font-size: 0.95rem;
  }

  .profile-stats, .list-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat {
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .add-to-list-modal {
    padding: 1rem;
    margin: 0.5rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }
}

/* ===== User Profile & Lists ===== */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 2rem) 1.5rem 2rem;
}

.profile-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.profile-joined {
  color: var(--muted);
  margin-bottom: 1rem;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-section {
  margin: 3rem 0;
}

.profile-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.profile-table-row:hover {
  background: rgba(121, 192, 255, 0.05);
}

.profile-table-row:last-child {
  border-bottom: none;
}

.profile-table-main {
  flex: 1;
  min-width: 0;
}

.profile-table-link {
  text-decoration: none;
  color: var(--fg);
  font-size: 1.1rem;
}

.profile-table-link:hover {
  color: var(--accent);
}

.profile-table-desc {
  margin: 0.5rem 0 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.profile-table-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  flex-shrink: 0;
}

.profile-table-meta .review-score {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  border-radius: 3px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 1.1rem;
}

.username-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.username-link:hover {
  color: var(--accent);
}

/* List View Page */
.list-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 2rem) 1.5rem 2rem;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.list-title-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.list-owner {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.list-owner a {
  color: var(--accent);
  text-decoration: none;
}

.list-owner a:hover {
  text-decoration: underline;
}

.list-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary, .btn-secondary, .btn-danger {
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: var(--fg);
  color: var(--bg);
}

.btn-danger {
  background: #d32f2f;
  color: white;
}

.btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
  opacity: 0.9;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.list-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.list-items {
  margin-top: 2rem;
}

.list-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.delete-list-form {
  display: inline;
  margin: 0;
}

.btn-delete-discrete {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-delete-discrete:hover {
  border-color: #d32f2f;
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
}

.col-actions {
  text-align: center;
}

.game-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Settings Page */
.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 2rem) 1.5rem 2rem;
}

.settings-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.settings-section {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.settings-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--muted);
}

.info-value {
  color: var(--fg);
}

.settings-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-link {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s;
  display: block;
}

.settings-link:hover {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .list-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .list-actions {
    width: 100%;
    justify-content: stretch;
  }

  .list-actions button {
    flex: 1;
  }

  .profile-stats, .list-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .profile-table-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .profile-table-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Modal adjustments for mobile */
  .add-to-list-modal {
    max-width: 100%;
    max-height: 90vh;
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  /* List title row mobile */
  .list-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-delete-discrete {
    align-self: flex-start;
  }

  /* Game actions column */
  .col-actions {
    display: none;
  }

  .game-card {
    position: relative;
  }

  .game-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }

  .game-actions .btn-small {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Profile container padding */
  .profile-container,
  .list-view-container,
  .settings-container {
    padding: calc(var(--topbar-height) + 1rem) 1rem 1rem;
  }

  /* Detail container adjustments */
  .detail-container {
    padding: 90px 1rem 1rem;
  }

  .detail-header {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-cover {
    width: 150px;
    height: 200px;
    margin: 0 auto;
  }

  .detail-content {
    margin-left: 0;
    text-align: center;
  }

  /* Review form mobile */
  .review-categories-grid {
    grid-template-columns: 1fr;
  }

  /* Landing page */
  .landing-hero h1 {
    font-size: 2rem;
  }

  .landing-hero p {
    font-size: 1rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  /* Dropdown menus mobile */
  .dropdown-menu {
    min-width: 180px;
    right: 0;
  }

  /* Forms mobile */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  /* Review cards mobile */
  .review {
    flex-direction: column;
    gap: 0.75rem;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .review-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .review-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Games grid mobile - ensure proper spacing */
  .games-grid {
    gap: 0;
  }

  .game-card {
    padding: 0.75rem;
  }

  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Stats displays */
  .detail-stats {
    padding: 1rem;
  }

  .stat-item {
    min-width: auto;
  }

  /* Review modal mobile */
  .review-modal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .modal-backdrop.active {
    padding: 0;
  }

  /* Settings page mobile */
  .settings-form {
    padding: 0;
  }

  /* Auth pages mobile */
  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    margin: 1rem 0;
  }

  /* User lists in modal */
  .user-lists-grid {
    gap: 0.5rem;
  }

  .list-option {
    padding: 0.75rem;
  }

  /* Top bar adjustments for small phones */
  .top-bar-right {
    gap: 0.25rem;
  }

  .dropdown-toggle {
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
  }
}

/* Add to List Modal - Espresso Style */
.add-to-list-modal {
  max-width: 800px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 12px;
  line-height: 1;
  font-family: inherit;
}

.modal-close:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.modal-body {
  padding: 0;
}

.list-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 8px;
  background: var(--bg);
}

.list-option:hover {
  border-color: var(--accent);
}

.list-option-info {
  flex: 1;
  min-width: 0;
}

.list-option-info h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.list-option-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.loading-text, .error-text {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.error-text {
  color: #dc2626;
}

/* Feed Cards - Goodreads Style */
.feed-section {
  margin-bottom: 2rem;
}

.feed-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.feed-card-header {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feed-user {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.feed-user:hover {
  text-decoration: underline;
}

.feed-item-link {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}

.feed-item-link:hover {
  color: var(--accent);
}

.feed-card-body {
  display: flex;
  gap: 1.5rem;
}

.feed-cover {
  flex-shrink: 0;
  width: 80px;
}

.feed-cover img {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-rating {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feed-review-text {
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
  color: var(--fg);
}

.feed-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.add-to-list-btn {
  background: var(--accent);
  color: var(--bg);
}

.add-to-list-btn:hover {
  opacity: 0.9;
}

/* Game Search on List Detail Page */
.add-games-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(121, 192, 255, 0.05);
}

.add-games-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
}

.game-search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(121, 192, 255, 0.1);
}

.search-result-item.no-results {
  justify-content: center;
  color: var(--muted);
  font-style: italic;
}

.search-result-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.search-result-info img {
  width: 40px;
  height: 53px;
  object-fit: cover;
}

.search-result-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-result-year {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .add-games-section {
    padding: 1rem;
  }

  .search-result-info img {
    width: 30px;
    height: 40px;
  }
}
