:root{
  --bg:#f5f7f8;
  --panel:#ffffff;
  --panel-2:#edf1f3;
  --muted:#d6e0e4;
  --border:var(--muted);
  --stroke:var(--muted);
  --text:#0c1b22;
  --text-dim:#37515c;
  --brand:#0ea5a0;
  --accent:#efb428;
  --shadow:0 10px 24px rgba(0,0,0,.08);
  --radius:18px;
  --gutter:18px;
  --maxw:1440px;
}

/* =========================================================
   DESIGNFØRING:
   Fotball skal markerast med grøne felt/tonar.
   Handball skal markerast med gule felt/tonar.
   Dette skal bevarast i vidare arbeid.
========================================================= */

/* =========================
   RESET / BASE
========================= */
*{
  box-sizing:border-box;
  min-width:0;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,"Noto Sans",sans-serif;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

button,
select,
input,
textarea{
  font:inherit;
}

.container{
  width:min(var(--maxw),100%);
  margin-inline:auto;
  padding-inline:clamp(10px,2.6vw,28px);
}

.container.fullbleed{
  width:100%;
  max-width:none;
}

/* =========================
   GENERELT
========================= */
.panel{
  background:var(--panel);
  border:1px solid var(--muted);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.panel .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-bottom:1px dashed var(--muted);
}

.panel .body{
  padding:14px;
}

.card{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--muted);
  background:var(--panel);
}

.card.pad{
  padding:16px;
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  background:var(--panel-2);
  color:var(--text-dim);
  border:1px solid var(--muted);
  font-weight:600;
  font-size:14px;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.chip:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}

.chip--brand{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  border-color:transparent;
  font-weight:800;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(6,78,59,.88);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
  font-size:12px;
  font-weight:700;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--muted);
  font-size:12px;
  background:#fff;
}

.pill.cat{
  background:linear-gradient(180deg,#cff8eb,#aef0df);
  color:#064e3b;
  border-color:transparent;
  font-weight:700;
}

.empty-note,
.stats-empty,
.toprated-empty,
.dagens-historie-empty{
  color:var(--text-dim);
  font-size:13px;
}

.text-dim-12{ font-size:12px; color:var(--text-dim); }
.text-dim-13{ font-size:13px; color:var(--text-dim); }
.text-dim-105{ font-size:10.5px; color:var(--text-dim); }

.section-title,
.section-title-sm,
.ratewide-title{
  margin:0;
}

.section-title-sm{
  font-size:18px;
}

.link-brand-sm{
  font-size:13px;
  font-weight:800;
  color:#0f766e;
}

/* =========================
   HEADER
========================= */
header.top{
  position:sticky;
  top:0;
  z-index:70;
  background:linear-gradient(180deg,rgba(245,247,248,1),rgba(245,247,248,.4)),var(--bg);
  border-bottom:1px solid var(--muted);
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 0;
}

.logo{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:800;
}

.logo img{
  width:36px;
  height:36px;
  border-radius:8px;
}

.brand{
  font-size:20px;
}

/* =========================
   GLOBALT SØK
========================= */
.global-search-panel{
  margin-top:10px;
 margin-bottom: 10px;
}

.global-search-form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.global-search-input{
  flex:1 1 auto;
  min-width:220px;
  width:100%;
  padding:10px 14px;
  border:1px solid var(--muted);
  border-radius:999px;
  background:var(--panel);
  font-size:14px;
  line-height:1.2;
}

.global-search-btn{
  border:0;
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  font-weight:800;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
}

.global-suggest{
  position:relative;
  margin-top:10px;
}

.global-suggest-box{
  position:absolute;
  left:0;
  right:0;
  background:var(--panel);
  border:1px solid var(--muted);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  z-index:99;
}

.global-suggest-group{
  padding:10px 12px;
  border-top:1px dashed var(--muted);
}

.global-suggest-group:first-child{
  border-top:0;
}

.global-suggest-title{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-dim);
  font-weight:800;
  margin-bottom:6px;
}

.global-suggest-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
}

.global-suggest-item:hover{
  background:#f3f7f8;
}

.global-suggest-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  border:1px solid rgba(0,0,0,.06);
  flex:none;
}

.global-suggest-pill{
  font-size:11px;
  font-weight:800;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--muted);
  background:var(--panel-2);
  color:var(--text-dim);
}

/* =========================
   HERO + DAGENS FAKTA
========================= */
.hero-grid{
  display:flex;
  gap:var(--gutter);
  align-items:stretch;
}

.hero-grid > .feature{
  flex:2 1 0;
  min-width:0;
}

.hero-grid > .nerd-panel{
  flex:1 1 0;
  min-width:340px;
  align-self:stretch;
}

.feature{
  position:relative;
  min-height:420px;
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(160deg,#18353f,#0f2730);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:var(--hero-pos, 50% 62%);
  box-shadow:var(--shadow);
  transition:box-shadow .22s ease;
}

.feature::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.72));
}

.feature::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.08) 38%,
      rgba(255,255,255,.03) 52%,
      rgba(255,255,255,0) 70%);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
  z-index:0;
}

.feature:hover{
  box-shadow:0 18px 34px rgba(0,0,0,.15);
}

.feature:hover::after{
  opacity:1;
}

.feature:focus-within{
  box-shadow:0 18px 34px rgba(0,0,0,.15);
}

.feature .badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
}

.feature .overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:22px;
  z-index:1;
}

.feature h1{
  margin:.3rem 0 .5rem;
  font-size:clamp(22px,3.2vw,36px);
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.55);
  transition:text-shadow .22s ease, letter-spacing .22s ease;
}

.feature:hover h1{
  text-shadow:0 6px 18px rgba(0,0,0,.65);
  letter-spacing:.01em;
}

.hero-summary-light{
  color:#e5eef0;
  max-width:62ch;
  margin:0 0 16px;
  transition:color .22s ease;
}

.feature:hover .hero-summary-light{
  color:#f2f7f8;
}

.nerd-panel--fakta .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.nerd-panel--fakta .head h2{
  margin:0;
}

.nerd-panel-body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dagens-idag-btn{
  white-space:nowrap;
}

/* =========================
   DAGENS HISTORIE
========================= */
.dagens-historie-boks{
  border:1px solid #8ea0b4;
  border-radius:16px;
  background:#eef2f6;
  padding:14px;
}

.dagens-historie-header{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.dagens-historie-title{
  font-weight:900;
  color:#0f172a;
}

.dagens-historie-dato{
  margin-left:auto;
  font-size:13px;
  color:#334155;
}

.dagens-historie-seksjon + .dagens-historie-seksjon{
  margin-top:12px;
}

.dagens-historie-seksjon-title{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:6px;
}

.dagens-historie-seksjon ul{
  margin:0;
  padding-left:18px;
}

.dagens-historie-seksjon li{
  margin:4px 0;
  color:#0f172a;
}

.dagens-historie-beskrivelse{
  color:#475569;
  font-size:12px;
}

.dagens-les-meir a{
  color:#0f766e;
  font-weight:700;
  text-decoration:none;
}

.dagens-les-meir a:hover{
  text-decoration:underline;
}

.dagens-historie-empty{
  margin:0;
  color:#475569;
}

/* =========================
   FAKTA-TAL
========================= */
.fakta-tall-blokk{
  border:1px solid #d7dee8;
  border-radius:14px;
  background:#f8fafc;
  padding:10px 12px;
}

.fakta-tall-head{
  margin-bottom:8px;
}

.fakta-tall-kicker{
  display:block;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0f766e;
  margin-bottom:2px;
}

.fakta-tall-sub{
  display:block;
  font-size:12px;
  color:#64748b;
  line-height:1.25;
}

.fakta-tall-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
}

.fakta-tall-card{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border:1px solid #d8e0e8;
  border-radius:12px;
  background:#fff;
  min-width:0;
}

.fakta-tall-ico{
  width:26px;
  height:26px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;
  font-size:13px;
  flex:none;
}

.fakta-tall-meta{
  min-width:0;
}

.fakta-tall-v{
  font-size:15px;
  line-height:1;
  font-weight:900;
  color:#0f172a;
}

.fakta-tall-l{
  font-size:11px;
  color:#475569;
  line-height:1.15;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================
   SPORTNAV
========================= */
.sportnav-wrap{
  margin-top:16px;
  margin-bottom:18px;
}

.sportnav-panel{
  padding:10px;
}

.sportnav-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}

.sportcard{
  border:1px solid #cdd6df;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 4px rgba(15,23,42,.04);
}

.sportcard-top{
  position:relative;
  padding:12px 14px 10px 16px;
  border-bottom:1px solid rgba(15,23,42,.06);
}

.sportcard-top::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
}

.sportcard--football .sportcard-top{
  background:linear-gradient(180deg,#f5faf3 0%,#eef6eb 100%);
}

.sportcard--football .sportcard-top::before{
  background:#5c944d;
}

.sportcard--handball .sportcard-top{
  background:linear-gradient(180deg,#fff7eb 0%,#fdf0de 100%);
}

.sportcard--handball .sportcard-top::before{
  background:#d2952d;
}

.sportcard-kicker{
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-weight:800;
  color:#64748b;
  margin-bottom:5px;
}

.sportcard-title{
  margin:0;
  font-size:19px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-0.01em;
  color:#0f172a;
}

.sportcard-title a{
  color:inherit;
  text-decoration:none;
}

.sportcard-title a:hover{
  text-decoration:underline;
}

.sportcard-desc{
  margin:5px 0 0 0;
  font-size:12px;
  line-height:1.25;
  color:#475569;
}

.sportcard-body{
  padding:12px 12px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sportcard-row{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.sportcard-label{
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:#475569;
}

.sportcard-select{
  width:100%;
  min-height:38px;
  height:38px;
  border:1px solid #b7c3d0;
  border-radius:11px;
  background:#fff;
  color:#0f172a;
  font-size:14px;
  font-weight:600;
  padding:0 10px;
  outline:none;
}

.sportcard-select:focus{
  border-color:#0f766e;
  box-shadow:0 0 0 3px rgba(15,118,110,.10);
}

.sportcard--football .sportcard-select{
  background:#fbfef9;
}

.sportcard--handball .sportcard-select{
  background:#fffdfa;
}


/* =========================
   SESONGPANEL
========================= */
.season-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-bottom:6px;
}

.kpi-tile{
  border-radius:12px;
  padding:8px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:64px;
  border:1px solid var(--muted);
  background:var(--panel-2);
  text-align:center;
}

.kpi-label{
  font-size:11px;
  margin-bottom:2px;
  font-weight:600;
}

.kpi-value{
  font-size:20px;
  font-weight:800;
  line-height:1;
}

.kpi-win{
  background:#065f46;
  border-color:#064e3b;
  color:#ecfdf5;
}

.kpi-win .kpi-label{ color:#bbf7d0; }

.kpi-draw{
  background:#facc15;
  border-color:#eab308;
  color:#111827;
}

.kpi-draw .kpi-label{ color:#854d0e; }

.kpi-loss{
  background:#b91c1c;
  border-color:#7f1d1d;
  color:#fef2f2;
}

.kpi-loss .kpi-label{ color:#fee2e2; }

.kpi-goals{
  background:#e5ecf2;
  border-color:#d1d9e3;
  color:#0f172a;
}

.kpi-goals .kpi-label{ color:#4b5563; }

.season-meta{
  font-size:12px;
  margin-top:6px;
  margin-bottom:4px;
  color:var(--text-dim);
}

.season-bar-bg{
  width:100%;
  height:6px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
  margin-top:2px;
}

.season-bar-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:linear-gradient(90deg,#16a34a,#22c55e);
  transition:width .25s ease-out, background .2s ease-out;
}

.season-bar-fill.red{
  background:linear-gradient(90deg,#b91c1c,#ef4444);
}

.season-bar-fill.yellow{
  background:linear-gradient(90deg,#eab308,#facc15);
}

.season-bar-fill.green{
  background:linear-gradient(90deg,#16a34a,#22c55e);
}

.season-extra{
  font-size:12px;
  margin-top:6px;
  margin-bottom:4px;
  color:var(--text-dim);
  border-top:1px dashed var(--muted);
  padding-top:6px;
}

.season-line{
  margin-bottom:2px;
}

.season-line strong{
  font-weight:600;
}

.season-link{
  text-decoration:none;
  color:inherit;
  border-bottom:1px dashed #cbd5e1;
}

.season-link-disabled{
  color:#9ca3af;
  border-bottom-color:transparent;
  cursor:default;
}

.season-players{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}

.season-player-pill{
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--muted);
  background:#ffffff;
  font-size:11px;
  max-width:100%;
}

.season-player-pill.noplayer{
  cursor:default;
}

.season-player-pill:hover{
  transform:scale(1.04) translateY(-1px);
  box-shadow:0 6px 16px rgba(15,23,42,.18);
  border-color:var(--brand);
  background:#f9fbfc;
}

.season-player-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}

.season-player-info{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.season-player-role{
  font-weight:600;
  color:#4b5563;
  font-size:10px;
}

.season-player-name{
  font-weight:600;
}

.season-player-stat{
  font-size:10px;
  color:#6b7280;
}

.season-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:9px 40px 9px 14px;
  border-radius:999px;
  border:0;
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23052b2a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px 18px;
}

.season-select:focus{
  outline:2px solid rgba(14,165,160,.35);
  outline-offset:2px;
}

.season-select option{
  background:#fff;
  color:#0c1b22;
  font-weight:700;
}

/* =========================
   NYHEITER
========================= */
.news-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:14px;
}

.news-card{
  grid-column:span 12;
  display:flex;
  flex-direction:column;
  background:var(--panel);
  border:1px solid #bfc9d6;
  border-radius:16px;
  overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.news-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  border-color:#9fb1c6;
}

.news-card .thumb{
  width:100%;
  height:138px;
  object-fit:cover;
  background:#d9dee5;
}

.news-card .meta{
  padding:10px 12px 11px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.news-card-meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}

.news-card-title-top{
  margin:1px 0 0;
  font-size:14px;
  line-height:1.28;
  font-weight:800;
}

.news-card-title-top a{
  color:#0f172a;
}

.news-summary-top{
  margin:1px 0 0;
  font-size:12px;
  line-height:1.5;
  color:#425866;
}

@media(min-width:720px){
  .news-card{ grid-column:span 6; }
}

@media(min-width:1024px){
  .news-card{ grid-column:span 4; }
}

@media(min-width:1300px){
  .news-card{ grid-column:span 3; }
}

/* =========================
   STJERNEPROFILAR
========================= */
.star-panel .head{
  align-items:center;
}

.star-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.star-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border:1px solid var(--muted);
  border-radius:16px;
  background:#fff;
  padding:10px;
  overflow:hidden;
  transition:.18s ease;
}

.star-card:hover{
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

.star-img{
  width:86px;
  min-width:86px;
  border-radius:14px;
  background:#eef2f7;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(0,0,0,.06);
}

.star-meta{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.star-date{
  font-size:12px;
  color:var(--text-dim);
  margin-bottom:4px;
}

.star-title{
  font-weight:900;
  font-size:13.5px;
  line-height:1.2;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.star-more{
  margin-top:auto;
  font-size:12px;
  font-weight:800;
  color:var(--brand);
}

/* =========================
   TILFELDIG KAMP (gamal boks)
========================= */
.random-panel{
  width:100%;
  margin-inline:0;
}

.random-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.random-mainline{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:16px;
  align-items:center;
}

.random-team{
  display:flex;
  align-items:center;
  gap:10px;
}

.random-team:last-child{
  justify-content:flex-end;
}

.random-team-name,
.random-team-name-right{
  font-weight:700;
  font-size:14px;
}

.random-team-name-right{
  text-align:right;
}

.random-logo{
  width:46px;
  height:46px;
  border-radius:999px;
  background-color:#e5e7eb;
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  flex:none;
}

.random-scorebox{
  text-align:center;
  min-width:80px;
}

.random-score{
  font-size:22px;
  font-weight:800;
}

.random-date{
  font-size:11px;
  color:var(--text-dim);
}

.random-submeta{
  margin:8px 0 0;
  font-size:12px;
  color:var(--text-dim);
}

.random-extra{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:14px;
  margin-top:14px;
  align-items:start;
  font-size:12px;
  color:#475569;
}

.random-thumb{
  flex:0 0 140px;
  max-width:140px;
  aspect-ratio:4/3;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--muted);
  background:#e5e7eb;
}

.random-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.random-text{
  flex:1 1 160px;
}

.random-label{
  font-weight:700;
  margin-bottom:4px;
  color:#0f172a;
}

.random-referat{
  margin-top:6px;
  line-height:1.45;
}

.random-meta-line{
  font-size:11px;
  color:#111827;
  margin-top:8px;
}

/* =========================
   RANGER KAMPAR (gamle kort)
========================= */
.rate-game-panel .body{
  padding-top:14px;
}

.ratewide-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  align-items:stretch;
}

.ratewide-left{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.rate-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

.rate-card-top{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}

.rate-team{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.rate-team.right{
  justify-content:flex-end;
  text-align:right;
}

.rate-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--border);
  padding:4px;
}

.rate-name{
  font-weight:700;
  font-size:15px;
  white-space:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.rate-score{
  text-align:center;
}

.rate-result{
  font-weight:900;
  font-size:18px;
  letter-spacing:.3px;
}

.rate-date{
  font-size:12px;
  color:var(--text-dim);
  margin-top:2px;
}

.rate-card-mid{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}

.front-rating-summary{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.front-stars{
  position:relative;
  display:inline-block;
  line-height:1;
}

.front-stars-bg{
  color:#cfd6dc;
}

.front-stars-fg{
  position:absolute;
  left:0;
  top:0;
  white-space:nowrap;
  overflow:hidden;
  color:#f2b01e;
}

.front-rating-meta{
  font-size:12px;
  color:var(--text-dim);
}

.rate-excerpt{
  width:100%;
  margin-top:10px;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(15,23,42,.03);
  color:var(--text-dim);
  font-size:11.5px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.rate-goals{
  margin-top:10px;
  font-size:.86rem;
  color:#2a3a44;
  line-height:1.25;
}

.rate-read-btn{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  padding:8px 11px;
  border-radius:999px;
  border:1px solid rgba(14,165,160,.45);
  background:linear-gradient(135deg,rgba(14,165,160,.18),rgba(68,215,194,.10));
  color:#063e39;
  font-weight:900;
  font-size:11.5px;
  letter-spacing:.2px;
  white-space:nowrap;
  max-width:100%;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.rate-read-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,23,42,.10);
  border-color:rgba(14,165,160,.65);
  background:linear-gradient(135deg,rgba(14,165,160,.24),rgba(68,215,194,.14));
}

.toprated{
  border:1px solid var(--muted);
  border-radius:16px;
  padding:12px;
  background:var(--panel);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.toprated h3{
  margin:0 0 10px 0;
  font-size:14px;
  font-weight:950;
}

.toprated ol{
  margin:0;
  padding-left:18px;
}

.toprated li{
  margin:8px 0;
  font-size:13px;
}

.toprated a{
  font-weight:900;
  color:var(--text);
}

.toprated .sub{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--text-dim);
  font-weight:650;
}

/* =========================
   SNARVEGAR
========================= */
.front-shortcut-grid{
  margin-bottom:12px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.front-shortcut{
  position:relative;
  height:86px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--muted);
  background:#0b1220;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  text-decoration:none;
  color:#fff;
  display:block;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  isolation:isolate;
}

.front-shortcut:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(15,23,42,.18);
  border-color:rgba(14,165,160,.45);
}

.front-shortcut:focus-visible{
  outline:2px solid rgba(14,165,160,.35);
  outline-offset:3px;
}

.front-shortcut-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.02);
  transform:scale(1.02);
}

.front-shortcut::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg, rgba(2,6,23,.22), rgba(2,6,23,0));
}

.front-shortcut::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:38%;
  background:linear-gradient(to top, rgba(0,0,0,.40), rgba(0,0,0,0));
  z-index:2;
}

.front-shortcut-meta{
  position:absolute;
  z-index:3;
  left:10px;
  right:auto;
  bottom:10px;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  width:fit-content;
  max-width:calc(100% - 20px);
}

.front-shortcut-title{
  font-weight:950;
  font-size:13px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.65);
}

.front-shortcut-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.20);
  color:#fff;
}

/* =========================
   QUICK ACTIONS
========================= */
.quick-actions{
  margin-top:var(--gutter);
  grid-column:1/-1;
  clear:both;
}

.qa-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.qa-item{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:9px 11px;
  border-radius:14px;
  border:1px solid var(--muted);
  background:var(--panel-2);
  overflow:hidden;
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.qa-item span.qa-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--text-dim);
  font-weight:600;
}

.qa-item span.qa-title{
  font-size:15px;
  font-weight:700;
  line-height:1.15;
}

.qa-item span.qa-desc{
  font-size:12px;
  color:var(--text-dim);
}

.qa-icon{
  position:absolute;
  right:10px;
  bottom:8px;
  font-size:18px;
  opacity:.22;
}

a.qa-item:hover{
  border-color:var(--brand);
  background:rgba(31,122,58,.10);
  box-shadow:0 6px 18px rgba(15,23,42,.12);
  transform:translateY(-1px);
}

.qa-item--multi{
  position:relative;
  display:block;
}

.qa-subgrid{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}

.qa-sub{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--muted);
  background:rgba(15,23,42,.06);
  color:inherit;
  font-size:.88em;
  line-height:1;
  white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}

.qa-sub:hover,
.qa-sub:focus-visible{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  outline:none;
}

/* =========================
   VIDEO
========================= */
.video-panel .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.video-head-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.video-shelf{
  position:relative;
}

.vs-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:4px 40px;
  scroll-snap-type:x mandatory;
  scroll-padding-left:40px;
  -webkit-overflow-scrolling:touch;
}

.vs-track::-webkit-scrollbar{
  height:10px;
}

.vs-track::-webkit-scrollbar-thumb{
  background:rgba(15,23,32,.18);
  border-radius:999px;
}

.vs-track::-webkit-scrollbar-track{
  background:transparent;
}

.vs-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.9);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:5;
}

.vs-btn.prev{ left:6px; }
.vs-btn.next{ right:6px; }

.vcard{
  scroll-snap-align:start;
  min-width:320px;
  max-width:360px;
  flex:0 0 auto;
  border:1px solid rgba(0,0,0,.08);
  background:var(--panel);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.vthumb{
  position:relative;
  aspect-ratio:16/9;
  background:#0f1720 center/cover no-repeat;
}

.vthumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.42));
}

.vplay{
  position:absolute;
  left:12px;
  bottom:12px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.38);
  display:grid;
  place-items:center;
  z-index:2;
  backdrop-filter:blur(6px);
}

.vplay svg{
  width:18px;
  height:18px;
  fill:#fff;
}

.vmeta{
  padding:12px 12px 14px 12px;
}

.vtitle{
  font-weight:900;
  letter-spacing:.1px;
  line-height:1.2;
}

.vsub{
  margin-top:6px;
  font-size:12.5px;
  color:var(--text-dim);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.vpill{
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:var(--panel-2);
}

/* =========================
   TOPPLISTER
========================= */
.stats-four-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.stats-four-grid.stats-two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.stats-box{
  border-radius:14px;
  border:1px solid var(--muted);
  background:var(--panel-2);
  padding:8px 8px 6px;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.stats-box-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  font-size:12px;
}

.stats-box-title{
  font-weight:700;
}

.stats-box-link{
  font-size:11px;
  color:#0f766e;
  text-decoration:underline;
}

.stats-list-wrap{
  flex:1 1 auto;
  max-height:260px;
  overflow-y:auto;
  padding-right:2px;
}

.leader-panel .stats-list-wrap{
  max-height:420px;
}

.stats-box--tabs .mini-tabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:8px 0 10px;
}

.stats-box--tabs .mini-tab{
  border:1px solid var(--muted);
  background:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12.5px;
  line-height:1;
  cursor:pointer;
}

.stats-box--tabs .mini-tab[aria-selected="true"]{
  border-color:rgba(0,0,0,.15);
  box-shadow:0 6px 14px rgba(0,0,0,.06);
}

.stats-box--tabs .mini-pane{
  display:none;
}

.stats-box--tabs .mini-pane.is-active{
  display:block;
}

.stats-list{
  list-style:none;
  margin:0;
  padding:0;
}

.stats-list li{
  display:flex;
  align-items:center;
  gap:6px;
  padding:3px 2px;
  border-bottom:1px dashed rgba(0,0,0,.04);
  font-size:12px;
}

.stats-rank{
  width:16px;
  text-align:right;
  font-weight:700;
  font-size:11px;
  color:rgba(0,0,0,.4);
}

.stats-avatar{
  width:24px;
  height:24px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}

.stats-name{
  flex:1 1 auto;
}

.stats-badge{
  background:#e5f0ff;
  border:1px solid #bfdbfe;
  padding:1px 7px 2px;
  border-radius:999px;
  font-weight:700;
  font-size:11px;
  white-space:nowrap;
}

.stats-badge-goals{
  background:#fff3d9;
  border-color:#f1d49b;
}

/* =========================
   TILFELDIGE PROFILAR
========================= */
.profile-sections{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.profile-sport-group{
  border:1px solid #d5dde7;
  border-radius:18px;
  background:#f8fafc;
  padding:12px;
}

.profile-sport-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px 0;
  padding:10px 12px;
  border-radius:14px;
}

.profile-sport-group.football-group .profile-sport-head{
  background:linear-gradient(180deg,#eef8ea 0%,#e7f3e2 100%);
  border:1px solid #bfd7b5;
}

.profile-sport-group.handball-group .profile-sport-head{
  background:linear-gradient(180deg,#fdf5e7 0%,#faefd9 100%);
  border:1px solid #e4c98e;
}

.profile-sport-title{
  margin:0;
  font-size:16px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
}

.profile-compact-wrap{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.profile-compact-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  min-height:82px;
  padding:12px 14px 12px 18px;
  border-radius:22px;
  color:inherit;
  background:#fff;
  border:1px solid #c7d2de;
  box-shadow:0 2px 8px rgba(15,23,42,.05);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.profile-compact-card:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(15,23,42,.09);
}

.profile-compact-card::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:10px;
  border-radius:999px;
}

.profile-compact-avatar{
  width:56px;
  height:56px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  border:2px solid #fff;
  box-shadow:0 1px 3px rgba(0,0,0,.12);
  flex:none;
}

.profile-compact-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.profile-compact-pill{
  font-size:10px;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#334155;
}

.profile-compact-name{
  font-size:15px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.profile-compact-sub{
  font-size:12px;
  line-height:1.25;
  color:#475569;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.profile-compact-card.fb-men,
.profile-compact-card.fb-women{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbf5 100%);
  border-color:#bfd4b7;
}

.profile-compact-card.fb-men::before{
  background:#5f944f;
}

.profile-compact-card.fb-women::before{
  background:#8db44d;
}

.profile-compact-card.hb-men,
.profile-compact-card.hb-women{
  background:linear-gradient(180deg,#ffffff 0%,#fffaf0 100%);
  border-color:#e1c58d;
}

.profile-compact-card.hb-men::before{
  background:#bf8d2f;
}

.profile-compact-card.hb-women::before{
  background:#e0b24a;
}

/* =========================
   NYHEITER + BILETE
========================= */
.news-images-split{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:var(--gutter);
  align-items:stretch;
}

.news-images-left{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.subpanel{
  border:1px solid var(--muted);
  background:#fff;
  border-radius:16px;
  overflow:hidden;
}

.subpanel .subhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px dashed var(--muted);
}

.subpanel .subhead h3{
  margin:0;
  font-size:14px;
  font-weight:900;
}

.subpanel .subbody{
  padding:10px 12px;
}

.quickstats-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.quickstats-card{
  border:1px solid var(--muted);
  border-radius:16px;
  padding:10px 12px;
  background:#fff;
}

.quickstats-card .qs-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
}

.quickstats-card .qs-head .qs-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.quickstats-card .qs-kpi{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.quickstats-card .qs-pill{
  border:1px solid rgba(0,0,0,.08);
  background:#f8fafc;
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.quickstats-card .qs-line{
  margin-top:6px;
  font-size:13px;
  color:var(--text-dim);
}

.quickstats-card .qs-line strong{
  color:var(--text);
}

.quickstats-card.qs-fh{
  background:linear-gradient(135deg, rgba(17,140,92,.12), rgba(255,255,255,0) 70%);
}

.quickstats-card.qs-fd{
  background:linear-gradient(135deg, rgba(17,140,92,.10), rgba(255,255,255,0) 70%);
}

.quickstats-card.qs-hh{
  background:linear-gradient(135deg, rgba(176,131,39,.16), rgba(255,255,255,0) 70%);
}

.quickstats-card.qs-hd{
  background:linear-gradient(135deg, rgba(255,203,76,.20), rgba(255,255,255,0) 70%);
}

.mini-news-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mini-news-list.is-scroll{
  max-height:min(380px, 42vh);
  overflow:auto;
  padding-right:6px;
}

.mini-news-item{
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  background:rgba(15,23,42,.03);
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}

.mini-news-item:hover{
  background:rgba(17,140,92,.10);
  border-color:rgba(17,140,92,.35);
  transform:translateY(-1px);
}

.mini-news-item:hover .mini-news-meta{
  color:rgba(17,140,92,.95);
}

.mini-news-link{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
  padding:8px 10px;
  color:inherit;
}

.mini-news-title{
  font-weight:900;
  font-size:13px;
  line-height:1.2;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.mini-news-meta{
  font-size:11px;
  color:var(--text-dim);
  white-space:nowrap;
  margin-left:10px;
  flex:none;
}

.image-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.image-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.03);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:280px;
}

.image-card-thumb{
  width:100%;
  aspect-ratio:4/3;
  background:#dfe7ea center/cover no-repeat;
  transition:transform .25s ease-out;
}

.image-card:hover .image-card-thumb{
  transform:scale(1.06);
}

.image-card-body{
  padding:10px 12px 12px 12px;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.image-card-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:10.5px;
  margin-bottom:2px;
}

.image-card-cat{
  background:#ecf8f5;
  color:#0f766e;
  padding:2px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:11px;
}

.image-card-title{
  font-weight:700;
  font-size:13.5px;
}

.image-card-caption{
  font-size:11.5px;
  color:#5f6c72;
  line-height:1.3;
  margin-top:4px;
}

/* =========================
   KAMPREFERAT & RATING
========================= */
.ratewide-section{
  grid-column:1 / -1;
  width:100%;
  max-width:none;
}

.ratewide-panel{
  width:100%;
}

.ratewide-section .body{
  padding-top:18px;
}

.ratewide-grid--three{
  display:grid;
  grid-template-columns:minmax(240px,.76fr) minmax(0,1.52fr) minmax(250px,.82fr);
  gap:16px;
  align-items:start;
}

.ratewide-info-card,
.randommatch-card,
.toprated-box{
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--panel);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* VENSTRE KOLONNE */
.ratewide-info-card{
  padding:14px 16px 12px;
}

.ratewide-info-kicker{
  display:block;
  margin-bottom:6px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-dim);
}

.ratewide-info-title{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.05;
}

.ratewide-info-lead{
  margin:0 0 10px;
  color:var(--text-dim);
  font-size:13px;
  line-height:1.45;
  max-width:29ch;
}

.ratewide-info-total{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-bottom:10px;
  padding:10px 14px;
  border-radius:16px;
  background:var(--panel-2);
  border:1px solid var(--border);
}

.ratewide-info-total-number{
  font-size:24px;
  line-height:1;
  font-weight:900;
}

.ratewide-info-total-label{
  font-size:12px;
  color:var(--text-dim);
}

.ratewide-sport-list{
  display:grid;
  gap:8px;
}

.ratewide-sport-item{
  display:block;
  text-decoration:none;
  color:inherit;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ratewide-sport-item:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(15,23,42,.07);
}

.ratewide-sport-item.sport-football:hover{
  border-color:rgba(31,122,58,.45);
}

.ratewide-sport-item.sport-handball:hover{
  border-color:rgba(239,180,40,.65);
}

.ratewide-sport-name{
  display:block;
  font-size:14px;
  font-weight:900;
  margin-bottom:2px;
}

.ratewide-sport-meta{
  display:block;
  font-size:12px;
  color:var(--text-dim);
  line-height:1.35;
}

.ratewide-info-foot{
  display:none;
}

/* MIDTKORT */
.randommatch-card{
  display:block;
  padding:14px 16px 12px;
  min-height:100%;
}

.randommatch-body{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.randommatch-kicker-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.randommatch-kicker-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.randommatch-mini-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  line-height:1;
  border:1px solid rgba(14,165,160,.32);
  background:rgba(14,165,160,.12);
  color:var(--text);
  white-space:nowrap;
}

.randommatch-mini-link:hover{
  background:rgba(14,165,160,.18);
}

.randommatch-teams{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.randommatch-team{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-weight:800;
  font-size:17px;
  line-height:1.15;
}

.randommatch-team span{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}

.randommatch-team--away{
  justify-content:flex-end;
  text-align:right;
}

.randommatch-logo{
  width:40px;
  height:40px;
  object-fit:contain;
  flex:0 0 40px;
  display:block;
}

.randommatch-score{
  font-size:28px;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
}

.randommatch-excerpt{
  margin:0 0 8px;
  max-width:none;
  width:100%;
  font-size:13px;
  line-height:1.45;
  color:var(--text-dim);
}

.randommatch-meta-list{
  display:grid;
  gap:5px;
  margin:0 0 10px;
  color:var(--text-dim);
  font-size:13px;
  line-height:1.42;
}

/* FAST RATING-PLASS */
.front-rating-box--feature{
  margin-top:auto;
  width:100%;
  max-width:none;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--panel-2);
}

.front-rating-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
  min-height:48px;
}

.front-rating-score{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.front-rating-num{
  font-weight:900;
  font-size:24px;
  line-height:1;
}

.front-stars{
  position:relative;
  display:inline-block;
  font-size:20px;
  line-height:1;
  letter-spacing:2px;
  min-width:96px;
  text-align:right;
}

.front-stars-bg{
  color:#cfd7df;
}

.front-stars-fg{
  position:absolute;
  left:0;
  top:0;
  white-space:nowrap;
  overflow:hidden;
  color:#f2b01e;
}

.front-rate-actions{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  padding:12px;
  border-radius:16px;
  background:#eaf8ef;
  border:1px solid #cfe8d5;
}

.front-rate-star{
  min-width:0;
  width:100%;
  height:32px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .08s ease, border-color .12s ease, background .12s ease;
}

.front-rate-star:hover{
  transform:translateY(-1px);
  border-color:rgba(0,0,0,.25);
}

.front-rate-star.on{
  background:#0e6b4f;
  color:#fff;
  border-color:#0e6b4f;
}

.randommatch-actions{
  margin-top:10px;
  font-size:13px;
  color:var(--text-dim);
}

.ratewide-bottom-stats--inline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ratewide-bottom-stats--inline strong{
  font-size:15px;
  line-height:1;
  color:var(--text);
}

/* HØGREKOLONNE */
.toprated-box{
  padding:14px 14px 10px;
}

.toprated-head{
  margin-bottom:12px;
}

.toprated-head h3{
  margin:0 0 4px;
  font-size:20px;
  line-height:1.1;
}

.toprated-total{
  color:var(--text-dim);
  font-size:12px;
}

.toprated-list{
  margin:0;
  padding-left:22px;
  max-height:380px;
  overflow-y:auto;
}
.toprated-item{
  margin:0 0 12px;
}

.toprated-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.toprated-link:hover .toprated-match{
  text-decoration:underline;
}

.toprated-match{
  display:block;
  font-weight:800;
  margin-bottom:3px;
}

.toprated-meta{
  display:block;
  color:var(--text-dim);
  font-size:13px;
  line-height:1.45;
}

.toprated-score{
  display:block;
  margin-top:3px;
  font-size:13px;
  color:var(--text-dim);
}

/* =========================
   YOUTUBE MODAL
========================= */
.ytmodal{
  position:fixed;
  inset:0;
  display:none;
  z-index:5000;
}

.ytmodal[aria-hidden="false"]{
  display:block;
}

.ytbackdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}

.ytsheet{
  position:relative;
  width:min(980px, 92vw);
  margin:6vh auto 0 auto;
  background:#0b0f14;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  overflow:hidden;
}

.ytclose{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.ytframe-wrap{
  aspect-ratio:16/9;
  width:100%;
}

#ytFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1280px){
  .sportnav-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:1180px){
  .ratewide-grid--three{
    grid-template-columns:1fr;
  }

  .toprated-list{
    max-height:320px;
  }
}

@media (max-width:1100px){
  .fakta-tall-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:980px){
  .hero-grid{
    flex-direction:column;
  }

  .hero-grid > .nerd-panel{
    min-width:0;
  }

  .feature{
    min-height:320px;
  }

  .news-images-split{
    grid-template-columns:1fr;
  }

  .profile-compact-wrap{
    grid-template-columns:1fr;
  }

  .front-shortcut-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .qa-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ratewide-inner{
    grid-template-columns:1fr;
  }

  .ratewide-left{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .nerd-panel--fakta .head{
    flex-direction:column;
    align-items:flex-start;
  }

  .dagens-historie-dato{
    margin-left:0;
  }

  .star-grid{
    grid-template-columns:1fr;
  }

  .random-mainline,
  .rate-card-top{
    grid-template-columns:1fr;
    text-align:center;
  }

  .random-team,
  .random-team:last-child,
  .rate-team,
  .rate-team.right{
    justify-content:center;
  }

  .random-team-name-right{
    text-align:center;
  }
}

@media (max-width:760px){
  .sportnav-grid{
    grid-template-columns:1fr;
  }

  .sportcard-title{
    font-size:18px;
  }

  .randommatch-kicker-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .randommatch-teams{
    grid-template-columns:1fr;
    gap:10px;
  }

  .randommatch-team,
  .randommatch-team--away{
    justify-content:flex-start;
    text-align:left;
  }

  .randommatch-score{
    font-size:28px;
  }

  .front-rating-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .front-stars{
    text-align:left;
  }

  .ratewide-info-foot{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  .stats-four-grid,
  .stats-four-grid.stats-two{
    grid-template-columns:1fr;
  }

  .qa-subgrid{
    grid-template-columns:1fr;
  }

  .image-cards{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .container{
    padding-inline:12px;
  }

  .panel .body{
    padding:14px;
  }

  .feature .overlay{
    padding:16px;
  }

  .feature h1{
    font-size:clamp(26px,8vw,40px);
    max-width:none;
  }

  .fakta-tall-grid{
    grid-template-columns:1fr;
  }

  .season-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .btn{
    width:100%;
    justify-content:center;
  }
}

@media (max-width:560px){
  .front-shortcut-grid,
  .qa-grid{
    grid-template-columns:1fr;
  }

  .vcard{
    min-width:260px;
    max-width:300px;
  }

  .vs-track{
    padding:4px 14px;
  }

  .vs-btn{
    display:none;
  }

  .ytsheet{
    margin-top:10vh;
  }
}
.ratewide-feature-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#e8faf7,#d8f4ef);
  border:1px solid rgba(14,165,160,.24);
  color:#0b3c39;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:12px;
}

.randommatch-scorecard{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:108px;
  padding:10px 14px;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbfd 0%, #edf3f7 100%);
  border:1px solid #d8e1e8;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.randommatch-scorecard-label{
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  color:#64748b;
  margin-bottom:6px;
}

.randommatch-scorecard-value{
  font-size:42px;
  line-height:1;
  font-weight:950;
  color:#0f172a;
  letter-spacing:-.03em;
}

.ratewide-sport-counts{
  display:block;
  margin-top:8px;
  font-size:12.5px;
  line-height:1.45;
  color:#334155;
  font-weight:700;
}

.ratewide-sport-counts strong{
  color:#0f172a;
}

.ratewide-info-lead{
  max-width:none !important;
}

@media (max-width:760px){
  .randommatch-scorecard{
    min-width:0;
    width:100%;
  }

  .randommatch-scorecard-value{
    font-size:34px;
  }
}
.randommatch-excerpt{
  margin-top:22px;
  line-height:1.65;
}

.randommatch-excerpt strong{
  font-weight:800;
  color:var(--text);
}
.ratewide-sport-item.sport-football{
  background: linear-gradient(180deg, #eefaf4 0%, #e4f5ea 100%);
  border: 1px solid #bfe3ca;
}

.ratewide-sport-item.sport-football:hover{
  background: linear-gradient(180deg, #e7f7ee 0%, #dbf0e3 100%);
  border-color: #9fd1b0;
}

.ratewide-sport-item.sport-handball{
  background: linear-gradient(180deg, #fff7dd 0%, #fff0bd 100%);
  border: 1px solid #ead38a;
}

.ratewide-sport-item.sport-handball:hover{
  background: linear-gradient(180deg, #fff3cf 0%, #ffe8a6 100%);
  border-color: #d8bb60;
}
.ratewide-sport-item.sport-football .ratewide-sport-name{
  color: #0f5132;
}

.ratewide-sport-item.sport-handball .ratewide-sport-name{
  color: #7a5a00;
}
/* ===== Globalt søk / forslag ===== */

.global-search-panel,
.global-search-panel .panel,
.global-search-panel .body{
  overflow: visible !important;
}

.global-search-form{
  position: relative;
  z-index: 20;
}

.global-suggest{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
}

.global-suggest[hidden]{
  display: none !important;
}

.global-suggest-box{
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.global-suggest-group + .global-suggest-group{
  border-top: 1px solid #e7edf0;
}

.global-suggest-title{
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a7280;
}

.global-suggest-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--text);
}

.global-suggest-item:hover{
  background: #f6f9fa;
}

.global-suggest-pill{
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef3f5;
  color: #35515d;
}

.global-suggest-avatar{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #dde7eb;
}
/* =========================================================
   TILFELDIGE SPELARAR / PROFILE CAROUSEL
   PREMIUM + KOMPAKT + FULL BREIDDE
   Passar til: .profile-carousel-panel / .pc-*
   ========================================================= */

.profile-carousel-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
  border-radius: 24px;
  padding: 12px 14px 10px;
  background:
    radial-gradient(circle at top left, rgba(14,165,160,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(239,180,40,.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fa 100%);
  border: 1px solid rgba(95, 120, 140, 0.16);
  box-shadow:
    0 14px 34px rgba(12, 27, 34, 0.08),
    inset 0 1px 0 rgba(255,255,255,.82);
}

.profile-carousel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), transparent 28%, transparent 72%, rgba(255,255,255,.10));
  opacity: .85;
}

.profile-carousel-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: .45;
}

.profile-carousel-panel > .head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(90, 110, 130, 0.34);
}

.profile-carousel-panel > .head h2 {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.03em;
  color: #07141b;
  text-wrap: balance;
}

.profile-carousel-panel .more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #0b8f8b 0%, #12b6ae 100%);
  border: 1px solid rgba(8, 110, 106, 0.28);
  box-shadow:
    0 10px 20px rgba(14,165,160,.22),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    filter .16s ease;
}

.profile-carousel-panel .more-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 24px rgba(14,165,160,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.profile-carousel-panel > .body {
  position: relative;
  z-index: 2;
  padding: 0;
}

.profile-carousel {
  position: relative;
}

.pc-track-wrap {
  overflow: hidden;
  padding: 2px 38px 2px;
}

.pc-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 3px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92,112,128,.26) transparent;
}

.pc-track::-webkit-scrollbar {
  height: 7px;
}

.pc-track::-webkit-scrollbar-track {
  background: transparent;
}

.pc-track::-webkit-scrollbar-thumb {
  background: rgba(92,112,128,.26);
  border-radius: 999px;
}

.pc-card {
  position: relative;
  flex: 0 0 clamp(172px, 12.7vw, 196px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfd 100%);
  border: 1px solid rgba(104, 124, 142, 0.14);
  box-shadow:
    0 10px 24px rgba(12,27,34,.08),
    0 1px 0 rgba(255,255,255,.85) inset;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.pc-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  opacity: .95;
}

.pc-card.is-football::after {
  background: linear-gradient(90deg, #0a8d86, #18c1b9);
}

.pc-card.is-handball::after {
  background: linear-gradient(90deg, #c88e13, #efb428);
}

.pc-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 34px rgba(12,27,34,.14),
    0 1px 0 rgba(255,255,255,.88) inset;
}

.pc-card.is-football:hover {
  border-color: rgba(14,165,160,.28);
}

.pc-card.is-handball:hover {
  border-color: rgba(239,180,40,.30);
}

.pc-image-wrap {
  position: relative;
  height: 124px;
  overflow: hidden;
  background: linear-gradient(180deg, #ecf2f4 0%, #dde5e9 100%);
}

.pc-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 34%);
}

.pc-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7,14,20,.46), rgba(7,14,20,0));
}

.pc-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .28s ease, filter .28s ease;
}

.pc-card:hover .pc-image {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.04);
}

.pc-badge {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 18px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.pc-card.is-football .pc-badge {
  background: linear-gradient(135deg, rgba(7,110,88,.96), rgba(14,165,160,.92));
}

.pc-card.is-handball .pc-badge {
  background: linear-gradient(135deg, rgba(171,118,9,.96), rgba(239,180,40,.90));
}

.pc-meta {
  padding: 10px 11px 11px;
}

.pc-name {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -.015em;
  color: #09161d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.25em;
}

.pc-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: #506672;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}

.pc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(103,123,141,.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,250,.94));
  box-shadow:
    0 10px 22px rgba(12,27,34,.11),
    inset 0 1px 0 rgba(255,255,255,.92);
  color: #0c1b22;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pc-btn:hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(14,165,160,.24);
  box-shadow:
    0 14px 24px rgba(12,27,34,.14),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.pc-btn.prev {
  left: 10px;
}

.pc-btn.next {
  right: 10px;
}

@media (min-width: 1400px) {
  .pc-card {
    flex-basis: 180px;
  }

  .pc-track {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .profile-carousel-panel {
    padding: 10px 10px 9px;
    border-radius: 18px;
  }

  .profile-carousel-panel > .head {
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 7px;
  }

  .profile-carousel-panel > .head h2 {
    font-size: 17px;
  }

  .profile-carousel-panel .more-link {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .pc-track-wrap {
    padding: 2px 0 2px;
  }

  .pc-track {
    gap: 10px;
    padding-bottom: 6px;
  }

  .pc-card {
    flex: 0 0 150px;
    border-radius: 16px;
  }

  .pc-image-wrap {
    height: 108px;
  }

  .pc-meta {
    padding: 9px 10px 10px;
  }

  .pc-name {
    font-size: 13px;
  }

  .pc-sub {
    font-size: 11.5px;
    min-height: 2.35em;
  }

  .pc-btn {
    display: none;
  }
}
.qs-last-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(14,165,160,.45);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.qs-last-link:hover{
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.qs-last-link:focus-visible{
  outline: 2px solid rgba(14,165,160,.35);
  outline-offset: 2px;
  border-bottom-color: var(--brand);
  border-radius: 4px;
}
.quickstats-card .chip.chip--ghost{
  background: linear-gradient(135deg, var(--brand), #44d7c2);
  color: #052b2a;
  border: 1px solid transparent;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(14,165,160,.18);
}

.quickstats-card .chip.chip--ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(14,165,160,.24);
  filter: brightness(1.02);
}

.quickstats-card .chip.chip--ghost:focus-visible{
  outline: 2px solid rgba(14,165,160,.30);
  outline-offset: 2px;
}
/* =========================================================
   KAMPKARUSELL
========================================================= */
.match-carousel-panel{
  position:relative;
  overflow:hidden;
  width:100%;
  grid-column:1 / -1;
  border-radius:24px;
  padding:12px 14px 10px;
  background:
    radial-gradient(circle at top left, rgba(14,165,160,.08), transparent 28%),
    radial-gradient(circle at top right, rgba(239,180,40,.07), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%);
  border:1px solid rgba(95,120,140,.16);
  box-shadow:0 14px 34px rgba(12,27,34,.08);
}

.match-carousel-panel > .head{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  padding-bottom:8px;
  border-bottom:1px dashed rgba(90,110,130,.34);
}

.match-carousel-panel > .head h2{
  margin:0;
  font-size:clamp(18px, 1.5vw, 25px);
  line-height:1.02;
  font-weight:950;
  letter-spacing:-.03em;
  color:#07141b;
}

.match-carousel{
  position:relative;
}

.mc-track-wrap{
  overflow:hidden;
  padding:2px 38px 2px;
}

.mc-track{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  padding:3px 2px 8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(92,112,128,.26) transparent;
}

.mc-track::-webkit-scrollbar{
  height:7px;
}
.mc-track::-webkit-scrollbar-thumb{
  background:rgba(92,112,128,.26);
  border-radius:999px;
}

.mc-card{
  position:relative;
  flex:0 0 clamp(240px, 18vw, 300px);
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  text-decoration:none;
  color:inherit;
  border-radius:18px;
  overflow:hidden;
  padding:14px 14px 13px;
  border:1px solid rgba(104,124,142,.14);
  box-shadow:0 10px 24px rgba(12,27,34,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mc-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(12,27,34,.14);
}

.mc-card.is-football.is-men{
  background:linear-gradient(180deg,#effaf4 0%, #e6f5eb 100%);
  border-color:#b7dcc4;
}
.mc-card.is-football.is-women{
  background:linear-gradient(180deg,#f5fcf7 0%, #edf8f0 100%);
  border-color:#cfe7d6;
}
.mc-card.is-handball.is-men{
  background:linear-gradient(180deg,#fff6e4 0%, #fff0d0 100%);
  border-color:#ead18e;
}
.mc-card.is-handball.is-women{
  background:linear-gradient(180deg,#fffaf0 0%, #fff4de 100%);
  border-color:#efddb1;
}

.mc-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.mc-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:900;
  line-height:1;
  color:#fff;
}

.mc-card.is-football.is-men .mc-badge{
  background:linear-gradient(135deg,#0a8d86,#18c1b9);
}
.mc-card.is-football.is-women .mc-badge{
  background:linear-gradient(135deg,#48a66a,#7cc58e);
}
.mc-card.is-handball.is-men .mc-badge{
  background:linear-gradient(135deg,#c88e13,#efb428);
}
.mc-card.is-handball.is-women .mc-badge{
  background:linear-gradient(135deg,#d8a84a,#f1c86f);
}

.mc-date{
  font-size:12px;
  color:#506672;
  font-weight:700;
}

.mc-title{
  font-size:16px;
  line-height:1.18;
  font-weight:900;
  color:#09161d;
  min-height:2.35em;
}

.mc-middle{
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:center;
  gap:12px;
}

.mc-team-side{
  display:flex;
  justify-content:center;
  align-items:center;
}

.mc-logo{
  width:34px;
  height:34px;
  object-fit:contain;
}

.mc-score-wrap{
  text-align:center;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(0,0,0,.05);
}

.mc-score-label{
  font-size:10px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
  color:#64748b;
  margin-bottom:6px;
}

.mc-score{
  font-size:28px;
  line-height:1;
  font-weight:950;
  color:#0f172a;
}

.mc-scorers{
  font-size:12.5px;
  line-height:1.4;
  color:#334155;
}

.mc-excerpt{
  font-size:12.5px;
  line-height:1.45;
  color:#4b5f69;
}

.mc-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:6;
  width:40px;
  height:40px;
  border:1px solid rgba(103,123,141,.16);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,250,.94));
  box-shadow:0 10px 22px rgba(12,27,34,.11);
  color:#0c1b22;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.mc-btn.prev{ left:10px; }
.mc-btn.next{ right:10px; }

@media (max-width:767px){
  .match-carousel-panel{
    padding:10px 10px 9px;
    border-radius:18px;
  }

  .mc-track-wrap{
    padding:2px 0 2px;
  }

  .mc-card{
    flex:0 0 220px;
  }

  .mc-btn{
    display:none;
  }
}
.mc-muted{
  color:#64748b;
}
.match-carousel-head{
  align-items:flex-start;
}

.match-carousel-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.mc-control{
  display:flex;
  align-items:center;
  gap:8px;
}

.mc-control-label{
  font-size:12px;
  font-weight:800;
  color:#506672;
}

.mc-select{
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--muted);
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:700;
}

.mc-select:focus{
  outline:2px solid rgba(14,165,160,.22);
  outline-offset:2px;
}

.mc-muted{
  color:#64748b;
}

.mc-card.is-hidden{
  display:none !important;
}

@media (max-width:760px){
  .match-carousel-controls{
    width:100%;
    align-items:stretch;
  }

  .mc-control{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }

  .mc-select{
    width:100%;
  }
}
.home-block--top{
  display:grid;
  gap:var(--gutter);
  grid-template-columns:1fr;
}

@media (min-width:980px){
  .home-block--top{
    grid-template-columns:1.6fr 1fr;
    align-items:flex-start;
    grid-template-areas:
      "news nerd"
      "news profile";
  }

  .home-block--top .news-panel{
    grid-area:news;
  }

  .home-block--top .season-panel{
    grid-area:nerd;
  }

  .home-block--top .star-panel{
    grid-area:profile;
  }
}
.home-block--stats-profiles{
  display:grid;
  gap:var(--gutter);
  grid-template-columns:1fr;
}

@media (min-width:980px){
  .home-block--stats-profiles{
    grid-template-columns:1.05fr .95fr;
    align-items:start;
  }

  .home-block--stats-profiles .leader-panel{
    grid-column:1;
  }

  .home-block--stats-profiles .profileside-panel{
    grid-column:2;
  }
}
.main-sections{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.main-sections > *{
  width:100%;
  max-width:none;
}