/* Hesgoal design system: deep slate dark UI, plugin red, football VS cards */
:root{
  --bg:#0D1420; --bg2:#0A0F18; --card:#131C2B; --card2:#182437; --line:#22314A;
  --ink:#EDF2F8; --muted:#93A5BC; --red:#EF4444; --red-d:#DC2626;
  --grad:linear-gradient(92deg,#DC2626,#EF4444 60%,#F87171);
  --radius:14px;
  --shadow:0 2px 10px rgba(0,0,0,.35),0 12px 30px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Inter','Segoe UI',Arial,sans-serif;line-height:1.55}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
.container.narrow{max-width:820px}
a{color:#F87171;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
h1,h2,h3{font-family:'Barlow','Inter',sans-serif;line-height:1.12;margin:0 0 10px;color:#fff}
.muted{color:var(--muted)} .small{font-size:13px}

/* Header */
.site-header{background:rgba(10,15,24,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.header-in{display:flex;align-items:center;gap:24px;padding:11px 16px}
.brand{display:flex;align-items:center;gap:10px}
.brand:hover{text-decoration:none}
.brand-icon{width:40px;height:40px;border-radius:10px;display:block}
.brand-name{font-family:'Barlow',sans-serif;font-size:27px;font-weight:800;letter-spacing:.01em;color:#fff}
.brand-name b{color:var(--red);font-weight:800}
.main-nav{display:flex;gap:2px;margin-left:auto;align-items:center;flex-wrap:wrap}
.main-nav a{color:#C9D6E6;font-weight:600;font-size:14.5px;padding:8px 11px;border-radius:8px;white-space:nowrap}
.main-nav a:hover{background:#1B2940;text-decoration:none;color:#fff}
.main-nav .nav-live{background:var(--red);color:#fff;display:inline-flex;align-items:center;gap:7px;margin-left:6px}
.main-nav .nav-live:hover{background:var(--red-d)}
.live-dot{width:7px;height:7px;border-radius:50%;background:#FF6B5E;animation:pulse 1.2s infinite;display:inline-block}
.badge-live .live-dot, .nav-live .live-dot{background:#fff}
@keyframes pulse{0%{opacity:1}50%{opacity:.3}100%{opacity:1}}

/* Hero */
.hero{background:radial-gradient(700px 320px at 85% -60px,rgba(239,68,68,.20),transparent 60%),linear-gradient(180deg,#101A2B,#0A0F18);border-bottom:1px solid var(--line);padding:40px 0 34px}
.hero-in{max-width:820px}
.hero-badge{display:inline-block;background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.5);color:#FCA5A5;font-size:13px;font-weight:700;padding:5px 12px;border-radius:999px;margin-bottom:15px}
.hero h1{font-size:46px;font-weight:800}
.hero h1 .hl{color:var(--red)}
.hero-sub{color:#B9C9DC;font-size:17px;max-width:640px;margin:0 0 18px}
.hero-search{display:flex;align-items:center;gap:10px;background:#0D1626;border:1px solid var(--line);border-radius:11px;padding:6px 6px 6px 16px;max-width:560px}
.hero-search input{flex:1;border:0;outline:0;font-size:16px;color:#fff;min-width:0;background:transparent}
.hero-search input::placeholder{color:#647D99}
.search-count{font-size:13px;font-weight:800;color:#F87171;white-space:nowrap;padding-right:8px}
.league-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.chip{background:#131E30;border:1px solid var(--line);color:#D7E3F2;font-weight:600;font-size:13.5px;padding:7px 13px;border-radius:999px;display:inline-flex;gap:7px;align-items:center}
.chip img{width:18px;height:18px;object-fit:contain}
.chip:hover{border-color:var(--red);text-decoration:none}
.chip .chip-live{color:#F87171;font-size:11px;font-weight:800}

/* Sections + filter tabs */
.sec{padding:26px 0 4px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.sec-head h2{font-size:27px;font-weight:700;margin:0;display:flex;align-items:center;gap:9px}
.sec-bar{width:5px;height:22px;background:var(--red);border-radius:3px;display:inline-block}
.sec-link{font-weight:700;font-size:14px;white-space:nowrap}
.page-hero{padding:28px 0 4px}
.page-hero h1{font-size:37px;font-weight:800}
.page-hero p{color:var(--muted);margin:0 0 12px}
.filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.filter-btn{background:#131E30;border:1px solid var(--line);color:#C9D6E6;font-weight:700;font-size:14px;padding:9px 16px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;font-family:'Inter',sans-serif}
.filter-btn:hover{border-color:#38506F}
.filter-btn.active{background:var(--red);border-color:var(--red);color:#fff}
.fcount{background:rgba(255,255,255,.14);font-size:12px;padding:1px 8px;border-radius:999px}
.filter-btn:not(.active) .fcount{background:#0D1626;color:#93A5BC}

/* Match cards (VS layout) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:15px}
.mcard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow)}
.mcard:hover{border-color:#33486A}
.mcard.is-finished{opacity:.78}
.mcard-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:var(--card2);border-bottom:1px solid var(--line)}
.mcard-league{display:flex;align-items:center;gap:8px;color:#E6EEf8;font-weight:700;font-size:13.5px;min-width:0}
.mcard-league img{width:20px;height:20px;object-fit:contain;flex:none}
.mcard-league span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-league:hover{text-decoration:none;color:#fff}
.badge{font-size:10.5px;font-weight:800;letter-spacing:.05em;padding:4px 9px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.badge-live{background:var(--red);color:#fff}
.badge-finished{background:#2A3850;color:#9FB2C9}
.badge-upcoming{background:#1D2C44;color:#A9BCD4}
.mcard-body{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:18px 14px 14px;color:var(--ink)}
.mcard-body:hover{text-decoration:none}
.team{flex:1;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;text-align:center}
.team-logo{width:64px;height:64px;background:var(--bg2);border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center}
.team-logo img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.45))}
.team-name{font-weight:700;font-size:14.5px;line-height:1.25}
.center-col{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:12px;min-width:86px}
.score{font-family:'Barlow',sans-serif;font-size:31px;font-weight:800;color:#fff;line-height:1}
.kick-time{font-family:'Barlow',sans-serif;font-size:26px;font-weight:800;color:#fff;line-height:1}
.center-sub{font-size:10.5px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.btn-watch-main{display:block;text-align:center;background:var(--grad);color:#fff;font-weight:800;font-size:14.5px;letter-spacing:.02em;padding:13px 12px;margin:0 14px 14px;border-radius:10px;box-shadow:0 8px 20px rgba(239,68,68,.25)}
.btn-watch-main:hover{text-decoration:none;filter:brightness(1.1)}
.btn-watch-alt{display:block;text-align:center;background:transparent;border:1px solid var(--line);color:#A9BCD4;font-weight:700;font-size:13px;letter-spacing:.05em;padding:12px 12px;margin:0 14px 14px;border-radius:10px}
.btn-watch-alt:hover{text-decoration:none;border-color:#38506F;color:#fff}

/* League + match pages */
.crumbs{padding:16px 0 0}
.crumbs ol{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:0;font-size:13.5px;color:var(--muted)}
.crumbs li+li:before{content:'›';margin-right:8px;color:#4A6076}
.crumbs a{color:#A9BCD4}
.scoreboard{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px 18px;margin-top:16px;box-shadow:var(--shadow)}
.sb-league{display:flex;align-items:center;justify-content:center;gap:9px;color:#C9D6E6;font-weight:700;flex-wrap:wrap;text-align:center}
.sb-league img{width:24px;height:24px;object-fit:contain}
.sb-teams{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:18px}
.sb-team{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;min-width:0}
.sb-team img{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.5))}
.sb-team h2, .sb-team h1{font-size:23px;font-weight:700;margin:0}
.sb-center{flex:none;text-align:center;padding-top:16px;min-width:120px}
.sb-score{font-family:'Barlow',sans-serif;font-size:46px;font-weight:800;color:#fff;line-height:1}
.sb-sub{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.1em;margin-top:5px}
.btn-big{display:inline-block;background:var(--grad);color:#fff;font-weight:800;font-size:16.5px;padding:14px 28px;border-radius:11px;margin-top:14px;box-shadow:0 10px 26px rgba(239,68,68,.3)}
.btn-big:hover{text-decoration:none;filter:brightness(1.1)}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:16px}
.info-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.info-card h3{font-size:19px;margin:0 0 10px}
.info-list{list-style:none;padding:0;margin:0}
.info-list li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #1B2940;font-size:14.5px}
.info-list li:last-child{border-bottom:0}
.info-list strong{color:var(--muted);font-weight:600}
.tips-list{margin:0;padding-left:18px;color:#C9D6E6;font-size:14.5px}
.tips-list li{margin:6px 0}

/* SEO content */
.seo-content{max-width:860px}
.seo-content h2{font-size:26px;font-weight:700;margin-top:20px}
.seo-content h3{font-size:20px;font-weight:700;margin-top:16px}
.seo-content p{color:#B9C9DC}
.check-list{list-style:none;padding:0;margin:14px 0}
.check-list li{position:relative;padding:6px 0 6px 30px;color:#D7E3F2}
.check-list li:before{content:'✓';position:absolute;left:2px;color:var(--red);font-weight:900}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:11px;padding:12px 16px;margin:0 0 10px}
.faq summary{cursor:pointer;font-weight:700;color:#fff}
.faq details p{margin:8px 0 0;color:#B9C9DC}
.empty p{background:var(--card);border:1px dashed #33486A;border-radius:12px;padding:20px;color:var(--muted)}
.static-h1{font-size:36px;font-weight:800}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.why-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.why-card .why-ic{font-size:24px}
.why-card h3{font-size:18px;margin:8px 0 6px}
.why-card p{color:var(--muted);font-size:14.5px;margin:0}

/* Watch page */
.watch-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0 12px;flex-wrap:wrap}
.back-link{color:#C9D6E6;font-weight:700;font-size:14px}
.player-card{background:#000;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.player-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#101A2B;padding:10px 14px;flex-wrap:nowrap}
.toolbar-left{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#fff;min-width:0}
.toolbar-left .srv-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.toolbar-right{display:flex;gap:6px;flex:none}
.tool-btn{background:#1B2940;border:1px solid var(--line);color:#E6EEF8;font-weight:700;font-size:12.5px;padding:7px 12px;border-radius:7px;cursor:pointer;white-space:nowrap}
.tool-btn:hover{border-color:#38506F}
.player-box{position:relative;aspect-ratio:16/9;background:#000}
.player-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.player-offline{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;color:#B9C9DC}
.servers-wrap{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin-top:14px}
.servers-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.servers-label{font-weight:800;color:#fff}
.servers-hint{color:var(--muted);font-size:13px}
.server-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.server-tabs::-webkit-scrollbar{display:none}
.server-btn{flex:none;display:inline-flex;align-items:center;gap:7px;background:#0D1626;border:1px solid var(--line);color:#D7E3F2;font-weight:700;font-size:13.5px;padding:9px 14px;border-radius:9px;cursor:pointer;white-space:nowrap;font-family:'Inter',sans-serif}
.server-btn:hover{border-color:#38506F}
.server-btn.active{background:var(--red);border-color:var(--red);color:#fff}
.srv-lang{background:rgba(255,255,255,.16);font-size:11px;font-weight:800;padding:1px 7px;border-radius:5px}
.server-btn:not(.active) .srv-lang{background:#1B2940;color:#A9BCD4}
.srv-type{font-size:10px;font-weight:800;letter-spacing:.05em;opacity:.75;text-transform:uppercase}

/* Footer */
.site-footer{background:var(--bg2);border-top:1px solid var(--line);margin-top:46px;padding:34px 0 10px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:26px}
.foot-brand p{color:#7E93AC;font-size:14.5px;max-width:380px}
.brand-name.light{color:#fff}
.foot-col{display:flex;flex-direction:column;gap:8px}
.foot-col strong{color:#fff;font-size:14px;margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
.foot-col a{color:#A9BCD4;font-size:14.5px}
.foot-col a:hover{color:#F87171}
.foot-note{border-top:1px solid #1B2940;margin-top:22px;padding-top:14px}
.foot-note p{color:#5F748E;font-size:12.5px;margin:4px 0}

@media (max-width:900px){
  .main-nav a:not(.nav-live){display:none}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .hero{padding:28px 0 24px}
  .hero h1{font-size:33px}
  .hero-sub{font-size:15.5px}
  .grid{grid-template-columns:1fr;gap:11px}
  .team-logo{width:56px;height:56px}
  .team-logo img{width:46px;height:46px}
  .sec-head h2{font-size:22px}
  .page-hero h1{font-size:29px}
  .sb-team img{width:60px;height:60px}
  .sb-team h2, .sb-team h1{font-size:17px}
  .sb-score{font-size:34px}
  .sb-center{min-width:92px}
  .brand-name{font-size:22px}
  .brand-icon{width:34px;height:34px}
  .toolbar-left .srv-name{max-width:110px}
  .tool-btn{padding:7px 9px;font-size:11.5px}
  .foot-grid{grid-template-columns:1fr}
}
