/* ==========================================
   Design System & Root Variables
========================================== */
:root {
  /* Colors */
  --bg-primary: #09090b; /* 漆黒に近いダークグレー */
  --bg-secondary: rgba(18, 18, 18, 0.85); /* 濃いグレーのガラス */
  --bg-card: rgba(24, 24, 27, 0.45);
  --bg-modal: rgba(9, 9, 11, 0.96);
  
  --accent-color: #ffffff; /* 白 */
  --accent-glow: rgba(255, 255, 255, 0.12); /* 白い光 */
  --accent-hover: #e4e4e7; /* ライトグレー */
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa; /* グレー */
  --text-muted: #52525b; /* 濃いグレー */
  
  --color-movie: #f4f4f5; /* シルバーグレー */
  --color-drama: #a1a1aa; /* 中間グレー */
  --color-anime: #e4e4e7; /* ライトグレー */
  
  --color-star: #e4e4e7; /* 白/シルバー */
  
  --status-completed: #fafafa;
  --status-watching: #a1a1aa;
  --status-backlog: #71717a;
  --status-paused: #3f3f46;

  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: rgba(0, 0, 0, 0.6);
  --glass-blur: 20px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Reset & Base Styles
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 背景のモノトーン発光エフェクト */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vh;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: float 20s ease-in-out infinite alternate;
}

.bg-glow-2 {
  background: radial-gradient(circle, #a1a1aa 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.2); }
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   Reusable Styles & Utilities
========================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel-sub {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 100%);
  color: #09090b;
  box-shadow: 0 4px 12px var(--accent-glow);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary.active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

.logo-area, #user-badge {
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}
.logo-area:hover, #user-badge:hover {
  opacity: 0.8 !important;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.btn-icon-danger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f3f4f6;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-fast);
}
.btn-text-link:hover {
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-movie { background-color: rgba(24, 24, 27, 0.95); color: #fafafa; border: 1px solid rgba(255, 255, 255, 0.2); }
.badge-drama { background-color: rgba(24, 24, 27, 0.95); color: #d4d4d8; border: 1px solid rgba(161, 161, 170, 0.3); }
.badge-anime { background-color: rgba(24, 24, 27, 0.95); color: #e4e4e7; border: 1px solid rgba(228, 228, 231, 0.3); }
.badge-game  { background-color: rgba(15, 23, 42, 0.95); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-book  { background-color: rgba(6, 78, 59, 0.95); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.35); }

.badge-status {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-status[data-status="completed"] { color: #ffffff; border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.06); }
.badge-status[data-status="watching"] { color: #d4d4d8; border-color: rgba(212, 212, 216, 0.2); background-color: rgba(212, 212, 216, 0.06); }
.badge-status[data-status="backlog"] { color: #a1a1aa; border-color: rgba(161, 161, 170, 0.2); background-color: rgba(161, 161, 170, 0.06); }
.badge-status[data-status="paused"] { color: #71717a; border-color: rgba(113, 113, 122, 0.2); background-color: rgba(113, 113, 122, 0.06); }

/* 星評価表示 */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
}
.star-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.star-icon.empty {
  fill: transparent;
  color: var(--text-muted);
}
.star-icon.half {
  /* 半星のグラデーション等の高度な処理は簡易化し、半透明等にするか、JS側で星分け */
}

/* ==========================================
   Layout Containers
========================================== */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 10;
}

/* ヘッダー */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative !important;
  z-index: 999999 !important;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-color);
}
.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text-primary), #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.action-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   Dashboard Section
========================================== */
.dashboard-section {
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dashboard-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-header h2 i {
  color: var(--accent-color);
  width: 18px;
  height: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  transition: all var(--transition-normal);
  overflow: hidden;
}
.stats-grid.collapsed {
  height: 0 !important;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.stat-card {
  background: rgba(15, 15, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-value-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.category-breakdown {
  grid-column: span 2;
}

.progress-bar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.progress-info strong {
  color: var(--text-primary);
}

.multi-progress-bar {
  display: flex;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-segment {
  height: 100%;
  transition: width var(--transition-normal);
}
.segment-movie { background-color: var(--color-movie); }
.segment-drama { background-color: var(--color-drama); }
.segment-anime { background-color: var(--color-anime); }

/* ==========================================
   Filter & Controls Section
========================================== */
.filter-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.search-box {
  position: relative;
  width: 100%;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}
.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 40px !important;
  padding-left: 40px !important;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.btn-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-clear:hover {
  color: var(--text-primary);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
}
.filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.custom-select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 140px;
}
.custom-select:focus {
  outline: none;
  border-color: var(--accent-color);
}
.custom-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.active-tags-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.active-tags-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-hover);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tag-badge:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-color);
}

/* ==========================================
   Media Grid & Cards
========================================== */
.media-grid-container {
  min-height: 300px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* アイキャッチ画像の上部半透明黒幕グラデーション（テキストバッジの視認性劇的向上） */
.card-image-wrapper {
  position: relative;
}
.card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Twitter / X 風タイムライン専用スタイル */
#timeline-posts .media-card {
  transition: background-color 0.2s, border-color 0.2s;
}

#timeline-posts .media-card:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
  transform: none !important; /* SNSフィードらしく縦揺れさせない */
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-quote-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s, border-color 0.2s;
}

.timeline-quote-card:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.btn-timeline-action {
  transition: color 0.15s, opacity 0.15s;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-timeline-action:hover {
  opacity: 0.8;
}

/* いいねボタンホバー */
.btn-like-toggle:hover {
  color: #ef4444 !important;
}

/* フォローボタンホバー */
.btn-follow-toggle:hover {
  color: var(--accent-color) !important;
}

/* 返信アコーディオンのスクロールバー微調整 */
.reply-list::-webkit-scrollbar {
  width: 4px;
}
.reply-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}
.media-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  width: 100%;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.media-card:hover .card-img {
  transform: scale(1.05);
}

.cover-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 31, 53, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  position: relative;
}
.cover-fallback i {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cover-fallback-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-secondary);
}

/* カード上のオーバーレイバッジ */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.card-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-slogan {
  font-size: 0.85rem;
  color: var(--accent-hover);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: -4px;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-rating-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-review-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-watch-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 空状態の表示 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 16px;
  animation: fadeIn var(--transition-normal);
}
.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 1.25rem;
}
.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  font-size: 0.9rem;
}

/* ==========================================
   Modal Dialogs
========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-modal-content {
  max-width: 960px;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* アニメーション */
.animated-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================
   Form Styling
========================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}
.flex-1 {
  flex: 1;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-group label.required::after {
  content: " *";
  color: #ef4444;
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 14px;
  height: 14px;
}

.toggle-spoiler-label {
  color: #f87171;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.custom-select {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  font-size: 0.9rem !important;
  transition: all var(--transition-fast) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus,
.custom-select:focus {
  outline: none !important;
  border-color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.rating-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rating-input-container input[type="number"] {
  width: 70px;
}
.star-rating-preview {
  color: var(--color-star);
  display: flex;
  gap: 2px;
}

/* ==========================================
   Detail Modal View Styling
========================================== */
.detail-body-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-cover-container {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  background: rgba(0,0,0,0.2);
}
.detail-cover-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.meta-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-label i {
  width: 14px;
  height: 14px;
}
.meta-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 80%;
}
.detail-header-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
  margin-top: 4px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-slogan-quote {
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
  margin: 4px 0;
  font-style: italic;
  color: var(--accent-hover);
  font-size: 1.05rem;
  font-weight: 500;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}
.section-title i {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
}

.detail-text-content {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.detail-text-content-sub {
  font-size: 0.9rem;
  padding: 8px 12px;
  background: rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
}

.notes-content {
  font-family: monospace;
  font-size: 0.85rem;
  color: #d1d5db;
}

.detail-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ネタバレ警告 */
.spoiler-warning-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin: 6px 0;
}
.spoiler-warning-box p {
  color: #f87171;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spoiler-warning-box i {
  width: 18px;
  height: 18px;
}
.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.spoiler-blurred {
  filter: blur(12px) select(none);
  user-select: none;
  pointer-events: none;
  opacity: 0.3;
}

/* ==========================================
   Responsive Styles
========================================== */
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .detail-body-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .detail-sidebar {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .detail-cover-container {
    width: 150px;
  }
  
  .detail-meta-list {
    flex-grow: 1;
  }
  
}

@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .logo-area h1 {
    font-size: 1.5rem !important;
    text-align: center;
  }
  .action-area {
    width: 100%;
    justify-content: center;
    gap: 8px !important;
  }
  .action-area .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    flex-grow: 1;
  }
  .action-area .btn-icon {
    padding: 8px !important;
  }
  
  .detail-sidebar {
    flex-direction: column;
    align-items: center;
  }
  
  .detail-cover-container {
    width: 160px;
  }
  .detail-meta-list {
    width: 100%;
  }
  
  .detail-row-2col {
    grid-template-columns: 1fr;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .filter-btn {
    flex-grow: 1;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }
  
  .custom-select {
    width: 100%;
  }

  /* スマホ向けタイムラインカード：画像が歪まないようにスマートな横並びを維持 */
  #timeline-posts .media-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  #timeline-posts .media-card img.card-img,
  #timeline-posts .media-card .cover-fallback {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 110px !important;
    object-fit: cover !important;
  }
  #timeline-posts .media-card .card-body {
    padding: 0 !important;
  }
  #timeline-posts .media-card .card-title {
    font-size: 0.9rem !important;
  }

  /* スマホ向けモーダルサイズ最適化 */
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 16px !important;
    margin: 10px auto !important;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .form-column {
    width: 100% !important;
  }
}

/* 監督・演者名ホバーリンク色・アニメーション */
#detail-cast .search-link {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

#detail-director span:hover, #detail-cast .search-link:hover {
  color: var(--color-star) !important;
  opacity: 0.9;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* カルーセルのスクロールバースタイル */
.carousel-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.carousel-container::-webkit-scrollbar {
  height: 4px;
}
.carousel-container::-webkit-scrollbar-track {
  background: transparent;
}
.carousel-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.carousel-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   Cover Image Upload Tabs & Box (Monochrome)
========================================== */
.cover-input-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cover-input-panel {
  width: 100%;
}

.file-input-hidden {
  display: none;
}

.file-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.drop-zone-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.file-drop-zone:hover .drop-zone-icon {
  color: var(--text-secondary);
}

.file-drop-zone span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cover-current-preview-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cover-current-preview-box img {
  height: 60px;
  width: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ネタバレ警告のモノクロ調調整 */
.spoiler-warning-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.spoiler-warning-box p {
  color: var(--text-secondary) !important;
}

/* ==========================================
   Login UI & Modal (Monochrome)
========================================== */
.login-status-container {
  display: flex;
  align-items: center;
}

.logged-in-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-badge i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.modal-login-content {
  max-width: 420px;
}

.login-intro-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.login-error-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  color: #fafafa;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

/* ==========================================
   Global Ranking Section (Monochrome & Premium)
========================================== */
.global-ranking-section {
  padding: 24px;
  margin-bottom: 32px;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 14px;
}

.ranking-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.ranking-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  
  /* スマホ向け1行化・横スクロール・はみ出しスワイプ */
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari, Opera 用スクロールバー非表示 */
.ranking-tabs::-webkit-scrollbar {
  display: none !important;
}

.ranking-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  
  /* 横スクロール時にはみ出て縮むのを防ぐ */
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.ranking-tab-btn:hover {
  color: var(--text-primary);
}

.ranking-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ranking-category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ranking-cat-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ranking-cat-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.ranking-cat-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* ランキング タグ切り替え */
.ranking-tag-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 4px 10px 4px;
  margin-top: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.ranking-tag-filters::-webkit-scrollbar {
  height: 4px;
}

.ranking-tag-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.ranking-tag-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ranking-tag-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.ranking-tag-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* トップ3：映画ポスター風プレミアムカードレイアウト */
.ranking-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.rank-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s, box-shadow 0.4s;
  cursor: default;
}

/* 順位に応じた特別感 */
.rank-card-1 {
  height: 250px; /* 1位を大きく目立たせる */
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.rank-card-1::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
}

.rank-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.03);
}

/* 背景画像ポスター */
.rank-card-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.6s;
  z-index: 0;
}
.rank-card:hover .rank-card-bg-img {
  opacity: 0.4;
  transform: scale(1.05);
}

.rank-card-bg-fallback {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.08;
  z-index: 0;
}

/* 順位の大きな半透明文字 */
.rank-card-number {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.8;
  font-style: italic;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  transition: color 0.3s, transform 0.4s;
  z-index: 0;
  font-family: 'Outfit', sans-serif;
}
.rank-card:hover .rank-card-number {
  color: rgba(255, 255, 255, 0.08);
  transform: scale(1.1) rotate(-5deg);
}

/* 特大順位バッジ */
.rank-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 2;
}

.rank-card-badge-1 { background: #ffffff; color: #000; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.rank-card-badge-2 { background: #a1a1aa; color: #000; }
.rank-card-badge-3 { background: #52525b; color: #fff; }

/* 情報オーバーレイ */
.rank-card-info {
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4) 70%, transparent);
  width: 100%;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.rank-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-card-slogan {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.rank-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 4位以下のリストデザイン（スリムでコンパクト） */
.ranking-others {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.rank-row-wrapper {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.rank-row-wrapper:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: transparent;
  border: none;
}

.rank-row-review {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 6px 16px 8px 52px;
  border-top: 1px dashed rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-card-review-bubble {
  font-size: 0.7rem;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-style: italic;
  max-height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.rank-row-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.rank-row-cover {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-row-fallback {
  width: 32px;
  height: 44px;
  border-radius: 3px;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  padding: 2px;
}

.rank-row-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ==========================================
   Autocomplete / Suggestions (Monochrome)
========================================== */
.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  max-height: 210px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.autocomplete-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.autocomplete-suggestion-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.autocomplete-thumb {
  width: 24px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.autocomplete-thumb-fallback {
  width: 24px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.autocomplete-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.autocomplete-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-slogan {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スマホ対応調整 */
@media (max-width: 768px) {
  .ranking-top3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rank-card {
    height: 180px;
  }
  .rank-card-1 {
    height: 190px;
  }
}

/* ==========================================
   Reviews Timeline Modal (Premium Glass)
   ========================================== */
.timeline-modal-content {
  max-width: 650px;
  width: 95%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.timeline-body-layout {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 4px;
}

.timeline-meta-summary {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  align-items: center;
}

.timeline-cover-wrapper {
  width: 70px;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  padding: 4px;
}

.timeline-meta-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
}

.timeline-slogan {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.pill-label {
  color: var(--text-muted);
}

.pill-value {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-reviews-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin: 0;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.timeline-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-username {
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-item-meta {
  color: var(--text-muted);
}

.timeline-item-rating {
  color: var(--color-star);
  font-weight: 600;
}

.timeline-review-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  white-space: pre-wrap;
}

.timeline-spoiler-alert {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.timeline-spoiler-alert:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-tag {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 10px;
}

.badge-genre {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 2px 8px;
  font-size: 0.65rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ==========================================
   UI Unification & Close Button Fix (Global)
   ========================================== */

/* すべての閉じるバツボタンを完全透過・円形モダンホバー化 */
button.btn-close-modal,
.btn-close-modal,
.modal-close-btn,
.modal-header button,
button[aria-label="Close"],
.dialog-close-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

button.btn-close-modal:hover,
.btn-close-modal:hover,
.modal-close-btn:hover,
.modal-header button:hover,
button[aria-label="Close"]:hover,
.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

/* パスワード入力欄を含む全フォーム要素の完全統一スタイル */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea {
  background: rgba(0, 0, 0, 0.3) !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm, 8px) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
}

/* selectのドロップダウン矢印を保持 */
select {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  cursor: pointer !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================
   Viewing Friend Library Special Theme (Premium)
   ========================================== */
body.viewing-friend {
  background: radial-gradient(circle at top, #110e20 0%, #030206 100%) !important;
  transition: background 0.4s ease;
}

body.viewing-friend .dashboard-section {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

body.viewing-friend .friend-library-banner-premium {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.12) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.08) !important;
}

body.viewing-friend .media-card {
  border-color: rgba(139, 92, 246, 0.12) !important;
}

body.viewing-friend .media-card:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08) !important;
}

body.viewing-friend .badge-genre {
  border-color: rgba(139, 92, 246, 0.25) !important;
  color: #c084fc !important;
}

/* ==========================================
   WordPress 管理バー回避用余白
   ========================================== */
.admin-bar .app-container {
  padding-top: 72px !important;
}

/* ==========================================
   WordPress テーマの .btn クラス衝突対策
   ========================================== */
/* WPテーマが .btn に pointer-events:none 等を設定してボタンを無効化するのを防ぐ */
.app-container .btn,
.app-container .btn-primary,
.app-container .btn-secondary,
.app-container .btn-icon,
.app-container .btn-close-modal,
.app-container button,
.main-header .btn,
.main-header .btn-primary,
.main-header .btn-secondary,
.main-header .btn-icon,
.main-header button,
.modal-overlay .btn,
.modal-overlay .btn-primary,
.modal-overlay .btn-secondary,
.modal-overlay .btn-icon,
.modal-overlay .btn-close-modal,
.modal-overlay button {
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================
   モーダル非表示時の完全クリック透過処理
   ========================================== */
.modal-overlay[style*="display: none"] {
  display: none !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* アプリ全体のクリック領域を保証 */
.app-container {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

/* PCでの追加・編集モーダルの最大幅拡張と3カラム化（縦スクロールなし化） */
@media (min-width: 901px) {
  #modal-form .modal-content {
    max-width: 1150px !important;
    width: 95% !important;
    max-height: 95vh !important;
  }
  #modal-form .form-grid {
    grid-template-columns: 1.1fr 1fr 1.2fr !important;
    gap: 20px !important;
  }
  #modal-form .modal-body {
    padding: 16px 24px !important;
  }
  #modal-form .form-group {
    gap: 4px !important;
  }
  #modal-form .form-row {
    gap: 12px !important;
  }
}

/* PC/モバイル用ナビゲーション表示切り替え */
.pc-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}

@media (max-width: 600px) {
  .pc-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
  .main-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px !important;
  }
  .logo-area h1 {
    font-size: 1.3rem !important;
    text-align: left !important;
  }
}

/* ==========================================
   スマホ専用ドロワーサイドバー
   ========================================== */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-sidebar-content {
  width: 290px;
  height: 100%;
  background: rgba(20, 18, 16, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sidebar-overlay.active .mobile-sidebar-content {
  transform: translateX(0);
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 14px;
}
.sidebar-header .logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
}
.sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
}
.btn-text-sidebar {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  justify-content: flex-start !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  transition: all var(--transition-fast) !important;
}
.btn-text-sidebar:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.btn-text-sidebar i {
  margin-right: 10px !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--accent-color) !important;
}
#mobile-sidebar .btn-primary {
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  justify-content: flex-start !important;
}
#mobile-sidebar .btn-primary i {
  margin-right: 10px !important;
}

/* ==========================================
   プロフィール設定モーダル & ユーティリティ
   ========================================== */
#modal-settings .modal-content {
  background: rgba(18, 16, 15, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#settings-form input[type="text"] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

#settings-form input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  outline: none;
}

/* スピナーアニメーション */
.spinner-inline {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-anim 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin-anim {
  to { transform: rotate(360deg); }
}

/* ==========================================
   UI/UX Refinements (Horizontal scroll prevent, timeline text wrap, online user UI)
   ========================================== */

/* スマホでの横ブレ（横スクロール）を防止する設定 */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  .modal-overlay {
    overflow-x: hidden !important;
  }
  .modal-content, .detail-modal-content {
    max-width: 95vw !important;
    overflow-x: hidden !important;
  }
  .modal-body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 16px !important;
    box-sizing: border-box;
  }
  #sidebar-profile-block {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
}

/* タイムライン引用カードの拡大 */
.timeline-quote-card {
  padding: 12px !important;
  gap: 16px !important;
  border-radius: var(--radius-md) !important;
  background: rgba(0, 0, 0, 0.25) !important;
}

.timeline-quote-card .quote-cover-wrapper {
  width: 70px !important;
  min-width: 70px !important;
  height: 95px !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-quote-card .quote-cover-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.timeline-quote-card .quote-body {
  gap: 6px !important;
}

.timeline-quote-card .quote-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* アクションボタン等のPC版回り込み改行防止 */
.btn-timeline-action {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-timeline-action i {
  flex-shrink: 0 !important;
}

/* 投稿ヘッダーの日付表示改行防止 */
.timeline-post-time {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* PCオンライン接続インジケーターのホバーでリスト展開 */
.online-indicator-wrapper:hover #pc-online-popover {
  display: block !important;
}

/* オンラインアバターのミニサークル */
.online-user-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* 進捗ステータスバッジの視認性（コントラスト・彩度）向上 */
.badge-completed {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  font-weight: 700 !important;
}

.badge-watching {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  font-weight: 700 !important;
}

.badge-backlog {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  font-weight: 700 !important;
}

.badge-paused {
  background: rgba(107, 114, 128, 0.2) !important;
  color: #d1d5db !important;
  border: 1px solid rgba(107, 114, 128, 0.35) !important;
  font-weight: 700 !important;
}

/* ==========================================
   Modern SNS 1-Column Timeline Layout
   ========================================== */
.timeline-list-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important; /* 隙間を16pxから12pxに微縮小 */
  max-width: 820px !important; /* PCタイムラインの幅を820pxに広げる */
  margin: 0 auto !important;
  width: 100% !important;
}

.timeline-list-container .media-card {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important; /* 上下のpaddingを狭くしてスッキリさせる */
  margin-bottom: 4px !important;
}

/* タイムライン引用カードの全体調整（画像拡大に伴うタイトル表示バグの完全修正） */
.timeline-quote-card {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  padding: 10px 14px !important; /* 縦パディングを少し削る */
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius-md) !important;
  margin: 8px 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.timeline-quote-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.timeline-quote-card .quote-cover-wrapper {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 95px !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.timeline-quote-card .quote-cover-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.timeline-quote-card .quote-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 4px !important;
}

.timeline-quote-card .quote-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important; /* はみ出しを防止して改行を許可 */
}

/* ステータスバッジのスタイル微調整 (ジャンルより小さめ・透過トーン) */
.badge-completed, .badge-watching, .badge-backlog, .badge-paused {
  font-size: 0.64rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.badge-completed {
  color: #a7f3d0 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}
.badge-watching {
  color: #bfdbfe !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}
.badge-backlog {
  color: #fef3c7 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  background: rgba(245, 158, 11, 0.05) !important;
}
.badge-paused {
  color: #e5e7eb !important;
  border-color: rgba(107, 114, 128, 0.25) !important;
  background: rgba(107, 114, 128, 0.05) !important;
}

/* オンライン接続ポップオーバー幅調整 */
#pc-online-popover {
  width: 220px !important;
}

/* スマホ表示での崩れ防止 */
@media (max-width: 600px) {
  #top-recommendations-grid {
    grid-template-columns: 1fr !important; /* スマホでは3行崩れを防ぐため1列にする */
    gap: 16px !important;
  }
  
  /* スマホ時はカルーセルを縦並びにして横揺れ・ブレを防ぐ */
  .detail-section .carousel-container {
    flex-direction: column !important;
    overflow-x: visible !important;
    gap: 8px !important;
  }
  .detail-section .carousel-container .carousel-card {
    flex: 1 1 auto !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 12px !important;
  }
  .detail-section .carousel-container .carousel-card > div:first-child {
    width: 40px !important;
    height: 40px !important;
  }
  .detail-section .carousel-container .carousel-card > div:first-child img,
  .detail-section .carousel-container .carousel-card > div:first-child .cover-fallback {
    width: 40px !important;
    height: 40px !important;
  }
  .detail-section .carousel-container .carousel-card .carousel-card-title {
    font-size: 0.8rem !important;
    white-space: normal !important;
    text-align: left !important;
  }
}

/* ==========================================
   Level System (Monochrome Progress Bar)
========================================== */
.level-badge-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.level-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.level-number {
  font-weight: 700;
  color: var(--text-primary);
}
.exp-progress-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.exp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fafafa 0%, #a1a1aa 100%);
  transition: width 0.4s ease;
}

/* ==========================================
   Deep Threads (Spoiler Talk Room)
========================================== */
.detail-section-deep-threads {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: 20px;
}
.thread-lock-screen {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.thread-lock-icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}
.thread-lock-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
}
.thread-room-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}
.thread-messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.thread-message-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  max-width: 85%;
}
.thread-message-item.self {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.thread-message-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.thread-message-sender {
  font-weight: 600;
  color: var(--text-secondary);
}
.thread-message-item.self .thread-message-sender {
  color: var(--text-primary);
}
.thread-message-text {
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}
.thread-message-item.self .thread-message-text {
  color: var(--text-primary);
}
.thread-composer {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
  margin-top: 4px;
}
.thread-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  outline: none !important;
  height: 32px;
}
.btn-thread-send {
  height: 32px;
  padding: 0 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}

/* ==========================================
   Badge & Title System
========================================== */
.user-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ==========================================
   TMDB Trending Section
========================================== */
.trending-carousel-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
}
.trending-card {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.trending-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
}
.trending-cover-wrapper {
  width: 110px;
  height: 155px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trending-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trending-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  text-align: left;
}

/* ==========================================
   Visual Stats (Graphs)
========================================== */
.stats-visual-box {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-visual-box {
    grid-column: span 1 !important;
  }
}
.stats-visual-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stats-stacked-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-stacked-bar {
  display: flex;
  height: 12px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}
.stats-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
}
.stats-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.7rem;
  margin-top: 4px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.genre-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.genre-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
}
.genre-progress-label {
  width: 75px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.genre-bar-wrapper {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.genre-bar-fill {
  height: 100%;
  background: #a1a1aa;
  transition: width 0.4s ease;
}
.genre-progress-value {
  width: 35px;
  text-align: right;
  color: var(--text-primary);
  font-weight: 600;
}

/* Trending Carousel scrollbar completely hidden (using arrow buttons instead) */
.trending-carousel-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.trending-arrow-btn {
  transition: all 0.2s ease-in-out;
}
.trending-arrow-btn:hover {
  background: rgba(15, 15, 20, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--accent-color) !important;
  transform: translateY(-50%) scale(1.1);
}
.trending-arrow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* 新・統計レイアウト（フレックスダッシュボード） */
.stats-flex-container {
  display: flex;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.stats-left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}
.stats-right-column {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.stat-card-modern {
  background: rgba(15, 15, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}
.stat-label-modern {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.stat-label-modern i {
  width: 12px;
  height: 12px;
  color: var(--accent-color);
}
.stat-row-modern {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}
.stat-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-sub-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.stat-item-modern strong {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}
.stat-divider-modern {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}
.stat-rating-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-rating-value strong {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}
.stat-rating-value span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* モバイル・レスポンシブ */
@media (max-width: 900px) {
  .stats-flex-container {
    flex-direction: column;
    gap: 16px;
  }
  .stats-left-column, .stats-right-column {
    width: 100%;
    flex: none;
  }
}

/* マーダーミステリー用のバッジとカテゴリゲージの色指定 */
.badge-murder_mystery {
  background: rgba(244, 63, 94, 0.1) !important;
  color: #f43f5e !important;
  border: 1px solid rgba(244, 63, 94, 0.2) !important;
}

.segment-murder-mystery {
  background: #f43f5e !important;
}

/* カンバンボード（ボード表示） */
.kanban-board-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px 4px;
}

.kanban-column {
  transition: border-color 0.2s, background-color 0.2s;
}

.kanban-card {
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.kanban-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-ghost-card {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
}

/* 芝生ヒートマップ用ホバー */
#mypage-heatmap-container rect:hover {
  fill: #60a5fa !important;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1px;
}



/* ==========================================
   5-axis Rating Segmented Buttons styling
   ========================================== */
.rating-segment-group {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 2px;
  width: 100%;
  box-sizing: border-box;
}

.rating-segment-group label {
  flex: 1;
  text-align: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.rating-segment-group label input[type="radio"] {
  display: none !important; /* Hide actual radio button */
}

.rating-segment-group label span {
  display: block;
  padding: 6px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.rating-segment-group label input[type="radio"]:checked + span {
  background: var(--accent-color) !important;
  color: #000000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Enhanced Glassmorphism for Popovers
   ========================================== */
#notifications-popover, #pc-online-popover, .glass-panel.popover, .popover-menu {
  background: rgba(15, 15, 20, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7) !important;
}

/* ==========================================
   Kanban Board Mobile Optimization & Custom Views
   ========================================== */
.kanban-mobile-tabs {
  display: none;
}
@media (max-width: 600px) {
  .kanban-mobile-tabs.active-view {
    display: flex !important;
  }
  .kanban-mobile-tab-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    font-weight: 700;
  }
  .kanban-board-container {
    flex-direction: column !important;
    overflow-x: hidden !important;
    gap: 0 !important;
  }
  .kanban-column {
    display: none !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  .kanban-column.mobile-active {
    display: flex !important;
  }
  .kanban-column-header {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }
}

/* ==========================================
   Responsive Fixes for Modal Headers & Rating labels & Tables
   ========================================== */
@media (max-width: 600px) {
  .rating-segment-group label span {
    font-size: 0.58rem !important;
    padding: 6px 2px !important;
  }
  .modal-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    position: relative !important;
  }
  .detail-header-title {
    max-width: 100% !important;
    padding-right: 30px !important;
  }
  .detail-actions {
    align-self: flex-start !important;
    margin-top: 4px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }
  .detail-actions button {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
  .media-grid table td, .media-grid table th {
    padding: 8px 6px !important;
    font-size: 0.75rem !important;
  }
  .media-grid table button {
    padding: 4px 6px !important;
    font-size: 0.65rem !important;
  }
}

/* ==========================================
   Responsive Fixes for View Mode Tabs Switcher
   ========================================== */
@media (max-width: 600px) {
  .library-scope-toggle-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  #library-view-mode-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
  #library-view-mode-tabs .ranking-tab-btn {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
  }
}


/* ==========================================================================
   TMDB Trending Toggle, TMDB Preview Modal, and Awards Section Styles
   ========================================================================== */

/* トレンド切替スイッチボタン */
.trending-switch-btn:hover {
  color: var(--text-primary);
}
.trending-switch-btn.active {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* アワード作品カード */
.awards-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.awards-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(251, 191, 36, 0.15);
}

.awards-card-poster-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  background: #111;
}

.awards-card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.awards-card:hover .awards-card-poster-img {
  transform: scale(1.04);
}

.awards-card-info {
  padding: 10px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.awards-card-award-tag {
  font-size: 0.65rem;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.awards-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TMDB Preview Modal Responsive Fixes */
@media (max-width: 600px) {
  .tmdb-backdrop-container {
    height: 140px !important;
  }
  .tmdb-preview-body {
    padding: 0 16px 20px 16px !important;
    margin-top: -50px !important;
  }
  .tmdb-preview-header-wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .tmdb-preview-poster-wrap {
    width: 110px !important;
  }
  #tmdb-preview-badges,
  #tmdb-preview-original-title,
  .tmdb-preview-header-wrap div[style*="justify-content: flex-end"] div {
    justify-content: center !important;
  }
  #btn-tmdb-preview-add {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   統一映画カード (トレンド & アワード & カルーセル共通スタイル)
   ========================================================================== */
.unified-movie-card {
  flex: 0 0 140px;
  width: 140px;
  background: rgba(20, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}

.unified-movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.15);
  background: rgba(30, 30, 38, 0.85);
}

.unified-movie-poster-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.unified-movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.unified-movie-card:hover .unified-movie-poster-img {
  transform: scale(1.05);
}

.unified-movie-award-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
  max-width: calc(100% - 8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unified-movie-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unified-movie-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unified-movie-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* アワード専用ページグリッド内のカードサイズ */
#awards-page-cards-grid .unified-movie-card {
  flex: none;
  width: 100%;
}

/* ==========================================================================
   イチオシおすすめ作品カード (統一デザイン ＆ レビュー理由強調スタイル)
   ========================================================================== */
.unified-recommend-card {
  background: rgba(20, 20, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.unified-recommend-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.15);
  background: rgba(28, 28, 36, 0.9);
}

.unified-rec-poster-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #111;
}

.unified-rec-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.unified-recommend-card:hover .unified-rec-poster-img {
  transform: scale(1.04);
}

.unified-rec-reason-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  margin-top: 4px;
}

.unified-rec-reason-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.unified-rec-reason-text {
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   アワード専用ページ: 部門別授賞式スタイル
   ========================================================================== */
.awards-department-block {
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.awards-dept-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.awards-dept-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.awards-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .awards-dept-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
}
