/* Web-first responsive layer. Loaded last so it is the final layout authority. */
:root{
  --brand-violet:#a98cff;
  --brand-violet-strong:#7c5ce5;
  --brand-lilac:#d8ccff;
  --brand-silver:#d8d5e2;
  --bg:#0a0910!important;
  --surface:#14121c!important;
  --surface2:#1b1825!important;
  --line:#312b40!important;
  --text:#f7f5fb!important;
  --muted:#a8a2b4!important;
  --team-primary:var(--brand-violet)!important;
  --team-secondary:var(--brand-violet-strong)!important;
  --team-tertiary:var(--brand-lilac)!important;
  --team-quaternary:var(--brand-silver)!important;
  --lime:var(--brand-violet)!important;
  --green:#8d73e8!important;
  --primary-ink:#100d18!important;
  --web-max:1280px;
  --web-gutter:clamp(14px,3vw,34px);
  --web-card:#15131d;
  --web-card-strong:#1b1825;
  --web-border:#332d43;
  --web-shadow:0 18px 55px #03020766;
}
html{background:#09080e}
body{
  min-width:320px;
  background:
    radial-gradient(900px 520px at 8% -10%,#8f70ec22,transparent 68%),
    radial-gradient(760px 480px at 96% 8%,#5d42b51b,transparent 72%),
    #09080e;
  background-attachment:fixed;
}
.app-shell{
  width:min(100%,var(--web-max));
  max-width:var(--web-max);
  padding:94px var(--web-gutter) 108px;
  background:transparent;
}
.topbar{
  width:min(calc(100% - 24px),calc(var(--web-max) - 24px));
  top:12px;
  min-height:66px;
  height:auto;
  padding:10px var(--web-gutter);
  border:1px solid var(--web-border);
  border-radius:18px;
  background:#121019e8;
  box-shadow:0 12px 45px #05030770,inset 0 1px #ffffff0a;
  backdrop-filter:blur(22px) saturate(1.2);
}
.pages{width:100%;max-width:1160px;margin-inline:auto}
.page{padding-block:18px 28px}
.home-live-stage,.panel,.match-card,.announcement,.fixture-strip article,.package-vip-card,.iptv-shop{
  border-color:var(--web-border)!important;
  box-shadow:0 14px 40px #0503072e;
}
.home-live-stage{overflow:hidden;min-height:350px;border-radius:24px;background:
  linear-gradient(118deg,#1b1726 0%,#17141f 56%,#211a32 100%)}
.home-live-stage:before{background:radial-gradient(circle,#a98cff2b 0 1px,transparent 1.5px)!important;background-size:18px 18px!important;opacity:.3!important}
.live-stage-copy>small,.live-stage-kicker,.section-title small,.page-head small{color:var(--brand-lilac)!important}
.live-stage-copy h1 em{color:var(--brand-violet)!important}
.live-stage-copy button{background:linear-gradient(135deg,var(--brand-violet),var(--brand-violet-strong))!important;color:#fff!important;border:1px solid #c7b6ff55!important;box-shadow:0 14px 34px #7c5ce542!important}
.live-stage-mark{background:linear-gradient(155deg,#211a32,#17131f)!important;border-left-color:#3a3150!important;color:var(--brand-lilac)!important}
.live-stage-copy{padding:clamp(28px,5vw,62px)}
.live-stage-copy h1{max-width:720px;font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-2.5px}
.home-quick-stats{gap:12px;margin-block:16px 28px}
.home-quick-stats button{min-height:86px;border:1px solid var(--web-border);border-radius:16px;background:linear-gradient(145deg,#181521,#13111a);transition:transform .18s ease,border-color .18s ease}
.home-quick-stats button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--team-primary) 45%,var(--line))}
.match-list,.match-list.all{gap:14px}
.match-card{min-height:118px;border-radius:17px;background:var(--web-card);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.match-card:hover{transform:translateY(-2px);background:var(--web-card-strong)}
.priority-matches .match-card{background:linear-gradient(145deg,#181520,#14121b)!important;border-color:#382f4b!important}
.play-action{background:linear-gradient(135deg,var(--brand-violet),var(--brand-violet-strong))!important;color:#fff!important}
.favorite-toggle.active{color:#c4afff!important;background:#a98cff18!important}
.fixture-strip{gap:12px;scroll-padding-inline:2px}
.fixture-strip article{border-radius:16px;background:var(--web-card)}
.panel{border:1px solid var(--web-border);background:var(--web-card);box-shadow:var(--web-shadow)}
.profile-tabs{position:sticky;top:92px;z-index:12;padding:6px;border:1px solid var(--web-border);border-radius:15px;background:#15121ee8;backdrop-filter:blur(18px)}
.profile-tabs button{border-radius:11px}
.profile-tabs button.active{background:#a98cff1c!important;color:var(--brand-lilac)!important}
.search{border-color:var(--web-border);background:var(--web-card)}
.bottom-nav{border-color:var(--web-border)!important;background:#13111be8!important;backdrop-filter:blur(20px) saturate(1.2)}
.bottom-nav button.active{color:var(--brand-lilac)!important;background:#a98cff14!important}
.bottom-nav button.active>.nav-icon{background:#a98cff20!important;color:var(--brand-lilac)!important;box-shadow:inset 0 0 0 1px #b9a2ff33!important}
.toast{border:1px solid #a98cff66;background:#211a31;color:#f7f5fb;box-shadow:0 18px 55px #0009}
.save,.vip-purchase>button,.iptv-plan-grid button,.gate button{background:linear-gradient(135deg,var(--brand-violet),var(--brand-violet-strong))!important;color:#fff!important}
.vip-card{background:linear-gradient(135deg,#211a30,#15121d)!important;border-color:#4a3a69!important}
.vip-card>svg,.vip-purchase-icon{color:var(--brand-lilac)!important}

/* Cohesive icon system */
.lucide{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button>.nav-icon{
  width:44px!important;
  height:40px!important;
  display:grid!important;
  place-items:center;
  border:1px solid #ffffff0a!important;
  border-radius:13px!important;
  background:#ffffff05!important;
  color:#aaa3b8!important;
  box-shadow:inset 0 1px #ffffff08!important;
}
.bottom-nav button>.nav-icon svg{width:20px!important;height:20px!important;stroke-width:1.85!important}
.bottom-nav button.active>.nav-icon{
  color:#fff!important;
  background:linear-gradient(145deg,#9273ed,#6f50ca)!important;
  border-color:#c9b7ff55!important;
  box-shadow:inset 0 1px #ffffff4a,0 8px 20px #6f50ca3d!important;
}
.play-action{
  width:34px!important;
  height:34px!important;
  border-radius:11px!important;
  border:1px solid #cbbaff40!important;
  box-shadow:inset 0 1px #ffffff3b,0 8px 18px #7657d33b!important;
}
.play-action svg{width:15px!important;height:15px!important;stroke-width:2!important;fill:#fff!important;transform:translateX(1px)}
.favorite-toggle{width:34px!important;height:34px!important;border:1px solid transparent!important;border-radius:11px!important}
.favorite-toggle:hover,.favorite-toggle.active{background:#a98cff13!important;border-color:#a98cff28!important}
.favorite-toggle svg{width:18px!important;height:18px!important;stroke-width:1.75!important}
.channel-time{align-content:center!important;justify-items:center!important;padding-right:12px!important;gap:7px!important}
.channel-glyph{width:40px;height:40px;display:grid!important;place-items:center;border:1px solid #a98cff38;border-radius:12px;background:linear-gradient(145deg,#282037,#1b1725);color:var(--brand-lilac)!important;box-shadow:inset 0 1px #ffffff12}
.channel-glyph svg{width:20px;height:20px;stroke-width:1.7}
.channel-time small{font-size:8px!important;letter-spacing:.7px!important;color:var(--brand-violet)!important;text-align:center}
.live-stage-mark>svg{width:52px!important;height:52px!important;padding:13px;border:1px solid #a98cff35;border-radius:16px;background:#a98cff12;color:var(--brand-lilac)!important;stroke-width:1.7!important}
.live-stage-copy button svg{width:18px!important;height:18px!important;fill:#fff;stroke-width:1.8}
.profile-tabs button>svg{width:30px!important;height:30px!important;padding:6px;border:1px solid #ffffff0a;border-radius:9px;background:#ffffff05;stroke-width:1.75}
.profile-tabs button.active>svg{border-color:#a98cff38;background:#a98cff16;color:var(--brand-lilac)}
.announcement>svg,.vip-card>svg,.admin-contact-icon>svg,.vip-purchase-icon>svg{stroke-width:1.7!important}

/* Team crests in home match surfaces */
.team-line{display:flex!important;align-items:center;gap:8px;min-width:0}
.team-line img{width:22px;height:22px;object-fit:contain;flex:0 0 22px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
.team-badge-fallback{display:inline-grid!important;place-items:center;width:22px;height:22px;flex:0 0 22px;border:1px solid rgba(198,181,255,.38);border-radius:7px;background:linear-gradient(145deg,#8b5cf6,#5b36b8);color:#fff!important;font-size:8px!important;font-style:normal;font-weight:900;letter-spacing:-.02em;box-shadow:0 4px 9px rgba(49,27,99,.35)}
.hero-team-badges{display:flex;align-items:center;gap:10px;margin:14px 0 4px}
.hero-team-badges span{display:grid;place-items:center;width:58px;height:58px;padding:8px;border:1px solid rgba(198,181,255,.22);border-radius:17px;background:rgba(255,255,255,.055);box-shadow:0 12px 25px rgba(0,0,0,.22)}
.hero-team-badges img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.38))}
.hero-team-badges b{display:grid;place-items:center;width:100%;height:100%;border-radius:11px;background:linear-gradient(145deg,#9b78ff,#5832b6);color:#fff;font-size:17px;letter-spacing:-.04em}
.fixture-team-line{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
.fixture-team-line>span{display:inline-flex;align-items:center;gap:6px}
.fixture-team-line img{width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
.fixture-team-line>em{color:var(--brand-lilac);font-style:normal}
@media(max-width:600px){
  .team-line img{width:20px;height:20px;flex-basis:20px}
  .hero-team-badges span{width:48px;height:48px;border-radius:14px;padding:7px}
}

/* Desktop broadcaster-logo cover; mobile keeps its calibrated dimensions. */
@media(min-width:900px){
  .video-wrap>.player-watermark:not(.vjs-stadium-watermark){
    top:2.5%!important;right:1.8%!important;left:auto!important;
    width:clamp(132px,14%,220px)!important;max-height:58px!important;
    object-fit:contain!important;object-position:top right!important;
  }
}

@media(min-width:900px){
  .app-shell{padding-left:132px}
  .bottom-nav{
    position:fixed!important;
    top:104px!important;
    bottom:auto!important;
    left:max(18px,calc(50% - 622px))!important;
    width:92px!important;
    padding:9px!important;
    border-radius:18px!important;
    box-shadow:0 18px 45px #05030752!important;
  }
  .bottom-nav button{min-height:72px!important}
  .match-list,.match-list.all{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:899px){
  .app-shell{padding-top:88px}
  .topbar{top:8px;width:calc(100% - 16px);border-radius:16px}
  .bottom-nav{
    width:calc(100% - 16px)!important;
    bottom:8px!important;
    border:1px solid var(--web-border)!important;
    border-radius:18px!important;
    padding-inline:10px!important;
    box-shadow:0 18px 50px #000b!important;
  }
  .profile-tabs{top:82px}
}

@media(max-width:680px){
  :root{--web-gutter:14px}
  body{background-attachment:scroll}
  .app-shell{padding:82px 14px 100px}
  .topbar{min-height:64px;padding:9px 14px}
  .brand small{display:none}
  .home-live-stage{min-height:300px;border-radius:20px}
  .live-stage-copy{padding:30px 22px}
  .live-stage-copy h1{font-size:clamp(34px,11vw,48px);letter-spacing:-1.6px}
  .home-quick-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-quick-stats button{min-height:78px;padding:12px 10px}
  .match-list,.match-list.all{grid-template-columns:1fr}
  .match-card{min-height:104px;padding:13px}
  .panel{padding:17px;border-radius:17px}
  .profile-tabs{overflow-x:auto;scrollbar-width:none;grid-template-columns:repeat(4,minmax(86px,1fr))}
  .profile-tabs::-webkit-scrollbar{display:none}
  .profile-tabs button{white-space:nowrap}
  .packages-page{padding-bottom:24px}
  .iptv-plan-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:430px){
  .topbar .avatar,.topbar .header-brand{width:40px;height:40px;flex-basis:40px}
  .brand b{font-size:15px}
  .home-quick-stats b{font-size:18px}
  .home-quick-stats small{font-size:10px}
  .match-open{grid-template-columns:52px minmax(0,1fr)}
  .match-actions{min-width:34px}
  .iptv-plan-grid{grid-template-columns:1fr}
  .profile-hero{grid-template-columns:54px minmax(0,1fr)}
  .profile-hero .big-avatar{width:54px;height:54px}
}

@media(prefers-reduced-motion:reduce){
  .home-quick-stats button,.match-card{transition:none}
}
