/* 2025-26 Topps Inception Basketball Theme & UI Styles */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Noto+Sans+TC:wght@300;400;500;700;900&family=Cinzel:wght@700;900&display=swap');

:root {
  --bg-primary: #0a0a0e;
  --bg-secondary: #12121a;
  --bg-card: rgba(22, 22, 32, 0.75);
  --bg-card-hover: rgba(30, 30, 46, 0.9);

  --gold-primary: #38b6ff;
  --gold-glow: #00c2ff;
  --gold-gradient: linear-gradient(135deg, #70d6ff 0%, #38b6ff 100%);
  --gold-metallic: linear-gradient(135deg, #70d6ff 0%, #38b6ff 50%, #00c2ff 100%);

  --neon-purple: #a855f7;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-gold: #70d6ff;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(56, 182, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --shadow-glow: 0 0 25px rgba(56, 182, 255, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(56, 182, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Global Fixed Brand Logo Watermark Backdrop (Stays Fixed When Table Scrolls) */
body::before {
  content: '';
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background-image: url('Logo/desktop.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.14;
  filter: drop-shadow(0 0 50px rgba(56, 182, 255, 0.45));
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Only Series Showcase (系列圖鑑) uses logo.webp as background */
body.in-showcase-view::before {
  background-image: url('Logo/logo.webp');
  opacity: 0.14;
}

/* Matrix View (拆卡交叉分析矩陣) uses desktop.webp as background watermark */
body.in-matrix-view::before {
  background-image: url('Logo/desktop.webp');
  opacity: 0.14;
}

/* Hub View (卡盒大廳/首頁) uses desktop.webp directly; disable body::before to prevent duplication */
body.in-hub-view::before {
  opacity: 0;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #262636;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Layout Containers */
.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header & Hero Section */
.hero {
  position: relative;
  padding: 10px 0 6px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.9) 0%, rgba(10, 10, 14, 1) 100%);
}

.hero-backdrop {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(56, 182, 255, 0.15) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: rgba(56, 182, 255, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-glow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero {
  position: relative;
  padding: 16px 0 12px 0;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-left-col {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
}

.hero-center-col {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.hero-right-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #38b6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-align: center;
}

.hero-switcher-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-left-col {
    flex-shrink: 0;
  }

  .hero-center-col {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .hero-right-col {
    display: none;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.2;
  }
}

/* View Switcher Bar (Showcase vs Matrix) */
.view-switcher-bar {
  display: inline-flex;
  gap: 8px;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--border-gold);
  padding: 6px;
  border-radius: 50px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.switcher-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.switcher-btn:hover {
  color: #ffffff;
}

.switcher-btn.active {
  background: var(--gold-gradient);
  color: #0d0d12;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

/* View Section Toggle logic with GPU acceleration & 60 FPS fade-in */
.view-section {
  display: none;
  opacity: 0;
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* Box Stats Grid */
.box-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1680px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.7;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--gold-glow);
  font-size: 1rem;
}

.stat-box-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
}

.stat-icon {
  font-size: 1.3rem;
  margin-bottom: 2px;
  color: var(--gold-glow);
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-glow);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Navigation Bar (Showcase Mode) */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
}

.nav-item {
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 700;
}

/* Section Block */
.section-block {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-glow);
  font-size: 1.3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Sub-Series Stack */
.sub-series-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-series-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-glow);
  background: rgba(56, 182, 255, 0.12);
  border: 1px solid var(--border-gold);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sub-series-title {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

/* Series Card Layout - Standard 2 Column */
.series-card-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: stretch;
  transition: grid-template-columns 0.35s ease;
}

.series-card-layout.has-landscape-photo {
  grid-template-columns: 1fr 460px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 960px) {

  .series-card-layout,
  .series-card-layout.has-landscape-photo {
    grid-template-columns: 1fr;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .cards-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.series-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.series-info-box img,
.series-info-box video {
  max-width: 100%;
  height: auto;
}

.series-info-box table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.series-photo-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  min-width: 0;
}

.series-photo-box>.slot-frame {
  margin-top: auto;
  margin-bottom: auto;
}

.series-photo-box.is-landscape {
  max-width: 100%;
}

.series-photo-box:hover {
  border-color: rgba(56, 182, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Collapsible Series Player Checklist Dropdown */
.series-checklist-collapsible {
  margin-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.btn-toggle-collapsible {
  width: 100%;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-toggle-collapsible:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-glow);
}

.btn-toggle-collapsible.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-glow);
  color: var(--gold-glow);
}

.btn-toggle-collapsible .arrow-icon {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.btn-toggle-collapsible.active .arrow-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  margin-top: 10px;
  padding: 12px;
  background: rgba(10, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.collapsible-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
}

.collapsible-player-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.collapsible-player-chip:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--border-gold);
}

.collapsible-team-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Parallels Grid & Badges */
.parallel-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.parallel-badge-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-main);
}

.parallel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Badges 展開/收折控制按鈕 (Collapsible Badges Toggle) */
.badges-toggle-wrap {
  margin-top: 10px;
  margin-bottom: 4px;
  display: flex;
  justify-content: flex-start;
}

.badges-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.badges-toggle-btn:hover {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.45);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.18);
}

.badges-toggle-btn.expanded {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.badges-toggle-btn.expanded:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pill-purple {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.pill-pink {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
}

.pill-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.pill-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.pill-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.pill-camo {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.pill-skyblue {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.pill-1of1 {
  background: var(--gold-metallic);
  color: #000;
  font-weight: 900;
}

/* 補充一般顏色 Pill 樣式 */
.pill-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.pill-orange {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.pill-black {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 1+N 通路獨佔版本專屬顏色 Pill (Exclusivity Color Scheme) */
.pill-excl-general {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.pill-excl-hobby {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

.pill-excl-mega {
  background: rgba(236, 72, 153, 0.22);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.15);
}

.pill-excl-value {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.15);
}

.pill-excl-retail {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(236, 72, 153, 0.22));
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.pill-excl-delight {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

.pill-excl-custom {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

.pill-excl-jumbo {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

/* 1+N Channel Exclusivity Filter Bar & Cross-Reference Interaction */
.channel-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.channel-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-filter-btn {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

/* Inactive Channel Filter Buttons with Distinct Color Coding */
.channel-filter-btn.pill-excl-general {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.channel-filter-btn.pill-excl-hobby {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.channel-filter-btn.pill-excl-mega {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.channel-filter-btn.pill-excl-value {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.channel-filter-btn.pill-excl-delight {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.channel-filter-btn.pill-excl-retail {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(236, 72, 153, 0.18));
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.channel-filter-btn.pill-excl-jumbo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.channel-filter-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.25);
}

.channel-filter-btn.active {
  font-weight: 800;
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.channel-filter-btn[data-channel="all"].active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

.channel-filter-btn.pill-excl-general.active {
  background: rgba(148, 163, 184, 0.45);
  color: #ffffff;
  border-color: #f1f5f9;
  box-shadow: 0 0 12px rgba(203, 213, 225, 0.5);
}

.channel-filter-btn.pill-excl-hobby.active {
  background: rgba(245, 158, 11, 0.45);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.channel-filter-btn.pill-excl-mega.active {
  background: rgba(236, 72, 153, 0.45);
  color: #ffffff;
  border-color: #f472b6;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.6);
}

.channel-filter-btn.pill-excl-value.active {
  background: rgba(14, 165, 233, 0.45);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.6);
}

.channel-filter-btn.pill-excl-delight.active {
  background: rgba(168, 85, 247, 0.45);
  color: #ffffff;
  border-color: #d8b4fe;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.channel-filter-btn.pill-excl-retail.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(236, 72, 153, 0.45));
  color: #ffffff;
  border-color: #7dd3fc;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.channel-filter-btn.pill-excl-jumbo.active {
  background: rgba(99, 102, 241, 0.45);
  color: #ffffff;
  border-color: #a5b4fc;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
}

.excl-legend-btn {
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.excl-legend-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.excl-legend-btn.active {
  transform: scale(1.05);
  font-weight: 700;
}

/* Badge Highlight and Dim Effects for Cross-Reference */
.parallel-badge-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallel-badge-item.dimmed {
  opacity: 0.28;
  filter: grayscale(65%);
  transform: scale(0.96);
}

.parallel-badge-item.highlighted {
  opacity: 1;
  filter: none;
  transform: translateY(-2px) scale(1.05);
  z-index: 5;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-hobby {
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
  border-color: #fbbf24;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-mega {
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.6);
  border-color: #f472b6;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-value {
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.6);
  border-color: #38bdf8;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-retail {
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  border-color: #7dd3fc;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-jumbo {
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
  border-color: #a5b4fc;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-delight {
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
  border-color: #d8b4fe;
}

.parallel-badge-item.highlighted .parallel-pill.pill-excl-general {
  box-shadow: 0 0 14px rgba(203, 213, 225, 0.5);
  border-color: #ffffff;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slot-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.slot-serial {
  display: none !important;
}

/* Frame Slot for Showcase Photos (Scheme D: 3D Perspective + Holographic Foil Sweep + Neon Ambient Glow) */
.slot-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 2.5 / 3.5;
  /* Default portrait 5:7 aspect ratio */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #12121a;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Automatic Landscape / Horizontal Photo Adaptability */
.slot-frame.is-landscape {
  max-width: 420px;
  aspect-ratio: 3.5 / 2.4;
  /* Dynamic landscape aspect ratio for Booklets & Horizontal cards */
}

.slot-frame.has-image {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.slot-frame.has-image:hover {
  border-color: var(--dynamic-theme-color, #f59e0b);
  box-shadow: 0 20px 42px -6px rgba(0, 0, 0, 0.75),
    0 0 28px -2px var(--dynamic-theme-color, rgba(56, 182, 255, 0.55)),
    0 0 55px -10px rgba(245, 158, 11, 0.4);
  z-index: 5;
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Contain ensures full card photo is rendered without cropping */
  display: block;
}

.slot-foil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.25) 35%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.08s ease;
  mix-blend-mode: overlay;
  z-index: 3;
}

/* Pure White Shimmer Sweep Beam */
.slot-foil::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 44%,
      rgba(255, 255, 255, 0.38) 50%,
      rgba(255, 255, 255, 0.2) 53%,
      transparent 58%);
  transform: translateX(-100%) translateY(-100%) rotate(25deg);
  opacity: 0;
  pointer-events: none;
}

.slot-frame.has-image:hover .slot-foil {
  opacity: 1;
}

.slot-frame.has-image:hover .slot-foil::after {
  opacity: 1;
  animation: holoSweep 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes holoSweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(25deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(25deg);
  }
}

.slot-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  gap: 10px;
  cursor: pointer;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.slot-upload-prompt i {
  font-size: 2.2rem;
  color: rgba(245, 158, 11, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

.slot-upload-prompt:hover {
  background: rgba(245, 158, 11, 0.06);
}

.slot-upload-prompt:hover i {
  transform: translateY(-4px) scale(1.1);
  color: var(--gold-glow);
}

.slot-upload-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.slot-upload-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slot-actions-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.slot-frame.has-image:hover .slot-actions-bar {
  opacity: 1;
}

.slot-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.slot-btn:hover {
  background: var(--gold-primary);
  color: #000000;
}

.slot-btn.btn-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.player-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   VIEW 2: MATRIX PIVOT TABLE & BREAKDOWN STYLES
   ========================================================================== */
.matrix-layout-container {
  display: flex;
  height: calc(100vh - 140px);
  min-height: 600px;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(to bottom, rgba(10, 10, 14, 0.78), rgba(10, 10, 14, 0.88)),
    url('Logo/desktop.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* Sidebar Drawer for Teams Filter */
.matrix-sidebar {
  width: 250px;
  background: rgba(17, 17, 24, 0.88);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, margin-left 0.3s ease;
  z-index: 20;
}

.matrix-sidebar.closed {
  margin-left: -250px;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(21, 21, 32, 0.85);
  backdrop-filter: blur(8px);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.team-checkbox-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-check-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.85rem;
  color: var(--text-main);
}

.team-check-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.team-check-item input {
  margin-right: 10px;
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Main Matrix Body */
.matrix-main-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

/* Matrix Toolbar */
.matrix-toolbar {
  padding: 10px 18px;
  background: rgba(19, 19, 28, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-glow);
}

.tool-btn.active-tool {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  border-color: transparent;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-input {
  padding: 8px 14px 8px 34px;
  background: #0d0d12;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  width: 240px;
  transition: all 0.25s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-glow);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-excel-upload {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #4ade80 !important;
}

.btn-excel-upload:hover {
  background: rgba(34, 197, 94, 0.3) !important;
}

/* Category Visibility Controls Bar */
.matrix-category-bar {
  padding: 12px 18px;
  background: #181824;
  border-bottom: 1px solid var(--border-color);
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.category-bar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-glow);
}

.category-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px 0;
}

.category-btn-pill {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn-pill:hover {
  border-color: var(--border-gold);
  color: #ffffff;
}

.category-btn-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-glow);
  color: var(--gold-glow);
  font-weight: 700;
}

/* Matrix Table Stats Bar */
.matrix-stats-bar {
  padding: 8px 18px;
  background: #0d0d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-text {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Pivot Matrix Table Area */
.matrix-table-container {
  flex: 1;
  overflow: auto;
  position: relative;
  background: transparent;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.matrix-table th,
.matrix-table td {
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  background: rgba(14, 14, 22, 0.62);
  backdrop-filter: blur(2px);
}

/* Sticky Header & Left Column */
.matrix-table thead th {
  position: sticky;
  top: 0;
  background: rgba(24, 24, 38, 0.94);
  backdrop-filter: blur(8px);
  color: var(--gold-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.matrix-table tbody th {
  position: sticky;
  left: 0;
  background: rgba(20, 20, 32, 0.90);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  z-index: 9;
  white-space: nowrap;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.matrix-table thead th:first-child {
  left: 0;
  z-index: 15;
  background: rgba(30, 30, 48, 0.96);
}

.matrix-table tbody tr:hover td {
  background: rgba(40, 40, 65, 0.75);
}

.player-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-matrix-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  white-space: nowrap;
  color: #ffffff;
}

.card-code-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-glow);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
}

.player-search-highlight {
  background: #f59e0b !important;
  color: #000000 !important;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 2px;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #14141f;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: #ffffff;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-glow);
  background: rgba(255, 255, 255, 0.08);
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold-gradient);
  color: #0d0d12;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  filter: brightness(1.08);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--border-gold);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* ==========================================================================
   Full-Screen Animated Intro Splash Screen Overlay
   ========================================================================== */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #06070a;
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-overlay.splash-fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.splash-bg {
  position: absolute;
  inset: -20px;
  background-image: url('Logo/desktop.webp');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.45);
  transform: scale(1.05);
  z-index: 0;
}

.splash-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 7, 10, 0.4) 0%, rgba(6, 7, 10, 0.85) 80%);
  z-index: 1;
}

/* Side Scattered Cards */
.splash-cards-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
  pointer-events: auto;
}

.splash-cards-left {
  left: 50px;
}

.splash-cards-right {
  right: 50px;
}

.splash-card-item {
  position: relative;
  width: 200px;
  height: 260px;
  background: rgba(18, 18, 26, 0.85);
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.splash-card-item.is-landscape {
  width: 280px;
  height: 200px;
}

/* 獨立針對 auto-dual-booklet (雙折書卡) 自訂專屬的寬度與高度 */
.splash-card-item.slot-auto-dual-booklet {
  width: 560px;
  height: 190px;
  margin-left: -180px;
  /* 👈 將整張變寬的書卡整體往左位移，避免超出右側螢幕 */
}

.splash-card-item.slot-auto-dual-booklet img {
  object-fit: cover;
  object-position: left center;
  /* 👈 可調整圖片中心的焦距 (如 left center / center center / right center) */
}

.splash-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-card-item:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 10;
  border-color: var(--gold-glow);
  box-shadow: 0 20px 50px rgba(56, 182, 255, 0.5);
}

/* Center Content Stack & Hero Stage */
.splash-center-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px 24px 20px;
  pointer-events: none;
}

.splash-top-bar {
  margin-top: 20px;
  /* 👈 可在此微調 TOPPS 品牌標籤與頂部/卡盒的距離 */
  pointer-events: auto;
  z-index: 5;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: rgba(56, 182, 255, 0.18);
  border: 1px solid var(--gold-primary);
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.35);
  backdrop-filter: blur(10px);
}

/* Center Stage: Title Behind, Box Photo In Front */
.splash-hero-stage {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.splash-title-bg {
  position: absolute;
  width: 100vw;
  max-width: 1800px;
  text-align: center;
  z-index: 10;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  opacity: 0.7;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.95), 0 0 50px var(--dynamic-theme-color, #38b6ff), 0 0 20px rgba(56, 182, 255, 0.9);
  user-select: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.splash-hero-stage:hover .splash-title-bg {
  color: #ffffff;
  opacity: 0.85;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.98), 0 0 70px var(--dynamic-theme-color, #38b6ff), 0 0 30px #ffffff;
  transform: scale(1.03);
}

.splash-box-center-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-box-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--dynamic-theme-color, #38b6ff) 0%, transparent 70%);
  filter: blur(45px);
  opacity: 0.6;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: boxPulse 3s infinite ease-in-out;
}

@keyframes boxPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

#splash-box-img {
  max-height: 65vh;
  max-width: 1000px;
  width: auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 182, 255, 0.3);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}

.splash-hero-stage:hover #splash-box-img {
  transform: scale(1.08) translateY(-8px);
  border-color: #ffffff;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 60px var(--dynamic-theme-color, #38b6ff);
}

.splash-box-label {
  display: none;
  /* 隱藏 HOBBY BOX 標籤 */
  font-size: 0.85rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 18px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.splash-click-prompt {
  display: none;
  /* 隱藏 點擊進入系統 提示文字 */
  font-size: 0.82rem;
  color: var(--gold-glow);
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.9;
  animation: bouncePrompt 1.8s infinite ease-in-out;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  background: rgba(245, 158, 11, 0.15);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes bouncePrompt {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Bottom Footer Bar: Logo 放在正下方 */
.splash-bottom-bar {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.splash-divider-line {
  width: 100%;
  max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 20%, var(--gold-primary) 50%, rgba(255, 255, 255, 0.25) 80%, transparent 100%);
}

.splash-footer-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(12, 14, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 24px 8px 12px;
  border-radius: 50px;
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-bottom-bar:hover .splash-footer-logo-wrap {
  border-color: var(--gold-primary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(56, 182, 255, 0.45);
  background: rgba(18, 20, 32, 0.88);
}

.splash-logo-glow {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.7) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.splash-logo-img-bottom {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.5);
}

.splash-footer-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.splash-footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.splash-footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
  .splash-cards-side {
    display: none;
  }
}

/* =========================================================
   DYNAMIC THEME & HUB VIEW STYLES
   ========================================================= */

:root {
  --dynamic-theme-color: #38b6ff;
  /* Default, overridden via JS */
  --dynamic-theme-glow: 0 0 25px rgba(56, 182, 255, 0.25);
}

.hub-view {
  display: none;
  min-height: 100vh;
  padding: 20px 32px 16px 32px;
  background-color: #0b0c12;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(56, 182, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(11, 12, 18, 0.92), rgba(8, 9, 14, 0.98)),
    url('Logo/desktop.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-sizing: border-box;
}

.hub-view.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Center Main Body Fills Viewport Between Header & Footer */
.hub-main-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 0 16px 0;
  box-sizing: border-box;
}

/* Global Top Navigation Bar */
.hub-navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  min-height: 76px;
  background: rgba(18, 20, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin: 0 0 20px 0;
  gap: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(56, 182, 255, 0.6);
  border-color: #ffffff;
}

.nav-logo:active {
  transform: scale(0.95);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  white-space: nowrap;
}

/* Global Hero Banner Section: Central Sport Filter Selector Stage */
.hub-hero-section {
  text-align: center;
  padding: 6px 20px 14px 20px;
  margin-bottom: 8px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hub-sport-filter-bar {
  position: absolute;
  top: calc(100% + 10px);
  right: 170px;
  display: flex;
  align-items: center;
  background: rgba(18, 22, 34, 0.92);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.hub-sport-filter-bar.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.filter-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.filter-toggle-btn:hover {
  background: var(--gold-primary);
  color: #0b0b12;
  border-color: var(--gold-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.filter-toggle-btn:active {
  transform: translateY(0) scale(0.95);
}

.filter-toggle-btn.active {
  background: linear-gradient(135deg, rgba(56, 182, 255, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border-color: rgba(56, 182, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 182, 255, 0.35);
}

.sport-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.sport-pill-btn i {
  font-size: 0.9rem;
}

.sport-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sport-pill-btn.active {
  background: linear-gradient(135deg, rgba(56, 182, 255, 0.35) 0%, rgba(168, 85, 247, 0.35) 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 182, 255, 0.5);
  box-shadow: 0 6px 20px rgba(56, 182, 255, 0.3);
}

.nav-right-stack {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.nav-search-and-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
  flex-shrink: 0;
}

.hub-search-wrap {
  position: relative;
  width: 220px;
}

.social-links-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 3;
  flex-shrink: 0;
}

.social-link-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-btn:hover {
  background: var(--gold-primary);
  color: #0b0b12;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 182, 255, 0.4);
}

@media (max-width: 768px) {
  .hub-hero-title {
    font-size: 2rem;
  }
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Refined Premium Hub Card */
.hub-card {
  position: relative;
  background: linear-gradient(150deg, rgba(22, 25, 38, 0.75) 0%, rgba(13, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 3;
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: var(--dynamic-theme-color, rgba(56, 182, 255, 0.6));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--card-glow, rgba(56, 182, 255, 0.25));
}

.hub-card-image-wrap {
  position: relative;
  height: 340px;
  width: 100%;
  overflow: hidden;
  background: #090a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hub-card-sport-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 5px 12px;
  background: rgba(12, 13, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.hub-card-img-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hub-card-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(13, 14, 22, 1) 0%, transparent 100%);
  z-index: 2;
}

.hub-card-img {
  max-width: 75%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.hub-card:hover .hub-card-img {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.8));
}

.hub-card-content {
  position: relative;
  padding: 20px 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.hub-card-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hub-card-brand-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 6px 0 0 0;
  letter-spacing: -0.2px;
}

.hub-card-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.hub-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.hub-card-tag i {
  color: var(--gold-primary);
  font-size: 0.7rem;
}

.hub-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card-action i {
  transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-action {
  background: var(--dynamic-theme-color, #38b6ff);
  color: #090a0f;
  border-color: var(--dynamic-theme-color, #38b6ff);
  box-shadow: 0 6px 20px var(--card-glow, rgba(56, 182, 255, 0.4));
}

.hub-card:hover .hub-card-action i {
  transform: translateX(4px);
}

.back-to-hub-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.back-to-hub-btn:hover {
  background: rgba(56, 182, 255, 0.2) !important;
  border-color: rgba(56, 182, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateX(-2px) !important;
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.3) !important;
}

/* Under Construction Custom Modal */
.alert-modal-card {
  max-width: 400px !important;
  text-align: center;
  padding: 40px 30px !important;
  background: rgba(18, 18, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 182, 255, 0.15) !important;
  backdrop-filter: blur(15px) !important;
}

.alert-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(56, 182, 255, 0.1);
  border: 2px solid var(--dynamic-theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: var(--dynamic-theme-glow);
}

.alert-icon-wrap i {
  font-size: 2.2rem;
  color: var(--dynamic-theme-color);
  animation: wrench-wiggle 2.5s infinite ease-in-out;
}

.alert-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.alert-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.alert-close-btn {
  width: 100%;
  background: var(--dynamic-theme-color) !important;
  color: #0d0d12 !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

.alert-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 182, 255, 0.5);
}

@keyframes wrench-wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }
}

/* ==========================================================================
   CHECKLIST META INFO & ODDS TABLE STYLES
   ========================================================================== */
.checklist-meta-info,
.parallels-table-section {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.meta-exclusive,
.meta-pack-odds {
  margin-bottom: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-exclusive-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0.3px;
}

.meta-exclusive-pill.retail {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.meta-exclusive-pill i {
  font-size: 0.68rem;
}

.meta-exclusive i {
  color: var(--dynamic-theme-color, #fbbf24);
}

.meta-pack-odds i {
  color: #a78bfa;
}

.meta-parallels-title {
  margin-top: 8px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-parallels-title:first-child,
.checklist-meta-info>.meta-parallels-title:first-child,
.parallels-table-section>.meta-parallels-title:first-child {
  margin-top: 0;
}

.meta-parallels-title i {
  color: var(--dynamic-theme-color, #fbbf24);
}

.meta-table-scroll {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 6px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(10, 10, 15, 0.3);
  cursor: pointer;
}

/* Default view: Header (approx 38px) + 1 row (approx 38px) = 80px max-height */
.meta-table-scroll.collapsed-rows {
  max-height: 80px;
}

/* Expanded view: Header (approx 38px) + 4 rows (approx 152px) = 192px max-height */
.meta-table-scroll.expanded-rows {
  max-height: 192px;
}

.table-expand-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.table-expand-hint:hover {
  color: var(--dynamic-theme-color, #fbbf24);
}

.meta-parallels-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  background: rgba(10, 10, 15, 0.3);
}

.meta-parallels-table th,
.meta-parallels-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.meta-parallels-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.meta-parallels-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.meta-parallels-table td.parallel-name {
  color: #fff;
  font-weight: 500;
}

/* Table Cell Channel Coloring */
.meta-parallels-table th[data-channel="hobby"],
.meta-parallels-table td[data-channel="hobby"] {
  color: #fbbf24;
  /* Hobby gold color */
}

.meta-parallels-table th[data-channel="jumbo"],
.meta-parallels-table td[data-channel="jumbo"] {
  color: #a5b4fc;
  /* Jumbo indigo color */
}

.meta-parallels-table th[data-channel="mega"],
.meta-parallels-table td[data-channel="mega"] {
  color: #f472b6;
  /* Mega pink color */
}

.meta-parallels-table th[data-channel="blaster"],
.meta-parallels-table td[data-channel="blaster"] {
  color: #38bdf8;
  /* Blaster cyan color */
}

.meta-parallels-table th[data-channel="fanatics"],
.meta-parallels-table td[data-channel="fanatics"] {
  color: #7dd3fc;
  /* Fanatics light blue color */
}

.meta-parallels-table th[data-channel="breaker"],
.meta-parallels-table td[data-channel="breaker"] {
  color: #d8b4fe;
  /* Breaker light purple color */
}

/* Dimming other cells when a filter is active */
.meta-parallels-table th[data-channel].dimmed,
.meta-parallels-table td[data-channel].dimmed {
  opacity: 0.2;
  filter: grayscale(80%);
  transition: all 0.3s ease;
}

/* Highlighting matching cells when a filter is active */
.meta-parallels-table th[data-channel].highlighted,
.meta-parallels-table td[data-channel].highlighted {
  opacity: 1;
  filter: none;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* ==========================================================================
   FULLSCREEN SLEEK CARD BOX SWITCH LOADING OVERLAY
   ========================================================================== */
.box-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06070a;
  opacity: 1;
  visibility: visible;
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.box-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.box-loading-overlay.fade-out .box-loading-bg,
.box-loading-overlay.fade-out .box-loading-content {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.box-loading-bg {
  position: absolute;
  inset: 0;
  background-image: url('Logo/desktop.webp');
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.25);
  transform: scale(1.1);
}

.box-loading-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 16, 0.6) 0%, rgba(5, 5, 8, 0.95) 85%);
}

.box-loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  background: rgba(18, 20, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: boxModalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes boxModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.box-loading-stage {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-loading-card-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--dynamic-theme-color, #f59e0b) 0%, transparent 70%);
  opacity: 0.5;
  filter: blur(15px);
  animation: boxGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes boxGlowPulse {
  0% {
    opacity: 0.35;
    transform: scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}

.box-loading-card-icon {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
  border: 2px solid var(--dynamic-theme-color, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--dynamic-theme-color, #f59e0b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: boxCardFloat 2.4s ease-in-out infinite;
}

@keyframes boxCardFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.box-loading-brand {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dynamic-theme-color, #f59e0b);
  margin-bottom: 6px;
}

.box-loading-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.box-loading-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.box-loading-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--dynamic-theme-color, #f59e0b), #ffffff);
  border-radius: 10px;
  box-shadow: 0 0 12px var(--dynamic-theme-color, #f59e0b);
  transition: width 0.3s ease;
  animation: boxBarIndeterminate 1.5s infinite ease-in-out;
}

@keyframes boxBarIndeterminate {
  0% {
    left: -35%;
    width: 35%;
  }

  60% {
    left: 100%;
    width: 80%;
  }

  100% {
    left: 100%;
    width: 10%;
  }
}

.box-loading-status {
  font-size: 0.88rem;
  color: var(--text-muted, #9ca3af);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Professional Global Footer Styles (Floating Glassmorphic Bottom Bar) */
.professional-footer {
  background: rgba(18, 20, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  object-fit: cover;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
}

.footer-sub-tag {
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
}

.footer-desc {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #6b7280;
  margin: 0;
}

.footer-right-col {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-social-btn:hover {
  color: var(--gold-primary);
}

.footer-copy-text {
  font-size: 0.75rem;
  color: #4b5563;
}

/* Public Read-Only Mode & Admin Mode Environment Styles */
.slot-pending-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  gap: 10px;
  width: 100%;
  height: 100%;
  user-select: none;
}

.slot-pending-prompt i {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
}

body.public-mode #upload-modal,
body.public-mode .btn-delete,
body.public-mode .admin-only {
  display: none !important;
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN (RWD < 768px & < 520px)
   ========================================================= */

@media (max-width: 768px) {

  /* 1. Hub Outer View & Sticky Header Optimization */
  .hub-view {
    padding: 12px 12px 16px 12px;
  }

  .hub-navbar {
    position: sticky;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: 16px;
    top: 4px;
    min-height: auto;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 110px;
    /* Leave space for top-right social icons */
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  .nav-title {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .nav-sub {
    display: none !important;
    /* Hide long subtitle on mobile for 1-line clean brand name */
  }

  .nav-right-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .social-links-bar {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .social-link-btn {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .nav-search-and-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .hub-search-wrap {
    flex: 1;
    width: 100%;
    margin: 0;
  }

  .search-input {
    padding: 8px 12px 8px 34px;
    font-size: 0.82rem;
    height: 36px;
  }

  .search-icon {
    font-size: 0.82rem;
    left: 12px;
  }

  .filter-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin: 0;
  }

  /* Expandable Sport Filter Bar (Horizontal Touch Scroll, zero text truncation) */
  .hub-sport-filter-bar {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    box-shadow: none;
    display: none;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 4px 2px 4px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .hub-sport-filter-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .hub-sport-filter-bar.show {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: none;
  }

  .sport-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* 2. Hub Card & Grid Responsiveness */
  .hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }

  .hub-card {
    border-radius: 18px;
  }

  .hub-card-image-wrap {
    height: 220px;
    padding: 12px;
  }

  .hub-card-content {
    padding: 14px 16px;
  }

  .hub-card-title {
    font-size: 1.15rem;
  }

  /* 3. Series Box Detail Header & Views */
  .hero {
    padding: 16px 12px;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .view-switcher-bar {
    width: 100%;
    justify-content: center;
  }

  .switcher-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
    justify-content: center;
  }

  /* Showcase Sticky Nav Mobile Optimization (Single-Line Horizontal Touch Scroll) */
  .sticky-nav {
    padding: 6px 0;
  }

  .nav-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 10px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .nav-item {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 30px;
  }

  .channel-filter-bar {
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 30px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px 10px;
  }

  .channel-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .channel-filter-label {
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .channel-filter-pills {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .channel-filter-btn {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.75rem;
  }

  /* 4. Matrix Analysis & Showcase Cards Grid */
  .series-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .matrix-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  /* 5. Footer Responsive Stacking */
  .professional-footer {
    padding: 16px 12px;
    margin-top: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-brand-col {
    align-items: center;
    text-align: center;
  }

  .footer-right-col {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hub-card-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hub-card-tags {
    margin-left: 0;
  }

  .lightbox-content {
    max-width: 95vw;
    padding: 12px;
  }
}