﻿/* === MexFlix — Exact Replica CSS === */
:root {
  --bg: #000;
  --bg2: #141414;
  --card-bg: #181818;
  --dim: #b3b3b3;
  --gold: #fff;
  --orange: #e50914;
}
* { box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; }

/* Layout */
.mexflix-app {
  background: var(--bg);
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-top: 56px;
}

/* Top Bar */
.top-bar {
  z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #0a0e17c7;
  border-bottom: 1px solid #ffffff0f;
  position: fixed;
  top: 0; left: 0; right: 0;
}
.top-bar-inner {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
}
.top-logo {
  color: #fff;
  align-items: center;
  gap: 8px;
  display: flex;
}
.top-logo-img {
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #e5091473);
  border-radius: 4px;
  width: 64px;
  height: 32px;
}
.top-logo-text { display: none; }
.top-actions { align-items: center; gap: 8px; display: flex; }
.lang-pill {
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  gap: 2px;
  padding: 3px;
  display: flex;
}
.lang-pill button {
  color: #c9d2e0;
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  transition: all .2s;
}
.lang-pill button.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px #e5091480;
}
.top-install {
  color: #fff;
  white-space: nowrap;
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}
.top-progress {
  background: #ffffff0d;
  height: 3px;
  overflow: hidden;
}
.top-progress span {
  transform-origin: 0;
  background: linear-gradient(90deg, #b00710 0%, #e50914 50%, #ff2a36 100%);
  width: 100%;
  height: 100%;
  animation: topProgress 6s ease-in-out infinite;
  display: block;
}
@keyframes topProgress {
  0%, to { opacity: .85; transform: scaleX(.35); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Hero */
.hero {
  padding: 48px 20px 28px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  z-index: 0;
  background: radial-gradient(at 100% 0, #e5091473, #0000 60%), radial-gradient(at 0 100%, #e509142e, #0000 60%), linear-gradient(#141414 0%, #000 100%);
  position: absolute;
  inset: 0;
}
.hero-inner { z-index: 1; position: relative; }
.hero-chip {
  color: var(--orange);
  background: #ff6b3526;
  border: 1px solid #ff6b354d;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}
.hero-chip .dot {
  background: var(--orange);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 50% { opacity: .5; } }
.hero h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  color: var(--dim);
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
}
.hero-cta { margin-bottom: 22px; }
.btn-dl {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #e50914 0%, #b00710 100%);
  border: none;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .15s;
  display: inline-flex;
  box-shadow: 0 8px 24px #ff6b3566;
}
.btn-dl:active { transform: scale(.97); }
.hero-info {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  display: grid;
}
.hero-info-item {
  text-align: center;
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 10px 6px;
}
.hero-info-item .val {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}
.hero-info-item .lbl {
  color: var(--dim);
  margin-top: 2px;
  font-size: 10px;
}

/* Divider */
.bd-divider {
  background: linear-gradient(90deg, #0000, #ffffff1a, #0000);
  height: 1px;
  margin: 8px 16px;
}

/* Promo Panel */
.promo-panel {
  background: linear-gradient(135deg, #1a2236 0%, #232b44 100%);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  margin: 16px;
  padding: 18px;
}
.promo-head { align-items: center; gap: 12px; margin-bottom: 14px; display: flex; }
.mexflix-logo {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff;
  letter-spacing: .5px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 900;
}
.promo-head p { color: var(--dim); margin: 0; font-size: 13px; }
.promo-list { flex-direction: column; gap: 12px; margin-bottom: 16px; display: flex; }
.promo-item { align-items: flex-start; gap: 12px; display: flex; }
.promo-icon {
  background: #ff6b3526;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  font-size: 22px;
  display: flex;
}
.promo-copy h3 { margin: 0 0 3px; font-size: 14px; font-weight: 700; }
.promo-copy p { color: var(--dim); margin: 0; font-size: 12px; line-height: 1.4; }
.promo-big-btn {
  background: linear-gradient(135deg, var(--orange), #f7931e);
  color: #fff;
  cursor: pointer;
  text-align: center;
  border-radius: 12px;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  display: block;
  box-shadow: 0 6px 18px #ff6b3566;
}
.promo-features {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 16px;
  display: grid;
}
.promo-feature {
  text-align: center;
  background: #ffffff0a;
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  padding: 10px 4px;
}
.promo-feature b {
  color: var(--gold);
  margin-bottom: 2px;
  font-size: 14px;
  display: block;
}
.promo-feature span { color: var(--dim); font-size: 10px; line-height: 1.2; }

/* Category Sections */
.cat-section { padding: 14px 0 4px; }
.cat-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding: 0 16px;
  display: flex;
}
.cat-header h2 { align-items: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 700; display: flex; }
.cat-header .emoji { font-size: 18px; }
.cat-sub { color: var(--dim); margin: 0 0 6px; padding: 0 16px; font-size: 12px; }
.see-all { color: var(--orange); font-size: 11px; font-weight: 600; }
.cat-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  overflow: hidden;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.scroll-track {
  gap: 10px;
  width: max-content;
  padding: 0 16px 8px;
  display: flex;
}
.scroll-track.marquee { animation: marquee-scroll linear infinite; }
.scroll-track.marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll { 0% { transform: translate(0); } to { transform: translate(-50%); } }

/* Content Cards */
.content-card { flex: 0 0 130px; width: 130px; }
.content-card .thumb {
  aspect-ratio: 2/3;
  background: var(--card-bg);
  border-radius: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.content-card .thumb img { object-fit: cover; width: 100%; height: 100%; }
.content-card .title {
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}
.content-card .meta {
  color: var(--dim);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: 10px;
  overflow: hidden;
}
.badge {
  color: #fff;
  background: #000000b3;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  top: 6px; left: 6px;
}
.badge2 {
  color: #fff;
  background: #22c55ee6;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  position: absolute;
  top: 6px; right: 6px;
}
.wide-card { flex: 0 0 240px; width: 240px; }
.wide-card .thumb {
  aspect-ratio: 16/9;
  background: var(--card-bg);
  border-radius: 10px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.wide-card .thumb img { object-fit: cover; width: 100%; height: 100%; }

/* Highlights */
.highlights { padding: 18px 16px 8px; }
.hl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; display: grid; }
.hl-card {
  background: linear-gradient(135deg, #1a2236 0%, #232b44 100%);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  padding: 14px 12px;
}
.hl-card .icon { margin-bottom: 6px; font-size: 22px; }
.hl-card h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.hl-card p { color: var(--dim); margin: 0; font-size: 11px; line-height: 1.4; }

/* Compare */
.compare { padding: 16px; }
.compare h2 { text-align: center; margin: 0 0 12px; font-size: 18px; }
.compare-table {
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  font-size: 12px;
  overflow: hidden;
}
.compare-table th, .compare-table td {
  text-align: center;
  border-bottom: 1px solid #ffffff0f;
  padding: 10px 8px;
}
.compare-table th { background: #ff6b351a; font-size: 12px; font-weight: 700; }
.compare-table th.mblive-col { color: var(--gold); }
.compare-table td.check { color: #4ade80; font-weight: 700; }
.compare-table td.cross { color: var(--dim); }

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, #ff6b3533, #22c55e26);
  border: 1px solid #ff6b3540;
  border-radius: 16px;
  margin: 16px;
  padding: 22px 18px;
}
.cta-banner h2 { margin: 0 0 6px; font-size: 20px; }
.cta-banner p { color: var(--dim); margin: 0 0 16px; font-size: 13px; }
.cta-banner .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; display: grid; }
.cta-banner .stat { background: #0000004d; border-radius: 10px; padding: 10px 6px; }
.cta-banner .stat .v { color: var(--gold); font-size: 18px; font-weight: 800; }
.cta-banner .stat .l { color: var(--dim); margin-top: 2px; font-size: 10px; }

/* Install */
.install-section { padding: 16px; }
.install-section h2 { align-items: center; gap: 8px; margin: 0 0 14px; font-size: 18px; display: flex; }
.step-cards { flex-direction: column; gap: 10px; display: flex; }
.step-card {
  background: var(--card-bg);
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  display: flex;
}
.snum {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
}
.stxt h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.stxt p { color: var(--dim); margin: 0; font-size: 12px; line-height: 1.4; }

/* App Info */
.app-info { padding: 0 16px 16px; }
.app-info table {
  background: var(--card-bg);
  border-collapse: collapse;
  border-radius: 12px;
  width: 100%;
  font-size: 13px;
  overflow: hidden;
}
.app-info td { border-bottom: 1px solid #ffffff0d; padding: 10px 14px; }
.app-info td:first-child { color: var(--dim); width: 45%; }
.app-info td:last-child { text-align: right; font-weight: 600; }

/* Share */
.share-section { padding: 16px; }
.share-card {
  background: linear-gradient(135deg, #1a2236 0%, #232b44 100%);
  border: 1px solid #ffffff14;
  border-radius: 16px;
  padding: 20px 16px;
}
.share-card h2 { margin: 0 0 6px; font-size: 18px; }
.share-card > p { color: var(--dim); margin: 0 0 16px; font-size: 12px; }
.share-progress { background: #0000004d; border-radius: 10px; margin-bottom: 14px; padding: 12px; }
.sp-label { margin-bottom: 8px; font-size: 12px; }
.sp-bar { background: #ffffff14; border-radius: 3px; height: 6px; margin-bottom: 6px; overflow: hidden; }
.sp-bar-fill { background: linear-gradient(90deg, var(--orange), var(--gold)); height: 100%; }
.sp-text { color: var(--dim); font-size: 11px; }
.share-btns { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; display: grid; }
.share-btn {
  color: #fff;
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
}
.share-link {
  color: var(--dim);
  word-break: break-all;
  background: #0000004d;
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  font-size: 11px;
  display: flex;
}
.share-link span:last-child { color: var(--gold); }

/* FAQ */
.faq-section { padding: 16px; }
.faq-section h2 { margin: 0 0 12px; font-size: 18px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid #ffffff0f;
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
}
.faq-q { margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.faq-a { color: var(--dim); font-size: 12px; line-height: 1.5; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-q { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.faq-q::after { content: "+"; font-size: 16px; color: var(--dim); }
.faq-item.open .faq-q::after { content: "-"; color: var(--gold); }

/* Footer */
.mexflix-footer {
  text-align: center;
  color: var(--dim);
  padding: 24px 20px 16px;
  font-size: 11px;
}
.mexflix-footer p { margin: 0; }

/* Download Bar */
.dl-bar {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  max-width: 480px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  background: #0a0e17eb;
  border-top: 1px solid #ffffff14;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
}
.dl-bar-cta {
  color: #fff;
  letter-spacing: .2px;
  background: linear-gradient(90deg, #b00710 0%, #e50914 50%, #ff2a36 100%);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 8px 24px #e5091473;
}
.dl-bar-cta:active { transform: translateY(1px); }
.dl-bar-sub { color: var(--dim); text-align: center; margin-top: 2px; font-size: 11px; }
