/*
  Serie A Odds static template
  Differentiation system:
  - Change <body class="theme-media layout-editorial"> to theme-data / theme-official / theme-matchday.
  - Keep page structure stable; visual identity is driven by variables and layout classes.
*/
:root{
  --navy:#06172a;
  --navy2:#0b2238;
  --ink:#142235;
  --green:#0d9c55;
  --red:#e52832;
  --muted:#5f6c7b;
  --line:#e8edf2;
  --bg:#f6f8fb;
  --card:#ffffff;
  --soft:#eef6f2;
  --gold:#d9b36a;
  --radius:22px;
  --radius-sm:16px;
  --shadow:0 18px 45px rgba(9,28,50,.12);
  --shadow-soft:0 8px 30px rgba(9,28,50,.06);
  --hero-overlay:linear-gradient(120deg,rgba(5,15,30,.94),rgba(9,30,50,.72));
}
body.theme-data{
  --bg:#07121f;
  --card:#0d1c2e;
  --ink:#e7f0fa;
  --muted:#9fb2c6;
  --line:rgba(255,255,255,.12);
  --navy:#04101d;
  --navy2:#10263d;
  --soft:#0c241b;
  --shadow:0 22px 54px rgba(0,0,0,.28);
  --shadow-soft:0 10px 34px rgba(0,0,0,.22);
}
body.theme-official{
  --bg:#f4f1ea;
  --card:#fffdf8;
  --ink:#20242a;
  --muted:#646869;
  --line:#e5ded1;
  --navy:#17243a;
  --navy2:#243653;
  --green:#137548;
  --red:#b92e33;
  --soft:#eef1e9;
  --radius:12px;
  --radius-sm:8px;
}
body.theme-matchday{
  --bg:#eef5f1;
  --card:#ffffff;
  --ink:#132622;
  --muted:#64736f;
  --line:#dce8e1;
  --navy:#06322f;
  --navy2:#0f4a3c;
  --green:#0a9654;
  --red:#db3138;
  --soft:#e7f4ed;
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.72}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
p{margin:0 0 14px}
.container{width:min(1180px,92vw);margin:auto}
.topbar{background:var(--navy);color:#d7e4f2;font-size:13px;border-bottom:1px solid rgba(255,255,255,.08)}
.topbar .container{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
.header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.theme-data .header{background:rgba(7,18,31,.9)}
.navwrap{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;min-width:180px}.brand img{width:210px;height:auto}.theme-data .brand img{filter:drop-shadow(0 8px 16px rgba(0,0,0,.25))}
.nav{display:flex;align-items:center;gap:26px;font-weight:650;color:#26374b}.theme-data .nav{color:#d6e4f3}
.nav a{position:relative;white-space:nowrap}.nav a:hover{color:var(--green)}
.nav a.active:after,.nav a:hover:after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--green),#fff,var(--red))}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:12px 20px;background:var(--green);color:white;font-weight:800;box-shadow:0 12px 24px rgba(13,156,85,.22);border:0}
.btn.secondary{background:var(--navy)}
.theme-official .btn{border-radius:8px;box-shadow:none}.theme-official .btn.secondary{background:transparent;color:var(--navy);border:1px solid var(--navy)}
.theme-data .btn.secondary{background:#172d46;color:#fff}.btn:hover{transform:translateY(-1px)}
.hero{position:relative;color:#fff;background:var(--navy);overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08)}
.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 20%,rgba(13,156,85,.22),transparent 28%),radial-gradient(circle at 20% 88%,rgba(229,40,50,.18),transparent 24%),var(--hero-overlay)}
.hero .container{position:relative;min-height:590px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.78fr);gap:42px;align-items:center;padding:72px 0}
.hero-content{width:min(690px,100%)}
.eyebrow{display:inline-flex;gap:8px;align-items:center;color:#d7efe2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:13px}.eyebrow:before{content:"";width:42px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--green),#fff,var(--red))}
.hero h1{font-size:clamp(38px,6vw,72px);line-height:1.05;margin:18px 0 20px;letter-spacing:-.04em}.hero p.lead{font-size:20px;color:#dbe8f5;max-width:660px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.official-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}.official-strip div{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:16px}.official-strip b{display:block;color:#fff;font-size:18px}.official-strip span{display:block;color:#b8ccdc;font-size:13px}.theme-official .official-strip div{border-radius:8px}
.hero-visual{position:relative;min-height:410px;align-self:stretch;display:flex;align-items:center;justify-content:center}.hero-visual img{width:100%;height:420px;object-fit:cover;border-radius:36px;box-shadow:0 36px 80px rgba(0,0,0,.38);border:1px solid rgba(255,255,255,.18)}
.hero-visual:before{content:"";position:absolute;inset:22px -10px -18px 28px;border:1px solid rgba(255,255,255,.14);border-radius:38px;z-index:0}.hero-visual img{position:relative;z-index:1}
.hero-visual-clean img{height:440px;object-position:center center}
.section{padding:78px 0}.section + .section{border-top:1px solid rgba(120,139,157,.08)}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:26px}.section-title h2{font-size:34px;line-height:1.2;margin:0;color:var(--ink);max-width:560px}.section-title p{max-width:620px;color:var(--muted);margin:0}
.grid{display:grid;gap:22px;align-items:stretch}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}
.card{height:100%;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow-soft);position:relative;overflow:hidden}.card:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:linear-gradient(var(--green),var(--red));opacity:.78}.card h3{margin:0 0 10px;font-size:22px;color:var(--ink);min-height:1.2em}.card p,.muted{color:var(--muted)}.feature-icon{width:46px;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--green);font-weight:900;margin-bottom:14px}.theme-official .feature-icon{border-radius:6px}.theme-data .feature-icon{background:#102d24;color:#68e2a0}
.split{display:grid;grid-template-columns:1.02fr .98fr;gap:34px;align-items:center}.panel-img{border-radius:26px;overflow:hidden;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.6)}.panel-img img{width:100%;height:100%;object-fit:cover}.theme-official .panel-img{border-radius:10px}.mini-kicker{font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--green);margin-bottom:8px}
.score-table{width:100%;border-collapse:separate;border-spacing:0 10px}.score-table th{font-size:13px;text-align:left;color:#718096;font-weight:800}.theme-data .score-table th{color:#98acc0}.score-table td{background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px}.score-table td:first-child{border-left:1px solid var(--line);border-radius:14px 0 0 14px}.score-table td:last-child{border-right:1px solid var(--line);border-radius:0 14px 14px 0}.score-table strong{font-size:20px}.badge{display:inline-block;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;background:var(--soft);color:var(--green)}.odds{font-weight:900;color:var(--green)}.red{color:var(--red)}
.home-articles{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.home-articles .article-item:first-child{grid-row:span 2;grid-template-columns:1fr}.home-articles .article-item:first-child img{height:280px}.home-articles .article-item{grid-template-columns:170px 1fr}.home-articles .article-item img{height:132px}
.article-list{display:grid;gap:18px}.article-item{display:grid;grid-template-columns:220px 1fr;gap:20px;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:var(--shadow-soft);align-items:center}.article-item img{height:150px;width:100%;object-fit:cover;border-radius:18px}.article-item h3{margin:0 0 8px;font-size:23px}.article-item h3 a:hover,.footer a:hover{color:var(--green)}.meta{font-size:13px;color:#748196;margin-bottom:10px}.theme-data .meta{color:#9bb0c4}.article-item p{color:var(--muted)}
.cta-band{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:30px;padding:38px;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:var(--shadow)}.cta-band h2{margin:0 0 8px}.cta-band p{color:#cddceb}.theme-official .cta-band{border-radius:10px}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:18px;margin-bottom:12px;padding:18px 20px}.faq summary{font-weight:900;cursor:pointer;color:var(--ink)}
.footer{background:var(--navy);color:#b6c7d8;padding:44px 0 26px}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:28px}.footer h3,.footer h4{color:#fff;margin-top:0}.footer a{display:block;margin:8px 0;color:#c8d5e2}.footer p{max-width:520px}
.crumb{font-size:14px;color:#6a7787;margin:22px 0}.page-hero{background:var(--navy);color:white;padding:68px 0 58px;position:relative;overflow:hidden}.page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,15,30,.88),rgba(5,15,30,.55)),url('../assets/images/banner-live-scores-fixtures.webp') center/cover no-repeat}.page-hero .container{position:relative}.page-hero h1{font-size:46px;margin:0 0 12px}.page-hero p{max-width:780px;color:#d4e2f0}.page-hero .crumb{color:#d8e6f3}.page-hero .crumb a{color:#fff}
.pagination{display:flex;gap:10px;margin-top:28px;justify-content:center}.pagination a,.pagination span{min-width:42px;height:42px;border-radius:12px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;background:var(--card);font-weight:900}.pagination .active{background:var(--navy);color:#fff}.pagination a:hover{background:var(--soft);color:var(--green)}
.article-page{max-width:960px;margin:auto;background:var(--card);border-radius:28px;padding:42px;box-shadow:var(--shadow);border:1px solid var(--line)}.article-page h1{font-size:42px;line-height:1.18;margin:0 0 14px;color:var(--ink)}.article-page h2{margin-top:32px;color:var(--ink)}.article-page p{font-size:17px;color:#344458}.theme-data .article-page p{color:#c7d6e4}.article-page .muted{font-size:18px;color:var(--muted)}.article-page ul{padding-left:22px;color:#344458;font-size:17px}.theme-data .article-page ul{color:#c7d6e4}.article-hero-img{border-radius:24px;margin:28px 0}.related{margin-top:34px;border-top:1px solid var(--line);padding-top:26px}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.related a{display:block;background:rgba(127,145,162,.08);border:1px solid var(--line);border-radius:18px;padding:16px;font-weight:900}.note{background:#fff8e6;border:1px solid #f0d99c;color:#6b5217;border-radius:18px;padding:18px}.theme-data .note{background:#221d0c;border-color:#473b1a;color:#f3d58c}
.install-steps{counter-reset:step;padding:0;margin:0}.install-steps li{list-style:none;margin:0 0 14px;padding:18px 18px 18px 58px;background:var(--card);border:1px solid var(--line);border-radius:18px;position:relative}.install-steps li:before{counter-increment:step;content:counter(step);position:absolute;left:18px;top:18px;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.content-block{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-soft)}.content-block h3{margin-top:0;color:var(--ink)}
/* Layout variants for later sites */
body.layout-data .hero .container{grid-template-columns:1fr;min-height:520px}body.layout-data .hero-visual{display:none}body.layout-data .official-strip{grid-template-columns:repeat(4,minmax(0,1fr));max-width:980px}
body.layout-compact .hero .container{min-height:430px}body.layout-compact .official-strip{display:none}.theme-official .hero h1{letter-spacing:-.02em}.theme-official .hero-visual img{border-radius:10px}.theme-data .hero-visual img{filter:saturate(.88) contrast(1.05)}
@media (max-width:1020px){.nav{gap:16px}.hero .container{grid-template-columns:1fr}.hero-visual{min-height:320px}.hero-visual img{height:330px}.market-card{left:18px}.official-strip,.home-articles{grid-template-columns:1fr 1fr}.home-articles .article-item:first-child{grid-row:auto}.section-title h2{max-width:100%}}
@media (max-width:860px){.topbar .container,.section-title,.cta-band{display:block}.nav{display:none}.brand img{width:170px}.hero .container{min-height:520px;padding:56px 0}.hero-visual{display:none}.official-strip,.home-articles,.grid-3,.grid-2,.split,.footer-grid,.related-grid{grid-template-columns:1fr}.home-articles .article-item,.article-item{grid-template-columns:1fr}.home-articles .article-item img,.article-item img{height:200px}.section{padding:54px 0}.article-page{padding:24px}.article-page h1{font-size:32px}.page-hero h1{font-size:36px}}
@media (max-width:640px){.topbar span:last-child{display:none}.official-strip div{padding:14px}.score-table{font-size:14px}.score-table th:nth-child(4),.score-table td:nth-child(4){display:none}.cta-band{padding:26px}.hero h1{font-size:38px}.hero p.lead{font-size:17px}}


/* Safe dynamic differentiation layer: visual-only variation, no cloaking, no hidden keyword blocks */
.dd-active .section{padding-top:var(--dd-section-gap);padding-bottom:var(--dd-section-gap)}
.dd-active .hero:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:var(--dd-noise-opacity);background-image:radial-gradient(circle at 20% 22%,rgba(255,255,255,.9) 0 1px,transparent 1.6px),radial-gradient(circle at 80% 68%,rgba(255,255,255,.8) 0 1px,transparent 1.7px);background-size:34px 34px,48px 48px;transform:rotate(var(--dd-hero-angle));}
.dd-active .hero .container,.dd-active .page-hero .container{position:relative;z-index:1}
.dd-active .card,.dd-active .article-item,.dd-active .content-block,.dd-active .faq details{border-radius:var(--dd-card-radius);transform:translateY(var(--dd-local-offset,0));transition:border-radius .25s ease,transform .25s ease,box-shadow .25s ease}
.dd-card-line .card,.dd-card-line .article-item,.dd-card-line .content-block{box-shadow:none;border-width:1px 1px 1px 4px}.dd-card-plain .card:before{display:none}.dd-card-soft .card,.dd-card-soft .article-item{box-shadow:0 14px 34px rgba(10,20,35,.08)}
.dd-rhythm-tight .grid,.dd-rhythm-tight .article-list,.dd-rhythm-tight .home-articles{gap:16px}.dd-rhythm-wide .grid,.dd-rhythm-wide .article-list,.dd-rhythm-wide .home-articles{gap:26px}.dd-rhythm-calm .section-title{margin-bottom:34px}
.dd-marker{position:absolute;pointer-events:none;display:block;border-radius:999px;opacity:.28;filter:blur(.1px)}.hero-content,.section-title{position:relative}.dd-marker-0{right:8%;top:8%;width:52px;height:3px;background:linear-gradient(90deg,var(--green),var(--red));transform:translateX(var(--dd-accent-shift))}.dd-marker-1{right:4%;bottom:4%;width:34px;height:34px;border:2px solid var(--green)}.dd-marker-2{left:48%;top:-8px;width:70px;height:2px;background:var(--red)}.dd-marker-3{right:18%;top:44%;width:10px;height:10px;background:var(--green)}
.motif-pitch .hero-visual:before{border-style:dashed}.motif-scoreline .official-strip div:nth-child(2n){background:rgba(255,255,255,.12)}.motif-tricolor .section-title h2:after{content:"";display:block;width:82px;height:4px;border-radius:999px;margin-top:14px;background:linear-gradient(90deg,var(--green) 0 38%,#fff 38% 62%,var(--red) 62%)}.motif-pressbox .topbar{letter-spacing:.02em}.motif-pressbox .card:before{width:0}.motif-pressbox .card{border-left:3px solid rgba(30,178,106,.44)}
.dd-signal-b .hero-visual img{border-radius:24px 42px 24px 42px}.dd-signal-c .hero-visual img{object-position:center center}.dd-signal-d .official-strip{grid-auto-flow:dense}.dd-signal-d .official-strip div:nth-child(1){order:2}.dd-signal-d .official-strip div:nth-child(2){order:1}.dd-signal-d .official-strip div:nth-child(3){order:4}.dd-signal-d .official-strip div:nth-child(4){order:3}
.score-table[data-dd-table="broadcast"] td:first-child{font-weight:900}.score-table[data-dd-table="editorial"] td{padding-top:18px;padding-bottom:18px}.score-table[data-dd-table="compact"] td{padding-top:12px;padding-bottom:12px}
@media (max-width:860px){.dd-active .section{padding-top:54px;padding-bottom:54px}.dd-marker{display:none}.dd-active .card,.dd-active .article-item,.dd-active .content-block,.dd-active .faq details{transform:none}.dd-signal-d .official-strip div{order:initial}.dd-signal-c .hero-visual img{object-position:center center}}


/* Final homepage hero optimization: actual layout fix, not a generated screenshot.
   The right-side mockup is scaled like the reference, fully visible, and aligned inside the rounded frame. */
body.theme-media.layout-editorial .hero .container{
  width:min(1480px, calc(100vw - 96px));
  grid-template-columns:minmax(0, 630px) minmax(560px, 790px);
  justify-content:space-between;
  gap:56px;
}
body.theme-media.layout-editorial .hero-content{
  max-width:630px;
}
body.theme-media.layout-editorial .hero-visual.hero-visual-clean{
  min-height:auto;
  align-self:center;
  justify-content:center;
  padding:22px;
  border-radius:42px;
}
body.theme-media.layout-editorial .hero-visual.hero-visual-clean:before{
  inset:0 !important;
  border-radius:42px;
  border-style:solid !important;
  border-color:rgba(255,255,255,.18) !important;
}
body.theme-media.layout-editorial .hero-visual.hero-visual-clean img{
  width:100%;
  max-width:760px !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
  border-radius:34px !important;
  box-shadow:0 36px 80px rgba(0,0,0,.38);
}
@media (max-width:1380px){
  body.theme-media.layout-editorial .hero .container{
    width:min(1260px, 92vw);
    grid-template-columns:minmax(0, 1fr) minmax(500px, 560px);
    gap:42px;
  }
  body.theme-media.layout-editorial .hero-visual.hero-visual-clean{padding:20px;}
  body.theme-media.layout-editorial .hero-visual.hero-visual-clean img{max-width:560px !important;}
}
@media (max-width:1020px){
  body.theme-media.layout-editorial .hero .container{
    width:min(1180px,92vw);
    grid-template-columns:1fr;
    gap:34px;
  }
  body.theme-media.layout-editorial .hero-visual.hero-visual-clean{min-height:360px;padding:18px;}
  body.theme-media.layout-editorial .hero-visual.hero-visual-clean img{max-width:720px !important;}
}


/* Homepage header restore + right hero image cleanup */
body.home-header-restored .topbar{display:none!important}
body.home-header-restored .header{position:relative;top:auto;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);box-shadow:none}
body.home-header-restored .navwrap{height:76px}
body.home-header-restored .hero{margin-top:0}
body.home-header-restored .hero-visual:before,
body.home-header-restored .hero-visual:after{display:none!important;content:none!important;border:0!important}
body.home-header-restored .hero-visual{padding:0;min-height:430px}
body.home-header-restored .hero-visual img{border:0!important;outline:0!important;box-shadow:0 34px 76px rgba(0,0,0,.34)!important;background:transparent!important}
body.home-header-restored .hero-visual-clean img{height:440px;object-fit:cover;object-position:center center}
@media (max-width:960px){body.home-header-restored .hero-visual-clean img{height:auto;max-height:none}}

/* Full-site cleanup pass: remove old top info bar and normalize article/list modules */
.topbar{display:none!important}
.header{top:0}

/* Homepage article module rebuilt as clean editorial cards, not a staggered masonry block. */
#news-preview .section-title p{max-width:680px}
.home-articles{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:stretch;
}
.home-articles .article-item,
.home-articles .article-item:first-child{
  display:flex!important;
  flex-direction:column;
  grid-template-columns:none!important;
  grid-row:auto!important;
  padding:0!important;
  overflow:hidden;
  min-height:100%;
  align-items:stretch!important;
  border-radius:24px!important;
}
.home-articles .article-item img,
.home-articles .article-item:first-child img{
  width:100%!important;
  height:168px!important;
  object-fit:cover!important;
  object-position:center top!important;
  border-radius:0!important;
}
.home-articles .article-item>div{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:18px 18px 20px;
}
.home-articles .article-item h3{
  font-size:19px;
  line-height:1.42;
  margin:0 0 8px;
}
.home-articles .article-item p{
  font-size:15px;
  line-height:1.72;
  margin-bottom:14px;
  flex:1;
}
.home-articles .article-item .badge{align-self:flex-start;margin-top:auto}

/* News column pages: official directory feel with stable thumbnail sizing. */
.article-list .article-item{
  grid-template-columns:220px minmax(0,1fr);
  gap:22px;
  padding:16px;
  border-radius:22px;
  align-items:center;
}
.article-list .article-item img{
  height:124px;
  object-fit:cover;
  object-position:center top;
  border-radius:16px;
  background:#07182b;
}
.article-list .article-item h3{font-size:22px;line-height:1.45;margin-bottom:8px}
.article-list .article-item p{margin-bottom:12px}

/* Article pages: prevent oversized hero images and keep readable line length. */
.article-page .article-hero-img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  object-position:center center;
  box-shadow:0 12px 34px rgba(9,28,50,.08);
}
.related-grid a{line-height:1.55}

@media (max-width:1180px){
  .home-articles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .home-articles .article-item img{height:190px!important;}
}
@media (max-width:860px){
  .home-articles{grid-template-columns:1fr!important;}
  .home-articles .article-item img{height:210px!important;}
  .article-list .article-item{grid-template-columns:1fr;}
  .article-list .article-item img{height:210px;}
}
@media (max-width:520px){
  .home-articles .article-item img,
  .article-list .article-item img{height:180px!important;}
}
