:root {
    --container: 1100px;
    --gap: 16px;
    --border: #e8e8e8;
    --text: #111;
    --muted: #666;
  }
  
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
  }
  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  .container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
  }
  
  .header-section {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding: 14px 0;
  }
  .site-logo img { display: block; height: auto; }
  
  .site-nav { margin-left: auto; }
  .menu {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .menu li.active a { font-weight: 700; }
  
  .mobile-menu {
    display: none;
    margin-left: auto;
    font-size: 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
  }
  
  /* Main */
  .content-part { padding: 26px 0 50px; }
  h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.15; }
  h2 { margin-top: 28px; }
  
  .author-box {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #F2F2F2;
    padding: 15px;
    border-radius: 10px;
  }
  .author-avatar { border-radius: 50%; }
  .author-meta { color: var(--muted); }
  .author-meta .lbl { color: var(--text); font-weight: 600; }
  
  .intro {
    position: relative;
    padding: 14px 14px 10px;
    margin: 14px 0 18px;
  }
  .intro-content[data-collapsed="true"] .more { display: none; }
  .intro-toggle {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 0 0;
    font-weight: 600;
  }
  
  .toplist {
    display: grid;
    gap: 12px;
    margin: 10px 0 18px;
  }
  .offer {
    display: grid;
    grid-template-columns: 150px 1fr 120px 140px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
  }
  .offer-logo img { max-width: 100%; height: auto; display: block; }
  .brand-name { font-weight: 800; margin-bottom: 4px; }
  .offer-desc { color: var(--muted); }
  
  .offer-rating { text-align: center; }
  .rating-num { font-size: 20px; font-weight: 800; }
  .rating-stars { color: #0a0; letter-spacing: 1px; }
  
  .btn {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 700;
  }
  .btn:hover { text-decoration: none; }
  
  .table-wrap { overflow-x: auto; }
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0;
  }
  th, td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: left;
  }
  th { background: #fafafa; }
  
  .footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: var(--muted);
    text-align: center;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .offer { grid-template-columns: 120px 1fr; }
    .offer-rating, .offer-cta { justify-self: start; }
  }
  @media (max-width: 780px) {
    .mobile-menu { display: inline-flex; }
    .site-nav { display: none; width: 100%; }
    .site-nav.open { display: block; }
    .menu { flex-direction: column; padding: 10px 0; }
    .header-inner { flex-wrap: wrap; }
  }
  
  .review-figure {
    margin: 16px 0;
  }
  
  .review-figure img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* ✅ ADD these at the BOTTOM of style.css */

/* Make brand images round + consistent */
.offer-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}

/* Red Play Now button with white text */
.btn {
  background: #d60000;
  color: #fff;
  border-color: #d60000;
}

.btn:hover {
  background: #b80000;
  border-color: #b80000;
  text-decoration: none;
}

/* Make offer cards look better on mobile */
@media (max-width: 900px) {
  .offer {
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "logo info"
      "rating cta";
    align-items: center;
  }

  .offer-logo { grid-area: logo; }
  .offer-info { grid-area: info; }
  .offer-rating { grid-area: rating; text-align: left; }
  .offer-cta { grid-area: cta; }

  .offer-cta .btn {
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .offer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "info"
      "rating"
      "cta";
    text-align: left;
  }

  .offer-logo img {
    margin: 0;
  }

  .offer-cta .btn {
    width: 100%;
    max-width: none;
  }
}

/* Intro toggle label switching */
.intro-toggle .show-less { display: none; }

.intro-toggle[data-expanded="true"] .show-more { display: none; }
.intro-toggle[data-expanded="true"] .show-less { display: inline; }

/* ===== Toplist layout (match screenshot) ===== */
.toplist {
  counter-reset: offer;
}

/* Desktop row layout */
.offer {
  counter-increment: offer;
  display: grid;
  grid-template-columns: 240px 1fr 1.2fr 180px;
  grid-template-areas: "brand main features cta";
  gap: 22px;
  align-items: center;

  border: 0;
  border-radius: 0;
  padding: 18px 8px;
}

/* Left block: rank + logo + brand text */
.offer-brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: 28px 44px 1fr;
  gap: 12px;
  align-items: center;
}

/* Auto number box (1,2,3...) */
.offer-rank::before {
  content: counter(offer);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #eee;
  color: #111;
  font-weight: 700;
  font-size: 12px;
}

/* Logo like screenshot (small icon, no big circle) */
.offer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}

/* Brand text */
.offer-brandtext .brand-name {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  margin: 0;
}

.offer-brandtext .brand-sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* Middle: big offer headline + stars under it */
.offer-main {
  grid-area: main;
}

.offer-main .offer-desc {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
}

.offer-rating {
  text-align: left;
}

.rating-stars {
  color: #19b24a; /* green like screenshot */
  letter-spacing: 4px;
  font-size: 16px;
}

/* Right-middle: bullet list with check icons */
.offer-features {
  grid-area: features;
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 12px;
  color: #555;
  font-weight: 600;
}

.offer-features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 600;
  color: #6a6a6a;
  font-size: 15px;
}

.offer-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #efefef;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

/* CTA: yellow pill button with arrow */
.offer-cta {
  grid-area: cta;
  display: flex;
  justify-content: flex-end;
}

.btn.btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 100%;
  max-width: 170px;
  padding: 18px 22px;
  border-radius: 16px;

  background: #ffe300;
  border: 0;
  color: #111;
  font-weight: 800;
}

.btn-arrow {
  font-size: 22px;
  line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .offer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "main"
      "features"
      "cta";
    gap: 14px;
    padding: 18px 0;
  }

  .offer-brandtext .brand-name {
    font-size: 24px;
  }

  .offer-main .offer-desc {
    font-size: 24px;
  }

  .offer-cta {
    justify-content: flex-start;
  }

  .btn.btn-visit {
    max-width: 220px;
  }
}

/* ===== MOBILE: match reference layout exactly ===== */
@media (max-width: 980px) {
  .offer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "main"
      "stars"
      "cta"
      "features";
    gap: 14px;
    padding: 18px 0;
  }

  /* BRAND ROW: rank + name on left, logo aligned right (same row) */
  .offer-brand {
    grid-area: brand;
    display: grid;
    grid-template-columns: 28px 1fr 48px;
    grid-template-areas: "rank name logo";
    align-items: center;
    gap: 12px;
  }

  .offer-rank {
    grid-area: rank;
  }

  .offer-logo {
    grid-area: logo;
    justify-self: end;
  }

  .offer-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
  }

  .offer-brandtext {
    grid-area: name;
  }

  .offer-brandtext .brand-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
  }

  .offer-brandtext .brand-sub {
    display: none;
  }

  /* HEADLINE CENTERED */
  .offer-main {
    grid-area: main;
    text-align: center;
    margin-top: 1rem;
  }

  .offer-main .offer-desc {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
  }

  /* STARS: centered row under headline */
  .offer-rating {
    grid-area: stars;
    display: flex;
    justify-content: center;
  }

  .rating-stars {
    font-size: 16px;
    letter-spacing: 4px;
  }

  /* CTA: FULL-WIDTH button like reference */
  .offer-cta {
    grid-area: cta;
    display: block;
  }

  .btn.btn-visit {
    width: 100%;
    max-width: 100%;
    padding: 18px 22px;
    border-radius: 16px;
    justify-content: center;
  }

  /* FEATURES: below button, left aligned */
  .offer-features {
    grid-area: features;
    margin: 0;
    padding: 0;
    gap: 10px;
  }

  .offer-features li {
    grid-template-columns: 18px 1fr;
    align-items: start;
  }
}

@media (max-width: 980px) {

  /* FORCE stars dead-center */
  .offer-rating {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .rating-stars {
    margin: 0 auto;
    display: inline-block;
    margin-top: 1rem;
  }

  /* FORCE button dead-center */
  .offer-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .offer-cta .btn.btn-visit {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}
