/* ==========================================================================
   ModZivo redesign stylesheet — assets/css/redesign.css
   --------------------------------------------------------------------------
   What it is:
   The production stylesheet for the ModZivo homepage / Games / Apps /
   detail-page redesign (APKPure-style layout, compact flat cards).
   It adapts the approved design preview into styles that work with the
   live PHP site's real markup (real Play Store icons, real page loads,
   the live header and footer markup).

   Load order:
   This file loads AFTER assets/css/style.css. It only ADDS or OVERRIDES
   rules for the new redesign components; it never redefines the live
   stylesheet's tokens, header, footer, or old page components. Old pages
   are untouched — redesign-only selectors are scoped (see the scoping
   notes inline) so nothing here leaks onto existing pages.

   Colours / dark mode:
   Every colour comes from the live site's CSS variables (defined in
   style.css under :root / body[data-mode="dark"] / body[data-mode="light"]),
   so the dark-mode toggle keeps working exactly as before. The only new
   tokens added here are --rdz-accent2 (dark-orange text) and --radius.
   Light mode is the default; which mode is active is set server-side
   (not by this file).

   Dropped on purpose (preview-only, not used by the live site):
   the preview notice bar, the SPA view-switching rules (the live site
   uses real page loads), the toast, and the preview header/nav rules —
   the live header keeps its own markup and click-to-open dropdown JS.
   The one exception is the nested "More" submenu inside the live Apps
   dropdown (.nav-menu .has-sub), which IS included below.
   ========================================================================== */

/* ============ NEW TOKENS ONLY (live tokens are owned by style.css) ============ */
:root{
  --rdz-accent2:#b35c00;   /* dark-orange text (view-all links, stars, hovers) */
  --radius:10px;
}
body[data-mode="dark"]{
  --rdz-accent2:#ffb25e;   /* same role, lightened so it stays readable on dark */
}

/* ============ FONTS (no Inter / Roboto anywhere in the redesign) ============ */
body.mz-redesign{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
}
body.mz-redesign h1,
body.mz-redesign h2,
body.mz-redesign h3,
body.mz-redesign .apk-title,
body.mz-redesign .logo{
  font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;
}

/* ============ HEADER COSMETICS (small — live header markup untouched) ============ */
/* NOTE (Mod, 1 Dec 2026): the orange bar under the header was REMOVED —
   the live header already has border-bottom:2px orange (style.css), so the
   extra ::after bar drew a SECOND orange line under the header. */

/* ============ HEADER NAV — Rajdhani, compact pills (Mod, 1 Dec 2026) ============ */
/* Nav items (Home / Games / Apps / Blog) use the headings font, uppercase,
   with tighter padding so the active pill is not a tall oval. */
body.mz-redesign header nav,
body.mz-redesign header nav a,
body.mz-redesign .nav-drop>span,
body.mz-redesign .nav-drop>a{
  font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;
  font-size:17px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;
}
body.mz-redesign header nav a,
body.mz-redesign .nav-drop>span,
body.mz-redesign .nav-drop>a{padding:7px 15px;line-height:1.25}

/* ============ HEADER DROPDOWN — hover + click (FIX v3, Mod, 1 Dec 2026) ============ */
/* The old style.css has NO :hover rule for the Apps dropdown — only
   `.nav-drop.open .nav-menu`. The v2 JS wrongly assumed a hover rule
   existed, so on desktop neither hover nor click opened the menu ("that
   feature is now missing"). Now BOTH work: hover opens it on mouse
   devices (this rule), and a click toggles .open on every device
   (main.js) — first click opens, second click follows the Apps link.
   Moving the cursor away closes it (mouseleave in main.js clears .open;
   hover-off hides it). */
@media (hover:hover){
  .nav-drop:hover>.nav-menu{display:block}
  .nav-drop:focus-within>.nav-menu{display:block}
}

/* ============ HEADER SUBMENU — nested "More" inside the live Apps dropdown ============ */
/* The live header renders Apps as .nav-drop > .nav-menu (click-to-open JS).
   This adds one nested level inside that menu for app categories. */
.nav-menu .has-sub{position:relative}
.nav-menu .has-sub>a{display:block;padding:12px 14px;border-radius:10px;color:var(--text)}
.nav-menu .has-sub>a:hover{background:var(--card2);text-decoration:none}
.nav-menu .has-sub>a::after{content:" ▸";color:var(--muted)}
.nav-menu .has-sub>.sub{display:none;position:absolute;left:100%;top:0;min-width:180px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:8px;z-index:71}
.nav-menu .has-sub>.sub a{display:block;padding:12px 14px;border-radius:10px;color:var(--text)}
.nav-menu .has-sub>.sub a:hover{background:var(--card2);text-decoration:none}
.nav-menu .has-sub.open>.sub{display:block}
@media (hover:hover) and (min-width:801px){.nav-menu .has-sub:hover>.sub{display:block}}
@media (max-width:800px){.nav-menu .has-sub>.sub{position:static;box-shadow:none;border:0;padding:0 0 0 12px}}

/* ============ BASE / HOME LAYOUT ============ */
main{padding:22px 0 34px}
.home-layout{display:grid;grid-template-columns:1fr 300px;gap:26px;align-items:start}
.home-main{min-width:0}

/* ============ SECTION HEADINGS ============ */
/* FIX v3 (Mod, 1 Dec 2026): section headings must wrap — a long title
   plus the "View all" link does not fit one 360px phone row. */
.sec-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;
border-bottom:2px solid var(--line);padding-bottom:7px;margin:30px 0 14px}
.sec-head:first-child{margin-top:0}
.sec-head h2{font-size:22px;font-weight:700;letter-spacing:.4px}
.sec-head h2::before{content:"";display:inline-block;width:9px;height:9px;background:var(--accent);
margin-right:9px;border-radius:2px}
.view-all{font-size:13.5px;font-weight:700;color:var(--rdz-accent2);white-space:nowrap}
.sec-note{font-size:13px;color:var(--muted);margin:0 0 12px}
.sample-note{font-size:12.5px;color:var(--muted);margin:0 0 12px}
.sample-tag{display:inline-block;font-size:11px;font-weight:700;color:#8a5a00;background:#fff3df;
border:1px solid #ffd9a0;border-radius:20px;padding:2px 8px;margin-top:6px}

/* ============ GAME CARDS — compact, flat ============ */
/* FIX (1 Dec 2026): repeat(6,1fr) uses the auto minimum — a card's
   min-content (~153px) made the grid 984px wide in a 917px column, so the
   6th card overlapped the sidebar by 49px. minmax(0,1fr) lets tracks shrink. */
.game-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}
.game-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.gcard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px;
position:relative}
.gcard.big{padding:14px}
.gcard h3{font-size:14.5px;font-weight:700;line-height:1.3;display:-webkit-box;
-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
/* FIX v3 (Mod, 1 Dec 2026): the v2 padding-right:48px/100px BACKFIRED — in
   a 140px card the title box is only ~50px wide (56px icon + 10px gap), so
   the padding left ~2px for text and live titles rendered as "F" / "r…".
   The card is now STACKED (icon on top, title below at full card width —
   APKPure icon-card style), so the absolute badge sits beside the icon and
   can never touch the title; the padding rules are REMOVED. Titles also
   show the short game name now (mz_rdz_short_name in frontend.php), not
   the full APK title. */
.hero-card:has(> .badge-new) .hero-main{padding-right:54px}
.gcard.big h3{font-size:16px}
/* featured hero — static, no scrolling */
.hero-card{display:flex;gap:16px;align-items:center;background:var(--card);border:1px solid var(--line);
border-radius:var(--radius);padding:18px 20px;position:relative;margin-bottom:13px}
.hero-card h3{font-size:22px;font-weight:700;line-height:1.25}
.hero-line{font-size:14px;color:var(--muted);margin-top:5px}
/* Featured grid: 5 items max (hero + 5 = 6 featured), so 5 columns — the old
   7-column grid squeezed titles to "Polyfield APK for…" at 2 lines. */
.game-grid.feat-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.feat-grid .gcard h3{-webkit-line-clamp:3}
/* FIX v3: stacked — icon on top, title below at full card width. */
.gcard-top{display:flex;flex-direction:column;gap:10px}
.gcard-head{min-width:0}
.gmeta{font-size:12.5px;color:var(--muted);margin-top:3px}
.gmeta .star{color:var(--rdz-accent2);font-weight:700}
.gmeta .cat{color:var(--muted)}
.gupd{font-size:12px;color:var(--muted);margin-top:6px}
.badge-new{position:absolute;top:8px;right:8px;background:var(--accent);color:#fff;
font-size:10.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;
border-radius:20px;padding:2px 8px}
[data-detail]{cursor:pointer}
[data-detail]:hover{border-color:var(--accent)}

/* ============ SIDEBAR (scoped: live .sidebox belongs to old pages) ============ */
.mz-home-side .sidebox{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px;margin-bottom:20px}
/* FIX (1 Dec 2026): this rule never overrode the OLD style.css .sidebox h3
   (orange background, -20px margins, 12px 20px padding, uppercase) — so the
   sidebar headings kept the old orange bar even though this rule matched.
   Background / margin / padding / radius / case are now reset explicitly. */
.mz-home-side .sidebox h3{background:transparent;color:var(--text);font-size:17px;font-weight:700;letter-spacing:.4px;margin:0 0 12px;padding:0;border-radius:0;text-transform:none}
.mz-home-side .sidebox h3::before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);
margin-right:8px;border-radius:2px}
.mz-home-side .side-search{display:flex}
.mz-home-side .side-search input{flex:1;border:1px solid var(--line);border-right:0;border-radius:8px 0 0 8px;
padding:9px 10px;font-size:14px;font-family:inherit;min-width:0}
.mz-home-side .side-search button{border:1px solid var(--accent);background:var(--accent);color:#fff;
border-radius:0 8px 8px 0;padding:9px 13px;font-weight:700;cursor:pointer;font-family:inherit}
.mz-home-side .rank-row{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.mz-home-side .rank-row:first-of-type{border-top:0}
.mz-home-side .rank-num{font-size:21px;font-weight:700;color:var(--accent);width:22px;text-align:center;flex:0 0 auto}
.mz-home-side .rank-row .rtitle{font-size:14px;font-weight:600;line-height:1.3}
.mz-home-side .rank-row .rmeta{font-size:12px;color:var(--muted)}
.mz-home-side .rank-row .rmeta .star{color:var(--rdz-accent2);font-weight:700}

/* Fallback (1 Dec 2026): if the live <aside> ever loses the mz-home-side
   class, the same sidebar rules still apply through .home-layout. */
.home-layout aside .sidebox{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px;margin-bottom:20px}
.home-layout aside .sidebox h3{background:transparent;color:var(--text);font-size:17px;font-weight:700;letter-spacing:.4px;margin:0 0 12px;padding:0;border-radius:0;text-transform:none}
.home-layout aside .sidebox h3::before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);margin-right:8px;border-radius:2px}
/* Sticky sidebar (desktop only): the right column stays filled beside the
   lower sections instead of ending after "Browse by Category". */
@media (min-width:961px){
  .mz-home-side,.home-layout aside{position:sticky;top:76px}
}

/* ============ CHIPS (scoped: live .chip is the blog-list chip — untouched) ============ */
.cat-chips{display:flex;flex-wrap:wrap;gap:7px}
.cat-chips .chip,.chip-row .chip{display:inline-block;border:1px solid var(--line);background:var(--card);border-radius:20px;
padding:6px 13px;font-size:13.5px;font-weight:600;color:var(--text);cursor:pointer;font-family:inherit}
.cat-chips .chip:hover,.chip-row .chip:hover{border-color:var(--accent);color:var(--rdz-accent2)}
.cat-chips .chip.on,.chip-row .chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}

/* ============ ARTICLE + DEVELOPER CARDS ============ */
.art-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
/* Lone odd card (5 articles) spans the full row instead of leaving a blank half. */
.art-grid > :last-child:nth-child(odd){grid-column:1 / -1}
.art-card{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);
border-radius:var(--radius);padding:14px}
.art-card .abody h3{font-size:16px;line-height:1.35}
.art-card .adate{font-size:12.5px;color:var(--muted);margin-top:5px}
.art-card .aread{font-size:13px;font-weight:700;color:var(--rdz-accent2);margin-top:6px;display:inline-block}
.dev-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dev-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.dev-card h3{font-size:16.5px}
.dev-card p{font-size:13px;color:var(--muted);margin-top:4px}
.dev-card p b{color:var(--text)}
.prereg-note{font-size:12.5px;color:var(--muted);margin-top:10px}

/* ============ PAGE HEADERS (listing / detail / articles) ============ */
/* .crumb is NOT redefined here — the live rule is already equivalent. */
.page-head{margin:6px 0 18px}
.page-head h1{font-size:28px;font-weight:700;letter-spacing:.3px}
.page-head p{color:var(--muted);margin-top:4px}
.empty-note{display:none;border:1px dashed var(--line);border-radius:var(--radius);
padding:18px;text-align:center;color:var(--muted);margin-top:6px}

/* ============ DETAIL VIEW ============ */
.detail-top{display:flex;gap:18px;align-items:flex-start;background:var(--card2);
border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:22px}
.detail-top .dinfo{min-width:0}
.detail-top h1{font-size:26px;line-height:1.25}
.dmeta{font-size:14px;color:var(--muted);margin-top:6px}
.dmeta .star{color:var(--rdz-accent2);font-weight:700}
.btn-download{display:inline-block;background:var(--green);color:#fff;font-weight:700;
font-size:15px;padding:11px 20px;border-radius:8px;margin-top:14px}
.btn-download:hover{text-decoration:none;background:#0f6b31}
.official-note{font-size:13px;color:var(--green);font-weight:600;margin-top:8px}
.info-table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);
border-radius:var(--radius);overflow:hidden;margin-bottom:22px}
.info-table th,.info-table td{text-align:left;padding:10px 14px;border-top:1px solid var(--line);font-size:14px}
.info-table tr:first-child th,.info-table tr:first-child td{border-top:0}
.info-table th{width:210px;color:var(--muted);font-weight:600;background:var(--card2)}
.shots{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:22px}
.shot{flex:0 0 150px;height:260px;border-radius:12px;display:flex;align-items:flex-end;
justify-content:center;padding-bottom:12px;color:#fff;font-weight:700;font-size:13px;background:var(--accent)}

/* ============ FOOTER (scoped: new footer markup carries class="site") ============ */
footer.site{background:var(--bg2);border-top:1px solid var(--line);margin-top:10px}
footer.site .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:26px;padding:30px 0 22px}
footer.site .foot-grid h4{font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;font-size:16px;
letter-spacing:.5px;margin-bottom:10px}
footer.site .foot-grid p,footer.site .foot-grid a{font-size:13.5px;color:var(--muted)}
footer.site .foot-grid ul{list-style:none}
footer.site .foot-grid li{margin-bottom:6px}
footer.site .foot-grid a:hover{color:var(--accent)}
footer.site .foot-bottom{border-top:1px solid var(--line);padding:13px 0;font-size:13px;color:var(--muted);
display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ============ APKPure-STYLE GAMES / APPS PAGES ============ */
.apk-page-head{margin:6px 0 4px}
.apk-page-head h1{font-size:28px;font-weight:700;letter-spacing:.3px}
.page-sub{color:var(--muted);margin-top:4px;font-size:14px}
.apk-sec{margin:26px 0 0}
.apk-sec-head{border-bottom:2px solid var(--line);padding-bottom:7px;margin-bottom:14px}
.apk-title{font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;font-size:22px;font-weight:700;letter-spacing:.4px;color:var(--text)}
.apk-title:hover{color:var(--rdz-accent2);text-decoration:none}
.apk-title .chev{color:var(--muted);font-weight:400;margin-left:2px}
.apk-sec-head .apk-title::before{content:"";display:inline-block;width:9px;height:9px;background:var(--accent);margin-right:9px;border-radius:2px}
.btn-dl{display:inline-block;background:var(--accent);color:#fff;font-weight:700;font-size:12.5px;padding:5px 11px;border-radius:6px;border:0;cursor:pointer;font-family:inherit;white-space:nowrap}
.btn-dl:hover{background:#e67a00}
.star-empty{color:#c3c9d1;font-weight:700}
.apk-carousel{position:relative}
.apk-view{overflow:hidden}
.apk-track{display:flex;gap:14px;transition:transform .45s ease}
.apk-car-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:34px;height:34px;border-radius:50%;background:var(--card);border:1px solid var(--line);box-shadow:0 1px 5px rgba(20,28,43,.18);font-size:17px;line-height:1;cursor:pointer;color:var(--text);padding:0}
.apk-car-btn:hover{border-color:var(--accent);color:var(--rdz-accent2)}
.apk-prev{left:6px}
.apk-next{right:6px}
.hot-card{flex:0 0 calc((100% - 28px)/3);min-width:0}
.hot-banner{position:relative;height:150px;border-radius:var(--radius);overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:12px;background:var(--card2)}
.hot-wm{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;font-size:64px;font-weight:700;color:rgba(255,255,255,.28);line-height:1}
.hot-name{position:relative;z-index:1;color:#fff;font-weight:700;font-size:16px;line-height:1.3;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hot-banner .btn-dl{position:relative;z-index:1}
.b-card{flex:0 0 calc((100% - 28px)/3);min-width:0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px}
.b-banner{position:relative;height:104px;border-radius:8px;overflow:hidden;margin-bottom:10px;background:var(--card2)}
.b-body{display:flex;gap:10px;align-items:center}
.b-info{flex:1;min-width:0}
.b-info h3{font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.b-info .gmeta{margin-top:3px}
/* FIX v3 (Mod, 1 Dec 2026): repeat(3,1fr) uses the auto minimum — a
   list-card's min-content (~470px: 80px icon + full nowrap title) forced
   each track to ~470-517px, so the grid was ~1480px wide in a 1240px wrap
   on desktop, and on phones it bled off the screen (even the 1-column
   mobile rule could not shrink below min-content). minmax(0,1fr) lets
   tracks shrink; the min-width:0 net below keeps the inner flex rows
   from re-inflating them. */
.apk-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
/* Shrink safety net: grid/flex items must be allowed to go below their
   min-content, otherwise one long nowrap title inflates the whole grid. */
.game-grid>*,.apk-list>*,.apk-icons>*,.art-grid>*,.dev-grid>*{min-width:0}
.list-card,.list-top,.b-card,.icon-card,.gcard,.hot-card{min-width:0}
.list-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column}
.list-top{display:flex;gap:12px;align-items:flex-start;flex:1;min-width:0}
.list-info{min-width:0;flex:1}
.list-info h3{font-size:15px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-dev{font-size:12.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-info .gmeta{margin-top:3px}
.list-foot{display:flex;justify-content:flex-end;margin-top:10px}
.list-card .prereg{color:var(--accent);font-weight:700}
.apk-icons{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}
.icon-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center}
.icon-big{width:100%;aspect-ratio:1/1;font-size:30px;border-radius:12px}
.icon-card h3{font-size:13.5px;font-weight:700;line-height:1.3;margin-top:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}
.icon-card .gmeta{margin-top:3px}
.icon-card .btn-dl{margin-top:8px}
.apk-pills{display:flex;flex-wrap:wrap;gap:8px}
.apk-pill{border:1px solid var(--line);background:var(--card);border-radius:20px;padding:7px 14px;font-size:13.5px;font-weight:600;color:var(--text);cursor:pointer;font-family:inherit}
.apk-pill:hover{border-color:var(--accent);color:var(--rdz-accent2)}
.ph-card{border-style:dashed!important}
.ph-text{color:var(--muted);font-size:13.5px;text-align:center;flex:1;display:flex;align-items:center;justify-content:center;min-height:80px}
.ph-tile{background:#eef0f3!important;color:#8a94a3!important}
.ph-banner{background:#f7f8fa!important;border:1px dashed var(--line)}

/* ============ LIVE ICON SIZING (PHP renders <img class="store-icon"> / ============ */
/* ============ <div class="store-icon store-ph"> initials tiles) ============ */
.gcard .store-icon{width:56px;height:56px;font-size:18px}
.hero-card .store-icon{width:96px;height:96px;font-size:32px}
.detail-top .store-icon{width:96px;height:96px;font-size:32px}
.rank-row .store-icon{width:40px;height:40px;font-size:15px;border-radius:10px}
.art-card .store-icon{width:64px;height:64px;font-size:21px;border-radius:12px}
.list-card .store-icon{width:80px;height:80px;font-size:26px}
.b-card .store-icon{width:48px;height:48px;font-size:16px}
.icon-card .store-icon{width:100%;aspect-ratio:1/1;font-size:30px;border-radius:12px}
.hero-card .store-icon,.detail-top .store-icon{border-radius:12px}
/* Flat placeholders inside redesign contexts (no gradients in the new design) */
body.mz-redesign .store-ph{background:var(--accent)}
body.mz-redesign .feat-media-ph,body.mz-redesign .thumb-ph{background:var(--accent)}

/* ============ HOT / BANNER PHOTOS (first screenshot as banner image) ============ */
.hot-banner .hot-bg,.b-banner .hot-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The ONE overlay gradient allowed: a legibility scrim over a photo, not a design gradient. */
.hot-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.55))}

/* ============ DARK-MODE OVERRIDES (remaining hardcoded light colours) ============ */
/* .btn-dl stays white-on-orange in both modes — no override needed. */
/* .btn-download stays green in both modes; only its hover lightens in dark. */
body[data-mode="dark"] .sample-tag{color:#ffcf8a;background:rgba(255,139,20,.14);border-color:rgba(255,139,20,.35)}
body[data-mode="dark"] .ph-tile{background:var(--card2)!important;color:var(--muted)!important}
body[data-mode="dark"] .ph-banner{background:var(--card2)!important}
body[data-mode="dark"] .btn-download:hover{background:#16a34a}
body[data-mode="dark"] .star-empty{color:#64748b}
/* No-screenshot banner in light mode: white watermark needs a dark tint to read on the neutral tile. */
body[data-mode="light"] .hot-banner:not(:has(.hot-bg)) .hot-wm{color:rgba(15,26,46,.14)}

/* ============ MOBILE SAFETY NET (v3 — Mod, 1 Dec 2026) ============ */
/* Phones showed pages "cut off" with cards bleeding off the screen. The
   causes were the grids above (now fixed with minmax(0,1fr) + min-width:0).
   These rules stop anything else from forcing the page wider than the
   screen: media can never exceed its container, and long words break
   instead of overflowing. (No overflow-x:hidden on body — that would break
   the sticky header; style.css already uses overflow-x:clip.) */
img,video,iframe,svg{max-width:100%}
.gcard h3,.list-info h3,.icon-card h3,.b-info h3,.art-card .abody h3,.dev-card h3{overflow-wrap:break-word}

/* ============ RESPONSIVE ============ */
@media (max-width:960px){
  .apk-icons{grid-template-columns:repeat(5,minmax(0,1fr))}
  .apk-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hot-card,.b-card{flex-basis:calc((100% - 14px)/2)}
  .home-layout{grid-template-columns:1fr}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-grid.four{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-grid.feat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  footer.site .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .apk-icons{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* FIX v3: single column must also use minmax(0,1fr) — plain 1fr cannot
     shrink below the card's min-content, so phones bled ~110px off-screen. */
  .apk-list{grid-template-columns:minmax(0,1fr)}
  .hot-card,.b-card{flex-basis:100%}
  .hot-banner{height:130px}
  /* FIX v3: banner/section titles shrink on narrow phones. */
  .hot-name{font-size:14px}
  .apk-title{font-size:20px}
  .game-grid,.game-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-grid.feat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-card{padding:14px;flex-direction:column;align-items:stretch}
  .hero-card h3{font-size:19px}
  .hero-dl{width:100%}
  .hero-card .store-icon{width:72px!important;height:72px!important;font-size:26px!important}
  .art-grid{grid-template-columns:1fr}
  .dev-grid{grid-template-columns:1fr 1fr}
  footer.site .foot-grid{grid-template-columns:1fr}
  .detail-top{flex-direction:column}
  /* Info table on phones: narrower label column so rows fit 390px. */
  .info-table th{width:110px}
  .info-table th,.info-table td{padding:8px 10px;font-size:13px}
}

/* ============ MOBILE FULL WIDTH — FIX v4 (Mod, 1 Dec 2026) ============ */
/* Mod reports: on mobile the site still shows side margins and is not
   full width. Cause: the OLD style.css .wrap keeps padding (0 20px on
   desktop, 0 16px at <=800px) — the page column never touches the
   screen edges, so on a 390px phone the content is only ~358px wide
   with 16px white gutters each side. Fix: at <=800px the wrap goes
   flush — padding 0, max-width 100% — so header, sections, grids,
   detail page and footer all span edge to edge. body.mz-redesign
   outranks the old .wrap rule, so no !important is needed. Cards keep
   their own inner padding (12-15px), so card text never touches the
   screen edge; section titles and the footer sit flush, full-bleed
   style. Desktop is untouched (the 1280px wrap + 20px padding stay). */
@media (max-width:800px){
  body.mz-redesign .wrap{padding-left:0;padding-right:0;max-width:100%}
}

/* ============ LIVE-SITE ADAPTATIONS (preview mein nahi thay) ============ */
/* Home/featured cards <a class="card-link"> mein wrapped hain (poora card
   detail page par le jata hai) — barabar height + hover par underline nahi. */
.game-grid .card-link{height:100%}
.game-grid .card-link .gcard{height:100%}
a.card-link:hover{text-decoration:none}
a.card-link:hover .gcard,a.card-link:hover .hero-card{border-color:var(--accent)}
.hero-card .hero-info{flex:1;min-width:0}
/* Hero Download button (Mod, 1 Dec 2026) + inner link (see mz_rdz_hero_card).
   The whole hero card cannot be one <a> (a nested Download link would be
   invalid HTML), so icon+text link to the detail page and the button links
   to /go/{slug}/ (official store) — green, like the detail page button. */
.hero-main{display:flex;gap:16px;align-items:center;flex:1;min-width:0}
.hero-dl{flex:0 0 auto;background:var(--green);color:#fff;font-weight:700;font-size:15px;
border-radius:10px;padding:12px 20px;text-align:center;white-space:nowrap}
.hero-dl:hover{background:var(--green);opacity:.92;color:#fff;text-decoration:none}
.hero-card:hover{border-color:var(--accent)}
.detail-top .dinfo{flex:1}
/* Footer bottom: disclaimer upar, copyright neeche — dono centered. */
footer.site .foot-bottom{display:block;text-align:center}
footer.site .foot-bottom .foot-disc{margin:0 auto 8px}
footer.site .foot-bottom .foot-copy{margin:0}

/* ============ READ MORE + ARTICLE HEADINGS — FIX v5 (Mod, 2 Dec 2026) ============
   Detail pages show only a brief summary; the full article sits behind one
   "Read More" button (JS in redesign.js). New pages carry the article in
   Extra Content inside <div class="rdz-article"> with real H2/H3 headings;
   older pages have the long plain-text description, whose paragraphs after
   the first two collapse the same way. The info table, What's New and the
   internal link are NOT inside .rdz-article, so they stay visible. */
.rdz-readmore{display:inline-block;background:var(--accent);color:#fff;font-weight:700;font-size:14px;padding:8px 18px;border:0;border-radius:8px;cursor:pointer;margin:6px 0 12px}
.rdz-readmore:hover{opacity:.92}
.article-body .rdz-article h2{font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;font-size:21px;font-weight:700;letter-spacing:.4px;margin:18px 0 8px}
.article-body .rdz-article h2::before{content:"";display:inline-block;width:9px;height:9px;background:var(--accent);margin-right:9px;border-radius:2px}
.article-body .rdz-article h3{font-family:'Rajdhani','Arial Narrow',Arial,sans-serif;font-size:17px;font-weight:700;margin:14px 0 6px}
.article-body .rdz-article p{margin:0 0 10px}
