/* ==========================================================================
   NINTENDO3DS-ROMS.COM - Modern Nintendo 3DS & DS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Nintendo Theme Color Tokens */
  --ps-blue: #e60012;
  --ps-blue-dark: #c4000f;
  --ps-blue-light: #ff2d3b;
  --ps-blue-subtle: #fff1f2;
  --ps-navy: #18181b;
  --ps-dark-bg: #09090b;
  
  /* Text Colors */
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  /* Background & Border Colors */
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-light: #e5e7eb;
  --border-subtle: #f3f4f6;
  
  /* Accents */
  --badge-new: #e60012;
  --badge-popular: #8b5cf6;
  --badge-top: #10b981;
  --badge-guide: #e60012;
  --badge-tutorial: #e60012;
  --badge-news: #06b6d4;
  --badge-tips: #f59e0b;
  --star-yellow: #f59e0b;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(230, 0, 18, 0.06);
  --shadow-lg: 0 12px 32px rgba(230, 0, 18, 0.08);
  --shadow-card-hover: 0 18px 38px rgba(230, 0, 18, 0.12);
  --shadow-blue-glow: 0 8px 24px rgba(230, 0, 18, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon, .ps-brand-logo {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  flex-shrink: 0;
  display: block;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1;
}

.logo-title .brand-accent {
  color: var(--ps-blue);
}

.logo-slogan {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 2px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--ps-blue);
}

.nav-link.active {
  color: var(--ps-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--ps-blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-toggle-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.search-toggle-btn:hover {
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
}

.btn-login {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section with Interactive Animated Background & Floating Search Card
   ========================================================================== */
.hero-section {
  padding: 50px 0 70px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #0d1e3d 0%, #080f1e 60%, #040812 100%);
}

.hero-animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Ambient Glowing Orbs */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.orb-1 {
  width: 460px;
  height: 460px;
  background: rgba(230, 0, 18, 0.3);
  top: -120px;
  left: 8%;
  animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(255, 77, 90, 0.22);
  bottom: -80px;
  right: 10%;
  animation: orbFloat2 12s ease-in-out infinite alternate;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(255, 45, 59, 0.25);
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 16s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -30px) scale(1.05); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, 25px) scale(1.12); }
}

.hero-container-overlap {
  position: relative;
  z-index: 10;
}

.hero-card-box {
  background: #ffffff;
  border-radius: 28px;
  padding: 38px 46px 32px;
  box-shadow: 0 20px 60px rgba(0, 15, 50, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(230, 0, 18, 0.18);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--ps-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ps-blue);
  box-shadow: 0 0 8px var(--ps-blue);
}

.hero-title-main {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-highlight {
  background: linear-gradient(135deg, #c4000f 0%, #e60012 50%, #ff2d3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle-text {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.55;
}

/* Hero Search Bar */
.hero-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 5px 6px 5px 22px;
  box-shadow: 0 4px 16px rgba(140, 0, 12, 0.04);
  transition: var(--transition);
  margin-bottom: 26px;
}

.hero-search-bar:focus-within {
  border-color: var(--ps-blue);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.14), 0 8px 24px rgba(140, 0, 12, 0.08);
}

.hero-search-input {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-main);
  background: transparent;
  padding: 8px 0;
}

.hero-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-hero-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ps-blue);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-hero-search .btn-search-icon {
  display: none;
}

.btn-hero-search .btn-search-text {
  display: inline;
}

.btn-hero-search:hover {
  background: var(--ps-blue-dark);
  box-shadow: var(--shadow-blue-glow);
  transform: translateY(-1px);
}

/* 5 Filter Dropdowns + Clear Filters in One Line */
.hero-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.filter-group,
.filter-label {
  display: none;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 9px 28px 9px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-select:hover {
  border-color: #cbd5e1;
}

.filter-select:focus {
  border-color: var(--ps-blue);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.14);
  color: #0f172a;
}

.select-arrow {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  color: #94a3b8;
  pointer-events: none;
}

/* Clear Filters Action in Same Line */
.hero-clear-wrapper {
  grid-column: auto;
  display: flex;
  align-items: center;
  margin-top: 0;
  white-space: nowrap;
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-clear-filters:hover {
  background: #e2e8f0;
  color: var(--ps-blue);
  border-color: rgba(230, 0, 18, 0.3);
}

/* Floating Quick Search Button */
.floating-quick-search-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ps-blue);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
  cursor: pointer;
}

.floating-quick-search-btn:hover {
  background: var(--ps-blue-dark);
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(230, 0, 18, 0.6);
}

/* ==========================================================================
   Section Title Common Styles
   ========================================================================== */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ps-blue);
  transition: var(--transition);
}

.section-view-all:hover {
  color: var(--ps-blue-dark);
  transform: translateX(3px);
}

.section-view-all svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.section-view-all:hover svg {
  transform: translateX(2px);
}

/* Centered Section Header with lines */
.console-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}

.header-line {
  flex: 0 1 80px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(230, 0, 18, 0.1), var(--ps-blue));
}

.header-line.right {
  background: linear-gradient(90deg, var(--ps-blue), rgba(230, 0, 18, 0.1));
}

.console-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-header-icon {
  width: 28px;
  height: 28px;
  color: var(--ps-blue);
}

.console-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Browse ROMs by Console Section
   ========================================================================== */
.consoles-section {
  padding: 40px 0 60px;
}

.consoles-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: stretch;
}

.console-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.console-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 18, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.console-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: #ffffff;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.console-badge.new {
  background: var(--badge-new);
}

.console-badge.popular {
  background: var(--badge-popular);
}

.console-badge.top-rated {
  background: var(--badge-top);
}

.console-img-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 14px;
}

.console-img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.console-card:hover .console-img {
  transform: scale(1.06);
}

.console-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

.console-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 100%;
}

.btn-console-explore {
  width: 100%;
  margin-top: auto;
  background: var(--ps-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-console-explore:hover {
  background: var(--ps-blue-dark);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* ==========================================================================
   Popular Games This Month Section
   ========================================================================== */
.games-section {
  padding: 40px 0 60px;
}

.carousel-outer {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--ps-blue);
  color: #ffffff;
  border-color: var(--ps-blue);
  box-shadow: var(--shadow-blue-glow);
}

.carousel-btn.prev {
  left: -19px;
}

.carousel-btn.next {
  right: -19px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.game-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 18, 0.35);
  box-shadow: 0 14px 30px rgba(140, 0, 12, 0.1);
}

.game-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f172a;
}

.game-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-poster {
  transform: scale(1.05);
}

.game-card-body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.game-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.game-console-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: 1.5px solid var(--ps-blue);
  color: var(--ps-blue);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  padding: 0 8px;
  height: 20px;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.2px;
  box-sizing: border-box;
  transition: var(--transition);
}

.game-card:hover .game-console-pill {
  background: rgba(230, 0, 18, 0.08);
}

.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
}

.meta-icon {
  width: 13px;
  height: 13px;
  color: var(--ps-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Why Gamers Choose PSROMS Section
   ========================================================================== */
.features-section {
  padding: 50px 0 65px;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 42px;
}

.features-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.features-title .brand-span {
  color: var(--ps-blue);
}

.features-wrap {
  position: relative;
}

.dot-pattern-left {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 80px;
  opacity: 0.35;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 18, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon-circle.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.feature-icon-circle.green {
  background: #dcfce7;
  color: #16a34a;
}

.feature-icon-circle.blue {
  background: #e0f2fe;
  color: #dc2626;
}

.feature-icon-circle.orange {
  background: #ffedd5;
  color: #ea580c;
}

.feature-icon-circle.pink {
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
}

.feature-icon-circle svg {
  width: 26px;
  height: 26px;
}

.feature-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.25;
}

.feature-desc {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Latest from the Blog Section
   ========================================================================== */
.blog-section {
  padding: 40px 0 65px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 18, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.blog-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #0f172a;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-content {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-category-badge {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 4px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-category-badge.guide {
  background: var(--badge-guide);
}

.blog-category-badge.tutorial {
  background: var(--badge-tutorial);
}

.blog-category-badge.news {
  background: var(--badge-news);
}

.blog-category-badge.tips {
  background: var(--badge-tips);
}

.blog-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  flex: 1;
}

.blog-card:hover .blog-title {
  color: var(--ps-blue);
}

.blog-date {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
}

/* ==========================================================================
   Newsletter / Stay Updated CTA Banner
   ========================================================================== */
.newsletter-section {
  padding: 30px 0 60px;
}

.newsletter-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f6faff 50%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(140, 0, 12, 0.05);
}

/* Subtle Floating Background Shapes */
.newsletter-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.newsletter-bg-shapes span {
  position: absolute;
  opacity: 0.55;
  font-weight: 700;
}

.sc-1 {
  width: 10px;
  height: 10px;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  top: 25px;
  left: 20px;
}

.sc-2 {
  font-size: 13px;
  color: #ec4899;
  bottom: 20px;
  left: 55px;
}

.sc-3 {
  width: 12px;
  height: 12px;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  top: 18px;
  right: 210px;
}

.sc-4 {
  font-size: 12px;
  color: #a855f7;
  top: 30px;
  right: 175px;
}

.newsletter-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.newsletter-bell-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e0ecff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.bell-icon {
  width: 32px;
  height: 32px;
  color: #e60012;
}

.bell-notify-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.newsletter-text {
  max-width: 310px;
}

.newsletter-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.newsletter-highlight {
  color: #e60012;
}

.newsletter-desc {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}

/* Center Form Box */
.newsletter-form-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 5px 4px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  max-width: 440px;
  flex: 1;
  transition: var(--transition);
}

.newsletter-form-box:focus-within {
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.newsletter-input {
  flex: 1;
  font-size: 13.5px;
  color: #0f172a;
  background: transparent;
  padding: 8px 0;
}

.newsletter-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-newsletter-submit {
  background: #e60012;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-newsletter-submit:hover {
  background: #b3000e;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.35);
}

/* Right DualSense Graphic */
.newsletter-graphic-wrap {
  width: 175px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.floating-dualsense-img {
  width: 100%;
  height: auto;
  animation: floatDualSense 5s ease-in-out infinite;
}

@keyframes floatDualSense {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

/* ==========================================================================
   Footer - Modern, Premium, Standardized
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light, #e2e8f0);
  padding: 56px 0 28px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  display: flex !important;
  flex-direction: column;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1.3fr 1fr 1fr;
  gap: 44px;
  align-items: start;
  width: 100%;
  margin-bottom: 0;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-col .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-bio, .footer-desc {
  font-size: 13px;
  color: #64748b;
  font-weight: 450;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  width: fit-content;
  margin-top: 4px;
}

.footer-status-pill .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.2px;
  text-transform: none;
}

.footer-two-col-links, .footer-links-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a, .footer-link {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links-list li a:hover, .footer-link:hover {
  color: #e60012;
  transform: translateX(3px);
}

.footer-about-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.dmca-badge-box {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  gap: 6px;
  border: 1px solid #334155;
}

.dmca-badge-box .dmca-tag {
  color: #38bdf8;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy, .copyright-text {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

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

.footer-social-link, .social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-link:hover, .social-link:hover {
  background: #e60012;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(230, 0, 18, 0.25);
}

.footer-social-link svg, .social-link svg {
  width: 16px;
  height: 16px;
}

/* Compatibility styles for legacy/alternate footer markup */
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col.brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-links li a:hover {
  color: #e60012;
  transform: translateX(3px);
}
.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.footer-copyright {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.social-pill {
  font-size: 11px;
  font-weight: 700;
  color: #e60012;
  background: rgba(230, 0, 18, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}


/* ==========================================================================
   Modals & Toast Notification UI
   ========================================================================== */
.modal-overlay, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

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

.modal-container, .modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 460px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 20, 80, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container,
.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.form-group input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--ps-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.btn-modal-action {
  background: var(--ps-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.3);
  transition: var(--transition);
}

.btn-modal-action:hover {
  background: var(--ps-blue-dark);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  border-left: 4px solid var(--ps-blue);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ROM Details Page (rom-details.html) Styles
   ========================================================================== */
.page-rom-details {
  background: #f8faff;
}

.rom-details-main {
  padding: 24px 0 60px;
}

.rom-page-container {
  max-width: 1160px;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.breadcrumb-link {
  color: #64748b;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-link.home-link {
  color: var(--ps-blue);
  font-weight: 700;
}

.breadcrumb-home-icon {
  width: 14px;
  height: 14px;
  color: var(--ps-blue);
}

.breadcrumb-link:hover {
  color: var(--ps-blue);
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.breadcrumb-item.active {
  color: #0f172a;
  font-weight: 700;
}

/* Common ROM Card Box */
.rom-card-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 36px;
  box-shadow: 0 8px 30px rgba(0, 30, 90, 0.04);
  margin-bottom: 24px;
  position: relative;
  transition: var(--transition);
}

.rom-card-box:hover {
  box-shadow: 0 12px 35px rgba(0, 30, 90, 0.07);
}

/* ROM Hero 2-Column Grid */
.rom-hero-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

.rom-poster-container {
  width: 100%;
}

.rom-poster-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(0, 30, 90, 0.12);
  background: #0f172a;
  transition: var(--transition);
}

.rom-poster-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 30, 90, 0.18);
}

.rom-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.rom-details-col {
  display: flex;
  flex-direction: column;
}

.rom-title {
  font-size: 27px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.rom-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
  white-space: nowrap;
}

.rom-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.stars-gold {
  color: #f59e0b;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.rating-val {
  font-weight: 700;
  color: #0f172a;
}

.stat-divider {
  color: #cbd5e1;
  font-size: 10px;
}

.rom-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.stat-icon {
  width: 14px;
  height: 14px;
  color: var(--ps-blue);
  flex-shrink: 0;
}

/* Tags Row */
.rom-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.tag-pill-ps {
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
  border: 1px solid rgba(230, 0, 18, 0.25);
}

.tag-pill-genre {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.tag-pill-hack {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

/* Key Details Table Box */
.rom-specs-box {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 12.5px;
}

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

.spec-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #475569;
}

.spec-icon {
  width: 14px;
  height: 14px;
  color: var(--ps-blue);
}

.spec-value {
  font-weight: 700;
  color: #0f172a;
}

.spec-value.highlight-type {
  color: var(--ps-blue);
}

.spec-value.author-link {
  color: #0f172a;
}

/* Actions Row */
.rom-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  width: 100%;
}

.btn-download-rom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex: 1;
  background: var(--ps-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-download-rom:hover {
  background: var(--ps-blue-dark);
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.5);
  transform: translateY(-2px);
}

.btn-favorite-rom {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-favorite-rom:hover {
  border-color: var(--ps-blue);
  color: var(--ps-blue);
  background: var(--ps-blue-subtle);
  transform: scale(1.05);
}

.btn-favorite-rom.favorited {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #e11d48;
}

.rom-emu-helper {
  margin-top: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.rom-emu-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  text-align: center;
}

.rom-emu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rom-emu-list li {
  list-style: none;
  display: inline-flex;
}

.rom-emu-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
  border: 1px solid rgba(230, 0, 18, 0.25);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(230, 0, 18, 0.08);
}

.rom-emu-link:hover {
  background: var(--ps-blue);
  color: #ffffff;
  border-color: var(--ps-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
  text-decoration: none;
}

/* Description & Features Card */
.card-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.source-link-para {
  margin-bottom: 18px;
}

.source-repo-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ps-blue);
  word-break: break-all;
  text-decoration: underline;
  transition: var(--transition);
}

.source-repo-link:hover {
  color: var(--ps-blue-dark);
}

.rich-text-block {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
}

.subsection-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 22px 0 10px;
}

.minor-heading {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 14px 0 6px;
}

.custom-feature-list {
  padding-left: 20px;
  margin-bottom: 12px;
}

.custom-feature-list li {
  margin-bottom: 6px;
}

.custom-feature-list li strong {
  color: #0f172a;
}

/* Share Article Footer Row */
.share-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.share-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-social-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-social-share:hover {
  border-color: var(--ps-blue);
  color: var(--ps-blue);
  background: var(--ps-blue-subtle);
  transform: translateY(-2px);
}

/* Ratings & Reviews Section */
.reviews-summary-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
}

.score-main-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.score-large-num {
  font-size: 46px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 4px;
}

.score-stars-gold {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.score-sub-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.score-bars-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.bar-star-num {
  width: 10px;
  text-align: center;
}

.progress-bar-track {
  flex: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--ps-blue);
  border-radius: var(--radius-full);
}

.bar-count-num {
  width: 14px;
  text-align: right;
  color: #94a3b8;
}

/* Single Review Item */
.reviews-list-container {
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

.single-review-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review-avatar-wrap {
  flex-shrink: 0;
}

.review-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 0, 18, 0.2);
}

.review-body-wrap {
  flex: 1;
}

.review-author-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.author-name-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviewer-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.reviewer-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-date-badge {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.review-text-content {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Related ROMs Grid */
.related-roms-section {
  margin-bottom: 30px;
}

.related-roms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.card-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.game-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 0 8px;
  height: 20px;
  line-height: 1;
  margin: 0;
  border-radius: var(--radius-full);
  box-sizing: border-box;
}

.game-type-pill.trans {
  border-color: #93c5fd;
  color: var(--ps-blue);
  background: #eff6ff;
}

/* Download Simulation Modal */
.download-modal-box {
  max-width: 440px;
  text-align: center;
  padding: 34px 28px;
}

.download-spinner-ring {
  width: 46px;
  height: 46px;
  border: 3.5px solid #e2e8f0;
  border-top-color: var(--ps-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spinRing 0.9s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.download-target-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ps-blue);
  margin-top: 4px;
}

.download-progress-box {
  margin: 20px 0 16px;
}

.download-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.download-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e60012, #ff4d5a);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.download-meta-status {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.download-checksum-note {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Related ROMs Section & Heading Spacing */
.related-roms-section {
  margin-top: 36px;
  margin-bottom: 32px;
}

.related-roms-section .section-title {
  margin-bottom: 22px;
  display: block;
}

.related-roms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .consoles-grid, .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-roms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  
  .newsletter-left {
    flex-direction: column;
  }
  
  .newsletter-text {
    max-width: 100%;
  }
  
  .newsletter-form-box {
    width: 100%;
    max-width: 440px;
  }
  
  .footer-grid {
    grid-template-columns: 1.3fr 1.2fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .search-toggle-btn {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title-main {
    font-size: 26px;
  }

  .page-rom-details .container,
  .page-rom-download .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .rom-page-container {
    padding: 0;
    max-width: 100%;
  }

  .hero-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rom-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rom-poster-container {
    max-width: 280px;
    margin: 0 auto;
  }

  .reviews-summary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .consoles-grid, .games-grid, .related-roms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-card-box {
    padding: 22px 14px 20px;
    border-radius: 18px;
  }

  .hero-tag-pill {
    padding: 4px 12px;
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-title-main {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .hero-subtitle-text {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  /* Compact Mobile Search Bar with Icon Button */
  .hero-search-bar {
    padding: 4px 5px 4px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(140, 0, 12, 0.04);
  }

  .hero-search-input {
    font-size: 12.5px;
    padding: 6px 4px 6px 0;
    min-width: 0;
  }

  .hero-search-input::placeholder {
    font-size: 12px;
  }

  .btn-hero-search {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.3);
  }

  .btn-hero-search .btn-search-text {
    display: none !important;
  }

  .btn-hero-search .btn-search-icon {
    display: block !important;
    width: 16px;
    height: 16px;
    stroke: #ffffff;
  }

  /* 2 Filters in a row on Mobile */
  .hero-filters-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 10px;
  }

  .hero-sort-wrapper {
    grid-column: auto !important;
  }

  .hero-clear-wrapper {
    grid-column: auto !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .filter-select {
    height: 40px;
    font-size: 12px;
    padding: 0 28px 0 12px;
    border-radius: 10px;
  }

  .select-arrow {
    right: 10px;
    width: 12px;
    height: 12px;
  }

  .btn-clear-filters {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 10px;
    justify-content: center;
  }

  /* Hide floating quick search on mobile so it doesn't overlap bottom buttons */
  .floating-quick-search-btn {
    display: none !important;
  }
}

@media (max-width: 580px) {
  .hero-title-main {
    font-size: 20px;
  }

  .page-rom-details .container,
  .page-rom-download .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .rom-page-container {
    padding: 0;
    max-width: 100%;
  }

  .rom-card-box {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .rom-poster-container {
    max-width: 280px;
    width: 100%;
  }

  .rom-stats-row {
    font-size: 11.5px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rom-stats-row::-webkit-scrollbar {
    display: none;
  }

  .stat-icon {
    width: 12px;
    height: 12px;
  }

  .spec-row {
    padding: 9px 8px;
    font-size: 12px;
  }

  .rom-actions-row {
    width: 100%;
  }

  .btn-download-rom {
    flex: 1;
    padding: 12px 18px;
  }
  
  .consoles-grid, .games-grid, .related-roms-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
}

/* ==========================================================================
   Download Preview Page Specific Styles
   ========================================================================== */
.download-page-layout {
  padding: 24px 0 60px;
}

.download-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  margin-bottom: 28px;
  transition: var(--transition);
}

.download-preview-card:hover {
  box-shadow: var(--shadow-md);
}

/* Download Hero Box */
.dl-hero-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.dl-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ps-blue); /* PlayStation Theme Blue */
  margin-top: 10px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.dl-hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.dl-hero-rating .stars-gold {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.dl-hero-rating .rating-num {
  font-weight: 700;
  color: var(--text-main);
}

.dl-hero-rating .rating-count {
  color: var(--text-muted);
}

/* Note Alert Banner */
.dl-note-box {
  background: var(--ps-blue-subtle); /* PlayStation Blue Subtle Tint */
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 8px;
}

.dl-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ps-blue);
  margin-bottom: 6px;
}

.dl-note-icon {
  font-size: 14px;
  line-height: 1;
}

.dl-note-content {
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  font-style: italic;
}

.dl-note-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.dl-note-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.dl-note-content li:last-child {
  margin-bottom: 0;
}

.dl-note-content li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ps-blue);
  font-weight: bold;
}

/* Download Links Table Card */
.dl-table-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.dl-table-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.dl-table-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.dl-table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.dl-search-input {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 14px 8px 36px;
  font-size: 12.5px;
  color: var(--text-main);
  width: 220px;
  transition: var(--transition);
}

.dl-search-input:focus {
  border-color: var(--ps-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.dl-search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.dl-filter-pills {
  display: flex;
  gap: 6px;
}

.dl-filter-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.dl-filter-btn:hover, .dl-filter-btn.active {
  background: var(--ps-blue);
  color: #ffffff;
  border-color: var(--ps-blue);
}

/* Links Table */
.dl-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.dl-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.dl-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--border-light);
  letter-spacing: 0.2px;
}

.dl-table thead th.th-filename {
  width: 50%;
}

.dl-table thead th.th-type {
  width: 16%;
}

.dl-table thead th.th-size {
  width: 14%;
  text-align: right;
  padding-right: 14px;
}

.dl-table thead th.th-download {
  width: 20%;
  text-align: center;
  padding: 10px 14px;
}

.dl-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
}

.dl-table tbody tr:last-child {
  border-bottom: none;
}

.dl-table tbody tr:hover {
  background-color: var(--ps-blue-subtle);
}

.dl-table td {
  padding: 12px 14px;
  font-size: 13px;
  vertical-align: middle;
}

.dl-filename-link {
  color: var(--ps-blue); /* PlayStation Theme Blue */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
}

.dl-filename-link:hover {
  color: var(--ps-blue-dark);
  text-decoration: underline;
}

.dl-link-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}

.dl-table-type {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
}

.dl-type-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-page);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.dl-table-size {
  text-align: right;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding-right: 14px;
}

.dl-table-action {
  text-align: center;
  padding: 12px 14px;
}

.dl-table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ps-blue);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
  white-space: nowrap;
}

.dl-table-btn:hover {
  background: var(--ps-blue-dark);
  box-shadow: 0 4px 14px rgba(230, 0, 18, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
  text-decoration: none;
}

.dl-table-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: #ffffff;
}

/* ==========================================================================
   Final Download Card Styles
   ========================================================================== */
.dl-final-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dl-final-card:hover {
  box-shadow: var(--shadow-md);
}

.dl-final-message {
  font-size: 16.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 780px;
}

.dl-final-btn {
  background: var(--ps-blue);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 40px;
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  letter-spacing: 0.2px;
}

.dl-final-btn:hover {
  background: var(--ps-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 0, 18, 0.45);
}

.dl-final-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.dl-final-helper {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 26px;
  font-weight: 500;
}

.dl-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ps-blue);
  background: var(--ps-blue-subtle);
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* Recommended for you Section */
.dl-recommended-section {
  margin-top: 10px;
}

.dl-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

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

.dl-rec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.dl-rec-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(230, 0, 18, 0.08);
  transform: translateY(-1.5px);
}

.dl-rec-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dl-rec-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dl-rec-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-rec-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dl-rec-game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.dl-rec-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-console-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: var(--ps-blue-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ps-blue-dark);
  letter-spacing: 0.3px;
}

.badge-console-pill svg {
  width: 11px;
  height: 11px;
}

.badge-tag-pill {
  display: inline-block;
  padding: 2px 9px;
  background: var(--ps-blue-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--ps-blue-dark);
}

.dl-rec-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--ps-blue-subtle);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ps-blue);
}

.rec-stat-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Responsive Rules for Download Template */
@media (max-width: 768px) {
  .dl-hero-box, .dl-table-card {
    padding: 20px 16px;
  }
  
  .dl-hero-title {
    font-size: 22px;
  }
  
  .dl-table-header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dl-table-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .dl-search-input {
    width: 100%;
  }
  
  .dl-rec-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  
  .dl-rec-right {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 8px;
  }
}

/* ==========================================================================
   PSX ROMs Page (psx-roms.html) Styles
   ========================================================================== */
.page-archive {
  background: #f8faff;
}

.archive-main-wrap {
  padding: 24px 0 60px;
}

.archive-hero-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 36px;
  box-shadow: 0 8px 30px rgba(0, 30, 90, 0.04);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.archive-hero-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.archive-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-top: 0;
  margin-bottom: 10px;
}

.archive-hero-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  width: 100%;
}

.archive-stats-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.archive-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ps-blue-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--ps-blue);
}

/* Archive Catalog Area & Sticky Filter Panel Card */
.archive-catalog-area {
  position: relative;
  width: 100%;
}

.archive-filter-card {
  position: -webkit-sticky;
  position: sticky;
  top: 86px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 30, 90, 0.08);
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease, top 0.2s ease;
}

.archive-platform-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.archive-platform-bar::-webkit-scrollbar {
  display: none;
}

.arch-platform-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arch-platform-pill:hover {
  border-color: var(--ps-blue);
  color: var(--ps-blue);
  background: var(--ps-blue-subtle);
}

.arch-platform-pill.active {
  background: var(--ps-blue);
  color: #ffffff;
  border-color: var(--ps-blue);
  box-shadow: 0 3px 10px rgba(230, 0, 18, 0.3);
}

.arch-platform-pill .pill-count {
  font-size: 11px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.arch-platform-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* AZ Letter Filter Bar */
.archive-az-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.archive-az-strip::-webkit-scrollbar {
  display: none;
}

.az-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.az-btn:hover {
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
  border-color: #bfdbfe;
}

.az-btn.active {
  background: var(--ps-blue);
  color: #ffffff;
  border-color: var(--ps-blue);
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.25);
}

/* Filter Controls Row (Search, Dropdowns, View Mode) */
.archive-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.arch-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.arch-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.mobile-filter-accordion-btn {
  display: none;
}

.arch-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.arch-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: var(--transition);
}

.arch-search-input:focus {
  border-color: var(--ps-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.arch-dropdowns-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.arch-select-wrapper {
  position: relative;
}

.arch-select {
  appearance: none;
  padding: 10px 32px 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.arch-select:focus, .arch-select:hover {
  border-color: var(--ps-blue);
  background: #ffffff;
}

.arch-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 12px;
  height: 12px;
  color: #64748b;
}

.arch-view-toggles {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.arch-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.arch-view-btn.active {
  background: #ffffff;
  color: var(--ps-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Results Info Bar */
.archive-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.archive-count-highlight {
  color: #0f172a;
  font-weight: 800;
}

.archive-active-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arch-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #edf2f7;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

/* Game Card Grid Layout */
.archive-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.arch-game-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 30, 90, 0.03);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.arch-game-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(230, 0, 18, 0.1);
}

.arch-card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.arch-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.arch-game-card:hover .arch-card-img {
  transform: scale(1.04);
}

.arch-card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.arch-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arch-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.arch-card-title a:hover {
  color: var(--ps-blue);
}

.arch-card-tag-wrap {
  margin-bottom: 16px;
}

.arch-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ps-blue);
  background: #ffffff;
  color: var(--ps-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.arch-card-footer-metrics {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.arch-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.arch-metric-icon {
  width: 15px;
  height: 15px;
  color: var(--ps-blue);
  stroke: var(--ps-blue);
  flex-shrink: 0;
}

/* List View Representation */
.archive-games-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.archive-games-grid.list-view .arch-game-card {
  flex-direction: row;
  align-items: center;
}

.archive-games-grid.list-view .arch-card-poster-wrap {
  width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 15px 0 0 15px;
  flex-shrink: 0;
}

.archive-games-grid.list-view .arch-card-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.archive-games-grid.list-view .arch-card-title {
  margin-bottom: 0;
  min-height: auto;
  flex: 1;
}

.archive-games-grid.list-view .arch-card-tag-wrap {
  margin-bottom: 0;
}

.archive-games-grid.list-view .arch-card-footer-metrics {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  gap: 20px;
}

/* Archive Pagination */
.archive-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.arch-page-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}

.arch-page-btn:hover {
  border-color: var(--ps-blue);
  color: var(--ps-blue);
  background: var(--ps-blue-subtle);
}

.arch-page-btn.active {
  background: var(--ps-blue);
  border-color: var(--ps-blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(230, 0, 18, 0.3);
}

.arch-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Archive Page Rules */
@media (max-width: 1100px) {
  .archive-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .archive-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  
  .archive-hero-box {
    padding: 20px 16px;
  }

  .archive-filter-card {
    top: 76px;
    padding: 16px 14px;
  }
  
  .archive-hero-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .page-archive .container {
    padding: 0 12px;
    max-width: 100%;
  }

  .archive-main-wrap {
    padding: 14px 0 40px;
  }

  .archive-hero-box {
    padding: 18px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .archive-hero-header {
    margin-bottom: 14px;
    gap: 12px;
  }

  .archive-hero-title {
    font-size: 20px;
    margin-top: 2px;
    margin-bottom: 6px;
  }

  .archive-hero-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .archive-stats-strip {
    gap: 6px;
  }

  .archive-stat-badge {
    padding: 4px 10px;
    font-size: 11px;
  }

  .archive-filter-card {
    top: 76px;
    padding: 12px 10px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .archive-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

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

  .arch-search-wrap {
    flex: 1;
    min-width: 0;
  }

  .arch-search-input {
    padding: 10px 12px 10px 34px;
    font-size: 12.5px;
    height: 40px;
    border-radius: 10px;
  }

  .arch-search-icon {
    left: 11px;
    width: 14px;
    height: 14px;
  }

  /* Mobile Filter Accordion Toggle Button */
  .mobile-filter-accordion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #bfdbfe;
    background: #edf4ff;
    color: var(--ps-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .mobile-filter-accordion-btn:hover {
    background: #dbeafe;
  }

  .mobile-filter-accordion-btn.active {
    background: var(--ps-blue);
    color: #ffffff;
    border-color: var(--ps-blue);
  }

  .filter-chevron-arrow {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: transform 0.25s ease;
  }

  .mobile-filter-accordion-btn.active .filter-chevron-arrow {
    transform: rotate(180deg);
  }

  /* Dropdowns Accordion (Hidden by default on mobile, shown when opened) */
  .arch-dropdowns-group {
    display: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
  }

  .arch-dropdowns-group.is-open {
    display: grid !important;
  }

  .arch-select-wrapper {
    width: 100%;
  }

  .arch-select {
    width: 100%;
    padding: 8px 24px 8px 10px;
    font-size: 11.5px;
    height: 38px;
    border-radius: 9px;
  }

  .arch-view-toggles {
    display: none;
  }

  .archive-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 14px;
  }

  /* 2 cards per row on mobile screens */
  .archive-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
  }

  .arch-game-card {
    width: 100%;
    border-radius: 12px;
  }

  .arch-card-poster-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: unset;
    border-radius: 11px 11px 0 0;
  }

  .arch-card-body {
    padding: 10px 10px 10px;
  }

  .arch-card-title {
    font-size: 12.5px;
    line-height: 1.3;
    min-height: 32px;
    margin-bottom: 6px;
  }

  .arch-card-tag-wrap {
    margin-bottom: 8px;
  }

  .arch-tag-pill {
    padding: 2px 8px;
    font-size: 10px;
    border-width: 1px;
  }

  .arch-card-footer-metrics {
    padding-top: 8px;
    font-size: 11px;
    gap: 4px;
  }

  .arch-metric-item {
    font-size: 10.5px;
    gap: 3px;
  }

  .arch-metric-icon {
    width: 12px;
    height: 12px;
  }

  /* Pagination Mobile */
  .archive-pagination-wrap {
    gap: 4px;
    margin-top: 18px;
  }

  .arch-page-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .archive-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .arch-card-body {
    padding: 8px 8px 8px;
  }

  .arch-card-title {
    font-size: 12px;
    min-height: 30px;
  }

  .arch-metric-item {
    font-size: 10px;
  }
}

/* ==========================================================================
   Guide Article & Knowledge Base Styles for Archive Page
   ========================================================================== */
.archive-guide-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.guide-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 36px;
  box-shadow: 0 8px 30px rgba(0, 30, 90, 0.04);
}

.guide-heading-2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-heading-2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--ps-blue);
  border-radius: 4px;
}

.guide-heading-3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.guide-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.guide-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.guide-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.guide-item-box {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: var(--transition);
}

.guide-item-box:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.06);
  transform: translateY(-2px);
}

.guide-item-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-item-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

/* Guide & Specs Tables */
.guide-table-wrap,
.specs-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin: 20px 0;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(140, 0, 12, 0.04);
}

.guide-table,
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
}

.guide-table th,
.specs-table th {
  background: linear-gradient(180deg, #f8faff 0%, #edf4ff 100%);
  color: #b3000e;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 2px solid #bfdbfe;
  white-space: nowrap;
}

.guide-table td,
.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  vertical-align: middle;
}

.guide-table tr:nth-child(even) td,
.specs-table tr:nth-child(even) td {
  background: #fafcff;
}

.guide-table tr:last-child td,
.specs-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td,
.specs-table tr:hover td {
  background: #edf4ff !important;
  color: #0f172a;
}

.tbl-console-name {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tbl-console-link {
  color: var(--ps-blue);
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tbl-console-link:hover {
  text-decoration: underline;
  color: var(--ps-blue-dark);
}

.tbl-emu-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tbl-emu-link:hover {
  color: var(--ps-blue);
  text-decoration: underline;
}

.tbl-emu-name {
  color: var(--ps-blue);
  font-weight: 700;
}

.tbl-ram-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  background: var(--ps-blue-subtle);
  color: var(--ps-blue);
  border: 1px solid rgba(230, 0, 18, 0.2);
  white-space: nowrap;
}

.guide-badge-good {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
}

.guide-badge-excellent {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #dbeafe;
  color: #1e40af;
}

/* Guide Step Workflow Cards */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.guide-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 12px rgba(0, 30, 90, 0.03);
  position: relative;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ps-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.guide-step-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.guide-step-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Guide Check List */
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.guide-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.guide-checklist li::before {
  content: "✓";
  color: var(--ps-blue);
  font-weight: 900;
}

/* Guide FAQ Accordions */
.guide-faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.guide-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
}

.guide-faq-item:hover {
  border-color: #cbd5e1;
}

.guide-faq-header {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8faff;
  user-select: none;
  transition: var(--transition);
}

.guide-faq-header:hover {
  color: var(--ps-blue);
  background: #edf4ff;
}

.guide-faq-arrow {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--ps-blue);
  stroke: var(--ps-blue);
}

.guide-faq-item.active .guide-faq-arrow {
  transform: rotate(180deg);
}

.guide-faq-body {
  padding: 16px 20px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #edf2f7;
  display: none;
  background: #ffffff;
}

.guide-faq-item.active .guide-faq-body {
  display: block;
}

@media (max-width: 820px) {
  .guide-grid-3, .guide-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .archive-guide-section {
    margin-top: 28px;
    gap: 16px;
  }

  .guide-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .guide-heading-2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .guide-heading-2::before {
    height: 18px;
    width: 4px;
  }

  .guide-heading-3 {
    font-size: 14.5px;
  }

  .guide-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .guide-grid-2, .guide-grid-3, .guide-grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .guide-item-box {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .guide-item-title {
    font-size: 13.5px;
  }

  .guide-item-desc {
    font-size: 12px;
  }

  .guide-table th, .guide-table td {
    padding: 9px 12px;
    font-size: 12px;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .guide-step-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .guide-faq-header {
    padding: 13px 14px;
    font-size: 13px;
  }

  .guide-faq-body {
    padding: 12px 14px;
    font-size: 12.5px;
  }
}



/* Custom Spec Links & Archive Page Button Helpers */
.spec-link {
  color: var(--ps-blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}
.spec-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ps-blue-dark);
}
.arch-page-btn {
  text-decoration: none !important;
  user-select: none;
}

/* Semantic SEO & E-E-A-T Content Styling (Games, Emulators, BIOS) */
.game-seo-content h2,
.game-seo-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 26px 0 12px 0;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}
.game-seo-content h2:first-child,
.game-seo-content h3:first-child {
  margin-top: 0;
}
.game-seo-content h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 18px 0 6px 0;
}
.game-seo-content p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}
.game-seo-content ul,
.game-seo-content ol {
  margin: 10px 0 18px 22px;
  list-style-type: disc;
  padding-left: 4px;
}
.game-seo-content ol {
  list-style-type: decimal;
}
.game-seo-content li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  display: list-item;
}
.game-seo-content strong {
  color: #0f172a;
  font-weight: 700;
}
.game-seo-content .faq-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--ps-blue);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.game-seo-content .faq-block h4 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #0f172a;
  font-weight: 800;
}
.game-seo-content .faq-block p:last-child {
  margin-bottom: 0;
}

