
.retro-page,.retro-play-page{width:min(1180px,calc(100% - 30px));margin:28px auto 50px}
.retro-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:34px;border-radius:28px;background:radial-gradient(circle at 15% 10%,rgba(119,87,255,.35),transparent 38%),linear-gradient(135deg,#11142a,#071a2d);color:#fff;box-shadow:0 24px 60px rgba(13,22,48,.18)}
.retro-hero:after{content:"";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:22px 22px;pointer-events:none}
.retro-hero>div:first-child{position:relative;z-index:1;max-width:720px}.retro-hero span{font-size:11px;letter-spacing:.18em;font-weight:900;color:#7ddfff}.retro-hero h1{margin:8px 0 10px;font-size:clamp(32px,5vw,58px);line-height:1}.retro-hero p{margin:0;color:#c7d2e8;line-height:1.6}
.retro-machine{position:relative;z-index:1;width:150px;height:150px;border:8px solid #553ce0;border-radius:26px;background:#060914;display:grid;place-content:center;text-align:center;box-shadow:inset 0 0 0 5px #171d39,0 15px 32px rgba(0,0,0,.3)}.retro-machine i{display:block;width:64px;height:50px;margin:auto;background:linear-gradient(#25d8ff,#5d4cff);border-radius:7px;box-shadow:0 0 20px #2ecbff}.retro-machine b{font-size:24px;margin-top:8px}.retro-machine small{color:#9fa8c8}
.retro-filter{display:grid;grid-template-columns:1fr 280px auto;gap:10px;margin:18px 0}.retro-filter input,.retro-filter select{height:48px;border:1px solid #dbe1ec;border-radius:13px;padding:0 14px;background:#fff}.retro-filter button{border:0;border-radius:13px;background:#6e55ef;color:#fff;font-weight:900;padding:0 20px}
.retro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.retro-card{overflow:hidden;border:1px solid #e0e5ee;border-radius:20px;background:#fff;box-shadow:0 12px 28px rgba(22,34,64,.07)}.retro-cover{position:relative;display:block;aspect-ratio:4/3;background:#0b1023}.retro-cover img{width:100%;height:100%;object-fit:cover}.retro-cover-placeholder{height:100%;display:grid;place-items:center;font-size:64px;background:radial-gradient(circle,#2b3263,#0a0d1c)}.retro-cover>b{position:absolute;top:10px;left:10px;padding:6px 8px;border-radius:999px;background:#7356ff;color:#fff;font-size:9px}
.retro-card-body{padding:15px}.retro-card-body>small{font-weight:800;color:#7158ee}.retro-card-body h2{font-size:18px;margin:5px 0}.retro-card-body p{font-size:12px;color:#687188;line-height:1.5;min-height:54px}.retro-card-body>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.retro-card-body>div span{font-size:10px;color:#7b8498}.retro-card-body a{padding:8px 10px;border-radius:9px;background:#11172a;color:#fff;font-size:11px;font-weight:900;text-decoration:none}
.retro-empty{padding:30px;border:1px dashed #ccd4e3;border-radius:18px;text-align:center;display:grid;gap:5px;color:#6e778c}

.retro-play-head{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;margin-bottom:14px}.retro-play-head>a{text-decoration:none;color:#5f6880;font-weight:700}.retro-play-head small{color:#7356ff;font-weight:900}.retro-play-head h1{margin:2px 0;font-size:28px}.retro-play-head button{border:1px solid #d9dfeb;border-radius:11px;background:#fff;padding:10px 14px;font-weight:900}
.retro-console{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;padding:16px;border-radius:24px;background:linear-gradient(145deg,#0a0e1b,#161b35);box-shadow:0 28px 70px rgba(8,13,30,.25)}.retro-screen-bezel{position:relative;min-height:600px;border:9px solid #252b49;border-radius:18px;background:#000;overflow:hidden;display:grid;place-items:stretch}.retro-screen-bezel #retro-emulator{width:100%;height:100%;min-height:580px}.retro-loading{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:7px;background:#050812;color:#fff;z-index:9}.retro-loading.hide{opacity:0;pointer-events:none;transition:.35s}.retro-loading span{width:44px;height:44px;border:4px solid #252a44;border-top-color:#7356ff;border-radius:50%;animation:retroSpin .7s linear infinite}.retro-loading small{color:#8590aa}@keyframes retroSpin{to{transform:rotate(360deg)}}
.retro-side{display:grid;align-content:start;gap:10px}.retro-info-card{padding:15px;border-radius:15px;background:#171d34;color:#fff;border:1px solid #2d3557}.retro-info-card p{font-size:12px;color:#aeb9ce;line-height:1.55;margin:8px 0 0}
.retro-console:fullscreen{padding:0;border-radius:0;grid-template-columns:1fr;background:#000}.retro-console:fullscreen .retro-side{display:none}.retro-console:fullscreen .retro-screen-bezel{border:0;border-radius:0;height:100vh;min-height:100vh}

@media(max-width:900px){.retro-grid{grid-template-columns:repeat(2,1fr)}.retro-console{grid-template-columns:1fr}.retro-side{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.retro-page,.retro-play-page{width:min(100% - 16px,1180px);margin-top:12px}.retro-hero{padding:22px}.retro-machine{display:none}.retro-filter{grid-template-columns:1fr}.retro-grid{grid-template-columns:1fr 1fr;gap:10px}.retro-card-body p{min-height:0}.retro-play-head{grid-template-columns:1fr auto}.retro-play-head>a{grid-column:1/-1}.retro-play-head h1{font-size:21px}.retro-console{padding:7px;border-radius:14px}.retro-screen-bezel{border-width:4px;min-height:62vh}.retro-screen-bezel #retro-emulator{min-height:62vh}.retro-side{grid-template-columns:1fr}.retro-card-body{padding:11px}.retro-card-body h2{font-size:15px}}


/* V8.0.3 - EmulatorJS normal görünüm stabil render */
.retro-console:not(:fullscreen){align-items:start!important}
.retro-console:not(:fullscreen) .retro-screen-bezel{
  position:relative!important;
  width:100%!important;
  height:clamp(480px,52vw,650px)!important;
  min-height:480px!important;
  max-height:650px!important;
  overflow:hidden!important;
  display:block!important;
}
.retro-console:not(:fullscreen) #retro-emulator{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
  display:block!important;
}
/* EmulatorJS kendi iç yerleşimini yönetsin; sadece taşmayı sınırla. */
.retro-console:not(:fullscreen) #retro-emulator canvas,
.retro-console:not(:fullscreen) #retro-emulator video,
.retro-console:not(:fullscreen) #retro-emulator iframe{
  max-width:100%!important;
  max-height:100%!important;
}
.retro-console:fullscreen{width:100vw!important;height:100vh!important;overflow:hidden!important}
.retro-console:fullscreen .retro-screen-bezel{width:100%!important;height:100vh!important;min-height:100vh!important;max-height:none!important}
.retro-console:fullscreen #retro-emulator{width:100%!important;height:100%!important}
@media(max-width:900px){
  .retro-console:not(:fullscreen) .retro-screen-bezel{height:min(72vh,620px)!important;min-height:420px!important}
}
@media(max-width:620px){
  .retro-console:not(:fullscreen) .retro-screen-bezel{height:min(68vh,560px)!important;min-height:390px!important;max-height:560px!important}
}
