:root {
    --cream: #f7f0e5;
    --paper: #fffaf2;
    --ink: #2d211a;
    --espresso: #33251e;
    --coral: #e96755;
    --sage: #7f8b7b;
    --line: #e8dac8;
    --muted: #7b6c60;
    --gold: #e7a532;
    --green: #23865f;
}


/* ========================================
   GLOBAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: Georgia, serif;
    line-height: 1.05;
    margin: 0 0 14px;
}

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

.wrap {
    width: min(1180px, 92%);
    margin: auto;
}


/* ========================================
   HEADER / NAVBAR
======================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(255, 250, 242, 0.96);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(10px);
}

.nav {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* Brand / Logo */

.brand {
    font: 700 22px Georgia, serif;
}

.brand b {
    color: var(--coral);
}

.brand small {
    display: block;

    font: 700 8px Inter;
    letter-spacing: 1.5px;

    color: var(--muted);
}


/* Navigation links */

.links {
    display: flex;
    gap: 26px;

    font-size: 14px;
}

.links a:hover,
.links .active {
    color: var(--coral);
}


/* Mobile menu icon */

.menu {
    display: none;
}


/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;

    background: var(--coral);
    color: #fff;

    padding: 12px 18px;

    border-radius: 9px;

    font-weight: 700;
    font-size: 14px;
}

.btn.alt {
    background: var(--paper);
    color: var(--ink);

    border: 1px solid var(--line);
}


/* ========================================
   HOME HERO
======================================== */

.hero {
    min-height: 520px;

    background:
        linear-gradient(
            90deg,
            var(--cream) 0 47%,
            transparent 68%
        ),
        url('../img/iptv-hero.png')
        right center / 58% 100%
        no-repeat;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

.hero-copy {
    max-width: 610px;
    padding: 72px 0;
}

.eyebrow {
    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;
    font-weight: 800;

    color: #a3664e;
}

.hero h1 {
    font-size: 62px;
}

.hero p {
    font-size: 18px;

    max-width: 570px;

    color: #594b40;
}


/* Trust badges */

.trust {
    display: flex;
    gap: 28px;

    margin-top: 30px;

    flex-wrap: wrap;
}

.trust span {
    font-size: 13px;
    font-weight: 700;
}


/* ========================================
   GENERAL SECTIONS
======================================== */

.section {
    padding: 64px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}

.section h2 {
    font-size: 38px;
}

.lead {
    color: var(--muted);
    max-width: 720px;
}

/* ========================================
   TESTED IPTV SERVICES
======================================== */

.tested-services {
    background: #fffaf2;
}

.tested-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.tested-heading h2 {
    font-size: 42px;
    margin: 7px 0 12px;
}

.tested-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}


/* 2 COLUMN GRID */

.tested-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}


/* PROVIDER CARD */

.tested-provider {
    min-height: 128px;

    display: grid;
    grid-template-columns: 125px 1fr auto;
    align-items: center;

    background: #fff;

    border: 1px solid var(--line);
    border-radius: 22px;

    box-shadow: 0 12px 35px rgba(51, 37, 30, 0.07);

    overflow: hidden;
}


/* LOGO */

.tested-logo {
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: #fff;

    border-right: 1px solid var(--line);
}

.tested-logo img {
    width: 100%;
    max-width: 95px;
    max-height: 72px;

    object-fit: contain;
    display: block;
}


/* PROVIDER INFO */

.tested-info {
    padding: 20px 22px;
    min-width: 0;
}

.tested-info h3 {
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;

    margin: 0 0 10px;

    color: var(--ink);
}

.tested-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;

    margin-bottom: 10px;
}

.tested-meta span {
    padding: 4px 9px;

    background: var(--cream);

    border-radius: 20px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;
}


/* RATING + PRICE */

.tested-bottom {
    display: flex;
    align-items: center;
    gap: 13px;
}

.tested-stars {
    color: #f29b22;
    font-size: 14px;
    letter-spacing: 1px;
}

.tested-bottom strong {
    color: var(--coral);

    font-size: 20px;
    font-weight: 800;
}

.tested-bottom small {
    color: var(--muted);

    font-size: 11px;
    font-weight: 600;
}


/* BUTTON */

.tested-btn {
    margin-right: 20px;

    min-width: 125px;

    padding: 14px 16px;

    background: var(--coral);
    color: #fff;

    border-radius: 11px;

    text-align: center;

    font-size: 13px;
    font-weight: 800;

    transition: .2s ease;
}

.tested-btn span {
    margin-left: 5px;
}

.tested-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 103, 85, .22);
}


/* METHODOLOGY LINK */

.tested-method {
    text-align: center;
    margin-top: 30px;
}

.tested-method a {
    color: var(--coral);
    font-weight: 700;
}


/* TABLET */

@media (max-width: 1000px) {

    .tested-grid {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .tested-heading h2 {
        font-size: 34px;
    }

    .tested-provider {
        grid-template-columns: 90px 1fr;
        min-height: 0;
    }

    .tested-logo {
        grid-row: 1 / 2;
        padding: 12px;
    }

    .tested-info {
        padding: 16px;
    }

    .tested-btn {
        grid-column: 1 / -1;

        margin: 0 14px 14px;

        width: auto;
    }

    .tested-logo img {
        max-width: 70px;
        max-height: 60px;
    }

}

.tested-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 20px;
}

.tested-actions .tested-btn {
    margin: 0;
    white-space: nowrap;
}

.visit-btn {
    background: var(--espresso);
}

/* ========================================
   THREE COLUMN CARDS
======================================== */

.grid3 {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.card {
    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 16px;

    overflow: hidden;
}

.card img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    display: block;
}

.card-body {
    padding: 20px;
}


/* ========================================
   DETAILED REVIEW CARDS
======================================== */

.review-card {
    display: grid;

    grid-template-columns:
        180px
        1fr
        270px;

    gap: 24px;

    padding: 24px;

    margin-bottom: 18px;

    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 16px;
}

.review-card img {
    width: 100%;
    height: 150px;

    object-fit: cover;

    border-radius: 12px;
}


/* Review checklist */

.checks {
    list-style: none;

    padding: 0;
    margin: 0;
}

.checks li {
    margin: 8px 0;
}

.checks li:before {
    content: '✓';

    color: var(--green);

    font-weight: 900;

    margin-right: 8px;
}


/* ========================================
   DARK / METHODOLOGY SECTION
======================================== */

.dark {
    background: var(--espresso);
    color: #fff;
}

.method {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.method article {
    padding: 26px;

    border: 1px solid #ffffff22;
    border-radius: 14px;
}


/* ========================================
   FOOTER
======================================== */

.footer {
    padding: 42px 0;

    background: #241a15;
    color: #e9ded3;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        repeat(3, 1fr);

    gap: 35px;
}

.footer a {
    display: block;

    color: #cdbdaf;

    margin: 7px 0;
}


/* ========================================
   INTERNAL PAGE HERO
======================================== */

.page-hero {
    padding: 70px 0;

    background:
        linear-gradient(
            90deg,
            #302119dd,
            #302119aa
        ),
        url('../img/guide-smarttv.jpg')
        center / cover;

    color: #fff;
}

.page-hero h1 {
    font-size: 54px;
}


/* ========================================
   CONTENT + SIDEBAR
======================================== */

.content-grid {
    display: grid;

    grid-template-columns:
        1fr
        300px;

    gap: 28px;
}

.sidebar .card {
    padding: 20px;

    margin-bottom: 18px;
}


/* ========================================
   ARTICLE CARDS
======================================== */

.article-card {
    display: grid;

    grid-template-columns:
        220px
        1fr;

    margin-bottom: 18px;
}

.article-card img {
    height: 100%;
    min-height: 180px;
}


/* ========================================
   REVIEW PAGE HERO
======================================== */

.review-hero {
    padding: 48px 0;

    background:
        linear-gradient(
            90deg,
            #21150fe8,
            #2b1d15a8
        ),
        url('../img/provider-1.jpg')
        center / cover;

    color: #fff;
}

.review-head {
    display: grid;

    grid-template-columns:
        140px
        1fr;

    gap: 25px;

    align-items: center;
}

.review-head .logo {
    width: 140px;
    height: 140px;

    font-size: 18px;
}


/* ========================================
   REVIEW PAGE LAYOUT
======================================== */

.review-layout {
    display: grid;

    grid-template-columns:
        1fr
        310px;

    gap: 28px;
}


/* General content box */

.box {
    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 14px;

    padding: 24px;

    margin-bottom: 20px;
}


/* ========================================
   PROS & CONS
======================================== */

.proscons {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 18px;
}


/* ========================================
   PRICING
======================================== */

.price-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;
}

.price {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 10px;

    padding: 16px;

    text-align: center;
}


/* ========================================
   DEVICE SUPPORT
======================================== */

.device-row {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;

    text-align: center;
}

.device-row div {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 9px;

    padding: 12px 6px;

    font-size: 12px;
}


/* ========================================
   LEGAL PAGES
======================================== */

.legal {
    max-width: 850px;
}


/* ========================================
   FAQ
======================================== */

.faq details {
    background: var(--paper);

    border: 1px solid var(--line);
    border-radius: 10px;

    padding: 16px;

    margin: 10px 0;
}


/* ========================================
   TABLET / MOBILE
   850px AND BELOW
======================================== */

@media (max-width: 850px) {

    /* Navigation */

    .links {
        display: none;
    }

    .menu {
        display: block;
    }


    /* Hero */

    .hero {
        background:
            linear-gradient(
                #f7f0e5dd,
                #f7f0e5f5
            ),
            url('../img/iptv-hero.png')
            center / cover;
    }

    .hero h1 {
        font-size: 44px;
    }


    /* Single-column layouts */

    .grid3,
    .method,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .review-card,
    .content-grid,
    .review-layout {
        grid-template-columns: 1fr;
    }


    /* Review cards */

    .review-card img {
        height: 220px;
    }


    /* Article cards */

    .article-card {
        grid-template-columns: 1fr;
    }


    /* Pros / Cons */

    .proscons {
        grid-template-columns: 1fr;
    }


    /* Pricing */

    .price-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* Devices */

    .device-row {
        grid-template-columns:
            repeat(3, 1fr);
    }


    /* Review header */

    .review-head {
        grid-template-columns:
            90px
            1fr;
    }

    .review-head .logo {
        width: 90px;
        height: 90px;
    }


    /* Page hero */

    .page-hero h1 {
        font-size: 42px;
    }
}


/* ========================================
   SMALL MOBILE
   520px AND BELOW
======================================== */

@media (max-width: 520px) {

    .hero h1 {
        font-size: 38px;
    }

    .hero-copy {
        padding: 52px 0;
    }

    .section {
        padding: 44px 0;
    }


    /* Pricing */

    .price-grid {
        grid-template-columns:
            1fr
            1fr;
    }


    /* Devices */

    .device-row {
        grid-template-columns:
            1fr
            1fr;
    }


    /* Buttons */

    .btn {
        padding: 10px 13px;
    }
}
/* TopBestIPTV2027 expanded guide library */
.guides-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.guides-grid .article-card{display:flex;flex-direction:column;overflow:hidden}.guides-grid .article-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.guides-grid .card-body{display:flex;flex:1;flex-direction:column}.guides-grid .card-body h3{font-size:1.35rem}.guides-grid .card-body a{margin-top:auto;font-weight:800;color:var(--coral)}.guide-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:16px;margin-bottom:20px}.guide-byline{font-size:.78rem;letter-spacing:.08em;font-weight:800;color:var(--muted);margin:4px 0 28px}.guide-detail h2{margin-top:30px}.guide-note{margin:30px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}@media(max-width:900px){.guides-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.guides-grid{grid-template-columns:1fr}}


/* ===== Guide Top IPTV Picks ===== */
.guide-top-picks{margin:30px 0 34px;padding:0}.guide-top-picks-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.guide-top-picks-head h2{margin:0;font-size:22px}.guide-verified{font-size:12px;color:var(--muted,#6f6258);white-space:nowrap}.guide-verified:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#2ac58b;margin-right:6px;box-shadow:0 0 0 3px rgba(42,197,139,.12)}
.guide-pick-list{display:grid;gap:10px}.guide-pick{display:grid;grid-template-columns:42px 72px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line,#e8dac8);border-radius:14px;background:#fff}.guide-pick:first-child{background:linear-gradient(120deg,#35245d,#4a173a);color:#fff;border-color:transparent;box-shadow:0 10px 24px rgba(45,33,26,.12)}.guide-pick-rank{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f3f4f7;font-weight:800;font-size:13px;color:#26334b}.guide-pick:first-child .guide-pick-rank{background:linear-gradient(135deg,#b747db,#ef4b9b);color:#fff}.guide-pick-logo{height:48px;border-radius:9px;background:#f7f8fa;border:1px solid rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;padding:7px;overflow:hidden}.guide-pick-logo img{max-width:100%;max-height:100%;object-fit:contain}.guide-pick-info{min-width:0}.guide-pick-name{font-family:Georgia,serif;font-size:16px;font-weight:800;line-height:1.15;margin-bottom:7px}.guide-pick-tags{display:flex;gap:6px;flex-wrap:wrap}.guide-pick-tags span{font-size:10px;font-weight:700;padding:4px 7px;border-radius:999px;background:#f1f4f7;color:#516075}.guide-pick:first-child .guide-pick-tags span{background:rgba(255,255,255,.14);color:#fff}.guide-pick-price{text-align:right;font-weight:900;font-size:17px;white-space:nowrap}.guide-pick-price small{display:block;font-size:9px;font-weight:500;opacity:.72}.guide-pick-cta{display:inline-flex;align-items:center;justify-content:center;min-width:96px;padding:11px 14px;border-radius:9px;background:var(--coral,#e96755);color:#fff!important;font-weight:800;font-size:12px;text-decoration:none}.guide-pick:first-child .guide-pick-cta{background:#fff;color:#34265d!important}.guide-pick-cta:hover{transform:translateY(-1px)}
@media(max-width:760px){.guide-top-picks-head{align-items:flex-start}.guide-pick{grid-template-columns:34px 54px minmax(0,1fr) auto;gap:9px;padding:10px}.guide-pick-logo{height:42px}.guide-pick-price{display:none}.guide-pick-cta{grid-column:3/5;justify-self:start;min-width:0;padding:8px 11px}.guide-pick-name{font-size:14px}.guide-pick-tags span{font-size:9px}}


/* =========================
   GUIDE ARTICLE TABLES
========================= */

.guide-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0 38px;
    -webkit-overflow-scrolling: touch;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #00206f;
    font-size: 16px;
    line-height: 1.55;
}

.guide-table th,
.guide-table td {
    border: 1px solid #6872ad;
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.guide-table th {
    font-weight: 800;
    text-align: center;
    color: #00175f;
    background: #fff;
}

.guide-table td {
    font-weight: 400;
}

.comparison-log {
    min-width: 760px;
}


/* ARTICLE LISTS */

.guide-steps,
.guide-check-list {
    margin: 18px 0 28px;
    padding-left: 25px;
}

.guide-steps li,
.guide-check-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}


/* ARTICLE SUBHEADINGS */

.guide-article-content h2 {
    margin-top: 42px;
    margin-bottom: 16px;
}

.guide-article-content h3 {
    margin-top: 27px;
    margin-bottom: 12px;
}

.guide-article-content p {
    margin-bottom: 18px;
}


/* MOBILE */

@media (max-width: 700px) {

    .guide-table {
        min-width: 680px;
        font-size: 14px;
    }

    .guide-table th,
    .guide-table td {
        padding: 11px 10px;
    }

    .guide-table-wrap {
        margin: 22px 0 30px;
    }
}

/* TopBestIPTV2027 image logos */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.site-logo {
    display: block;
    width: auto;
    object-fit: contain;
}
.site-logo-header {
    height: 64px;
    max-width: 360px;
}
.footer-brand {
    margin-bottom: 14px;
}
.site-logo-footer {
    height: 72px;
    max-width: 390px;
}
@media (max-width: 700px) {
    .site-logo-header { height: 52px; max-width: 280px; }
    .site-logo-footer { height: 58px; max-width: 300px; }
}


/* Article sidebar category hover */
.guide-sidebar a,
.article-sidebar a,
.sidebar a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.guide-sidebar a:hover,
.article-sidebar a:hover,
.sidebar a:hover {
    color: var(--coral, #e96755);
}


/* Guides page card title: dark normally, coral on hover */
.guides-grid .article-card h3,
.guides-grid .article-card h3 a,
.guides-grid .article-card a h3 {
    color: var(--espresso, #33251e) !important;
    transition: color .2s ease;
}
.guides-grid .article-card h3:hover,
.guides-grid .article-card h3 a:hover,
.guides-grid .article-card a:hover h3 {
    color: var(--coral, #e96755) !important;
}
/* =========================================================
   IPTV SERVICES — LONG-FORM RANKING PAGE
========================================================= */

.iptv-ranking-hero {
    padding: 78px 0 66px;
}

.iptv-ranking-hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 72px);
    margin-bottom: 20px;
}

.iptv-ranking-hero p {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.ranking-meta span {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 13px;
    font-weight: 700;
}


/* LAYOUT */

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 42px;
    align-items: start;
}

.ranking-main {
    min-width: 0;
}


/* KEY TAKEAWAY */

.ranking-highlight {
    padding: 34px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: 18px;
    background: var(--paper);
    margin-bottom: 52px;
}

.ranking-highlight h2 {
    font-size: 34px;
}


/* GENERAL SECTIONS */

.ranking-section {
    margin: 58px 0;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ranking-section > h2,
.ranking-final h2 {
    font-size: clamp(30px, 4vw, 44px);
}


/* QUICK RANKING */

.quick-ranking-list {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.quick-rank-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 17px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.quick-rank-item:hover {
    transform: translateY(-2px);
    border-color: var(--coral);
    box-shadow: 0 10px 25px rgba(45, 33, 26, .07);
}

.quick-rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--espresso);
    color: #fff;
    font-weight: 800;
}

.quick-rank-item p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.quick-rank-rating {
    color: var(--gold);
    font-weight: 800;
}


/* TABLE */

.iptv-comparison-table th,
.iptv-comparison-table td {
    vertical-align: middle;
}

.table-rating {
    white-space: nowrap;
    color: var(--gold);
    font-weight: 800;
}


/* AFFILIATE NOTE */

.affiliate-note {
    margin: 42px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff6e8;
    font-size: 14px;
    line-height: 1.7;
}


/* METHODOLOGY */

.methodology-preview {
    padding: 35px;
    border-radius: 20px;
    background: var(--espresso);
    color: var(--cream);
}

.methodology-preview h2 {
    color: #fff;
}

.methodology-preview > p {
    color: rgba(255, 255, 255, .76);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.method-card {
    padding: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}

.method-card span {
    color: var(--coral);
    font-weight: 800;
    font-size: 13px;
}

.method-card h3 {
    color: #fff;
    margin: 8px 0;
}

.method-card p {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.methodology-preview .text-link {
    color: var(--coral);
}


/* PROVIDER REVIEW */

.provider-heading {
    margin-bottom: 25px;
}

.provider-review {
    position: relative;
    margin: 32px 0 58px;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
    scroll-margin-top: 105px;
}

.provider-winner {
    border: 2px solid var(--coral);
}

.provider-rank-label {
    position: absolute;
    top: 0;
    right: 28px;
    transform: translateY(-50%);
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.provider-review-head {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.provider-review-logo {
    width: 130px;
    max-height: 70px;
    object-fit: contain;
}

.provider-placeholder-logo {
    display: grid;
    place-items: center;
    min-width: 130px;
    height: 70px;
    padding: 12px;
    border-radius: 12px;
    background: var(--espresso);
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
}

.provider-review-head h2 {
    margin-bottom: 8px;
    font-size: 34px;
}

.provider-stars {
    color: var(--gold);
    font-weight: 800;
}

.provider-stars span {
    margin-left: 7px;
    color: var(--muted);
    font-size: 14px;
}

.provider-review h3 {
    margin-top: 30px;
    font-size: 24px;
}

.summary-table th {
    width: 180px;
}

.provider-feature-list {
    padding-left: 20px;
}

.provider-feature-list li {
    margin: 13px 0;
}


/* PROS CONS */

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 18px;
}

.pros,
.cons {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.pros h4,
.cons h4 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 20px;
}

.pros h4 {
    color: var(--green);
}

.cons h4 {
    color: var(--coral);
}

.pros ul,
.cons ul {
    margin: 0;
    padding-left: 19px;
}

.pros li,
.cons li {
    margin: 9px 0;
}


/* PROVIDER BUTTONS */

.provider-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.btn-outline {
    background: transparent;
    color: var(--espresso);
    border: 1px solid var(--espresso);
}

.btn-outline:hover {
    background: var(--espresso);
    color: #fff;
}


/* BUYING GUIDE */

.buying-guide {
    padding-top: 10px;
}

.buying-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 25px;
}

.buying-item {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.buying-item strong {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    font-size: 19px;
}

.buying-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


/* FINAL */

.ranking-final {
    margin-top: 60px;
    padding: 38px;
    border-radius: 20px;
    background: var(--espresso);
    color: var(--cream);
}

.ranking-final h2 {
    color: #fff;
}

.ranking-final p {
    color: rgba(255, 255, 255, .78);
}

.ranking-final strong {
    color: #fff;
}


/* SIDEBAR */

.ranking-sidebar {
    display: grid;
    gap: 18px;
}

.ranking-sidebar-box {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.sticky-ranking-box {
    position: sticky;
    top: 100px;
}

.ranking-sidebar-box h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.sidebar-provider {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-provider:last-child {
    border-bottom: 0;
}

.sidebar-provider > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--espresso);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sidebar-provider strong {
    display: block;
    transition: color .2s ease;
}

.sidebar-provider:hover strong {
    color: var(--coral);
}

.sidebar-provider small {
    color: var(--muted);
}

.text-link {
    color: var(--coral);
    font-weight: 800;
}


/* RESPONSIVE */

@media (max-width: 950px) {

    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-sidebar {
        display: none;
    }

}

@media (max-width: 700px) {

    .iptv-ranking-hero {
        padding: 55px 0 45px;
    }

    .ranking-highlight,
    .provider-review,
    .methodology-preview,
    .ranking-final {
        padding: 24px;
    }

    .methodology-grid,
    .pros-cons,
    .buying-grid {
        grid-template-columns: 1fr;
    }

    .quick-rank-item {
        grid-template-columns: 40px 1fr;
    }

    .quick-rank-rating {
        grid-column: 2;
    }

    .provider-review-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .provider-review-head h2 {
        font-size: 29px;
    }

    .summary-table th {
        width: auto;
    }

    .provider-actions {
        flex-direction: column;
    }

    .provider-actions .btn {
        text-align: center;
    }

}
/* =========================================
   SIMPLE IPTV RANKING LIST
========================================= */

.simple-ranking {
    margin: 45px 0 55px;
}

.simple-ranking h2 {
    margin-bottom: 20px;
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1.2;
    color: var(--espresso, #33251e);
}

.ranking-intro-line {
    margin: 0 0 28px;
    font-size: 16px;
    color: var(--ink, #2d211a);
}

.simple-provider-list {
    margin: 0;
    padding-left: 38px;
}

.simple-provider-list li {
    margin-bottom: 9px;
    padding-left: 2px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink, #2d211a);
}

.simple-provider-list li a {
    color: var(--coral, #e96755);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .2s ease;
}

.simple-provider-list li a:hover {
    color: var(--espresso, #33251e);
}


/* MOBILE */

@media (max-width: 700px) {

    .simple-ranking h2 {
        font-size: 27px;
    }

    .simple-provider-list {
        padding-left: 27px;
    }

    .simple-provider-list li {
        margin-bottom: 11px;
        font-size: 15px;
    }

}
/* Terms / Legal page links */
.legal a {
    color: var(--coral, #e96755);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.legal a:hover {
    color: var(--espresso, #33251e);
    text-decoration: underline;
}

/* =========================================
   HOMEPAGE LATEST GUIDES - COMPACT CARDS
========================================= */
.home-latest-guides .grid3 {
    align-items: stretch;
}

.home-latest-guides .article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.home-latest-guides .article-card > img {
    width: 100%;
    height: 190px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.home-latest-guides .article-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.home-latest-guides .article-card .eyebrow {
    margin-bottom: 7px;
}

.home-latest-guides .article-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.15;
    color: var(--espresso, #33251e);
}

.home-latest-guides .article-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted, #7b6c60);
}

.home-latest-guides .article-card .card-body > a:last-child {
    margin-top: auto;
    color: var(--coral, #e96755);
    font-weight: 800;
}

.home-latest-guides .article-card .card-body > a:last-child:hover {
    color: var(--espresso, #33251e);
}

@media (max-width: 900px) {
    .home-latest-guides .grid3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-latest-guides .grid3 {
        grid-template-columns: 1fr;
    }

    .home-latest-guides .article-card > img {
        height: 200px;
    }
}
