:root {
    --gold: #f5c518;
    --orange: #ef3e2f;
    --bg: #06060e;
    --panel: rgba(255, 255, 255, .045);
    --border: rgba(255, 255, 255, .08);
    --text: #f3f3fb;
    --muted: #9896b3;
    --green: #00d474;
    --red: #ff3860;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -5%, rgba(239, 62, 47, .10), transparent 360px),
        radial-gradient(circle at 55% 13%, rgba(99, 84, 255, .12), transparent 300px),
        #06060e;
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; }

.shell {
    width: min(100%, 520px);
    margin: 0 auto;
    background: rgba(5, 5, 13, .92);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    overflow: hidden;
    min-height: 100vh;
}

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(7, 7, 17, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.brand img {
    height: 26px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-link {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.header-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e6fd9, #29c7f0);
    color: #fff;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 36px 18px 34px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 58%),
        radial-gradient(circle at 45% 0, rgba(255,197,24,.14), transparent 260px),
        radial-gradient(circle at 58% 20%, rgba(66, 103, 255, .13), transparent 260px);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 116, .28);
    background: rgba(0, 212, 116, .10);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 13px var(--green);
    animation: blink 1.4s infinite;
}

@keyframes blink { 50% { opacity: .35; } }

h1 {
    margin: 0 auto 12px;
    max-width: 410px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
}

h1 strong { color: #29c7f0; }

.lead {
    max-width: 410px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 14px;
}

/* ---- Download buttons (classes tracked by tracker.js) ---- */
.btn-download,
.btn-primary.download-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    min-width: 230px;
    padding: 14px 26px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e6fd9, #29c7f0);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 38px rgba(41, 199, 240, .25);
    cursor: pointer;
}

.btn-download .download-icon,
.btn-primary.download-trigger .download-icon {
    width: 18px;
    height: 18px;
}

/* ---- Stats ---- */
.stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 20px;
}

.stat b {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.stat span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* ---- Sections ---- */
section { padding: 28px 16px 8px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.desc {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

/* ---- Poster rail ---- */
.rail {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.poster {
    width: 140px;
    flex: 0 0 140px;
    scroll-snap-align: start;
}

.poster-img {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #141421;
}

.poster-img img,
.sports-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge,
.free {
    position: absolute;
    top: 8px;
    z-index: 1;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.badge {
    left: 8px;
    color: #fff;
    background: var(--red);
}

.badge.hd {
    color: #111;
    background: var(--gold);
}

.free {
    right: 8px;
    color: #020202;
    background: var(--green);
}

.poster h3 {
    margin-top: 8px;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

/* ---- Wide sports cards ---- */
.wide {
    width: 260px;
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.sports-img {
    position: relative;
    height: 146px;
    border-radius: 13px;
    overflow: hidden;
    background: #141421;
}

.sports-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.76), transparent 63%);
}

.sports-copy {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.live {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    color: #ff3860;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3860;
}

.sports-copy h3 {
    color: #fff;
    font-size: 14px;
    line-height: 1.28;
}

.sports-copy p {
    color: rgba(255,255,255,.66);
    font-size: 10px;
}

/* ---- Mid CTA ---- */
.mid-cta { margin: 4px 16px 22px; }

.mid-cta .btn-download {
    display: flex;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
}

.mini-note {
    margin-top: 6px;
    color: var(--muted);
    text-align: center;
    font-size: 10px;
}

/* ---- Why grid ---- */
.why { padding-top: 36px; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature {
    min-height: 132px;
    padding: 20px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    text-align: center;
}

.feature .icon {
    margin-bottom: 10px;
    font-size: 27px;
}

.feature h3 {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.feature p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

/* ---- Compare table ---- */
.compare { padding-top: 36px; }

.center-title {
    margin-bottom: 16px;
    color: #fff;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    font-size: 12px;
}

th {
    padding: 10px;
    background: #151329;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

th:nth-child(2), th:nth-child(3),
td:nth-child(2), td:nth-child(3) { text-align: center; }

th.brand-col { color: #29c7f0; }

td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    color: #fff;
}

td:nth-child(2) {
    color: var(--green);
    font-weight: 900;
}

td:nth-child(3) {
    color: #ff5271;
    font-weight: 900;
}

/* ---- Big CTA card ---- */
.big-card {
    margin: 36px 16px 28px;
    padding: 28px 20px;
    border: 1px solid rgba(41, 199, 240, .25);
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 50%, rgba(41, 199, 240, .14), transparent 180px),
        linear-gradient(135deg, rgba(31, 31, 46, .98), rgba(16, 24, 40, .96));
    text-align: center;
}

.big-card h2 {
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.big-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.big-card .stats { margin: 22px 0 20px; }

.big-card .stat b {
    color: #29c7f0;
    font-size: 20px;
}

/* ---- Install steps ---- */
.steps { padding-top: 28px; }

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e6fd9, #29c7f0);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.step h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.step p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

/* ---- Info table ---- */
.info-table { padding-top: 10px; }

.info-box {
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
}

.info-box td:first-child {
    color: var(--muted);
    font-weight: 800;
    width: 41%;
}

.info-box td:nth-child(2) {
    color: #fff;
    text-align: left;
}

/* ---- FAQ ---- */
.faq { padding-top: 38px; }

.faq-item {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.faq-q::after {
    content: "+";
    color: #b4aacd;
    font-size: 18px;
    font-weight: 900;
    transition: transform .2s, color .2s;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
    color: #29c7f0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    color: var(--muted);
    font-size: 12px;
    transition: max-height .25s ease, padding .25s ease;
}

.faq-item.open .faq-a {
    max-height: 220px;
    padding: 0 16px 15px;
}

/* ---- Footer ---- */
footer {
    padding: 24px 16px 100px;
    border-top: 1px solid var(--border);
    color: rgba(255, 255, 255, .28);
    text-align: center;
    font-size: 11px;
}

footer p { margin-top: 6px; }

.footer-logo {
    height: 36px;
    width: auto;
    margin: 0 auto 10px;
}

/* ---- Fixed bottom bar ---- */
.fixed-download {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 30;
    width: min(100%, 520px);
    transform: translateX(-50%);
    padding: 10px 16px 12px;
    border-top: 1px solid rgba(41, 199, 240, .18);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: rgba(6, 6, 14, .95);
    backdrop-filter: blur(16px);
}

.fixed-download .btn-download {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    border-radius: 12px;
}

.fixed-download p {
    margin-top: 5px;
    color: var(--muted);
    text-align: center;
    font-size: 10px;
}

/* ---- Browser guide overlay (tracker.js system_browser mode) ---- */
.browser-guide {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(76px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
    background: rgba(3, 7, 18, .82);
    backdrop-filter: blur(8px);
}

.browser-guide[hidden] { display: none; }

.browser-guide-dialog {
    position: relative;
    width: min(100%, 420px);
    max-height: calc(100vh - 116px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(41, 199, 240, .5);
    border-radius: 22px;
    background: #15121f;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    color: #fff;
}

.browser-guide::before {
    content: "";
    position: absolute;
    top: calc(60px + env(safe-area-inset-top));
    right: calc(44px + env(safe-area-inset-right));
    width: 20px;
    height: 20px;
    border-top: 1px solid rgba(41, 199, 240, .5);
    border-left: 1px solid rgba(41, 199, 240, .5);
    background: #15121f;
    transform: rotate(45deg);
}

.browser-guide-dialog h2 {
    position: relative;
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.3;
}

.browser-guide-dialog p {
    position: relative;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
}

.browser-guide-dialog strong {
    color: #fff;
    font-size: 18px;
}

.browser-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.browser-guide-actions button {
    flex: 1;
    min-width: 120px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.browser-guide-primary {
    background: linear-gradient(135deg, #1e6fd9, #29c7f0);
    color: #fff;
}

.browser-guide-secondary {
    border: 1px solid rgba(255, 255, 255, .18);
    background: #1f2937;
    color: #fff;
}

@media (max-width: 480px) {
    .browser-guide { padding-top: calc(68px + env(safe-area-inset-top)); }
    .browser-guide-dialog { padding: 24px 20px; }
    .browser-guide-dialog h2 { font-size: 21px; }
    .browser-guide-actions { flex-direction: column; }
    .browser-guide-actions button { width: 100%; }
}

@media (max-width: 390px) {
    .nav { padding-left: 10px; padding-right: 10px; }
    h1 { font-size: 25px; }
    .stats { gap: 18px; }
    .btn-download,
    .btn-primary.download-trigger { width: 100%; min-width: 0; }
}
