/* Foot Live — Desktop (PC) homepage redesign v1 — 2026-11-21
   Loaded only on screens >= 1024px (link media attribute). Mobile untouched.
   All rules scoped to the homepage (blocks that exist only there). */

@media (min-width: 1024px) {

  /* ---------- Page backdrop (homepage only) ---------- */
  body:has(.home3) {
    background: #07090d !important;
  }
  body:has(.home3) .layout {
    max-width: 1360px;
    margin: 0 auto;
  }
  /* empty ad rail takes no room on the homepage while ads are off */
  body:has(.home3) .layout .sky { display: none !important; }

  body:has(.home3) main {
    padding: 18px 22px 34px;
  }

  body:has(.home3) h1.sec {
    color: #f2f5f9;
    font-size: 26px;
    font-weight: 800;
    border-inline-start: 5px solid #2eff00;
    padding-inline-start: 12px;
    margin: 6px 0 16px;
  }

  /* ---------- Home grid: hero band on top, live + a la une below ---------- */
  .home3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "hero hero hero"
      "live live une";
    gap: 18px;
    align-items: stretch;
  }
  .home3 > .hero { grid-area: hero; }
  .home3 > .card:first-child { grid-area: live; }
  .home3 > .card:last-child { grid-area: une; }

  /* ---------- Hero band ---------- */
  .home3 .hero {
    background-image: url("/images/hero-pc.jpg") !important;
    background-size: cover !important;
    background-position: center 30% !important;
    min-height: 400px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  }
  /* readability veil on the text side */
  .home3 .hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4, 10, 6, .82) 0%, rgba(4, 10, 6, .45) 42%, rgba(4, 10, 6, 0) 68%);
    pointer-events: none;
  }
  [dir="rtl"] .home3 .hero::before {
    background: linear-gradient(270deg, rgba(4, 10, 6, .82) 0%, rgba(4, 10, 6, .45) 42%, rgba(4, 10, 6, 0) 68%);
  }
  .home3 .hero .ballbg { display: none !important; }
  .home3 .hero .txt {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 38px 44px;
    color: #fff;
  }
  .home3 .hero .txt h2,
  .home3 .hero .txt .big {
    font-size: 44px !important;
    line-height: 1.15;
    font-weight: 900;
    color: #fff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
  }
  .home3 .hero .txt p {
    font-size: 17px !important;
    color: #d7e6d2 !important;
  }
  .home3 .hero .txt a,
  .home3 .hero .txt .btn {
    background: #2eff00 !important;
    color: #04150a !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 13px 30px !important;
    box-shadow: 0 8px 26px rgba(46, 255, 0, .35);
  }

  /* ---------- Dark cards (reference look) ---------- */
  body:has(.home3) .card {
    background: #10141c !important;
    border: 1px solid #1f2735 !important;
    border-radius: 16px !important;
    color: #e8edf4 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    overflow: hidden;
  }
  body:has(.home3) .card .chead {
    background: #151b26 !important;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: .02em;
    border-bottom: 1px solid #232d3f !important;
    padding: 13px 18px !important;
  }
  body:has(.home3) .card .chead.red {
    background: linear-gradient(90deg, #12240f, #151b26) !important;
    box-shadow: inset 4px 0 0 #2eff00;
  }
  body:has(.home3) .card a { color: #dbe7f5; }

  /* live match rows: darker separators, readable teams */
  body:has(.home3) .mrow {
    border-bottom: 1px solid #1b2331 !important;
    padding: 9px 14px !important;
  }
  body:has(.home3) .mrow:hover { background: #161d29; }
  body:has(.home3) .tm { color: #eef3f9 !important; font-weight: 600; }
  body:has(.home3) .lg { color: #8fa3ba !important; }

  /* competitions tiles */
  body:has(.home3) .lgt {
    background: #151b26 !important;
    border: 1px solid #232d3f !important;
    border-radius: 12px;
    color: #e8edf4 !important;
  }
  body:has(.home3) .lgt:hover { border-color: #2eff00 !important; }

  /* standings table on dark */
  body:has(.home3) .card table { color: #dfe7f1 !important; }
  body:has(.home3) .card th {
    background: #151b26 !important;
    color: #9fb2c8 !important;
    border-color: #232d3f !important;
  }
  body:has(.home3) .card td { border-color: #1b2331 !important; }

  /* news thumbs / items */
  body:has(.home3) .nitem { border-bottom: 1px solid #1b2331 !important; }

  /* lower grid keeps 3 columns, aligned with the band */
  body:has(.home3) .grid3 { gap: 18px; margin-top: 18px; }
}
