:root{
  --bg-dark:#0f1113;--card:#111316;--muted:#9aa3ad;--accent:#c81b1b;--glass: rgba(255,255,255,0.04);
  --bg-light:#f6f7f9;--text-light:#111827;--card-light:#ffffff;--accent-light:#c81b1b;
}
/* Base */
*{box-sizing:border-box;font-family:Inter,system-ui,Segoe UI,Roboto,Arial;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg-dark);color:#e6eef5;-webkit-font-smoothing:antialiased}
a{color:inherit}

/* Layout */
header{position:sticky;top:0;z-index:40;background:linear-gradient(180deg, rgba(0,0,0,0.25), transparent);backdrop-filter:blur(6px);padding:14px}
.wrap{max-width:1100px;margin:0 auto;padding:18px}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px}

.logo{
  width:52px;
  height:52px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.3);
  background-image: url('logo.png'); 
  background-size: cover;          
  background-position: center;     
}
.brand h1{font-size:18px}

/* theme toggle */
.controls{display:flex;gap:10px;align-items:center}
.toggle{background:var(--card);border:none;padding:8px 12px;border-radius:10px;color:var(--muted);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,0.4)}

/* Hero */
.hero{padding:48px 0;text-align:center;background:linear-gradient(135deg, rgba(200,27,27,0.14), rgba(0,0,0,0.05));border-radius:14px;margin:12px 0}
.hero h2{font-size:34px;margin-bottom:6px}
.hero p{color:var(--muted);margin-bottom:10px}
.stats{display:flex;gap:14px;justify-content:center;color:var(--muted);font-size:14px}

/* Cards */
.card{background:var(--card);border-radius:12px;padding:18px;margin:18px 0;box-shadow:0 6px 20px rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.03);}
.grid{display:grid;grid-template-columns:1fr 360px;gap:20px;align-items:start}

/* Screenshot placeholder */
.screenshot{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));height:260px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--muted);overflow:hidden}
.screenshot img{width:100%;height:100%;object-fit:cover}

/* Neumorphic download button */
.download-panel{display:flex;flex-direction:column;gap:10px}

/* =====================================================
 [FIX] Button ကို အကျယ်အပြည့်ဖြစ်အောင် ပြင်ထားပါသည်
=====================================================
*/
.btn{
  display: flex;         /* 'inline-flex' မှ 'flex' သို့ ပြောင်းပါ */
  width: 100%;           /* အကျယ်အပြည့် သတ်မှတ်ပါ */
  justify-content: center; /* စာသားနှင့် icon ကို အလယ်ပို့ပါ */
  
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  background:linear-gradient(180deg,#ff4b4b,#c81b1b);
  color:white;
  font-weight:700;
  box-shadow:0 8px 24px rgba(200,27,27,0.28);
  border:none;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease
}
.btn:hover{transform:translateY(-4px);box-shadow:0 12px 36px rgba(200,27,27,0.36)}
.btn svg{width:18px;height:18px}
.meta{font-size:13px;color:var(--muted)}

/* counter & rating */
.meta-row{display:flex;gap:14px;align-items:center;margin-top:10px}
.rating{display:flex;gap:4px;align-items:center}
.star{color:#ffcc33}

/* Gallery */
.gallery{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}
.thumb{width:96px;height:64px;border-radius:8px;background:#222;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}

/* Social Links */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.social-link:hover { background: rgba(255, 255, 255, 0.08); }
.social-link .fa-brands { font-size: 16px; }

/* footer */
footer{padding:30px 0;text-align:center;color:var(--muted);font-size:14px}

/* Mobile */
@media(max-width:900px){.grid{grid-template-columns:1fr;}.hero h2{font-size:26px}.screenshot{height:200px}}

/* Light theme support */
.light{--bg-dark:var(--bg-light);--card:var(--card-light);--muted:#6b7280;--accent:#c81b1b;color:var(--text-light);background:var(--bg-light)}
.light .card{box-shadow:0 6px 18px rgba(16,24,32,0.06);border:1px solid rgba(16,24,32,0.04)}
.light .toggle { background: #eee; color: #333; }
.light .social-link { border-color: rgba(0, 0, 0, 0.06); background: rgba(0, 0, 0, 0.03); }
.light .social-link:hover { background: rgba(0, 0, 0, 0.06); }
.light .logo { box-shadow: 0 4px 12px rgba(0,0,0,0.1); } 

/* small animation */
.fade-up{opacity:0;transform:translateY(8px);animation:fadeUp .6s forwards}
@keyframes fadeUp{to{opacity:1;transform:none}}


/* Screenshot Thumbnails */
.thumb {
  background-size: cover;
  background-position: center;
  display: block; 
}

/* Mobile Thumbnails */
#mobile-thumb1 { background-image: url('mobile-1.jpg'); }
#mobile-thumb2 { background-image: url('mobile-2.jpg'); }
#mobile-thumb3 { background-image: url('mobile-3.jpg'); }
#mobile-thumb4 { background-image: url('mobile-4.jpg'); }

/* TV Thumbnails */
#tv-thumb1 { background-image: url('tv-1.jpg'); }
#tv-thumb2 { background-image: url('tv-2.jpg'); }
#tv-thumb3 { background-image: url('tv-3.jpg'); }
#tv-thumb4 { background-image: url('tv-4.jpg'); }