:root {
  --play-green: #0b57d0;
  --play-green-dark: #0842a0;
  --brand-navy: #cc0000;
  --brand-blue: #ec0000;
  --brand-cyan: #ff3333;
  --brand-light-blue: #ff6666;
  --text-main: #202124;
  --text-sec: #5f6368;
  --border-color: #dadce0;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --font-title: 'Google Sans', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  min-height: 100vh;
}
html {
  background: #f1f3f4; /* Light gray background for desktop */
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.hdr {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 20px;
  color: #5f6368;
  white-space: nowrap;
}

.srch {
  flex: 1;
  background: #f1f3f4;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 9px 18px;
  gap: 10px;
  max-width: 560px;
  cursor: text;
}

.srch svg {
  width: 18px;
  height: 18px;
  fill: #5f6368;
  flex-shrink: 0;
}

.srch span {
  font-size: 14px;
  color: #5f6368;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ic {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
}

.ic:hover {
  background: #f1f3f4;
}

.ic svg {
  width: 24px;
  height: 24px;
  fill: #5f6368;
}

.ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* TABS */
.tabs {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 13px 18px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab.on {
  color: var(--play-green);
  border-bottom-color: var(--play-green);
}

.tab:hover {
  color: var(--text-main);
}

/* PAGE CONTAINER */
.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

/* BREADCRUMB */
.bc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

.bc svg {
  width: 14px;
  height: 14px;
  fill: var(--text-sec);
}

.bc a:hover {
  text-decoration: underline;
}

/* HERO SECTION */
.hero {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.app-ic {
  width: 128px;
  height: 128px;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 68, 129, 0.15);
  background: var(--brand-navy);
}

.app-ic img, .app-ic svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-data {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.app-name {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-main);
}

.app-dev {
  color: var(--play-green);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
}

.app-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--text-sec);
  background: #f1f3f4;
  border-radius: 4px;
  padding: 2px 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e6f4ea;
  color: #137333;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-title);
  width: fit-content;
}

.badge svg {
  width: 13px;
  height: 13px;
  fill: #137333;
}

/* STATS */
.stats {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 22px;
}

.sc {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  gap: 4px;
  border-right: 1px solid var(--border-color);
}

.sc:last-child {
  border: none;
}

.sv {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text-main);
}

.sv .str {
  color: #f5a623;
  font-size: 15px;
}

.sl {
  font-size: 11px;
  color: var(--text-sec);
  text-align: center;
}

/* INSTALL AREA */
.inst-area {
  margin-bottom: 28px;
}

.btn-inst {
  display: block;
  background: var(--play-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
  height: 48px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.btn-inst:hover {
  background: var(--play-green-dark);
}

.btn-inst.done {
  background: transparent;
  color: var(--play-green);
  border: 1px solid var(--border-color);
}

.btn-inst.done:hover {
  background: rgba(1, 135, 95, 0.04);
}

.blbl {
  position: relative;
  z-index: 1;
}

.bprog {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.08s linear;
  z-index: 0;
}

/* Spinner CSS */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sec-acts {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.sbtn {
  background: none;
  border: none;
  color: var(--play-green);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sbtn svg {
  width: 20px;
  height: 20px;
  fill: var(--play-green);
}

.compat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-sec);
}

.compat svg {
  width: 17px;
  height: 17px;
  fill: #34a853;
}

/* SCREENSHOTS & VEHICLE CATALOG CAROUSEL */
.ss-wrap {
  margin: 0 -24px 32px;
}

.ss-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;
  margin: 0 24px 14px;
  color: var(--text-main);
}

.ss-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 24px 16px;
  scrollbar-width: none;
}

.ss-scroll::-webkit-scrollbar {
  display: none;
}

.vehicle-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
  position: relative;
  height: 135px;
  background: #f1f3f4;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.vehicle-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.condition-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-title);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.eco-badge {
  background: #137333;
}

.premium-badge {
  background: #1464A5;
}

.vehicle-info {
  padding: 12px 14px 14px;
}

.vehicle-info h3 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-info .specs {
  font-size: 11px;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.vehicle-info .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-blue);
  font-family: var(--font-title);
}

.vehicle-info .monthly {
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 2px;
}

/* APP FEATURE CARDS */
.app-feature-card {
  min-width: 170px;
  max-width: 170px;
  height: 228px;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feat-blue {
  background: linear-gradient(160deg, #004481 0%, #1464A5 100%);
  color: #ffffff;
  border: none;
}

.feat-white {
  background: #ffffff;
  color: var(--text-main);
}

.feat-navy {
  background: linear-gradient(160deg, #072146 0%, #004481 100%);
  color: #ffffff;
  border: none;
}

.feat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.feat-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.feat-sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
}

.feat-btn {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.feat-h {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feat-item {
  font-size: 10px;
  color: var(--text-sec);
  margin-bottom: 6px;
  line-height: 1.35;
}

.feat-status {
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-light-blue);
  letter-spacing: 0.5px;
}

/* CARDS COMMON */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.ch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ct {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;
}

.cl {
  color: var(--play-green);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-title);
}

/* ABOUT */
.abt-txt {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 14px;
}

.atags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.atag {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-sec);
}

.atable {
  display: flex;
  flex-direction: column;
}

.arow {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #f1f3f4;
  font-size: 13px;
}

.arow:first-child {
  border: none;
}

.ark {
  color: var(--text-sec);
}

.arv {
  color: var(--text-main);
  font-weight: 500;
  text-align: right;
}

/* RATINGS */
.rat-top {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}

.big-n {
  font-size: 62px;
  font-weight: 300;
  font-family: var(--font-title);
  line-height: 1;
}

.bstars {
  display: flex;
  gap: 1px;
  margin: 5px 0;
  font-size: 20px;
  color: #f5a623;
}

.rcnt {
  font-size: 12px;
  color: var(--text-sec);
}

.bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.br {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bn {
  font-size: 12px;
  color: var(--text-sec);
  width: 8px;
  text-align: right;
}

.bt {
  flex: 1;
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
}

.bf {
  height: 100%;
  background: #f5a623;
  border-radius: 4px;
}

/* REVIEWS */
.rv-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.rv {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.rv-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rv-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-nm {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
}

.rv-st {
  font-size: 13px;
  color: #f5a623;
  margin-top: 2px;
}

.rv-dt {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-sec);
  white-space: nowrap;
}

.rv-tx {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

/* SAFETY */
.si {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #f1f3f4;
  align-items: flex-start;
}

.si:first-of-type {
  border: none;
}

.si svg {
  width: 22px;
  height: 22px;
  fill: var(--text-sec);
  flex-shrink: 0;
  margin-top: 2px;
}

.si-t {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2px;
}

.si-d {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.4;
}

/* FOOTER */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.ft-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-sec);
}

.ft-links a:hover {
  text-decoration: underline;
}

.ft-cp {
  font-size: 12px;
  color: var(--text-sec);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 480px) {
  .page {
    padding: 16px;
  }
  .nav {
    padding: 8px 16px;
  }
  .srch {
    display: none;
  }
  .hero {
    gap: 16px;
    margin-bottom: 20px;
  }
  .app-ic {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
  .app-name {
    font-size: 20px;
  }
  .app-dev {
    font-size: 13px;
  }
  .tag {
    font-size: 11px;
    padding: 2px 6px;
  }
  .stats-row {
    gap: 12px;
    justify-content: space-between;
  }
  .stat-val {
    font-size: 12px;
  }
  .stat-lbl {
    font-size: 10px;
  }
  .btn-inst {
    max-width: 100%;
  }
  .ss-scroll {
    padding: 12px 16px;
  }
  .vehicle-card {
    min-width: 220px;
  }
  .card {
    padding: 16px;
  }
  .rat-top {
    flex-direction: column;
    gap: 16px;
  }
  .bars {
    max-width: 100%;
  }
}
