/* ==========================================================================
   YSF Games — Modern Light Gaming WordPress Theme Stylesheet
   Designed for SteamRIP Scraper, Fast LCP, and High CTR Downloads
   ========================================================================== */

:root {
  --ysf-primary: #7c3aed;
  --ysf-primary-hover: #6d28d9;
  --ysf-accent: #06b6d4;
  --ysf-accent-hover: #0891b2;
  --ysf-bg: #f8fafc;
  --ysf-card-bg: #ffffff;
  --ysf-border: #e2e8f0;
  --ysf-text: #0f172a;
  --ysf-text-muted: #64748b;
  --ysf-bzzhr: #8b5cf6;
  --ysf-bzzhr-hover: #7c3aed;
  --ysf-gofile: #f59e0b;
  --ysf-gofile-hover: #d97706;
  --ysf-fileditch: #0284c7;
  --ysf-fileditch-hover: #0369a1;
  --ysf-radius: 12px;
  --ysf-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --ysf-shadow-hover: 0 10px 25px rgba(124, 58, 237, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body.ysfgames-light, body {
  margin: 0;
  padding: 0;
  background-color: var(--ysf-bg);
  color: var(--ysf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

a {
  color: var(--ysf-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--ysf-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.ysf-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Announcement Bar */
.ysf-top-bar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}
.ysf-top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Header Navigation */
.ysf-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ysf-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 999;
}
.ysf-header-sticky {
  position: sticky;
  top: 0;
}
.ysf-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo Area */
.ysf-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}
.ysf-brand-logo .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: var(--ysf-primary);
}
.ysf-brand-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.ysf-brand-custom img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Nav Menu */
.ysf-nav-menu {
  display: flex;
  align-items: center;
}
.ysf-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  align-items: center;
}
.ysf-menu-list a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}
.ysf-menu-list a:hover {
  color: var(--ysf-primary);
  background: #f1f5f9;
}
.ysf-menu-list a .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
}
.ysf-menu-list a:hover .dashicons {
  color: var(--ysf-primary);
}
.ysf-admin-nav-link {
  background: rgba(124, 58, 237, 0.08) !important;
  color: var(--ysf-primary) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
}
.ysf-admin-nav-link:hover {
  background: var(--ysf-primary) !important;
  color: #ffffff !important;
}
.ysf-discord-link {
  background: rgba(88, 101, 242, 0.1) !important;
  color: #5865F2 !important;
}
.ysf-discord-link:hover {
  background: #5865F2 !important;
  color: #fff !important;
}

/* Menu Dropdown */
.ysf-menu-has-dropdown {
  position: relative;
}
.ysf-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--ysf-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 8px 0;
  margin: 8px 0 0;
  min-width: 180px;
  z-index: 1000;
}
.ysf-menu-has-dropdown:hover .ysf-dropdown-menu {
  display: block;
}
.ysf-dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #334155;
  border-radius: 0;
}
.ysf-dropdown-menu li a:hover {
  background: #f8fafc;
  color: var(--ysf-primary);
}

/* Header Live Search */
.ysf-header-search {
  position: relative;
}
.ysf-search-form {
  display: flex;
  align-items: center;
  position: relative;
}
.ysf-search-icon {
  position: absolute;
  left: 9px;
  color: #94a3b8;
  font-size: 14px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ysf-search-input {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 10px 5px 28px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  width: 105px;
  height: 32px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.ysf-search-input:focus {
  width: 155px;
  background: #fff;
  border-color: var(--ysf-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Live Search Dropdown */
.ysf-live-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--ysf-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  max-height: 400px;
  overflow-y: auto;
}
.ysf-live-search-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  align-items: center;
  transition: background 0.2s;
}
.ysf-live-search-item:hover {
  background: #f8fafc;
}
.ysf-live-search-thumb {
  width: 45px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}
.ysf-live-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ysf-live-search-details h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.ysf-live-search-details span {
  font-size: 11px;
  color: #64748b;
  display: block;
}

/* Mobile Toggle */
.ysf-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
}

/* Hero Section */
.ysf-hero-section {
  margin: 24px 0 28px;
}
.ysf-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ysf-related-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .ysf-related-hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 540px) {
  .ysf-related-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.ysf-hero-card {
  position: relative;
  border-radius: var(--ysf-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  box-shadow: var(--ysf-shadow);
  border: 1px solid var(--ysf-border);
}
.ysf-hero-link {
  display: block;
  width: 100%;
  height: 100%;
}
.ysf-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ysf-hero-card:hover .ysf-hero-img {
  transform: scale(1.05);
}
.ysf-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ysf-hero-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ysf-hero-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Badges */
.ysf-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ysf-badge-pc {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.ysf-badge-ver {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.ysf-badge-size {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.ysf-badge-preinstalled {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Genre Filter Pills */
.ysf-genre-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ysf-genre-filter-bar::-webkit-scrollbar {
  display: none;
}
.ysf-genre-label {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ysf-genre-pills-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.ysf-genre-pill {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--ysf-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.ysf-genre-pill:hover {
  background: var(--ysf-primary);
  color: #ffffff;
  border-color: var(--ysf-primary);
}

/* Games Grid */
.ysf-latest-games-section {
  margin-bottom: 45px;
}
.ysf-section-header {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ysf-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.ysf-section-title .dashicons {
  color: var(--ysf-primary);
}

.ysf-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 16px;
}
.ysf-game-card {
  background: var(--ysf-card-bg);
  border-radius: var(--ysf-radius);
  overflow: hidden;
  border: 1px solid var(--ysf-border);
  box-shadow: var(--ysf-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ysf-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--ysf-primary);
  box-shadow: var(--ysf-shadow-hover);
}

.ysf-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}
.ysf-game-cover-img,
.ysf-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ysf-game-card:hover .ysf-game-cover-img,
.ysf-game-card:hover .ysf-game-thumb img {
  transform: scale(1.04);
}
.ysf-thumb-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ysf-thumb-size-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.ysf-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #94a3b8;
}
.ysf-thumb-placeholder .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.ysf-placeholder-text {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.ysf-game-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ysf-game-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ysf-primary);
  margin-bottom: 2px;
}
.ysf-game-card .ysf-game-title,
.ysf-game-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
  max-height: 2.6em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  flex: none !important;
}
.ysf-game-title a {
  color: #0f172a !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
}
.ysf-game-title a:hover {
  color: var(--ysf-primary) !important;
}
.ysf-game-meta {
  font-size: 11.5px;
  color: var(--ysf-text-muted);
  display: flex;
  align-items: center;
}
.ysf-game-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ysf-game-time .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Pagination */
.ysf-pagination {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}
.ysf-pagination .nav-links {
  display: flex;
  gap: 6px;
}
.ysf-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--ysf-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s;
}
.ysf-pagination .page-numbers:hover,
.ysf-pagination .page-numbers.current {
  background: var(--ysf-primary);
  color: #ffffff;
  border-color: var(--ysf-primary);
}

/* ==========================================================================
   Single Game Article Styles
   ========================================================================== */

.ysf-breadcrumb-bar {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 15px auto 20px;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  line-height: 1.6;
}
.ysf-breadcrumb-bar a {
  color: #475569;
}
.ysf-breadcrumb-bar a:hover {
  color: var(--ysf-primary);
}
.ysf-breadcrumb-bar span {
  color: #0f172a;
}

.ysf-game-hero-card {
  background: #ffffff;
  border: 1px solid var(--ysf-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--ysf-shadow);
  display: flex;
  gap: 28px;
  margin-bottom: 25px;
}
.ysf-game-cover-wrap {
  width: 240px;
  flex-shrink: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.ysf-game-cover-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ysf-game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ysf-genre-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ysf-genre-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.ysf-genre-tag:hover {
  background: var(--ysf-primary);
  color: #fff;
}
.ysf-game-hero-card .ysf-game-title,
.ysf-game-hero-title {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 14px !important;
  line-height: 1.3 !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}

/* Meta Pills */
.ysf-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ysf-pill {
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--ysf-border);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ysf-pill .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: var(--ysf-primary);
}

/* Quick Actions */
.ysf-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.ysf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.ysf-btn-primary {
  background: var(--ysf-primary);
  color: #ffffff;
}
.ysf-btn-primary:hover {
  background: var(--ysf-primary-hover);
  color: #ffffff;
}
.ysf-btn-ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.ysf-btn-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ysf-btn-purple {
  background: var(--ysf-bzzhr);
  color: #ffffff;
}
.ysf-btn-purple:hover {
  background: var(--ysf-bzzhr-hover);
  color: #ffffff;
}
.ysf-btn-amber {
  background: var(--ysf-gofile);
  color: #ffffff !important;
}
.ysf-btn-amber:hover {
  background: var(--ysf-gofile-hover);
  color: #ffffff !important;
}
.ysf-btn-blue,
.ysf-btn-fileditch {
  background: var(--ysf-fileditch, #0284c7) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.ysf-btn-blue:hover,
.ysf-btn-fileditch:hover {
  background: var(--ysf-fileditch-hover, #0369a1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.ysf-btn-mega {
  background: #dc2626 !important;
  color: #ffffff !important;
}
.ysf-btn-mega:hover {
  background: #b91c1c !important;
}
.ysf-btn-1fichier {
  background: #ea580c !important;
  color: #ffffff !important;
}
.ysf-btn-1fichier:hover {
  background: #c2410c !important;
}
.ysf-btn-torrent {
  background: #059669 !important;
  color: #ffffff !important;
}
.ysf-btn-torrent:hover {
  background: #047857 !important;
}

/* Main Article Content Container */
.ysf-game-content-container {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--ysf-border);
  padding: 30px 32px;
  box-shadow: var(--ysf-shadow);
  margin-bottom: 30px;
}
.ysf-entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}
.ysf-entry-content h2, .ysf-entry-content h3 {
  color: #0f172a;
  font-weight: 800;
  margin: 24px 0 12px;
}

/* Screenshots Gallery */
.ysf-game-screenshots-wrap {
  margin: 30px 0;
}
.ysf-block-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}
.ysf-block-title .dashicons {
  color: var(--ysf-primary);
}
.ysf-screenshots-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ysf-screenshots-grid > p {
  display: contents !important;
}
.ysf-screenshots-grid > p:empty,
.ysf-screenshots-grid > br {
  display: none !important;
}
.ysf-screen-item {
  width: 100% !important;
  display: block !important;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ysf-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #f1f5f9;
  text-decoration: none !important;
}
.ysf-screen-item img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease;
}
.ysf-screen-item:hover img {
  transform: scale(1.025);
}

/* System Requirements & Game Info */
.ysf-game-sysreq-wrap, .ysf-game-info-wrap {
  margin: 25px 0;
  background: #f8fafc;
  border: 1px solid var(--ysf-border);
  border-radius: 10px;
  padding: 20px;
}
.ysf-sysreq-list, .ysf-gameinfo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 16px;
}
.ysf-sysreq-list li, .ysf-gameinfo-list li {
  font-size: 13.5px;
  line-height: 1.6;
}
.ysf-sysreq-list li strong, .ysf-gameinfo-list li strong {
  color: #0f172a;
}

/* Download Section & Dedicated Card */
.ysf-game-download-wrap, .ysf-dedicated-download-box {
  margin: 35px 0;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
}
.ysf-dl-box-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  text-align: left;
}
.ysf-download-buttons-group, .ysf-dl-mirrors-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ysf-dl-card, .ysf-dl-mirror-btn-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  min-width: 220px;
}
.ysf-dl-card strong {
  font-size: 14px;
  color: #0f172a;
  display: block;
  margin-bottom: 8px;
}
.ysf-mirror-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.ysf-tag-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--ysf-bzzhr);
}
.ysf-tag-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--ysf-gofile);
}
.ysf-tag-blue,
.ysf-tag-fileditch {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.ysf-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  color: #fff !important;
  width: 100%;
  box-sizing: border-box;
}

/* Fallback: any mirror card button is guaranteed colored and visible */
.ysf-dl-mirror a.ysf-dl-btn,
.ysf-dl-card.ysf-dl-mirror a.ysf-dl-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
}
.ysf-dl-mirror a.ysf-dl-btn:hover,
.ysf-dl-card.ysf-dl-mirror a.ysf-dl-btn:hover {
  background: #0369a1 !important;
  color: #ffffff !important;
}

/* How to run notice */
.ysf-how-to-run-notice {
  background: #f8fafc;
  border-left: 4px solid var(--ysf-primary);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin-top: 25px;
  text-align: left;
}
.ysf-how-to-run-notice h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ysf-how-to-run-notice ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #475569;
}
.ysf-how-to-run-notice ol li {
  margin-bottom: 4px;
}

/* Guides Hub / pSEO internal linking */
.ysf-hub-pill {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--ysf-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.ysf-hub-pill:hover {
  background: var(--ysf-primary);
  color: #ffffff;
  border-color: var(--ysf-primary);
}

/* Footer */
.ysf-footer {
  background: #ffffff;
  border-top: 1px solid var(--ysf-border);
  padding: 45px 0 20px;
  color: #475569;
}
.ysf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 35px;
}
.ysf-footer-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.ysf-footer-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ysf-footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}
.ysf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ysf-footer-links li {
  margin-bottom: 8px;
}
.ysf-footer-links a {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.ysf-footer-links a:hover {
  color: var(--ysf-primary);
}
.ysf-footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
}

/* Back to Top */
.ysf-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--ysf-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 99;
}
.ysf-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.ysf-back-to-top:hover {
  transform: translateY(-3px);
  background: var(--ysf-primary-hover);
}

/* Responsive */
@media (max-width: 1024px) {
  .ysf-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ysf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .ysf-header-container {
    flex-wrap: wrap !important;
    gap: 8px !important;
    position: relative;
  }
  .ysf-logo-area {
    order: 1 !important;
  }
  .ysf-header-search {
    order: 2 !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
  .ysf-mobile-toggle {
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .ysf-nav-menu {
    display: none;
    order: 10 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    background: #ffffff !important;
    border-top: 1px solid var(--ysf-border) !important;
    padding: 8px 0 12px !important;
    margin-top: 4px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden;
  }
  .ysf-menu-list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    width: 100% !important;
    padding: 0 6px !important;
  }
  .ysf-menu-list > li {
    width: 100% !important;
  }
  .ysf-menu-list > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ysf-menu-list > li > a:hover {
    background: #f1f5f9 !important;
    color: var(--ysf-primary) !important;
  }
  .ysf-menu-has-dropdown .ysf-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
    padding: 4px 10px 8px 20px !important;
    margin: 4px 0 !important;
    border-radius: 6px !important;
    display: none;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .ysf-menu-has-dropdown.is-open .ysf-dropdown-menu {
    display: block !important;
  }
  .ysf-search-input {
    width: 92px !important;
    height: 30px !important;
    padding: 4px 8px 4px 24px !important;
    font-size: 11px !important;
  }
  .ysf-search-input:focus {
    width: 125px !important;
  }
  .ysf-search-icon {
    left: 7px !important;
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
  }
  .ysf-hero-grid {
    grid-template-columns: 1fr;
  }
  .ysf-game-hero-card {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .ysf-game-cover-wrap {
    width: 200px;
  }
  .ysf-meta-pills {
    justify-content: center;
  }
  .ysf-quick-actions {
    justify-content: center;
  }
  .ysf-footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .ysf-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }
  .ysf-game-info {
    padding: 6px 8px !important;
  }
  .ysf-game-card .ysf-game-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }
  .ysf-screenshots-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .ysf-game-hero-card .ysf-game-title,
  .ysf-game-hero-title {
    font-size: 20px !important;
    text-align: center;
  }
  .ysf-dl-mirrors-grid,
  .ysf-download-buttons-group {
    flex-direction: column !important;
    width: 100% !important;
  }
  .ysf-dl-mirror-btn-wrap,
  .ysf-dl-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Safeguard: Hide BZZHR buttons and mirrors everywhere
   ========================================================================== */
.ysf-dl-bzzhr,
.ysf-btn-purple,
.ysf-tag-purple,
.ysf-dl-card.ysf-dl-bzzhr,
.ysf-dl-mirror-btn-wrap:has(a[href*="bzzhr"]),
.ysf-dl-mirror-btn-wrap:has(a[href*="buzzheavier"]),
a[href*="bzzhr"],
a[href*="buzzheavier"] {
  display: none !important;
}
