/* RomsHub v2 — public.css */

/* ── Hero ── */
.hero { position:relative; min-height:92vh; display:flex; align-items:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; pointer-events:none; }
.hero-orb { position:absolute; border-radius:50%; filter:blur(90px); opacity:0; animation:orbFade .9s ease forwards; }
.hero-orb-1 { width:700px; height:700px; top:-200px; left:-150px; background:radial-gradient(circle,rgba(79,142,247,.18) 0%,transparent 70%); animation-delay:.1s; }
.hero-orb-2 { width:600px; height:600px; top:-100px; right:-100px; background:radial-gradient(circle,rgba(255,207,89,.12) 0%,transparent 70%); animation-delay:.25s; }
.hero-orb-3 { width:400px; height:400px; bottom:0; left:40%; background:radial-gradient(circle,rgba(148,87,235,.1) 0%,transparent 70%); animation-delay:.4s; }
@keyframes orbFade { to { opacity:1; } }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:60px 60px; mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 30%,transparent 100%); }
.hero-content { position:relative; z-index:10; padding-top:80px; padding-bottom:80px; display:flex; flex-direction:column; align-items:flex-start; gap:28px; }
.hero-badge { display:inline-flex; align-items:center; gap:10px; padding:7px 16px 7px 12px; border-radius:999px; border:1px solid rgba(79,142,247,.3); background:rgba(79,142,247,.08); font-size:13px; font-weight:500; color:#93b8ff; animation:fadeUp .6s ease both; }
.badge-dot { width:8px; height:8px; border-radius:50%; background:#4f8ef7; box-shadow:0 0 8px #4f8ef7; animation:pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title { font-size:clamp(42px,6vw,80px); font-weight:900; line-height:1.05; letter-spacing:-.04em; color:#fff; animation:fadeUp .6s ease .1s both; max-width:780px; }
.hero-title em { font-style:normal; background:linear-gradient(135deg,var(--accent) 0%,#ff9d3d 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { font-size:clamp(16px,2vw,20px); color:rgba(226,232,244,.65); max-width:560px; line-height:1.7; animation:fadeUp .6s ease .2s both; }
.hero-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; animation:fadeUp .6s ease .3s both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.hero-scroll-hint { position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:10; }
.hero-scroll-hint span { display:block; width:22px; height:38px; border:2px solid rgba(255,255,255,.18); border-radius:11px; position:relative; }
.hero-scroll-hint span::after { content:''; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:4px; height:8px; border-radius:2px; background:rgba(255,255,255,.45); animation:scrollDot 2s ease infinite; }
@keyframes scrollDot { 0%{top:6px;opacity:1} 80%{top:20px;opacity:0} 100%{top:6px;opacity:0} }

/* ── Buttons ── */
.btn-primary { display:inline-flex; align-items:center; gap:10px; padding:14px 28px; border-radius:999px; background:var(--accent); color:#0a0a0a; font-weight:700; font-size:15px; transition:all var(--transition); }
.btn-primary:hover { background:#ffd86e; transform:translateY(-2px); box-shadow:0 8px 28px var(--accent-glow); }
.btn-primary--large { padding:16px 36px; font-size:16px; }
.btn-ghost { display:inline-flex; align-items:center; gap:8px; padding:14px 22px; border-radius:999px; border:1px solid var(--border-hover); color:rgba(226,232,244,.7); font-size:15px; font-weight:500; transition:all var(--transition); }
.btn-ghost:hover { border-color:rgba(255,255,255,.25); color:#fff; background:rgba(255,255,255,.04); }
.btn-outline { display:inline-flex; align-items:center; gap:8px; padding:10px 20px; border-radius:var(--radius-sm); border:1px solid var(--border); color:var(--muted); font-size:14px; font-weight:500; transition:all var(--transition); }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }

/* ── Stats bar ── */
.stats-bar { position:relative; z-index:20; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stats-inner { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.stat-item { display:flex; flex-direction:column; align-items:center; gap:4px; padding:28px 40px; opacity:0; transform:translateY(10px); transition:opacity .4s ease,transform .4s ease; }
.stat-item.is-visible { opacity:1; transform:translateY(0); }
.stat-value { font-size:30px; font-weight:800; letter-spacing:-.03em; background:linear-gradient(135deg,#fff 0%,#94a3b8 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat-label { font-size:13px; color:var(--muted); font-weight:500; }
.stat-sep { width:1px; height:40px; background:var(--border); }

/* ── Section commons ── */
.section-header { text-align:center; margin-bottom:56px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.section-header--row { text-align:left; flex-direction:row; justify-content:space-between; align-items:flex-end; margin-bottom:36px; }
.section-pill { display:inline-flex; align-items:center; gap:8px; padding:5px 14px; border-radius:999px; background:var(--accent-dim); border:1px solid rgba(255,207,89,.2); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); }
.section-title { font-size:clamp(28px,3.5vw,44px); font-weight:800; letter-spacing:-.03em; color:#fff; line-height:1.1; }
.section-title--sm { font-size:clamp(22px,2.5vw,32px); }
.section-sub { font-size:17px; color:var(--muted); max-width:520px; }

/* ── Features ── */
.features-section { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); opacity: 0; transform: translateY(20px); }
.feat-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, border-color var(--transition), box-shadow var(--transition); }
.feat-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.35); }
.feat-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); transition: all var(--transition); }
.feat-card:hover .feat-icon { background: var(--accent); color: #0a0a0a; border-color: transparent; box-shadow: 0 0 20px var(--accent-glow); }
.feat-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.feat-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feat-glow { position: absolute; inset: 0; background: radial-gradient(circle at 20% 80%, rgba(255,207,89,.06), transparent 60%); opacity: 0; transition: opacity var(--transition); pointer-events: none; }
.feat-card:hover .feat-glow { opacity: 1; }

/* Home game grid — poster cards */
.home-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }

/* ── Game cards (home) — NEW poster style ── */
.games-section { padding: 0 0 100px; }
.hgame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.hgame-card { display: block; border-radius: 16px; overflow: hidden; text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.hgame-card.is-visible { opacity: 1; transform: translateY(0); }
.hgame-art { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.hgame-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.hgame-card:hover .hgame-art img { transform: scale(1.06); }
.hgame-art-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(37,99,235,.3), rgba(2,6,23,.7)); }
.hgame-art-fallback span { font-size: 56px; font-weight: 900; color: rgba(255,255,255,.25); letter-spacing: -.04em; }
.hgame-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,16,.97) 0%, rgba(5,8,16,.55) 45%, rgba(5,8,16,.05) 75%, transparent 100%); transition: opacity .3s ease; }
.hgame-card:hover .hgame-gradient { opacity: .85; }
.hgame-top { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.hgame-badge { padding: 3px 9px; border-radius: 999px; background: rgba(5,8,16,.65); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(226,232,244,.8); }
.hgame-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px 16px; transform: translateY(6px); transition: transform .3s ease; }
.hgame-card:hover .hgame-bottom { transform: translateY(0); }
.hgame-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgame-foot { display: flex; align-items: center; justify-content: space-between; opacity: 0; transform: translateY(4px); transition: opacity .25s ease .05s, transform .25s ease .05s; }
.hgame-card:hover .hgame-foot { opacity: 1; transform: translateY(0); }
.hgame-year { font-size: 11px; color: rgba(226,232,244,.5); font-weight: 500; }
.hgame-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }

/* Keep old game-card for compat */
.game-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.game-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:border-color var(--transition),transform var(--transition),box-shadow var(--transition); display:flex; flex-direction:column; opacity:0; transform:translateY(16px); }
.game-card.is-visible { opacity:1; transform:translateY(0); transition:opacity .45s ease,transform .45s ease,border-color var(--transition),box-shadow var(--transition); }
.game-card:hover { border-color:var(--border-hover); transform:translateY(-6px); box-shadow:0 24px 48px rgba(0,0,0,.4); }
.game-thumb { position:relative; height:170px; background:var(--surface-2); background-size:cover; background-position:center; overflow:hidden; }
.game-thumb-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.15); }
.game-thumb-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(15,21,33,.9) 0%,rgba(15,21,33,.1) 60%,transparent 100%); }
.game-tags { position:absolute; top:12px; left:12px; display:flex; gap:6px; flex-wrap:wrap; }
.game-tag { padding:3px 10px; border-radius:999px; background:rgba(15,21,33,.75); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.1); font-size:11px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:rgba(226,232,244,.8); }
.game-body { padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; position:relative; }
.game-name { font-size:16px; font-weight:700; line-height:1.3; letter-spacing:-.015em; }
.game-name a { color:#fff; transition:color var(--transition); }
.game-card:hover .game-name a { color:var(--accent); }
.game-meta { display:flex; flex-wrap:wrap; gap:8px; }
.game-meta-item { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); }
.game-arrow { position:absolute; bottom:20px; right:20px; width:32px; height:32px; border-radius:50%; background:var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--muted); opacity:0; transform:translateX(-6px); transition:all var(--transition); }
.game-card:hover .game-arrow { opacity:1; transform:translateX(0); color:var(--accent); border-color:var(--accent-dim); background:var(--accent-dim); }

/* ── CTA Band ── */
.cta-band { position:relative; overflow:hidden; margin:0 28px 80px; border-radius:28px; border:1px solid var(--border); background:var(--surface); }
.cta-band-bg { position:absolute; inset:0; pointer-events:none; }
.cta-orb { position:absolute; border-radius:50%; filter:blur(70px); }
.cta-orb-1 { width:400px; height:400px; top:-100px; left:-100px; background:radial-gradient(circle,rgba(255,207,89,.12),transparent 70%); }
.cta-orb-2 { width:300px; height:300px; bottom:-80px; right:5%; background:radial-gradient(circle,rgba(79,142,247,.1),transparent 70%); }
.cta-band-inner { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:40px; padding-top:64px; padding-bottom:64px; flex-wrap:wrap; opacity:0; transform:translateY(20px); transition:opacity .5s ease,transform .5s ease; }
.cta-band-inner.is-visible { opacity:1; transform:translateY(0); }
.cta-band-title { font-size:clamp(24px,3vw,38px); font-weight:800; letter-spacing:-.03em; color:#fff; margin-bottom:12px; }
.cta-band-sub { font-size:16px; color:var(--muted); max-width:440px; }

/* ── Catalogue ── */
.cat-page { width: 100%; padding-bottom: 80px; }
.catalogue-hero { text-align: center; padding: 52px 20px 28px; }
.cat-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -.04em; color: #fff; margin-bottom: 10px; }
.cat-sub { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cat-count { color: var(--accent); font-weight: 900; }
.filters-row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 12px; padding: 0 20px 20px; max-width: 900px; margin: 0 auto; overflow: visible; }
.filter-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; position: relative; flex: 1 1 260px; max-width: 340px; overflow: visible; }
.filter { position: relative; }
.filter-trigger { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.filter[open] .filter-trigger { border-bottom: 1px solid var(--border); }
.filter-trigger::-webkit-details-marker { display: none; }
.filter .icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,207,89,.12); color: var(--accent); flex-shrink: 0; }
.filter .icon .i { width: 18px; height: 18px; }
.filter .meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.filter .label { color: #9fb0ca; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.filter .value { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter .caret { color: #9fb0ca; flex-shrink: 0; font-size: 12px; }
.filter-panel { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); min-width: 280px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.4); z-index: 1000; }
.filter-card:has(.filter[open]) { z-index: 2000; }
.filter-panel.scroll { max-height: 320px; overflow: auto; }
.sep { border: 0; height: 1px; background: var(--border); margin: 8px 0; }
.checkbox-grid.cat-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.row-option { display: flex; align-items: center; gap: 10px; padding: 6px 4px; cursor: pointer; border-radius: 8px; transition: background .15s; }
.row-option:hover { background: rgba(148,163,184,.06); }
.row-option input.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.row-option .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(148,163,184,.25); border: 1.5px solid rgba(148,163,184,.4); flex-shrink: 0; transition: all .15s; }
.row-option input[type="radio"]:checked + .dot, .row-option input[type="checkbox"]:checked + .dot { background: var(--accent); border-color: rgba(255,207,89,.7); box-shadow: 0 0 6px rgba(255,207,89,.3); }
.row-option .text { font-size: 13px; color: rgba(226,232,244,.8); }

/* Catalogue grid */
.cat-grid-wrap { max-width: 1400px; margin: 0 auto; padding: 8px 28px 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.game-card.poster { background: transparent; border: none; border-radius: 12px; overflow: visible; cursor: pointer; opacity: 1 !important; transform: none !important; transition: transform .22s ease; box-shadow: none !important; }
.game-card.poster:hover { transform: translateY(-6px) !important; }
.cat-grid-wrap .game-card { opacity: 1; transform: none; }
.poster-link { display: block; overflow: hidden; border-radius: 12px; background: var(--surface); }
.card-cover { position: relative; background: var(--surface-2); overflow: hidden; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.3); aspect-ratio: 2/3; transition: box-shadow .22s ease; }
.game-card.poster:hover .card-cover { box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s ease; }
.game-card.poster:hover .card-cover img { transform: scale(1.04); }
.card-cover .fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #dbeafe; font-weight: 900; font-size: 28px; background: linear-gradient(180deg, rgba(37,99,235,.25), rgba(2,6,23,.6)); }
.card-content { display: block; padding: 10px 2px 0; }
.card-platform { color: var(--muted); font-size: 11px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.card-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title a { color: var(--text); transition: color .18s; }
.game-card.poster:hover .card-title a { color: var(--accent); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-category { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-year { display: inline-block; color: #94a3b8; font-size: 10px; padding: 2px 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(148,163,184,.15); border-radius: 5px; flex-shrink: 0; letter-spacing: .03em; }
.empty-state { grid-column: 1/-1; padding: 80px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

@media(max-width:768px) {
  .filters-row { flex-wrap: wrap; padding: 0 12px 16px; }
  .filter-card { flex: 1 1 200px; max-width: none; }
  .cat-grid-wrap { padding: 8px 12px 0; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
}
@media(max-width:480px) {
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
  .cat-title { font-size: clamp(26px, 8vw, 40px); }
}

/* ── Game Detail (NEW) ── */
.gd-page { min-height: 100vh; }

/* Banner */
.gd-banner { position: relative; height: 380px; overflow: hidden; }
.gd-banner-bg { position: absolute; inset: -20px; background: var(--surface-2) center/cover no-repeat; filter: blur(3px) brightness(.45) saturate(1.2); transform-origin: center; transition: transform .1s linear; }
.gd-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,12,20,.3) 0%, rgba(8,12,20,.8) 60%, rgba(8,12,20,1) 100%); }
.gd-banner-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 32px; }
.gd-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(226,232,244,.55); padding: 6px 0; position: absolute; top: 28px; transition: color .2s; letter-spacing: .03em; text-transform: uppercase; }
.gd-back:hover { color: rgba(226,232,244,.9); }
.gd-title-row { display: flex; align-items: flex-end; gap: 24px; }
.gd-cover { width: 110px; height: 160px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.5); flex-shrink: 0; }
.gd-cover img { width: 100%; height: 100%; object-fit: cover; }
.gd-title-info { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chip { padding: 3px 10px; border-radius: 999px; background: rgba(255,207,89,.12); border: 1px solid rgba(255,207,89,.25); font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.gd-game-title { font-size: clamp(26px, 4vw, 52px); font-weight: 900; letter-spacing: -.035em; color: #fff; line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.gd-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(226,232,244,.65); font-weight: 500; }
.gd-meta-sep { color: rgba(226,232,244,.25); font-size: 14px; }
.gd-platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-platform-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 600; color: rgba(226,232,244,.75); }

/* Body layout */
.gd-body { padding-top: 36px; padding-bottom: 80px; }
.gd-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
.gd-main { display: flex; flex-direction: column; gap: 24px; }

/* Section labels */
.gd-section { display: flex; flex-direction: column; gap: 12px; }
.gd-section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gd-section-label svg { color: var(--accent); }

/* Video */
.gd-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.gd-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.gd-no-trailer { height: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }

/* Cards */
.gd-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }

/* Description */
.gd-description { font-size: 15px; color: rgba(226,232,244,.8); line-height: 1.8; white-space: pre-wrap; }

/* Downloads */
.gd-downloads-card { padding: 0; overflow: hidden; }
.gd-version-groups { display: flex; flex-direction: column; }
.gd-emu-group { border-bottom: 1px solid var(--border); }
.gd-emu-group:last-child { border-bottom: none; }
.gd-emu-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: #e2e8f4; }
.gd-emu-header svg { color: var(--accent); }
.gd-version-list { display: flex; flex-direction: column; }
.gd-version-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; }
.gd-version-row:last-child { border-bottom: none; }
.gd-version-row:hover { background: rgba(255,255,255,.025); }
.gd-version-type { font-size: 13px; font-weight: 600; color: #e2e8f4; padding: 3px 10px; border-radius: 6px; }
.gd-version-type.BASE { background: rgba(79,142,247,.1); color: #7ab0ff; }
.gd-version-type.CUSTOM { background: rgba(168,85,247,.1); color: #c084fc; }
.gd-dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px; background: var(--accent); color: #0a0a0a; font-size: 13px; font-weight: 700; transition: all .2s ease; white-space: nowrap; }
.gd-dl-btn:hover { background: #ffd86e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,207,89,.3); }
.gd-empty-dl { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; color: var(--muted); text-align: center; }

/* Sidebar */
.gd-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.gd-staff-note { background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2); border-radius: 14px; padding: 16px; }
.gd-staff-header { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; color: #f59e0b; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.gd-staff-text { font-size: 13px; color: rgba(226,232,244,.8); line-height: 1.65; }
.gd-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gd-info-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(226,232,244,.5); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.gd-info-rows { padding: 8px 0; }
.gd-info-row { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.gd-info-row:last-child { border-bottom: none; }
.gd-info-key { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.gd-info-val { font-size: 13px; color: #e2e8f4; font-weight: 500; }
.gd-nav-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gd-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; font-weight: 600; color: rgba(226,232,244,.6); border-bottom: 1px solid rgba(255,255,255,.04); transition: all .18s; }
.gd-nav-item:last-child { border-bottom: none; }
.gd-nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.gd-nav-item svg { color: var(--accent); flex-shrink: 0; }
.gd-help-link { color: var(--accent); }
.gd-help-link:hover { background: rgba(255,207,89,.08); }
.gd-categories-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gd-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.gd-cat-chip { padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: rgba(226,232,244,.7); transition: all .2s; }
.gd-cat-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Responsive */
@media(max-width:900px) {
  .gd-banner { height: 320px; }
  .gd-layout { grid-template-columns: 1fr; }
  .gd-sidebar { position: static; }
}
@media(max-width:640px) {
  .gd-banner { height: 260px; }
  .gd-cover { display: none; }
  .gd-game-title { font-size: clamp(22px, 7vw, 38px); }
}

/* ── Responsive (shared) ── */
@media(max-width:900px) {
  .features-grid { grid-template-columns:1fr 1fr; }
  .feat-card--large,.feat-card--large.feat-card--right { grid-column:span 2; }
}
@media(max-width:640px) {
  .hero-content { padding-top:60px; padding-bottom:60px; }
  .hero { min-height:80vh; }
  .features-grid { grid-template-columns:1fr; }
  .feat-card--large,.feat-card--large.feat-card--right { grid-column:1; }
  .filters-row { flex-wrap:wrap; }
  .cta-band { margin:0 16px 64px; }
  .cta-band-inner { flex-direction:column; align-items:flex-start; }
  .catalog-grid { grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:12px; }
}

