/* Global fixes for overflow issues */
html,
body {
  max-width: 100%;
  /* responsive fix */
  overflow-x: hidden;
  /* responsive fix */
}

img {
  max-width: 100%;
  /* responsive fix */
  height: auto;
}

/* Ensure horizontal lists shrink properly */
.app-carousel,
.app-track {
  width: 100%;
  /* responsive fix */
  overflow-x: auto;
  /* responsive fix */
}

:root {
  --bg: #fff;
  --text: #1f1f1f;
  --muted: #626262;
  --border: #e6e6e6;
  --chip: #f1f3f4;
  --cta: #1a73e8;
  /* Google blue */
  --ok: #34a853;
  /* Google green */
  --warn: #fbbc04;
  /* Google yellow */
  --danger: #ea4335;
  /* Google red */
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --pad: 16px;
  --gap: 18px;
  --maxw: 1160px;
}

.header-card,
.card {
  margin-bottom: var(--gap);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.45;
}

/* Top bar (fake Google Play nav) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar .inner {
  max-width: var(--maxw);
  margin: auto;
  padding: 10px var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-logo {
  /* width: 26px;
   height: 26px; */
  display: grid;
  place-items: center;
  border-radius: 6px;
  /* background: linear-gradient(135deg, #34a853, #1a73e8 55%, #ea4335); */
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 220px;
}

.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
}

/* Page container */
.page {
  max-width: var(--maxw);
  margin: 24px auto;
  padding: 0 var(--pad);
}

/* Header card */
.header-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #eef3ff;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ff;
  overflow: hidden;
}

.app-icon i {
  font-size: 34px;
  color: #0b57d0;
}

.app-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-meta h1 {
  margin: 0;
  font-size: 28px;
  /*font-weight: 700*/
}

.byline {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  background: var(--chip);
  border: 1px solid var(--border);
  color: #202124;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  /* border: 1px solid var(--border); */
  background: #fff;
  /* color: #1a73e8; */
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn20px {
  border: 0px solid var(--border);
  background: #fff;
  color: #01875f;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}

/* .spanbtn{
  border: 1px solid var(--border);
   background: #fff;
   color: #1a73e8;
   padding: 10px 14px;
   border-radius: 10px;
   font-weight: 500;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   gap: 8px;
 } */

.btn.install {
  /* background: var(--ok); */
  background-color: #01875f;
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

.install:hover {
  /* background: var(--ok); */
  background-color: #095942;
}

.btn:hover {
  filter: brightness(0.98);
}

.save {
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
}

.save .fa-bookmark {
  cursor: pointer;
}

/* Main grid */
.grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2 {
  margin: 0.2rem 0 1rem;
  font-size: 20px;
  /*font-weight: 700*/
}

/* Preview (screenshot) */
.preview {
  display: flex;
  gap: 14px;
  overflow: auto;
  padding-bottom: 6px;
}

/* .preview-sc {
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  padding-bottom: 6px;
} */

.preview-sc {
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  padding-bottom: 6px;
  max-width: 700px;
}

.shot {
  /* width: 210px;
   
   height: 360px; */
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #edf1f5, #ffffff);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
  max-width: 180px;
}

/* About section */
.about p {
  color: #3c4043;
  margin: 0 0 0.8rem;
}

.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* Data safety */
.safety-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.safety-item i {
  margin-top: 3px;
}

/* Ratings */
.rating-wrap {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.big-rating {
  display: grid;
  place-items: center;
  gap: 4px;
}

.big-rating .num {
  font-size: 44px;
  /*font-weight: 700*/
}

.stars {
  display: flex;
  gap: 2px;
}

.stars .fa-star {
  color: #01875f;
  font-size: 11px;
}

.stars .fa-star-half {
  color: #01875f;
  font-size: 11px;
}

.stars1 {
  display: flex;
  gap: 2px;
}

.stars1 .fa-star {
  color: #01875f;
  font-size: 9px;
}

.stars1 .fa-star-half {
  color: #01875f;
  font-size: 9px;
}

.dist {
  display: grid;
  gap: 6px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #5f6368;
}

.bar .track {
  flex: 1;
  height: 10px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  width: 60%;
  background: #1a73e8;
}

.review {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  display: grid;
  place-items: center;
  /*font-weight: 700*/
}

.review .name {
  font-weight: 600;
}

.review .time {
  color: var(--muted);
  font-size: 12px;
}

.review .text {
  margin-top: 8px;
  color: #3c4043;
}

/* Sidebar (App support) */
.support .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}

.support .row:first-child {
  border-top: 0;
}

.support a {
  color: var(--cta);
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin: 28px auto 40px;
  max-width: var(--maxw);
  padding: 0 var(--pad);
  color: #5f6368;
  font-size: 13px;
}

.foot-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.foot-col a {
  display: block;
  padding: 6px 0;
  color: #5f6368;
  text-decoration: none;
}

.foot-col a:hover {
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

/* -------------------- */
.app-carousel {
  overflow: hidden;
  position: relative;
}

.app-track {
  display: flex;
  gap: var(--gap);
  scroll-behavior: smooth;
  overflow: hidden;
}

.mini-header-card {
  flex: 0 0 250px;
  padding-left: 20px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.left {
  left: 5px;
}

.nav-btn.right {
  right: 5px;
}

.nav-btn i {
  font-size: 16px;
}

/* Hide scrollbar */
.app-track::-webkit-scrollbar {
  display: none;
}

.app-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===============================
   RESPONSIVE FIXES — CLEAN ORDER
   =============================== */

/* Tablet & smaller */
/* Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .save {
    display: none;
  }
  .preview-sc {
    max-width: 754px;
  }

  .card {
    max-width: 80%;
  }
}

@media (max-width: 560px) {
  .card {
    max-width: 80%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .header-card {
    grid-template-columns: 56px 1fr;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .shot {
    width: 180px;
    height: 320px;
    max-width: 180px;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-sc {
    max-width: 619px;
  }
}

@media (max-width: 976px) {
  .card {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .save {
    display: none;
  }
  .preview-sc {
    max-width: 908px;
  }
}

@media (max-width: 928px) {
  .card {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .save {
    display: none;
  }

  .preview-sc {
    max-width: 860px;
  }
}

@media (max-width: 915px) {
  .card {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .save {
    display: none;
  }

  .preview-sc {
    max-width: 845px;
  }
}

@media (max-width: 812px) {
  

  .preview-sc {
    max-width: 743px;
  }
}

@media (max-width: 810px) {
  .card {
    max-width: 100%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }

  .preview-sc {
    max-width: 736px;
  }
}

@media (max-width: 768px) {
  .card {
    max-width: 80%;
  }

  .header-card {
    grid-template-columns: 56px 1fr;
  }

  .rating-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support .row {
    flex-wrap: wrap;
  }

  .preview-sc {
    max-width: 886px;
  }
}

/* 760px */
@media (max-width: 760px) {
  .card {
    max-width: 100%;
  }

  .header-card {
    grid-template-columns: 56px 1fr;
  }

  .rating-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support .row {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 692px;
  }
}

/* 720px */
@media (max-width: 720px) {
  .card {
    max-width: 100%;
  }

  .header-card {
    grid-template-columns: 56px 1fr;
  }

  .rating-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support .row {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 650px;
  }
}

@media (max-width: 667px) {
  /* .card {
    max-width: 100%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  } */

  .preview-sc {
   max-width: 598px;
  }
}

/* 560px */
@media (max-width: 560px) {
  .card {
    max-width: 80%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 623px;
  }
}

@media (max-width: 508px) {
  .card {
    max-width: 95%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 464px;
  }
}

@media (max-width: 485px) {
  .card {
    max-width: 91%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 459px;
  }
}

@media (max-width: 428px) {
  .card {
    max-width: 94%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }

  .preview-sc {
    max-width: 384px;
  }
}

/* 414px */
@media (max-width: 414px) {
  .card {
    max-width: 90%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* 412px */
@media (max-width: 412px) {
  .card {
    max-width: 90%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* 390px */
@media (max-width: 390px) {
  .card {
    max-width: 85%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* 384px */
@media (max-width: 384px) {
  .card {
    max-width: 84%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* 375px */
@media (max-width: 375px) {
  .card {
    max-width: 82%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* 360px */
@media (max-width: 360px) {
  .card {
    max-width: 78%;
  }

  .app-meta h1 {
    font-size: 22px;
  }

  .shot {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview {
    flex-wrap: wrap;
  }
  .preview-sc {
    max-width: 387px;
  }
}

/* ----------------------- */

img {
  border: 0;
}
.rounded {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#content {
  margin: 0 auto;
  width: 750px;
}
#error-section {
  background-color: #d2e3fb;
  border: 1px solid #a1b4d9;
  color: #666;
  font-weight: bold;
  padding: 12px 0;
}
#search-section {
  border: 1px solid #a1b4d9;
  margin: 10px 0;
}
#play-logo {
  float: left;
  margin: 17px;
}
#search-box {
  float: left;
  margin: 20px;
}
#debug {
  margin-top: 50px;
  text-align: left;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #033517; /*  WhatsApp green */
  color: #fff;
  font-size: 35px;
  text-decoration: none;
}

.whatsapp-btn > i {
  color: #25d366;
}

.whatsapp-btn:hover {
  filter: brightness(0.9);
}

.info-note {
  font-size: 12px;
  color: #4700b4;
  letter-spacing: 1px;
  text-align: justify;
  background-color: #ece0ff;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.info-note:hover {
  transform: scale(1.5);
}

.info-note-form {
  font-size: 12px;
  color: #025896;

  background-color: #bee1fa;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.btn-submit {
  background-color: #025896;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
}

.input-upper {
  text-transform: uppercase;
}

/* ------------------ */
.sticky-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  /* background: #fff; */
  background-color: rgb(255, 255, 255);
  border-top: 3px solid #f6c02a;
  border-bottom: 3px solid #e74c3f;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 9999;
  /* color: #f6c02a;   */
}

.sticky-footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}

.sticky-footer i {
  font-size: 18px;
  margin-bottom: 2px;
  color: #31a955;
  /* E74C3F  31a955 5778F1*/
}

.sticky-footer > a > span {
  text-transform: uppercase;
  color: #5778f1;
  letter-spacing: 2px;
  /* box-shadow:0 0 10px rgba(0,0,0,0.2);    <-- shadow */
}
@media (min-width: 992px) {
  .sticky-footer {
    display: none;
  }
}
@media (min-width: 768px) {
  .sticky-footer {
    display: none;
  }
}
