/* =============================================================
   IPTV Applications (download) page — Opplex IPTV
   Scoped under .iptva. Brand: red rgb(223,3,3) · navy rgb(1,12,58)
   ============================================================= */

.iptva {
    --a-ink: #0a1438;
    --a-body: #3c4360;
    --a-muted: #6b7187;
    --a-faint: #9aa0b4;
    --a-accent: rgb(223, 3, 3);
    --a-accent-strong: #b80a0a;
    --a-navy: rgb(1, 12, 58);
    --a-navy-2: #1c2c78;
    --a-bg: #f4f6fb;
    --a-surface: #ffffff;
    --a-surface-2: #f7f9fe;
    --a-border: #e7e9f1;
    --a-border-strong: #d7dae6;
    --a-r: 16px;
    --a-r-lg: 22px;
    --a-shadow-sm: 0 1px 2px rgba(10, 20, 56, .06), 0 6px 18px rgba(10, 20, 56, .06);
    --a-shadow-md: 0 16px 40px rgba(10, 20, 56, .12);
    --a-ease: cubic-bezier(.2, .7, .3, 1);

    background: var(--a-bg);
    padding: 52px 0 72px;
    color: var(--a-body);
    font-family: var(--font-family-poppins), system-ui, sans-serif;
}
.iptva a { text-decoration: none; }

/* ---------- Hero ---------- */
.iptva-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.iptva-hero__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: linear-gradient(140deg, var(--a-navy), var(--a-navy-2));
    color: #fff;
    box-shadow: 0 14px 30px rgba(10, 20, 56, .26);
    margin-bottom: 20px;
}
.iptva-hero__chip svg { width: 32px; height: 32px; }
.iptva-hero__title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--a-ink);
    margin: 0;
    text-wrap: balance;
}
.iptva-hero__text {
    margin: 14px auto 0;
    max-width: 600px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--a-body);
}

/* ---------- Platform block ---------- */
.iptva-platform { margin-top: 46px; }
.iptva-platform__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.iptva-platform__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    color: var(--a-navy);
    box-shadow: var(--a-shadow-sm);
}
.iptva-platform__icon svg { width: 24px; height: 24px; }
.iptva-platform__title {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--a-ink);
    margin: 0;
}
.iptva-platform__count {
    flex: 0 0 auto;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .72rem;
    font-weight: 700;
    color: var(--a-muted);
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: 999px;
    padding: 4px 10px;
}
.iptva-platform__rule {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--a-border-strong), transparent);
}
[dir="rtl"] .iptva-platform__rule { background: linear-gradient(270deg, var(--a-border-strong), transparent); }

/* ---------- App grid + cards ---------- */
.iptva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.iptva-app {
    display: flex;
    flex-direction: column;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-radius: var(--a-r-lg);
    padding: 20px 18px 16px;
    box-shadow: var(--a-shadow-sm);
    transition: transform .26s var(--a-ease), box-shadow .26s var(--a-ease), border-color .26s var(--a-ease);
}
.iptva-app:hover {
    transform: translateY(-5px);
    box-shadow: var(--a-shadow-md);
    border-color: var(--a-border-strong);
}
.iptva-app__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--a-surface-2);
    border: 1px solid var(--a-border);
    margin-bottom: 14px;
}
.iptva-app__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.iptva-app__name {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--a-ink);
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.iptva-app__dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    height: 40px;
    border-radius: 11px;
    background: var(--a-surface-2);
    border: 1px solid var(--a-border);
    color: var(--a-navy);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .22s var(--a-ease), color .22s var(--a-ease), border-color .22s var(--a-ease);
}
.iptva-app__dl svg { width: 17px; height: 17px; transition: transform .22s var(--a-ease); }
.iptva-app:hover .iptva-app__dl {
    background: var(--a-accent);
    border-color: var(--a-accent);
    color: #fff;
}
.iptva-app:hover .iptva-app__dl svg { transform: translateY(2px); }

/* ---------- Compatibility note ---------- */
.iptva-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 16px 20px;
    background: var(--a-surface);
    border: 1px solid var(--a-border);
    border-inline-start: 4px solid var(--a-accent);
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--a-body);
    box-shadow: var(--a-shadow-sm);
}
.iptva-note svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--a-accent); }
.iptva-note em { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .iptva { padding: 36px 0 56px; }
    .iptva-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .iptva-app { padding: 16px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .iptva *, .iptva *::before, .iptva *::after { transition-duration: .01ms !important; }
    .iptva-app:hover { transform: none; }
}
