/* Sunrise (Gündoğumu) Theme - Turuncu ve Beyaz Karışımı */

/* Top Header Navbar - 100% Solid Crisp White (Prevents Ghost Border Bleed-through) */
header {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(251, 146, 60, 0.28) !important;
  box-shadow: 0 4px 14px -3px rgba(249, 115, 22, 0.08) !important;
  z-index: 40 !important;
  position: sticky !important;
  top: 0 !important;
}

.mobile-search-bar {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(251, 146, 60, 0.2) !important;
}

/* Custom Sunrise Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #fff9f5;
}
::-webkit-scrollbar-thumb {
  background: #fed7aa;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #fb923c;
}

/* Sunrise Filter Pills */
.filter-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.25);
  box-shadow: 0 1px 2px rgba(249, 115, 22, 0.04);
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #ea580c;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.4);
}

.filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.filter-btn[data-category="favorites"].active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3) !important;
}

.filter-btn[data-category="status-all"].active {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.3) !important;
}

.filter-btn[data-category="status-completed"].active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.filter-btn[data-category="status-playing"].active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #0369a1 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

.filter-btn[data-category="status-dropped"].active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  border-color: #b45309 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.filter-btn[data-category="status-backlog"].active {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  border-color: #7e22ce !important;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3) !important;
}

/* Sunrise Sort Dropdown */
#sortSelect {
  background-image: none;
  transition: all 0.18s ease;
}
#sortSelect:hover {
  border-color: #f97316;
  background-color: #fffaf5;
}

/* Grid Layout Isolation */
#gamesGrid {
  contain: layout style;
}

/* 
 * KÖŞELERİ HAFİF YUVARLATILMIŞ KARE SİMGELER (SQUARE GAME ICONS)
 * Sunrise Flat & Minimalist Card Structure - Zero Jank / 120+ FPS Accelerated
 */
.game-square-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.125rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 2px 6px -1px rgba(249, 115, 22, 0.08);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
  contain: layout paint;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.16s ease-out;
}

.game-square-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: #f97316;
}

/* Square Card Image */
.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.game-square-card:hover .game-card-img {
  transform: scale3d(1.04, 1.04, 1);
}

/* Top Hover Bar: Oyun Puanı ve Türü (Kutunun şeklini bozmadan üstten açılır) */
.game-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
  transform: translate3d(0, -100%, 0);
  backface-visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease-out;
}

.game-square-card:hover .game-card-top-bar,
.game-square-card.is-selected .game-card-top-bar {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Subgame card hover top bar */
.subgame-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
  transform: translate3d(0, -100%, 0);
  backface-visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease-out;
}

.subgame-card:hover .subgame-card-top-bar {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

/* YÜZEN PİL BAR: Kartın alt kısmında yüzen kapsül isim barı, ortalanmış oyun adı */
.game-card-bottom-bar {
  position: absolute !important;
  bottom: 0.5rem !important;
  left: 0.5rem !important;
  right: 0.5rem !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  border-radius: 0.65rem !important; /* Fotoğraf karesi (1.125rem) ile eşmerkezli (concentric) köşe kıvrımı */
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(251, 146, 60, 0.35) !important;
  box-shadow: 0 4px 14px -1px rgba(0, 0, 0, 0.22), 0 2px 6px -1px rgba(0, 0, 0, 0.12) !important;
  padding: 0.35rem 0.75rem !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.2s ease !important;
  pointer-events: auto;
}

.game-square-card:hover .game-card-bottom-bar,
.coverflow-card:hover .game-card-bottom-bar,
.coverflow-card.is-active-coverflow .game-card-bottom-bar {
  background: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 6px 18px -2px rgba(249, 115, 22, 0.32), 0 2px 8px rgba(0, 0, 0, 0.14) !important;
  transform: translate3d(0, -1px, 0);
}

.game-card-title-text {
  color: #09090b !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.game-square-card:hover .game-card-title-text,
.coverflow-card:hover .game-card-title-text,
.coverflow-card.is-active-coverflow .game-card-title-text {
  color: #ea580c !important;
}

/* Subgame card floating pill bar */
.subgame-card-bottom-bar {
  position: absolute !important;
  bottom: 0.35rem !important;
  left: 0.35rem !important;
  right: 0.35rem !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  border-radius: 0.45rem !important; /* Alt oyun kartı köşeleri ile uyumlu eşmerkezli kıvrım */
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(251, 146, 60, 0.35) !important;
  box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.2), 0 2px 5px -1px rgba(0, 0, 0, 0.1) !important;
  padding: 0.25rem 0.55rem !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease !important;
  pointer-events: auto;
}

.subgame-card:hover .subgame-card-bottom-bar {
  background: #ffffff !important;
  border-color: #f97316 !important;
  transform: translate3d(0, -1px, 0);
}

.subgame-card-title-text {
  color: #09090b !important;
  font-weight: 800 !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.subgame-card:hover .subgame-card-title-text {
  color: #ea580c !important;
}

/* Card Action Button (Heart / Edit) - Clean opaque dark for ultra-fast GPU rendering */
.game-card-btn {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card-btn:hover {
  transform: scale(1.08);
  border-color: rgba(251, 146, 60, 0.7);
}

/* STORE ICON BUTTONS (ICON ONLY, NO TEXT - CLEAN & SUNRISE COMPLIANT) */
.store-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #475569;
  transition: all 0.15s ease;
}

.store-icon-btn:hover {
  transform: translateY(-2px);
  color: #ea580c;
  border-color: #f97316;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

/* Card Quick Store Icons (3 icons side by side on card) */
.card-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.card-store-link:hover {
  transform: scale(1.12);
  color: #ffffff;
  border-color: rgba(251, 146, 60, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

/* Modal Open / Close Transition */
.modal-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* All Modals & Popups must always be in front of everything, including Fullscreen Coverflow Stage */
#gameDetailModal,
#editGameModal,
#addGameModal,
#authModal,
#changePasswordModal,
#exportModal,
.modal-active {
  z-index: 100000 !important;
}

#toast {
  z-index: 100001 !important;
}

html:fullscreen,
body:fullscreen {
  background-color: #020617 !important;
}

.modal-active #modalCard,
.modal-active #editModalCard,
.modal-active #addModalCard,
.modal-active #authModalCard,
.modal-active #exportModalCard,
.modal-active #changePasswordModalCard {
  transform: scale(1) !important;
}

/* Toast Active */
.toast-active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 
 * SERİ / KÜME (CLUSTER) STİLLERİ
 * Çok katmanlı deste görünümü ve genişleyen küme kutusu
 */
.series-stack-card {
  position: relative !important;
  z-index: 10;
}

.series-stack-card::before,
.series-stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.125rem;
  pointer-events: none;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

.series-stack-card::before {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  transform: translate(5px, -5px) rotate(1.5deg);
  opacity: 0.9;
  z-index: -1;
}

.series-stack-card::after {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.55);
  transform: translate(10px, -10px) rotate(3deg);
  opacity: 0.65;
  z-index: -2;
}

.series-stack-card:hover::before {
  transform: translate(7px, -7px) rotate(2.5deg);
  opacity: 1;
}

.series-stack-card:hover::after {
  transform: translate(13px, -13px) rotate(5deg);
  opacity: 0.85;
}

/* Series Horizontal Shelf Scrollbar */
.series-shelf::-webkit-scrollbar {
  height: 6px;
}
.series-shelf::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 9999px;
}
.series-shelf::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.45);
  border-radius: 9999px;
}
.series-shelf::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.85);
}

/* Cluster Box Fade In Animation */
@keyframes fadeInCluster {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.animate-fadeIn {
  animation: fadeInCluster 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 
 * DRAG & DROP GRUPLAMA STİLLERİ
 * Kartı tutup sürükleyerek başka bir kartın üzerine bırakıp kümeleme
 */
.game-square-card[draggable="true"] {
  cursor: grab;
}
.game-square-card[draggable="true"]:active {
  cursor: grabbing;
}

.game-square-card.is-dragging {
  opacity: 0.4 !important;
  transform: scale(0.96) !important;
  border: 2px dashed #f59e0b !important;
}

/* Drop Hedefi Vurgusu */
.game-square-card.drop-target-active {
  transform: scale(1.08) translateY(-4px) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.75), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  z-index: 30 !important;
  position: relative !important;
}

.game-square-card.drop-target-active * {
  pointer-events: none;
}

.game-square-card.drop-target-active::after {
  content: '📁 Grupla';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.95);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  white-space: nowrap;
  z-index: 40;
  animation: pulseDropBadge 0.8s infinite alternate ease-in-out;
}

@keyframes pulseDropBadge {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Subgame Card Ungroup Button */
.ungroup-subgame-btn {
  opacity: 0.8;
  transition: all 0.18s ease-in-out;
}
.subgame-card:hover .ungroup-subgame-btn {
  opacity: 1;
}
.ungroup-subgame-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

/* Card Selection Checkbox & Selected State */
.card-select-btn {
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  z-index: 10;
  transition: all 0.15s ease-in-out;
}

.card-select-btn:hover {
  transform: scale(1.15);
}

.card-select-btn:active {
  transform: scale(0.92);
}

.game-square-card.is-selected {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2.5px #f59e0b, 0 8px 24px -2px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px);
}

/* Tactile Long Press States */
.game-square-card.is-pressing {
  transform: scale(0.965) !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes longPressPulse {
  0% { transform: scale(0.965); }
  50% { transform: scale(1.035); }
  100% { transform: translateY(-2px); }
}

.game-square-card.long-press-pulse {
  animation: longPressPulse 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* When Selection Mode is active: all cards show their top bar with select checkboxes clearly */
body.selection-mode-active .game-card-top-bar {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.selection-mode-active .game-square-card {
  cursor: pointer !important;
}

body.selection-mode-active .game-square-card:not(.is-selected) {
  opacity: 0.88;
}

body.selection-mode-active .game-square-card:not(.is-selected):hover {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 0 0 1.5px rgba(245, 158, 11, 0.35), 0 4px 14px -2px rgba(245, 158, 11, 0.25) !important;
}

/* Floating Selection Pill Bar - Mobile Fit & Safe Area */
#selectionPillBar {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease-out;
  will-change: transform, opacity;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem)) !important;
}

@media (min-width: 640px) {
  #selectionPillBar {
    bottom: 1.5rem !important;
  }
}

.game-square-card {
  touch-action: manipulation !important;
}

/* ==========================================================================
   VIEW MODES & 3D COVERFLOW STYLES
   ========================================================================== */

/* View Mode Switcher Active Pill */
.view-mode-btn.active-view {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

/* 1. Compact View (Daha Dar Grid) */
.view-compact .game-square-card {
  border-radius: 0.9rem !important;
}
.view-compact .game-card-bottom-bar {
  bottom: 0.35rem !important;
  left: 0.35rem !important;
  right: 0.35rem !important;
  border-radius: 0.55rem !important;
  padding: 0.2rem 0.45rem !important;
}
.view-compact .game-card-title-text {
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}
.view-compact .game-card-top-bar {
  padding: 0.25rem 0.35rem !important;
  gap: 0.2rem !important;
}
.view-compact .card-select-btn {
  width: 1rem !important;
  height: 1rem !important;
}
.view-compact .card-select-btn svg {
  width: 0.65rem !important;
  height: 0.65rem !important;
}

/* 3. Relaxed View (Daha Geniş Grid) */
.view-relaxed .game-square-card {
  border-radius: 1.35rem !important;
}
.view-relaxed .game-card-bottom-bar {
  bottom: 0.7rem !important;
  left: 0.7rem !important;
  right: 0.7rem !important;
  border-radius: 0.65rem !important;
  padding: 0.45rem 0.95rem !important;
}
.view-relaxed .game-card-title-text {
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-align: center !important;
}
.view-relaxed .game-card-top-bar {
  padding: 0.5rem 0.65rem !important;
}

/* 4. 3D Coverflow Stage (Hardware-Accelerated 60fps/120fps GPU Composition) */
.coverflow-track {
  perspective: 1100px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  contain: layout paint style;
}

.coverflow-card {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 275px;
  height: 275px;
  aspect-ratio: 1 / 1;
  margin-left: -138px;
  margin-top: -138px;
  border-radius: 1.125rem;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  /* Pure GPU compositor properties: transform & opacity ONLY - 0ms CPU repaint */
  transition: transform 0.20s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease-out;
  will-change: transform, opacity;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.65);
  backface-visibility: hidden;
  contain: layout paint style;
}

.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  -webkit-user-drag: none;
}

@media (min-width: 640px) {
  .coverflow-card {
    width: 320px;
    height: 320px;
    aspect-ratio: 1 / 1;
    margin-left: -160px;
    margin-top: -160px;
  }
}

.coverflow-card.is-active-coverflow {
  border-color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), 0 25px 45px -8px rgba(0, 0, 0, 0.75) !important;
}

.coverflow-card:not(.is-active-coverflow):hover {
  border-color: rgba(251, 191, 36, 0.7);
}

/* Fast hardware-accelerated dimming overlay (replaces slow software filter: brightness) */
.coverflow-card-dim {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.38);
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  will-change: opacity;
  z-index: 10;
}

.coverflow-card.is-active-coverflow .coverflow-card-dim {
  opacity: 0;
}

/* Coverflow Scrubber: Perfectly Circular & Smooth Thumb */
#coverflowScrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

#coverflowScrubber:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* WebKit / Chromium (Chrome, Edge, Safari, Opera) */
#coverflowScrubber::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}

#coverflowScrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 6px rgba(249, 115, 22, 0.6);
  cursor: pointer;
  margin-top: -5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#coverflowScrubber::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.75);
}

#coverflowScrubber::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.9);
}

/* Firefox */
#coverflowScrubber::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}

#coverflowScrubber::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 6px rgba(249, 115, 22, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#coverflowScrubber::-moz-range-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.75);
}

#coverflowScrubber::-moz-range-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.9);
}

/* Coverflow Fullscreen Mode */
.coverflow-stage-wrapper.coverflow-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 500 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.coverflow-stage-wrapper.coverflow-fullscreen .coverflow-card {
  top: 40%;
}

.coverflow-stage-wrapper.coverflow-fullscreen #coverflowBottomBar {
  left: 3rem !important;
  right: 3rem !important;
  bottom: 3rem !important;
}

/* Lock Document Scroll in Coverflow Mode (No vertical page scrolling & Generous bottom margin) */
html.coverflow-mode-active,
body.coverflow-mode-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overscroll-behavior: none !important;
}

body.coverflow-mode-active main {
  padding-top: 0.5rem !important;
  padding-bottom: 2rem !important;
  height: calc(100vh - 65px) !important;
  height: calc(100dvh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  max-height: calc(100dvh - 65px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.coverflow-mode-active main > .border-b {
  margin-bottom: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  flex-shrink: 0 !important;
}

body.coverflow-mode-active #coverflowContainer {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.coverflow-mode-active .coverflow-stage-wrapper {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* ==========================================================================
   STATUS CHECKER POPOVER MENU (SOLID DARK THEME)
   ========================================================================== */
.status-popover-menu {
  background-color: #0b1120 !important;
  background: #0b1120 !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 20px 45px -5px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.status-popover-header {
  background-color: #030712 !important;
  border-bottom: 1px solid #1e293b !important;
  color: #94a3b8 !important;
}

.status-opt-btn,
.modal-status-opt-btn,
.cf-status-opt {
  color: #f1f5f9 !important;
  background-color: transparent;
  transition: all 0.15s ease !important;
}

.status-opt-btn:hover,
.modal-status-opt-btn:hover,
.cf-status-opt:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.status-opt-btn:active,
.modal-status-opt-btn:active,
.cf-status-opt:active {
  transform: scale(0.98);
}

