/* moderne.css – felles stil for moderne/ (header, nav, mobilmeny + base for layout) */

/* --- base / reset --- */
*{box-sizing:border-box}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:absolute;left:10px;top:10px;width:auto;height:auto;padding:8px 12px;background:#fff;color:#000;border-radius:8px;z-index:4000}

:root{
  --brand-900:#0b3a24; --brand-800:#0d432a; --brand-700:#115a36; --brand-600:#167443; --brand-500:#1a8a4f;
  --bg:#f6f7f9; --panel:#ffffff; --border:#e6e8ec; --text:#0f1720; --muted:#667085;
  --accent:#ffd166; --r-card:18px; --shadow-elev:0 6px 24px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
}

/* ✅ Hindrar at innhald kan gjere sida breiare enn skjermen (mobil-fix) */
html,body{
  background:var(--bg);
  color:var(--text);
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* --- header (løfta z-index for sikker overlapping) --- */
.site-header{
  position:sticky; top:0; z-index:3000;
  width:100%;
  background: linear-gradient(180deg,var(--brand-700),var(--brand-800));
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.08);
}
.site-header .wrap{
  width:100%;
  max-width:1200px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; gap:12px; overflow:visible;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand img{width:30px; height:30px; border-radius:8px; object-fit:cover;}
.brand .txt{color:#fff; font-weight:800; font-size:20px; letter-spacing:.2px; white-space:nowrap;}
.brand .accent{color:var(--accent)}
.nav-spacer{flex:1}

/* --- desktop nav --- */
nav.top{display:flex; gap:8px; flex-wrap:wrap; align-items:center; position:relative; z-index:3100; overflow:visible}
nav.top a, nav.top button.drop{
  --pill-bg:rgba(255,255,255,.10); --pill-br:rgba(255,255,255,.20);
  color:#eaf6ee; text-decoration:none; font-weight:600; font-size:14px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--pill-br); background:var(--pill-bg);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
nav.top a:hover, nav.top button.drop:hover{background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.35);}
nav.top a.active, nav.top button.drop.active{background:#fff; color:var(--brand-700); border-color:#fff;}

/* --- dropdown --- */
li.dropdown{position:relative; list-style:none}
button.drop{display:inline-flex; align-items:center; gap:8px; cursor:pointer; border:0; background:none}
button.drop .caret{transition:transform .12s ease}
ul.sub{
  position:absolute; left:0; top:100%;
  min-width:260px; padding:14px 6px 6px 6px; margin:0;
  background:var(--brand-800);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,.22);
  display:none; z-index:3200; overflow:visible;
}
ul.sub li{list-style:none}
ul.sub a{
  display:block; color:#eaf6ee; text-decoration:none; padding:10px 12px; border-radius:8px; white-space:nowrap;
}
ul.sub a:hover{background:rgba(255,255,255,.08)}
li.dropdown:hover > ul.sub{display:block}
li.dropdown:hover > button.drop .caret{transform:rotate(180deg)}

/* små "overskrifter" inne i drop-down */
ul.sub .sub-label{
  padding:6px 12px 4px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.6);
}
ul.sub .divider{
  border-top:1px solid rgba(255,255,255,.18);
  margin:6px 8px;
}

/* ✅ DAME-lenker: litt lysare og diskret grøn tone */
ul.sub a.women{
  background:rgba(255,255,255,.05);
  color:rgba(234,246,238,.96);
}
ul.sub a.women:hover{background:rgba(255,255,255,.10)}
ul.sub a.women.active{
  background:rgba(255,255,255,.14);
  box-shadow: inset 3px 0 0 rgba(167,243,208,.55);
}

/* --- FLYOUT for Statistikk inne i Fotball-dropdown --- */
ul.sub li.has-flyout{ position:relative; }
ul.sub li.has-flyout > a.has-flyout-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
ul.sub li.has-flyout > a.has-flyout-link .sub-caret{ font-size:10px; opacity:.8; }

/* sjølve flyout-lista */
ul.sub ul.flyout{
  position:absolute;
  left:100%;
  top:0;
  min-width:230px;
  margin:0;
  padding:8px 6px 6px 6px;
  background:var(--brand-800);
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  box-shadow:0 8px 30px rgba(0,0,0,.22);
  display:none;
  z-index:3300;
}
ul.sub ul.flyout li{list-style:none;}
ul.sub ul.flyout a{ white-space:nowrap; }
ul.sub li.has-flyout:hover > ul.flyout{ display:block; }

/* --- mobile hamburger --- */
button.nav-toggle{
  display:none; margin-left:auto; border:0; background:rgba(255,255,255,.12); color:#fff;
  width:40px; height:40px; border-radius:10px;
  cursor:pointer;
}
button.nav-toggle:focus{outline:2px solid #fff3; outline-offset:2px}

/* --- mobile panel --- */
.mobile-panel{
  position:fixed;
  inset:0;
  display:none;
  background:rgba(0,0,0,.4);
  z-index:3100;
  overflow-y:auto;
}
.mobile-panel[aria-hidden="false"]{ display:block; }

/* --- mobile sheet --- */
.mobile-sheet{
  position:absolute; left:0; right:0; top:0;
  background:linear-gradient(180deg,var(--brand-700),var(--brand-800));
  padding:12px 16px 16px 16px; box-shadow:0 10px 30px rgba(0,0,0,.3);
  border-bottom-left-radius:16px; border-bottom-right-radius:16px;
  max-height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
}
.mobile-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-top:8px;
  padding-bottom:24px;
  max-width:100%;
}
.mobile-nav a, .mobile-nav button.mdrop{
  display:block; width:100%; max-width:100%;
  text-align:left; text-decoration:none; color:#eaf6ee; font-weight:600; font-size:16px;
  padding:12px 44px 12px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08);
  word-break:break-word;
}
.mobile-nav a.active, .mobile-nav button.mdrop.active{ background:#fff; color:var(--brand-700); border-color:#fff; }

/* caret-ikon på mobil dropdown */
.mobile-nav button.mdrop{
  position:relative;
  background:rgba(255,255,255,.08);
  color:#eaf6ee;
}
.mobile-nav button.mdrop.active,
.mobile-nav button.mdrop[aria-expanded="true"]{
  background:#fff;
  color:var(--brand-700);
}
.mobile-nav button.mdrop::after{
  content:""; 
  position:absolute; 
  right:14px; 
  top:50%; 
  width:10px; 
  height:6px; 
  transform:translateY(-50%);
  background:currentColor; 
  opacity:.9;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center / contain;
}
.mgroup{margin-top:4px; padding-left:0; display:none; max-width:100%}
.mgroup a{margin-top:6px; padding-left:28px}

/* Mobil: undersider (standard) */
.mobile-nav .mgroup a{
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 209, 102, .22);
  color: rgba(234,246,238,.95);
  font-size: 15px;
  font-weight: 560;
  padding-left: 46px;
  position: relative;
}
.mobile-nav .mgroup a::before{
  content:"";
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(255, 209, 102, .55);
}
.mobile-nav .mgroup a::after{
  content:"";
  position:absolute;
  left:32px;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:2px;
  background: rgba(255, 255, 255, .18);
}
.mobile-nav .mgroup a.active{
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 209, 102, .55);
  color:#fff;
}
.mobile-nav .mgroup a:hover{
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 209, 102, .35);
}

/* ✅ Mobil: damesider litt lysare/grønnare */
.mobile-nav .mgroup a.women{
  background: rgba(255,255,255,.06);
  border-color: rgba(167,243,208,.26);
}
.mobile-nav .mgroup a.women::before{
  background: rgba(167,243,208,.55);
}
.mobile-nav .mgroup a.women.active{
  border-color: rgba(167,243,208,.55);
  background: rgba(255,255,255,.12);
}

/* --- breakpoint --- */
@media (max-width: 860px){
  nav.top{ display:none; }
  button.nav-toggle{ display:inline-grid; place-items:center; }
}

/* ✅ FORCE hamburger på mobil sjølv om viewport-meta manglar */
html.force-mobile-nav nav.top{ display:none !important; }
html.force-mobile-nav button.nav-toggle{ display:inline-grid !important; place-items:center; }

/* =========================================================
   FORSIDE (index.php) – flytta frå inline <style>
   Merk: Globale selektorar er scopa til body.page-index
   ========================================================= */

body.page-index{
  --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;
}
body.page-index *{box-sizing:border-box;min-width:0}
body.page-index{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}
body.page-index a{text-decoration:none;color:inherit}
.container{width:min(var(--maxw),100%);margin-inline:auto;padding-inline:clamp(10px,2.6vw,28px)}
header.top{position:sticky;top:0;z-index:70;background:linear-gradient(180deg,rgba(245,247,248,1),rgba(245,247,248,0.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}
.search{position:relative;flex:1;max-width:720px}
.search input{width:100%;padding:11px 44px;border:1px solid var(--muted);background:var(--panel);color:var(--text);border-radius:999px}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;opacity:.65}
nav.primary{display:flex;gap:10px;flex-wrap:wrap;padding:8px 0 16px}
.chip{
  padding:9px 14px;
  border-radius:999px;
  background:var(--panel-2);
  color:var(--text-dim);
  border:1px solid var(--muted);
  font-weight:500;
  font-size:14px;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}
.nerd-sub a{
  text-decoration:none;
  font-weight:600;
}
.nerd-sub a:hover{ text-decoration:underline; }

/* ========== SPORTFARGAR for PROFILES-kolonnene ========== */
.profile-col{
  /* default om noko manglar */
  --sport-bg: #f3f6f8;
  --sport-border: rgba(15, 23, 42, .20);
  --sport-accent: #0f172a;

  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), var(--sport-bg);
  border: 1px solid var(--sport-border);
  border-radius: 18px;
}

/* Fotball = grønt (herrer mørkare) */
.profile-col.fb-men{
  --sport-bg: #dcfce7;                 /* litt “tydelegare” grøn */
  --sport-border: rgba(20, 83, 45, .35);
  --sport-accent: #14532d;
}
.profile-col.fb-women{
  --sport-bg: #ecfdf5;                 /* lysare grøn */
  --sport-border: rgba(22, 101, 52, .25);
  --sport-accent: #166534;
}

/* Handball = gult (herrer mørkare) */
.profile-col.hb-men{
  --sport-bg: #ffedd5;                 /* mørkare/varmare gul (amber-ish) */
  --sport-border: rgba(146, 64, 14, .35);
  --sport-accent: #92400e;
}
.profile-col.hb-women{
  --sport-bg: #fff7ed;                 /* lysare gul */
  --sport-border: rgba(180, 83, 9, .25);
  --sport-accent: #b45309;
}

/* Valfritt: la “Sjå alle →” og små etikettar få same aksent */
.profile-col a,
.profile-col .see-all,
.profile-col .section-tag{
  color: var(--sport-accent);
}

/* Valfritt: gjer overskriftlinja litt meir “sport” utan å endre layout */
.profile-col h3,
.profile-col .col-title{
  color: #0f172a; /* behald lesbarheita */
}


.chip--brand{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  border-color:transparent;
  font-weight:700;
}
.feature .chip{
  background:rgba(243,244,246,0.9);
  color:#0f172a;
  border-color:transparent;
}
.feature .chip:hover{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  transform:scale(1.06) translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

/* TAB-wrapper i same stil som panelane dine */
.tabs-panel{background:var(--panel);border:1px solid var(--muted);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.tabs-head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px dashed var(--muted);gap:10px;flex-wrap:wrap}
.tabs-title{margin:0;font-size:18px}
.tabs-bar{display:flex;gap:8px;flex-wrap:wrap}
.tab-btn{
  border:1px solid var(--muted);
  background:var(--panel-2);
  color:var(--text-dim);
  padding:9px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.tab-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08);border-color:rgba(14,165,160,.35)}
.tab-btn[aria-selected="true"]{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  border-color:transparent;
}
.tab-body{padding:14px}
.tab-pane{display:none}
.tab-pane.is-active{display:block}

/* Placeholder for tabs som ikkje er laga enno */
.tab-placeholder{
  border:1px dashed var(--muted);
  background:var(--panel-2);
  border-radius:14px;
  padding:14px;
  color:var(--text-dim);
  font-size:13px;
}


.panel{background:var(--panel);border:1px solid var(--muted);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel .head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px dashed var(--muted)}
.panel .body{padding:14px}

/* --- Nøkkeltal / skryt (kompakt stripe) --- */
.kpi-panel .body{padding:10px 12px}
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:8px;
}
@media (max-width: 860px){
  .kpi-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kpi-card{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:8px 10px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1));
  box-shadow:0 1px 0 rgba(0,0,0,.03);
  display:flex;
  gap:8px;
  align-items:center;
  min-height:48px;
}
.kpi-card > div{min-width:0}
.kpi-ico{
  width:28px; height:28px;
  border-radius:10px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-size:14px;
}
.kpi-v{
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.05;
}
.kpi-l{
  font-size:12px;
  color:var(--text-dim);
  margin-top:1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}




/* ✅ KPI som stripe (full breidde under hero) */
.kpi-strip{ margin-top: var(--gutter); }
.kpi-strip .kpi-panel .head{ padding:10px 14px; }
.kpi-strip .kpi-panel .body{ padding:10px 14px; }
.kpi-strip .kpi-grid{ gap:10px; }
.kpi-strip .kpi-card{ padding:10px 10px; border-radius:12px; align-items:center; }
.kpi-strip .kpi-ico{ width:30px; height:30px; border-radius:10px; font-size:15px; }
.kpi-strip .kpi-v{ font-size:16px; }
.kpi-strip .kpi-l{ font-size:12px; }


/* Topp-rad: Hero + Dagens Fakta (robust, ingen tomrom) */
.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;
}
@media (max-width: 980px){
  .hero-grid{flex-direction:column;}
  .hero-grid > .nerd-panel{min-width:0;}
}

.feature{
  position:relative;
  min-height:420px; /* ✅ litt høgare slik at herobildet får meir plass */
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(160deg,#18353f,#0f2730);
  /* ✅ Herobildet blir sett som background-image inline.
     Legg til cover + posisjon slik at du får meir av motivet.
     Du kan finjustere per-nyheit med CSS-variabelen --hero-pos. */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-pos, 50% 62%);
}

@media (max-width: 980px){
  .feature{ min-height:320px; }
}
.feature::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.7))}
.feature .badge{position:absolute;top:14px;left:14px;background:rgba(6,78,59,.88);color:#fff;border:1px solid rgba(255,255,255,.22);padding:6px 10px;border-radius:9999px;font-size:12px;font-weight:700}
.feature .overlay{position:absolute;inset:auto 0 0 0;padding:22px}
.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)}

.main-grid{
  display:grid;
  gap:var(--gutter);
  grid-template-columns:1fr;
}

/* Desktop grid-areas */
@media (min-width: 980px){
  .main-grid{
    grid-template-columns:1.6fr 1fr;
    align-items:flex-start;
    grid-template-areas:
      "news nerd"
      "news profile"
      "news random"
      "video video"
      "leader profileside"
      "profilefull profilefull"
      "statsfb statsfb"
      "statshb statshb"
      "wide wide";
  }

  .news-panel            { grid-area: news; }
  .season-panel          { grid-area: nerd; }   /* Fotball Herrer-boksen din */
  .nerd-panel            { grid-area: nerd; }   /* berre om du brukar den same plassen ein annan dag */
  .profile-panel         { grid-area: profilefull; } /* FULL BREIDDE */
  .random-panel          { grid-area: random; }
  .star-panel            { grid-area: profile; }
  .leader-panel          { grid-area: leader; }
  .profileside-panel      { grid-area: profileside; }
  .stats-panel-football  { grid-area: statsfb; }
  .stats-panel-handball  { grid-area: statshb; }
  .panel-wide            { grid-area: wide; }
  .video-panel           { grid-area: video; }
}

.news-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gutter)}
.news-card{
  grid-column:span 12;
  background:var(--panel);
  border:1px solid var(--muted);
  border-radius:14px;
  overflow:hidden;
}
.news-card .thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  background:#d9dee5;
  transition:transform .25s ease-out;
}
.news-card:hover .thumb{ transform:scale(1.06); }
.news-card .meta{padding:10px 12px}
.news-card .title{margin:0;font-weight:700}
@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} }

.pill{padding:6px 10px;border-radius:999px;border:1px solid var(--muted);font-size:12px;display:inline-block}
.pill.cat{background:linear-gradient(180deg,#cff8eb,#aef0df);color:#064e3b;border-color:transparent;font-weight:700}

.cards{display:grid;gap:12px;grid-template-columns:repeat(4,1fr)}
.card{border-radius:12px;overflow:hidden;border:1px solid var(--muted);background:var(--panel)}
.card .img{aspect-ratio:16/10;background:linear-gradient(135deg,#244652,#1a333d)}
.card .content{padding:10px}
@media (max-width: 1200px){.cards{grid-template-columns:repeat(3,1fr)}}
@media (max-width: 980px){.hero-grid{grid-template-columns:1fr}.feature{min-height:280px}
.main-grid{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 560px){.cards{grid-template-columns:1fr}}
.stats-panel{width:auto;max-width:100%;}
/* Tabs-seksjonen skal alltid fylle heile breidda i main-grid */
.tabs-panel{
  width: 100%;
}

@media (min-width: 980px){
  .tabs-panel{
    grid-column: 1 / -1; /* span begge kolonnene */
  }
}



.random-panel{ width:100%; margin-inline:0; }
.random-mainline{ display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; }
.random-extra{ display:flex; gap:12px; align-items:flex-start; margin-top:10px; flex-wrap:wrap; 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-meta-line{ font-size:11px; color:#111827; margin-top:4px; }

/* 4 små statistikk-bokser i breidda */
.stats-four-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
@media(max-width:1200px){ .stats-four-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:720px){ .stats-four-grid{grid-template-columns: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; }

/* Vis fleire namn i Toppscorer/Adelskalender (matchar høgda på profil-stacken på desktop) */
@media(min-width:980px){
  .leader-panel .stats-list-wrap{ max-height: 420px; }
  .leader-panel{ align-self: stretch; }
  .profileside-panel{ align-self: stretch; }
}
.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; }
.stats-empty{ font-size:12px; color:rgba(0,0,0,.45); }

/* Totalstatistikk + lenker inni stats-boksar */
.stats-kv{ display:flex; flex-direction:column; gap:6px; font-size:12px; }
.stats-kv-row{ display:flex; justify-content:space-between; gap:10px; align-items:center; padding:6px 6px; border-bottom:1px dashed rgba(0,0,0,.04); }
.stats-kv-row:last-child{ border-bottom:0; }
.stats-kv-label{ color:#334155; font-weight:650; }
.stats-kv-sub{ color:#64748b; font-weight:600; font-size:11px; }
.stats-links{ margin:0; padding-left:16px; font-size:12px; }
.stats-links li{ margin:4px 0; }
.stats-links a{ color:#0f766e; text-decoration:underline; }

/* 2-kolonne variant av stats-grid (for seksjonar med berre 2 boksar) */
.stats-four-grid.stats-two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:720px){ .stats-four-grid.stats-two{ grid-template-columns:1fr; } }

.profile-stack{ display:grid; grid-template-columns: 1fr; gap:12px; }
.profile-stack-panel .head h2{ margin:0; }


/* Mini-tabs inni stats-boksene (Toppscorer/Adels) */
.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; }


/* Sesong-KPI (inne i sesongboksen) */
.season-kpi-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:6px; }
@media(max-width:520px){ .season-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
.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; }

/* NY: tydeleg grønn dropdown for sesong */
.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;
}

/* Siste bilete-kort */
.image-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
@media(max-width:1200px){.image-cards{grid-template-columns:repeat(3,1fr);}}
@media(max-width:800px){.image-cards{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.image-cards{grid-template-columns:1fr;}}
.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}

/* Snarvegar */

/* ✅ NY: Fast snarveg-rad med små bilde-kort (maks 8) */
.front-shortcut-grid{
  margin-bottom:12px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
@media(max-width:980px){
  .front-shortcut-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media(max-width:560px){
  .front-shortcut-grid{ grid-template-columns:1fr; }
}

.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;
}
.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{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block; /* ✅ fjerner “kvit stripe” */
  filter:saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

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

.front-shortcut-meta{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.front-shortcut-title{
  font-weight:900;
  font-size:14px;
  line-height:1.1;
  text-shadow:0 10px 18px rgba(0,0,0,.35);
}

.front-shortcut-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
/* ✅ Snarveg-kort: meir bilde – berre små “chips” for tekst */
.front-shortcut{ 
  isolation:isolate;
}

.front-shortcut-img{
  position:absolute;
  inset:0;
  z-index:0;
}

/* Myyykje svakare shade (så bildet blir synleg) */
.front-shortcut::before{
  z-index:1;
  background: linear-gradient(90deg, rgba(2,6,23,.22), rgba(2,6,23,0));
}

/* Liten og lett bunn-gradient (berre for lesbarheit) */
.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;
}

/* Meta skal ikkje dekke heile – berre “chips” */
.front-shortcut-meta{
  z-index:3;
  left:10px;
  right:auto;               /* ✅ ikkje full breidde */
  bottom:10px;
  padding:0;                /* ✅ ingen stor bakplate */
  background: transparent;  /* ✅ fjern mørk plate */
  border: none;
  backdrop-filter: none;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start; /* ✅ ikkje spre utover */
  width: fit-content;
  max-width: calc(100% - 20px);
}

/* Tittel som liten avrunda chip */
.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:none; /* mindre “tungt” */
}

/* Pill skal berre vere ein chip – ikkje dominere */
.front-shortcut-pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}

/* Skarpare tekst */
.front-shortcut-title{
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.front-shortcut-pill{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.20);
}

.quick-actions{margin-top:var(--gutter);}
.qa-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
@media(max-width:980px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.qa-grid{grid-template-columns:1fr;}}

.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-item span.qa-desc:empty{display:none;}
.qa-icon{position:absolute;right:10px;bottom:8px;font-size:18px;opacity:.22;}
body.page-index a.qa-item:hover{border-color:var(--brand-700, var(--brand));background:rgba(31,122,58,.10);box-shadow:0 6px 18px rgba(15,23,42,.12);transform:translateY(-1px);}

/* Quick-actions: multi-kort med underlenker */
.qa-item--multi{position:relative;display:block;text-decoration:none;}

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

/* Små “chips” som lenker */
.qa-sub{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--muted, rgba(0,0,0,.15));
  background:rgba(15,23,42,.06);
  text-decoration:none;
  color:inherit;
  font-size:0.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;
}

/* “Kommer”-chips */
.qa-sub--disabled{
  opacity:.55;
  cursor:default;
  user-select:none;
  transform:none !important;
  box-shadow:none !important;
}



/* Dagens fakta / historie */
.nerd-panel .head h2{margin:0;}
.nerd-tagline{margin:0 0 6px 0;font-size:12px;color:var(--text-dim);}
.nerd-main{margin:0 0 4px 0;font-size:14px;font-weight:600;}
.nerd-sub{margin:0;font-size:12px;color:var(--text-dim);}
.dagens-historie-boks{background:#f0f4f7;border-radius:12px;padding:10px 12px;margin-bottom:10px;border:1px solid var(--muted);}
.dagens-historie-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;font-size:13px;font-weight:600;}
.dagens-historie-title{display:flex;align-items:center;gap:6px;}
.dagens-historie-dato{font-size:11px;color:var(--text-dim);}
.dagens-historie-seksjon{margin-top:4px;}
.dagens-historie-seksjon-title{font-size:11.5px;font-weight:700;margin-top:2px;}
.dagens-historie-boks ul{margin:4px 0 0 16px;padding:0;font-size:12px;}
.dagens-historie-boks li{margin-bottom:2px;}
.dagens-historie-beskrivelse{font-size:11px;color:var(--text-dim);}
.dagens-historie-empty{font-size:12px;color:var(--text-dim);margin:0;}
.kamp-resultat{font-weight:600;}
.kampnr-tag{font-size:11px;opacity:0.7;margin-left:4px;}
.dagens-les-meir{font-size:11px;color:#0f766e;}
.dagens-les-meir a{color:#0f766e;text-decoration:underline;}

/* PROFILBLOKK: 4 kolonner (1 stor + 2 små) */
.profile-quad{
  display:grid;
  grid-template-columns:repeat(4, minmax(180px, 1fr));
  gap:12px;
}

.profile-col{
  border:1px solid var(--muted);
  background:var(--panel-2);
  border-radius:16px;
  padding:10px;
}

.profile-col-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.profile-col-title{
  margin:0;
  font-size:14px;
  font-weight:900;
}
.profile-col-all{
  font-size:12px;
  font-weight:800;
  color:var(--brand);
  text-decoration:none;
}
.profile-col-all:hover{ text-decoration:underline; }

.pfeat{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--muted);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.pfeat:hover{
  border-color:var(--brand);
  box-shadow:0 6px 16px rgba(15,23,42,.10);
  transform:translateY(-1px);
}
.pfeat-avatar{
  width:52px;height:52px;
  border-radius:14px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}
.pfeat-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.pfeat-pill{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#0f766e;
}
.pfeat-name{
  font-size:13.5px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pfeat-sub{
  font-size:11.5px;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

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

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

.psmall-card{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--muted);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.psmall-card:hover{
  border-color:var(--brand);
  box-shadow:0 4px 12px rgba(15,23,42,.10);
  transform:translateY(-1px);
}
.psmall-avatar{
  width:28px;height:28px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}
.psmall-lines{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.psmall-name{
  font-size:12px;
  font-weight:800;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.psmall-meta{
  font-size:11px;
  color:var(--text-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.pplaceholder{
  border:1px dashed #94a3b8;
  background:rgba(255,255,255,.55);
  border-radius:14px;
  padding:10px;
  font-size:12px;
  color:var(--text-dim);
}

/* Responsivt */
@media (max-width: 1050px){
  .profile-quad{ grid-template-columns:repeat(2, minmax(200px, 1fr)); }
}
@media (max-width: 560px){
  .profile-quad{ grid-template-columns:1fr; }
}

.profiles-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.profile-col { min-width: 0; }

.mini-grid--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1100px) {
  .profiles-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profiles-quad { grid-template-columns: 1fr; }
}
/* --- NYTT: ved "Siste bilete" -> venstre: mini-nyheiter, høgre: bilete --- */
.news-images-split{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gutter);
  align-items: stretch;
}
@media (max-width: 980px){
  .news-images-split{ grid-template-columns: 1fr; }
}

/* Sub-kort inne i panel-wide (ser ut som "panel", men lettare) */
.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; }


/* Hurtig kampstatus (i panel nede på sida) */
.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%); }




/* Venstre kolonne i "Nyheiter + Siste bilete" kan ha fleire subpanel */
.news-images-left{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

/* Vis ca. 10 punkt – scroll for resten */
.mini-news-list.is-scroll{
  max-height: min(380px, 42vh);
  overflow:auto;
  padding-right:6px;
}

/* små action-chippar i subhead */
.subhead-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Mini-nyheitsliste (komprimert) */
.mini-news-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.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;
  text-decoration:none;
  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;
}

/* Gjer bilde-cards meir passande i høgre kolonne */
.news-images-split .image-cards{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px){
  .news-images-split .image-cards{ grid-template-columns: 1fr; }
}


/* GLOBALT SØK */
.global-search-panel{margin-top:10px}
.global-search-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.global-search-input{flex:1; min-width:220px;padding:12px 14px;border:1px solid var(--muted);border-radius:999px;background:var(--panel);}
.global-search-btn{border:0;padding:11px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brand),#44d7c2);font-weight:800;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);}


/* To tilfeldige kampar under nyheitene (50/50) */
.news-matches-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .news-matches-grid{ grid-template-columns: 1fr; }
}





/* -----------------------------
   VIDEO-HYLLE (proff "avis"-stil)
------------------------------ */
.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; /* plass til piler */
  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:hover{background:#fff}
.vs-btn:active{transform:translateY(-50%) scale(.98)}
.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;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.08);
  background:var(--panel);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
@media (max-width: 520px){
  .vcard{min-width:260px; max-width:300px;}
  .vs-track{padding:4px 14px;}
  .vs-btn{display:none}
}

.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);
}


/* -----------------------------
   YOUTUBE MODAL (spel video utan å forlate sida)
------------------------------ */
.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;}
@media (max-width: 560px){
  .ytsheet{margin-top:10vh;}
}



/* -----------------------------
   STEM PÅ KAMPREFERAT (forside)
------------------------------ */

.rate-game-panel .body{ padding-top: 14px; }

/* Fullbreidde i main-grid */
@media (min-width: 980px){
  .rate-game-panel{ grid-column: 1 / -1; }
}

/* Ytre layout: kort til venstre + toppliste til høgre */
.ratewide-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 980px){
  .ratewide-inner{
    grid-template-columns: 1.7fr 1fr;
  }
}

/* Venstre: 3 kort på rad (staplar ned på mindre skjerm) */
.ratewide-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
@media (max-width: 900px){
  .ratewide-left{ grid-template-columns: 1fr; }
}


.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{
  /* Midtseksjonen skal vere lesbar og ikkje presse knappen sidelengs */
  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; font-size:14px; 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-num{ font-weight:800; }
.front-rating-meta{ font-size:12px; color:var(--text-dim); }

.front-rate-actions{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:6px;
}

.front-rate-actions .front-rate-star{
  width:100%;
  height:28px;
  border-radius:10px;
  border:1px solid var(--border);
  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;
}

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

.front-rate-hint{
  margin-top: 8px;
  font-size:12px;
  color: var(--text-dim);
}

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


/* --- Ratingkort: utdrag + les-knapp (stilreint) --- */
.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-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-small{ font-size:0.92em; padding:6px 10px; }
.rate-read-btn.small{padding:7px 12px;font-size:.88rem;}
.rate-cta.bottom{margin-top:10px;display:flex;justify-content:center;}
.rate-goals{margin-top:10px;font-size:.86rem;color:#2a3a44;line-height:1.25;}
.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));
}
.rate-read-btn:active{ transform: translateY(0); }

/* Høgreboks: topprangerte */
.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-total{font-size:12px;color:var(--text-dim);margin:-4px 0 10px;}
@media (min-width: 980px){
  .toprated{ position: sticky; top: 14px; }
}
.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; }
.toprated-empty{ font-size: 13px; color: var(--text-dim); }

/* ===========================================
   SPORTFARGAR for dei fire "profile-col"-boksane
   Fotball = grønt (herrer mørkare)
   Handball = gult (herrer mørkare)
   Tekst skal vere svart (ikkje farga)
   =========================================== */

.profile-col{
  --sport-bg: #f3f6f8;
  --sport-border: rgba(15, 23, 42, .22);

  /* MINDRE kvit “pastell”-overlay => mørkare fargar */
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.28)), var(--sport-bg);
  border: 1px solid var(--sport-border);
  border-radius: 18px;

  /* Tving normal tekstfarge i boksen */
  color: var(--text);
}

/* Tving at lenker inne i boksen ikkje blir farga */
.profile-col a{ color: inherit; }

/* “Sjå alle →” skal vere svart (evt litt dempa) */
.profile-col .profile-col-all{
  color: inherit;
  opacity: .75;
  text-decoration: none;
}
.profile-col .profile-col-all:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Fotball */
.profile-col.fb-men{
  --sport-bg: #317D25; /* mørkare grøn */
  --sport-border: rgba(20, 83, 45, .40);
}
.profile-col.fb-women{
  --sport-bg: #5B960C; /* lysare grøn, men fortsatt tydeleg */
  --sport-border: rgba(22, 101, 52, .30);
}

/* Handball */
.profile-col.hb-men{
  --sport-bg: #96730C; /* mørkare gul/amber */
  --sport-border: rgba(146, 64, 14, .40);
}
.profile-col.hb-women{
  --sport-bg: #fbbf24; /* lysare gul/amber */
  --sport-border: rgba(180, 83, 9, .30);
}

  /* Aksent på "Sjå alle →" (utan å øydelegge resten av designet) */
  .profile-col .profile-col-all{
    color: var(--sport-accent);
  }

  /* -------------------------------------------
     Resten av CSS-en din (uendra)
     ------------------------------------------- */
  .profile-four-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }
  @media(max-width: 900px){
    .profile-four-grid{ grid-template-columns:1fr; }
  }
  .profile-block{
    border:1px solid var(--muted);
    background: var(--panel-2);
    border-radius:16px;
    padding:12px;
  }
  .profile-block-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
  }
  .profile-block-head h3{
    margin:0;
    font-size:14px;
    font-weight:900;
  }
  .mini-link{
    font-size:12px;
    color: var(--brand);
    text-decoration:none;
    font-weight:800;
  }
  .mini-link:hover{ text-decoration:underline; }

  .profile-empty{
    padding:10px;
    border:1px dashed var(--muted);
    border-radius:12px;
    color:var(--text-dim);
    background:#fff;
    margin-bottom:10px;
    font-size:12.5px;
  }
  .profile-placeholder{
    padding:12px;
    border:1px dashed var(--muted);
    border-radius:14px;
    color:var(--text-dim);
    background:#fff;
    font-size:12.5px;
    line-height:1.35;
  }

/* Stjerneprofiler panel – to små kort ved sidan av kvarandre */
.star-panel .body{ padding-top: 10px; }
.star-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){
  .star-grid{ grid-template-columns:1fr; }
}
.star-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border:1px solid var(--muted);
  border-radius:16px;
  background: #fff;
  padding:10px;
  text-decoration:none;
  color: inherit;
  overflow:hidden;
}
.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);
}

/* Stjerneprofiler panel – to små kort ved sidan av kvarandre */
.star-panel .body{ padding-top: 10px; }
.star-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){
  .star-grid{ grid-template-columns:1fr; }
}
.star-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border:1px solid var(--muted);
  border-radius:16px;
  background: #fff;
  padding:10px;
  text-decoration:none;
  color: inherit;
  overflow:hidden;
}
.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);
}

/* --- NYTT: komprimer headen for å redusere høgda --- */
.star-panel .head{
  padding: 10px 14px !important;
  align-items: center !important;
  gap: 10px !important;
}
.star-panel .head h2{
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.2px;
}
.star-panel .head .chip{
  padding: 7px 12px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}
.star-panel .body{
  padding-top: 8px !important;
}
/* Relaterte bilder – hover (thumb er background på div) */
.rel-bilde-card{
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.rel-bilde-card a{
  display:block;
  color:inherit;
  text-decoration:none;
}
.rel-bilde-thumb{
  transition: transform .18s ease, filter .18s ease;
}

.rel-bilde-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  border-color:#cbd5e1;
}
.rel-bilde-card:hover .rel-bilde-thumb{
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}
.rel-bilde-card:focus-within{
  box-shadow: 0 0 0 3px rgba(59,130,246,.25), 0 10px 22px rgba(0,0,0,.10);
  border-color:#93c5fd;
}


/* ------------------------------------------------------------
   CSS flytta frå index.php (auto-uttrekk)
   ------------------------------------------------------------ */

/* --- index.php <style> blokk 1 --- */
: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;
}

*{box-sizing:border-box;min-width:0}
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{text-decoration:none;color:inherit}
.container{width:min(var(--maxw),100%);margin-inline:auto;padding-inline:clamp(10px,2.6vw,28px)}
header.top{position:sticky;top:0;z-index:70;background:linear-gradient(180deg,rgba(245,247,248,1),rgba(245,247,248,0.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}
.search{position:relative;flex:1;max-width:720px}
.search input{width:100%;padding:11px 44px;border:1px solid var(--muted);background:var(--panel);color:var(--text);border-radius:999px}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;opacity:.65}
nav.primary{display:flex;gap:10px;flex-wrap:wrap;padding:8px 0 16px}
.chip{
  padding:9px 14px;
  border-radius:999px;
  background:var(--panel-2);
  color:var(--text-dim);
  border:1px solid var(--muted);
  font-weight:500;
  font-size:14px;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}
.nerd-sub a{
  text-decoration:none;
  font-weight:600;
}
.nerd-sub a:hover{ text-decoration:underline; }

/* ========== SPORTFARGAR for PROFILES-kolonnene ========== */
.profile-col{
  /* default om noko manglar */
  --sport-bg: #f3f6f8;
  --sport-border: rgba(15, 23, 42, .20);
  --sport-accent: #0f172a;

  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), var(--sport-bg);
  border: 1px solid var(--sport-border);
  border-radius: 18px;
}

/* Fotball = grønt (herrer mørkare) */
.profile-col.fb-men{
  --sport-bg: #dcfce7;                 /* litt “tydelegare” grøn */
  --sport-border: rgba(20, 83, 45, .35);
  --sport-accent: #14532d;
}
.profile-col.fb-women{
  --sport-bg: #ecfdf5;                 /* lysare grøn */
  --sport-border: rgba(22, 101, 52, .25);
  --sport-accent: #166534;
}

/* Handball = gult (herrer mørkare) */
.profile-col.hb-men{
  --sport-bg: #ffedd5;                 /* mørkare/varmare gul (amber-ish) */
  --sport-border: rgba(146, 64, 14, .35);
  --sport-accent: #92400e;
}
.profile-col.hb-women{
  --sport-bg: #fff7ed;                 /* lysare gul */
  --sport-border: rgba(180, 83, 9, .25);
  --sport-accent: #b45309;
}

/* Valfritt: la “Sjå alle →” og små etikettar få same aksent */
.profile-col a,
.profile-col .see-all,
.profile-col .section-tag{
  color: var(--sport-accent);
}

/* Valfritt: gjer overskriftlinja litt meir “sport” utan å endre layout */
.profile-col h3,
.profile-col .col-title{
  color: #0f172a; /* behald lesbarheita */
}


.chip--brand{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  border-color:transparent;
  font-weight:700;
}
.feature .chip{
  background:rgba(243,244,246,0.9);
  color:#0f172a;
  border-color:transparent;
}
.feature .chip:hover{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  transform:scale(1.06) translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

/* TAB-wrapper i same stil som panelane dine */
.tabs-panel{background:var(--panel);border:1px solid var(--muted);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.tabs-head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px dashed var(--muted);gap:10px;flex-wrap:wrap}
.tabs-title{margin:0;font-size:18px}
.tabs-bar{display:flex;gap:8px;flex-wrap:wrap}
.tab-btn{
  border:1px solid var(--muted);
  background:var(--panel-2);
  color:var(--text-dim);
  padding:9px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.tab-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08);border-color:rgba(14,165,160,.35)}
.tab-btn[aria-selected="true"]{
  background:linear-gradient(135deg,var(--brand),#44d7c2);
  color:#052b2a;
  border-color:transparent;
}
.tab-body{padding:14px}
.tab-pane{display:none}
.tab-pane.is-active{display:block}

/* Placeholder for tabs som ikkje er laga enno */
.tab-placeholder{
  border:1px dashed var(--muted);
  background:var(--panel-2);
  border-radius:14px;
  padding:14px;
  color:var(--text-dim);
  font-size:13px;
}


.panel{background:var(--panel);border:1px solid var(--muted);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel .head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px dashed var(--muted)}
.panel .body{padding:14px}

/* --- Nøkkeltal / skryt (kompakt stripe) --- */
.kpi-panel .body{padding:10px 12px}
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:8px;
}
@media (max-width: 860px){
  .kpi-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .kpi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kpi-card{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  padding:8px 10px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1));
  box-shadow:0 1px 0 rgba(0,0,0,.03);
  display:flex;
  gap:8px;
  align-items:center;
  min-height:48px;
}
.kpi-card > div{min-width:0}
.kpi-ico{
  width:28px; height:28px;
  border-radius:10px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-size:14px;
}
.kpi-v{
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.05;
}
.kpi-l{
  font-size:12px;
  color:var(--text-dim);
  margin-top:1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}




/* ✅ KPI som stripe (full breidde under hero) */
.kpi-strip{ margin-top: var(--gutter); }
.kpi-strip .kpi-panel .head{ padding:10px 14px; }
.kpi-strip .kpi-panel .body{ padding:10px 14px; }
.kpi-strip .kpi-grid{ gap:10px; }
.kpi-strip .kpi-card{ padding:10px 10px; border-radius:12px; align-items:center; }
.kpi-strip .kpi-ico{ width:30px; height:30px; border-radius:10px; font-size:15px; }
.kpi-strip .kpi-v{ font-size:16px; }
.kpi-strip .kpi-l{ font-size:12px; }


/* Topp-rad: Hero + Dagens Fakta (robust, ingen tomrom) */
.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;
}
@media (max-width: 980px){
  .hero-grid{flex-direction:column;}
  .hero-grid > .nerd-panel{min-width:0;}
}

.feature{
  position:relative;
  min-height:420px; /* ✅ litt høgare slik at herobildet får meir plass */
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(160deg,#18353f,#0f2730);
  /* ✅ Herobildet blir sett som background-image inline.
     Legg til cover + posisjon slik at du får meir av motivet.
     Du kan finjustere per-nyheit med CSS-variabelen --hero-pos. */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-pos, 50% 62%);
}

@media (max-width: 980px){
  .feature{ min-height:320px; }
}
.feature::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.7))}
.feature .badge{position:absolute;top:14px;left:14px;background:rgba(6,78,59,.88);color:#fff;border:1px solid rgba(255,255,255,.22);padding:6px 10px;border-radius:9999px;font-size:12px;font-weight:700}
.feature .overlay{position:absolute;inset:auto 0 0 0;padding:22px}
.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)}

.main-grid{
  display:grid;
  gap:var(--gutter);
  grid-template-columns:1fr;
}

/* Desktop grid-areas */
@media (min-width: 980px){
  .main-grid{
    grid-template-columns:1.6fr 1fr;
    align-items:flex-start;
    grid-template-areas:
      "news nerd"
      "news profile"
      "news random"
      "video video"
      "leader profileside"
      "profilefull profilefull"
      "statsfb statsfb"
      "statshb statshb"
      "wide wide";
  }

  .news-panel            { grid-area: news; }
  .season-panel          { grid-area: nerd; }   /* Fotball Herrer-boksen din */
  .nerd-panel            { grid-area: nerd; }   /* berre om du brukar den same plassen ein annan dag */
  .profile-panel         { grid-area: profilefull; } /* FULL BREIDDE */
  .random-panel          { grid-area: random; }
  .star-panel            { grid-area: profile; }
  .leader-panel          { grid-area: leader; }
  .profileside-panel      { grid-area: profileside; }
  .stats-panel-football  { grid-area: statsfb; }
  .stats-panel-handball  { grid-area: statshb; }
  .panel-wide            { grid-area: wide; }
  .video-panel           { grid-area: video; }
}

.news-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gutter)}
.news-card{
  grid-column:span 12;
  background:var(--panel);
  border:1px solid var(--muted);
  border-radius:14px;
  overflow:hidden;
}
.news-card .thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  background:#d9dee5;
  transition:transform .25s ease-out;
}
.news-card:hover .thumb{ transform:scale(1.06); }
.news-card .meta{padding:10px 12px}
.news-card .title{margin:0;font-weight:700}
@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} }

.pill{padding:6px 10px;border-radius:999px;border:1px solid var(--muted);font-size:12px;display:inline-block}
.pill.cat{background:linear-gradient(180deg,#cff8eb,#aef0df);color:#064e3b;border-color:transparent;font-weight:700}

.cards{display:grid;gap:12px;grid-template-columns:repeat(4,1fr)}
.card{border-radius:12px;overflow:hidden;border:1px solid var(--muted);background:var(--panel)}
.card .img{aspect-ratio:16/10;background:linear-gradient(135deg,#244652,#1a333d)}
.card .content{padding:10px}
@media (max-width: 1200px){.cards{grid-template-columns:repeat(3,1fr)}}
@media (max-width: 980px){.hero-grid{grid-template-columns:1fr}.feature{min-height:280px}
.main-grid{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 560px){.cards{grid-template-columns:1fr}}
.stats-panel{width:auto;max-width:100%;}
/* Tabs-seksjonen skal alltid fylle heile breidda i main-grid */
.tabs-panel{
  width: 100%;
}

@media (min-width: 980px){
  .tabs-panel{
    grid-column: 1 / -1; /* span begge kolonnene */
  }
}



.random-panel{ width:100%; margin-inline:0; }
.random-mainline{ display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; }
.random-extra{ display:flex; gap:12px; align-items:flex-start; margin-top:10px; flex-wrap:wrap; 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-meta-line{ font-size:11px; color:#111827; margin-top:4px; }

/* 4 små statistikk-bokser i breidda */
.stats-four-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
@media(max-width:1200px){ .stats-four-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:720px){ .stats-four-grid{grid-template-columns: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; }

/* Vis fleire namn i Toppscorer/Adelskalender (matchar høgda på profil-stacken på desktop) */
@media(min-width:980px){
  .leader-panel .stats-list-wrap{ max-height: 420px; }
  .leader-panel{ align-self: stretch; }
  .profileside-panel{ align-self: stretch; }
}
.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; }
.stats-empty{ font-size:12px; color:rgba(0,0,0,.45); }

/* Totalstatistikk + lenker inni stats-boksar */
.stats-kv{ display:flex; flex-direction:column; gap:6px; font-size:12px; }
.stats-kv-row{ display:flex; justify-content:space-between; gap:10px; align-items:center; padding:6px 6px; border-bottom:1px dashed rgba(0,0,0,.04); }
.stats-kv-row:last-child{ border-bottom:0; }
.stats-kv-label{ color:#334155; font-weight:650; }
.stats-kv-sub{ color:#64748b; font-weight:600; font-size:11px; }
.stats-links{ margin:0; padding-left:16px; font-size:12px; }
.stats-links li{ margin:4px 0; }
.stats-links a{ color:#0f766e; text-decoration:underline; }

/* 2-kolonne variant av stats-grid (for seksjonar med berre 2 boksar) */
.stats-four-grid.stats-two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:720px){ .stats-four-grid.stats-two{ grid-template-columns:1fr; } }

.profile-stack{ display:grid; grid-template-columns: 1fr; gap:12px; }
.profile-stack-panel .head h2{ margin:0; }


/* Mini-tabs inni stats-boksene (Toppscorer/Adels) */
.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; }


/* Sesong-KPI (inne i sesongboksen) */
.season-kpi-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:6px; }
@media(max-width:520px){ .season-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
.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; }

/* NY: tydeleg grønn dropdown for sesong */
.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;
}

/* Siste bilete-kort */
.image-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
@media(max-width:1200px){.image-cards{grid-template-columns:repeat(3,1fr);}}
@media(max-width:800px){.image-cards{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.image-cards{grid-template-columns:1fr;}}
.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}

/* Snarvegar */

/* ✅ NY: Fast snarveg-rad med små bilde-kort (maks 8) */
.front-shortcut-grid{
  margin-bottom:12px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
@media(max-width:980px){
  .front-shortcut-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media(max-width:560px){
  .front-shortcut-grid{ grid-template-columns:1fr; }
}

.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;
}
.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{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block; /* ✅ fjerner “kvit stripe” */
  filter:saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

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

.front-shortcut-meta{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.front-shortcut-title{
  font-weight:900;
  font-size:14px;
  line-height:1.1;
  text-shadow:0 10px 18px rgba(0,0,0,.35);
}

.front-shortcut-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}
/* ✅ Snarveg-kort: meir bilde – berre små “chips” for tekst */
.front-shortcut{ 
  isolation:isolate;
}

.front-shortcut-img{
  position:absolute;
  inset:0;
  z-index:0;
}

/* Myyykje svakare shade (så bildet blir synleg) */
.front-shortcut::before{
  z-index:1;
  background: linear-gradient(90deg, rgba(2,6,23,.22), rgba(2,6,23,0));
}

/* Liten og lett bunn-gradient (berre for lesbarheit) */
.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;
}

/* Meta skal ikkje dekke heile – berre “chips” */
.front-shortcut-meta{
  z-index:3;
  left:10px;
  right:auto;               /* ✅ ikkje full breidde */
  bottom:10px;
  padding:0;                /* ✅ ingen stor bakplate */
  background: transparent;  /* ✅ fjern mørk plate */
  border: none;
  backdrop-filter: none;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start; /* ✅ ikkje spre utover */
  width: fit-content;
  max-width: calc(100% - 20px);
}

/* Tittel som liten avrunda chip */
.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:none; /* mindre “tungt” */
}

/* Pill skal berre vere ein chip – ikkje dominere */
.front-shortcut-pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}

/* Skarpare tekst */
.front-shortcut-title{
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.front-shortcut-pill{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.20);
}

.quick-actions{margin-top:var(--gutter);}
.qa-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
@media(max-width:980px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.qa-grid{grid-template-columns:1fr;}}

.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-item span.qa-desc:empty{display:none;}
.qa-icon{position:absolute;right:10px;bottom:8px;font-size:18px;opacity:.22;}

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

/* Quick-actions: multi-kort med underlenker */
.qa-item--multi{position:relative;display:block;text-decoration:none;}

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

/* Små “chips” som lenker */
.qa-sub{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--muted, rgba(0,0,0,.15));
  background:rgba(15,23,42,.06);
  text-decoration:none;
  color:inherit;
  font-size:0.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;
}

/* “Kommer”-chips */
.qa-sub--disabled{
  opacity:.55;
  cursor:default;
  user-select:none;
  transform:none !important;
  box-shadow:none !important;
}



/* Dagens fakta / historie */
.nerd-panel .head h2{margin:0;}
.nerd-tagline{margin:0 0 6px 0;font-size:12px;color:var(--text-dim);}
.nerd-main{margin:0 0 4px 0;font-size:14px;font-weight:600;}
.nerd-sub{margin:0;font-size:12px;color:var(--text-dim);}
.dagens-historie-boks{background:#f0f4f7;border-radius:12px;padding:10px 12px;margin-bottom:10px;border:1px solid var(--muted);}
.dagens-historie-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;font-size:13px;font-weight:600;}
.dagens-historie-title{display:flex;align-items:center;gap:6px;}
.dagens-historie-dato{font-size:11px;color:var(--text-dim);}
.dagens-historie-seksjon{margin-top:4px;}
.dagens-historie-seksjon-title{font-size:11.5px;font-weight:700;margin-top:2px;}
.dagens-historie-boks ul{margin:4px 0 0 16px;padding:0;font-size:12px;}
.dagens-historie-boks li{margin-bottom:2px;}
.dagens-historie-beskrivelse{font-size:11px;color:var(--text-dim);}
.dagens-historie-empty{font-size:12px;color:var(--text-dim);margin:0;}
.kamp-resultat{font-weight:600;}
.kampnr-tag{font-size:11px;opacity:0.7;margin-left:4px;}
.dagens-les-meir{font-size:11px;color:#0f766e;}
.dagens-les-meir a{color:#0f766e;text-decoration:underline;}

/* PROFILBLOKK: 4 kolonner (1 stor + 2 små) */
.profile-quad{
  display:grid;
  grid-template-columns:repeat(4, minmax(180px, 1fr));
  gap:12px;
}

.profile-col{
  border:1px solid var(--muted);
  background:var(--panel-2);
  border-radius:16px;
  padding:10px;
}

.profile-col-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.profile-col-title{
  margin:0;
  font-size:14px;
  font-weight:900;
}
.profile-col-all{
  font-size:12px;
  font-weight:800;
  color:var(--brand);
  text-decoration:none;
}
.profile-col-all:hover{ text-decoration:underline; }

.pfeat{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--muted);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.pfeat:hover{
  border-color:var(--brand);
  box-shadow:0 6px 16px rgba(15,23,42,.10);
  transform:translateY(-1px);
}
.pfeat-avatar{
  width:52px;height:52px;
  border-radius:14px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}
.pfeat-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.pfeat-pill{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#0f766e;
}
.pfeat-name{
  font-size:13.5px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pfeat-sub{
  font-size:11.5px;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

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

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

.psmall-card{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--muted);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.psmall-card:hover{
  border-color:var(--brand);
  box-shadow:0 4px 12px rgba(15,23,42,.10);
  transform:translateY(-1px);
}
.psmall-avatar{
  width:28px;height:28px;
  border-radius:999px;
  background:#e5e7eb center/cover no-repeat;
  flex:none;
}
.psmall-lines{ display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.psmall-name{
  font-size:12px;
  font-weight:800;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.psmall-meta{
  font-size:11px;
  color:var(--text-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.pplaceholder{
  border:1px dashed #94a3b8;
  background:rgba(255,255,255,.55);
  border-radius:14px;
  padding:10px;
  font-size:12px;
  color:var(--text-dim);
}

/* Responsivt */
@media (max-width: 1050px){
  .profile-quad{ grid-template-columns:repeat(2, minmax(200px, 1fr)); }
}
@media (max-width: 560px){
  .profile-quad{ grid-template-columns:1fr; }
}

.profiles-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.profile-col { min-width: 0; }

.mini-grid--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 1100px) {
  .profiles-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .profiles-quad { grid-template-columns: 1fr; }
}
/* --- NYTT: ved "Siste bilete" -> venstre: mini-nyheiter, høgre: bilete --- */
.news-images-split{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gutter);
  align-items: stretch;
}
@media (max-width: 980px){
  .news-images-split{ grid-template-columns: 1fr; }
}

/* Sub-kort inne i panel-wide (ser ut som "panel", men lettare) */
.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; }


/* Hurtig kampstatus (i panel nede på sida) */
.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%); }




/* Venstre kolonne i "Nyheiter + Siste bilete" kan ha fleire subpanel */
.news-images-left{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

/* Vis ca. 10 punkt – scroll for resten */
.mini-news-list.is-scroll{
  max-height: min(380px, 42vh);
  overflow:auto;
  padding-right:6px;
}

/* små action-chippar i subhead */
.subhead-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Mini-nyheitsliste (komprimert) */
.mini-news-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.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;
  text-decoration:none;
  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;
}

/* Gjer bilde-cards meir passande i høgre kolonne */
.news-images-split .image-cards{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px){
  .news-images-split .image-cards{ grid-template-columns: 1fr; }
}


/* GLOBALT SØK */
.global-search-panel{margin-top:10px}
.global-search-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.global-search-input{flex:1; min-width:220px;padding:12px 14px;border:1px solid var(--muted);border-radius:999px;background:var(--panel);}
.global-search-btn{border:0;padding:11px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brand),#44d7c2);font-weight:800;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);}


/* To tilfeldige kampar under nyheitene (50/50) */
.news-matches-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .news-matches-grid{ grid-template-columns: 1fr; }
}





/* -----------------------------
   VIDEO-HYLLE (proff "avis"-stil)
------------------------------ */
.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; /* plass til piler */
  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:hover{background:#fff}
.vs-btn:active{transform:translateY(-50%) scale(.98)}
.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;
  text-decoration:none;
  color:inherit;
  border:1px solid rgba(0,0,0,.08);
  background:var(--panel);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
@media (max-width: 520px){
  .vcard{min-width:260px; max-width:300px;}
  .vs-track{padding:4px 14px;}
  .vs-btn{display:none}
}

.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);
}


/* -----------------------------
   YOUTUBE MODAL (spel video utan å forlate sida)
------------------------------ */
.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;}
@media (max-width: 560px){
  .ytsheet{margin-top:10vh;}
}



/* -----------------------------
   STEM PÅ KAMPREFERAT (forside)
------------------------------ */

.rate-game-panel .body{ padding-top: 14px; }

/* Fullbreidde i main-grid */
@media (min-width: 980px){
  .rate-game-panel{ grid-column: 1 / -1; }
}

/* Ytre layout: kort til venstre + toppliste til høgre */
.ratewide-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 980px){
  .ratewide-inner{
    grid-template-columns: 1.7fr 1fr;
  }
}

/* Venstre: 3 kort på rad (staplar ned på mindre skjerm) */
.ratewide-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
@media (max-width: 900px){
  .ratewide-left{ grid-template-columns: 1fr; }
}


.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{
  /* Midtseksjonen skal vere lesbar og ikkje presse knappen sidelengs */
  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; font-size:14px; 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-num{ font-weight:800; }
.front-rating-meta{ font-size:12px; color:var(--text-dim); }

.front-rate-actions{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:6px;
}

.front-rate-actions .front-rate-star{
  width:100%;
  height:28px;
  border-radius:10px;
  border:1px solid var(--border);
  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;
}

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

.front-rate-hint{
  margin-top: 8px;
  font-size:12px;
  color: var(--text-dim);
}

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


/* --- Ratingkort: utdrag + les-knapp (stilreint) --- */
.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-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-small{ font-size:0.92em; padding:6px 10px; }
.rate-read-btn.small{padding:7px 12px;font-size:.88rem;}
.rate-cta.bottom{margin-top:10px;display:flex;justify-content:center;}
.rate-goals{margin-top:10px;font-size:.86rem;color:#2a3a44;line-height:1.25;}
.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));
}
.rate-read-btn:active{ transform: translateY(0); }

/* Høgreboks: topprangerte */
.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-total{font-size:12px;color:var(--text-dim);margin:-4px 0 10px;}
@media (min-width: 980px){
  .toprated{ position: sticky; top: 14px; }
}
.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; }
.toprated-empty{ font-size: 13px; color: var(--text-dim); }

/* --- index.php <style> blokk 2 --- */
/* ===========================================
   SPORTFARGAR for dei fire "profile-col"-boksane
   Fotball = grønt (herrer mørkare)
   Handball = gult (herrer mørkare)
   Tekst skal vere svart (ikkje farga)
   =========================================== */

.profile-col{
  --sport-bg: #f3f6f8;
  --sport-border: rgba(15, 23, 42, .22);

  /* MINDRE kvit “pastell”-overlay => mørkare fargar */
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.28)), var(--sport-bg);
  border: 1px solid var(--sport-border);
  border-radius: 18px;

  /* Tving normal tekstfarge i boksen */
  color: var(--text);
}

/* Tving at lenker inne i boksen ikkje blir farga */
.profile-col a{ color: inherit; }

/* “Sjå alle →” skal vere svart (evt litt dempa) */
.profile-col .profile-col-all{
  color: inherit;
  opacity: .75;
  text-decoration: none;
}
.profile-col .profile-col-all:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Fotball */
.profile-col.fb-men{
  --sport-bg: #317D25; /* mørkare grøn */
  --sport-border: rgba(20, 83, 45, .40);
}
.profile-col.fb-women{
  --sport-bg: #5B960C; /* lysare grøn, men fortsatt tydeleg */
  --sport-border: rgba(22, 101, 52, .30);
}

/* Handball */
.profile-col.hb-men{
  --sport-bg: #96730C; /* mørkare gul/amber */
  --sport-border: rgba(146, 64, 14, .40);
}
.profile-col.hb-women{
  --sport-bg: #fbbf24; /* lysare gul/amber */
  --sport-border: rgba(180, 83, 9, .30);
}

  /* Aksent på "Sjå alle →" (utan å øydelegge resten av designet) */
  .profile-col .profile-col-all{
    color: var(--sport-accent);
  }

  /* -------------------------------------------
     Resten av CSS-en din (uendra)
     ------------------------------------------- */
  .profile-four-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }
  @media(max-width: 900px){
    .profile-four-grid{ grid-template-columns:1fr; }
  }
  .profile-block{
    border:1px solid var(--muted);
    background: var(--panel-2);
    border-radius:16px;
    padding:12px;
  }
  .profile-block-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
  }
  .profile-block-head h3{
    margin:0;
    font-size:14px;
    font-weight:900;
  }
  .mini-link{
    font-size:12px;
    color: var(--brand);
    text-decoration:none;
    font-weight:800;
  }
  .mini-link:hover{ text-decoration:underline; }

  .profile-empty{
    padding:10px;
    border:1px dashed var(--muted);
    border-radius:12px;
    color:var(--text-dim);
    background:#fff;
    margin-bottom:10px;
    font-size:12.5px;
  }
  .profile-placeholder{
    padding:12px;
    border:1px dashed var(--muted);
    border-radius:14px;
    color:var(--text-dim);
    background:#fff;
    font-size:12.5px;
    line-height:1.35;
  }

/* --- index.php <style> blokk 3 --- */
/* Stjerneprofiler panel – to små kort ved sidan av kvarandre */
.star-panel .body{ padding-top: 10px; }
.star-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){
  .star-grid{ grid-template-columns:1fr; }
}
.star-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border:1px solid var(--muted);
  border-radius:16px;
  background: #fff;
  padding:10px;
  text-decoration:none;
  color: inherit;
  overflow:hidden;
}
.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);
}

/* Stjerneprofiler panel – to små kort ved sidan av kvarandre */
.star-panel .body{ padding-top: 10px; }
.star-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){
  .star-grid{ grid-template-columns:1fr; }
}
.star-card{
  display:flex;
  gap:10px;
  align-items:stretch;
  border:1px solid var(--muted);
  border-radius:16px;
  background: #fff;
  padding:10px;
  text-decoration:none;
  color: inherit;
  overflow:hidden;
}
.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);
}

/* --- NYTT: komprimer headen for å redusere høgda --- */
.star-panel .head{
  padding: 10px 14px !important;
  align-items: center !important;
  gap: 10px !important;
}
.star-panel .head h2{
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.2px;
}
.star-panel .head .chip{
  padding: 7px 12px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}
.star-panel .body{
  padding-top: 8px !important;
}
