/* =================================
RESET
================================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

*::selection{
  background-color: var(--accent-soft);
  color: var(--ink);
}

html{
scroll-behavior:smooth;
}

.feed-item, article.card, .card-link {
    width: 100%;
    max-width: 100%;
}

.feed {
    width: 100%;
    max-width: 100%;
}

/* =================================
VARIABLES
================================= */

:root{

/* Masthead accent — deep editorial red, used sparingly */
--accent:#8b1e24;
--accent-dark:#6a1519;
--accent-soft:rgba(139,30,36,.08);

/* Secondary accent for links / secondary emphasis */
--navy:#1b2a4a;

--paper:#ffffff;        /* main content background */
--paper-alt:#f5f4f1;    /* page background / sidebar */
--card:#ffffff;         /* cards */
--card-hover:#f7f6f3;

--ink:#16181c;          /* primary text */
--muted:#5b6068;        /* secondary text */

--line:#e4e2dd;         /* hairline borders */

--font-display:Georgia, 'Times New Roman', Times, serif;
--font-body:Inter, system-ui, Arial, sans-serif;

/* kept for backward-compatibility with any inline references */
--green:var(--accent);
--dark-bg:var(--paper-alt);
--container:var(--paper);
--text:var(--ink);

}

/* =================================
BODY
================================= */

body{
font-family:var(--font-body);
color:var(--ink);

background: var(--paper-alt);

min-height:100vh;
}

h1,h2,h3{
font-family:var(--font-display);
font-weight:700;
}

/* =================================
NAVBAR
================================= */

nav{
background: var(--paper);
border-bottom:1px solid var(--line);
position:sticky;

top:0;

z-index:999;
}

.nav-container{

max-width:1200px;

margin:auto;

padding:14px 25px;

display:flex;

align-items:center;

justify-content:space-between;

}

/* NY WRAPPER */
.nav-right{
    display:flex;
    align-items:center;
}

/* links ligger nu korrekt */
.nav-links{
    display:flex;
    align-items:center;
}

nav img{
width:45px;
}

.nav-links a{

color:var(--ink);

text-decoration:none;

margin-left:26px;

font-weight:600;

position:relative;

transition:.2s;

}

.nav-links a:hover{
color:var(--accent);
}

/* =================================
MAIN CONTAINER
================================= */

.container{
max-width:1050px;
margin:0px auto;
padding:30px;

background: var(--paper);

border-left:1px solid var(--line);
border-right:1px solid var(--line);

box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* =================================
LAYOUT
================================= */

.layout{

display:grid;

grid-template-columns:2fr 280px;

gap:35px;

align-items:start;

}

/* =================================
ARTICLE CARD
================================= */

/* FLAT ARTICLE CARD */
article.card {
    display: flex;
    flex-direction: row; /* holder horisontal */
    gap: 10px;
    background: transparent; /* ingen baggrund */
    box-shadow: none; /* fjern shadow */
    margin-bottom: 0; /* fjern margin, vi bruger hr */
    border-radius: 0; /* fjern rundede hjørner */
    cursor: pointer;
    overflow: hidden;
    height: auto; /* auto højde */
}
.mobile-divider {
    width: 100%;
    margin: 0;
    border: none;
    border-top: 1px solid var(--line);
}


.card-link{

display:flex;

gap:16px;

align-items:flex-start;

text-decoration:none;

color:inherit;

width:100%;

height:100%;

}

article.card img{

width:130px;

height:80px;

object-fit:cover;
  
border-radius: 4px;
}

.article-content {
    padding: 5px;
    display: flex;           /* gør flexbox */
    flex-direction: column;  /* stable alt lodret */
    height: 100%;            /* fylder hele card-højden */
}

.article-content h2{

font-size:1.15rem;

margin-bottom:6px;

line-height:1.25;
  
  font-weight: 600;
  
}

.card-link:hover h2{
color:var(--accent);
}

.article-content .excerpt{

color:var(--muted);

font-size:.90rem;

margin-bottom:6px;

}

.article-content small {
    color: var(--muted);
    margin-top: auto;        /* skubber altid til bunden */
}

.card-link {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start; /* vigtig */
    padding: 10px 0;
}

.article-content {
    padding: 0;
    flex: 1;
    width: 100%;
}

.article-content h2 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: visible;
    white-space: normal;
}

.article-content small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

/* =================================
SIDEBAR
================================= */

.sidebar{

display:flex;

flex-direction:column;

gap:20px;

top: 80px;

align-self:start;

position:sticky;

}

/* MEST LÆSTE */

.side-card {
background: var(--card);
padding: 18px;
border-radius: 4px;
    border: 1px solid var(--line);
}
.side-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;

    text-transform: uppercase;
    letter-spacing: .04em;

    border-bottom: 2px solid var(--accent);

    color: var(--ink);
}

/* LINK */

/* MEST LÆSTE */

.popular-link {
    display: block;
    text-decoration: none;
    color: white;
    position: relative;
    margin-bottom: 14px; /* mere luft mellem artikler */
}

/* IMAGE (mindre højde) */

.popular-img {
    width: 100%;
    height: 140px; /* mindre end før */
    object-fit: cover;
    border-radius: 4px;
    transition: 0.3s;
}

/* OVERLAY (mørkere bund) */

.popular-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.08) 75%,
        transparent 100%
    );
    pointer-events: none;
}

/* CONTENT */

.popular-meta {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

/* TITLE lidt mindre */

.popular-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
}

/* SUB */

.popular-sub {
    font-size: 0.8rem;
    color: #e4e4e4;
    opacity: 0.9;
}

.popular-link:hover .popular-title {
    text-decoration: underline;
}

/* =================================
PAGINATION
================================= */

.pagination{
display:flex;
justify-content:center;
gap:8px;
margin:40px 0;
flex-wrap:wrap;
}

/* links */
.pagination a{
min-width:42px;
height:42px;

display:flex;
align-items:center;
justify-content:center;

text-decoration:none;
font-weight:600;

border-radius:4px;

background:var(--card);
color:var(--ink);

border:1px solid var(--line);

transition:.2s;
}

/* hover */
.pagination a:hover{
background:var(--card-hover);
border-color: var(--accent);
color: var(--accent);
}

/* active page */
.pagination a.active{
background:var(--accent);
color:#ffffff;
font-weight:700;
border-color:var(--accent);
pointer-events:none;
}

/* arrows lidt stærkere */
.pagination a:first-child,
.pagination a:last-child{
font-size:18px;
}

/* =================================
ADS
================================= */

.ad-slot{

min-height:90px;

border-radius:4px;

background: var(--paper-alt);
border: 1px dashed var(--line);

display:flex;

align-items:center;

justify-content:center;

font-size:.8rem;

letter-spacing:.04em;

text-transform:uppercase;

color:var(--muted);

}

/* =================================
FOOTER
================================= */

footer{
background: var(--ink);
border-top:1px solid rgba(255,255,255,.08);
padding:50px 20px;
}

.footer-container{

max-width:1100px;

margin:auto;

display:flex;

justify-content:space-between;

gap:40px;

flex-wrap:wrap;

}

footer h3{
margin-bottom:10px;
color:#ffffff;
font-family:var(--font-body);
font-size:.95rem;
text-transform:uppercase;
letter-spacing:.05em;
}

footer a{

color:rgba(255,255,255,.65);

text-decoration:none;

display:block;

margin-bottom:6px;

}

footer a:hover{
color:white;
}

footer img{
width:90px;
}

footer .copy{

margin-top:30px;

text-align:center;

color:rgba(255,255,255,.45);

}
/* =================================
RESPONSIVE
================================= */
@media(max-width:1000px){

.footer-container{
    display: flex;
  	flex-direction: column;
	justify-content: center;
  	align-items: center;
  	text-align: center;
}
  
.layout{
display:flex;
flex-direction:column;
}

/* mest læste øverst */

.sidebar{
order:-1;
position:relative;
top:0;
}

}

@media(max-width:700px){

.container{
padding:20px 15px;
}

/* artikel kort mobil */

article.card{
flex-direction:column;
}

.card-link{
flex-direction:row;
}

article.card img{

width:90px;

height:70px;

border-radius:4px;

}

/* titel */

.article-content h2{

font-size:.9rem;

font-weight:700;

letter-spacing:.2px;
  
padding-top: 2px;

}

.card-link:hover h2{

color:var(--accent);

}

  
/* QUIZ RESULT BUTTONS */

.quiz-result-buttons{
display:flex;
gap:15px;
justify-content:center;
margin-top:25px;
flex-wrap:wrap;
}

.quiz-result-buttons a{

display:inline-flex;
align-items:center;
justify-content:center;

padding:12px 24px;

border-radius:4px;

background:var(--accent);

color:white;

text-decoration:none;

font-weight:600;

transition:.2s;

}

.quiz-result-buttons a:hover{

background:var(--accent-dark);

}
.layout{
    display:flex;
    flex-direction:column;
    gap: 15px;
    padding: 0 10px; /* lidt padding til siderne */
}

}

.quiz-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    margin-top:30px;
}

.quiz-card{
    background:var(--card);
    border-radius:4px;
    overflow:hidden;
    text-decoration:none;
    color:var(--ink);
    transition:0.2s;
    border:1px solid var(--line);
    display:block;
}

.quiz-card:hover{
    border-color:var(--accent);
    box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.quiz-img{
    width:100%;
    height:200px; /* var 280px */
    object-fit:cover;
}

.quiz-content{
    padding:14px;
  font-size: 1rem;
}

.quiz-card h2{
margin-bottom:10px;
  font-size: 1.2rem;
}

.quiz-btn{
display:inline-block;
margin-top:15px;
padding:8px 16px;
background:var(--accent);
color:white;
text-decoration:none;
border-radius:4px;
font-weight:600;
  transition-duration: .2s;
  border: 2px solid var(--accent);
}
.quiz-btn:hover{
  	background:var(--accent-dark);
	border-color:var(--accent-dark);
}

.quiz-score{
margin-top:10px;
font-weight:bold;
color: var(--accent);
max-width: fit-content;
padding: 10px 16px 10px 0;
border-radius: 4px;
}

/* mobil */

@media(max-width:700px){

.quiz-grid{
grid-template-columns:1fr;
}

}

.all-quizzes{
   max-width: fit-content;
}

/* FEATURED GRID */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.featured-large,
.featured-small {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.featured-large img,
.featured-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  	transition-duration: .4s;
}

/* Sørger for ens højde */
.featured-large {
    height: 400px;
}

.featured-small-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 400px;
}

.featured-small {
    height: 100%;
}

/* Overlay (matcher moderne nyhedssider) */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
}

.overlay h2 {
    font-size: 1.4rem;
    color:white;
}

.overlay h3 {
    font-size: 1rem;
    font-weight:400;
}

/* Hover effekt */
.featured-grid a:hover img {
    transform: scale(1.03);
    transition: 0.3s;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

    .featured-large {
        height: 220px; /* mindre men samme proportion */
    }

    .featured-small-container {
        height: 220px;
        gap: 10px;
    }

    .featured-small {
        height: 100%;
    }

    .overlay h2 {
        font-size: 1rem;
    }

    .overlay h3 {
        font-size: 0.85rem;
    }
}

p.excerpt{
  display: none;
}

/* SKJUL MEST LÆSTE PÅ MOBIL */

@media(max-width:900px){
    .sidebar {
        display: none;
    }
}

@media(max-width:700px){

/* container lidt luft i siderne */
.container{
    padding: 8px;
}

/* fjern card look helt */
article.card{
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    height: auto;
    margin-bottom: 0;
}

/* layout = inline liste */
.card-link{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

/* billede mindre og mere clean */
article.card img{
    width: 95px;
    height: 65px;
    border-radius: 4px;
    object-fit: cover;
}

/* content */
.article-content{
    padding: 0;
}

.article-content h2{
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 3px;
}

/* dato diskret */
.article-content small{
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

/* fjern excerpt */
.article-content .excerpt{
    display: none;
}

/* HR divider */
.mobile-divider{
    width: 90%;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--line);
}

/* hover (mobil stadig lidt feedback) */
.card-link:active h2{
    color: var(--accent);
}

/* sidebar stadig skjult */
.sidebar{
    display: none;
}

}

@media(max-width:700px){

/* FJERN ALLE HOVER EFFEKTER */
.card-link:hover h2,
.card-link:active h2{
    color: inherit;
}

article.card:hover{
    box-shadow: none;
}

/* TITEL FYLDER HELE BREDDEN */
.article-content{
    flex: 1;
    width: 100%;
}

/* sørg for teksten ikke bliver klemt */
.card-link{
    align-items: flex-start; /* vigtig */
}


/* fjern evt. truncation hvis browser prøver */
.article-content h2,
.article-content{
    overflow: visible;
    white-space: normal;
}
}

.feed-quiz-insert{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

/* CARD */
.feed-quiz-insert a{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    height:160px;

    border-radius:4px;
    overflow:hidden;

    text-decoration:none;
    color:white;

    background: var(--ink);

    border:1px solid var(--line);

    transition:0.2s ease;
}

/* IMAGE */
.feed-quiz-insert a img{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    transform:scale(1.0);
    transition:0.4s ease;
}

/* DARK OVERLAY */
.feed-quiz-insert a::after{
    content:"";
    position:absolute;
    inset:0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 20%,
        rgba(0,0,0,0.18) 100%
    );

    z-index:1;
}

/* TEXT */
.feed-quiz-insert a span{
    position:relative;
    z-index:2;

    padding:12px 14px;

    font-weight:700;
    font-size:0.95rem;

    line-height:1.2;
}

/* "QUIZ" BADGE */
.feed-quiz-insert a::before{
    content:"QUIZ";
    position:absolute;
    top:10px;
    left:10px;

    z-index:2;

    font-size:0.65rem;
    font-weight:700;
    letter-spacing:0.08em;

    padding:4px 8px;
    border-radius:3px;

    background: rgba(255,255,255,0.92);
    color: var(--ink);
}

/* HOVER EFFECT */
.feed-quiz-insert a:hover{
    border-color: var(--accent);
}

.feed-quiz-insert a:hover img{
    transform:scale(1.04);
}

/* SMALL CTA FEEL */
.feed-quiz-insert a span::after{
    content:" → Start quiz";
    display:block;

    font-size:0.75rem;
    font-weight:400;
    opacity:0.8;

    margin-top:4px;
}

/* MOBIL */
@media(max-width:700px){
    .feed-quiz-insert {
        flex-direction: column;
        gap: 12px;
    }

    .feed-quiz-insert a {
        width: 100%;
        flex-direction: row;       /* billede + tekst på samme linje */
        align-items: center;
        padding: 10px;
    }

    .feed-quiz-insert a img {
        width: 80px;               /* mindre billede */
        height: 60px;
        border-radius: 4px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .feed-quiz-insert a span {
        padding: 0;
        text-align: left;
        font-size: 0.9rem;
        flex: 1;                   /* fylder resterende plads */
    }

    .feed-quiz-insert a:hover {
        color: var(--text);        /* fjern hover farve på mobil */
    }
}

/* SEARCH */

.search-box{
    position: relative;
    max-width: 320px;
}

.search-box input{
    width: 100%;
    padding: 10px 14px 10px 40px; /* plads til ikon i venstre side */
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    outline: none;
}

.search-box input:focus{
    border-color: var(--accent);
}

.search-box input::placeholder{
    color: var(--muted);
}

.search-icon{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
}

.search-results{

position:absolute;

top:110%;
left:0;

width:320px;

background:var(--card);

border-radius:4px;

border:1px solid var(--line);

overflow:hidden;

display:none;

box-shadow:
0 12px 30px rgba(0,0,0,.12);

z-index:9999;
}

.search-item{

display:flex;

gap:10px;

padding:10px;

text-decoration:none;

color:var(--ink);

transition:.2s;
}

.search-item:hover{
background:var(--card-hover);
}

.search-item img{

width:70px;
height:50px;

object-fit:cover;

border-radius:4px;

flex-shrink:0;
}

.search-item span{
font-size:.9rem;
line-height:1.3;
}

/* SEARCH PAGE */

.search-page-header{
margin-bottom:30px;
}

.search-page-header h1{
font-size:2rem;
margin-bottom:10px;
}

.search-page-header span{
color:var(--accent);
}

.search-page-header p{
color:var(--muted);
}

.no-results{

background:var(--card);

padding:40px;

border-radius:4px;

text-align:center;

border:1px solid var(--line);
}

.no-results h2{
margin-bottom:10px;
}

@media (max-width: 768px){
    .search-box{
        display: none;
    }
}

.matchday-switch {
    margin-bottom: 12px;
}

.matchday-switch select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
}

.matchday-box {
    width: 100%;
}

.match-list {
    max-height: 420px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
}

.match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  box-sizing: border-box;
    width: 100%;
}

.match span:first-child {
    text-align: left;
}

.match span:last-of-type {
    text-align: right;
}

.match strong {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.match-date {
    grid-column: 1 / -1;
    justify-self: center;

    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--muted);

    text-align: center;
}

.feed-quiz-insert {
    width: 100%;
}

/* SELVE RESULTAT-BOKSEN */
.feed-stat-box {
    width: 100%;
    box-sizing: border-box;

    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);

    padding: 18px;
    border-radius: 4px;

    margin: 12px 0;
}

/* HEADER */
.feed-stat-box h4 {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-family: var(--font-body);
}

/* MATCH-KORT */
.feed-stat-box .match {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
  
  color: var(--ink);
}

/* HOLD NAVNE */
.feed-stat-box .match span {
    font-size: .9rem;
    opacity: 0.85;
}

/* VENSTRE / HØJRE JUSTERING */
.feed-stat-box .match span:first-child {
    text-align: left;
}

.feed-stat-box .match span:last-child {
    text-align: right;
}

/* SCORE MIDT I (PERFEKT CENTRERET) */
.feed-stat-box .match strong {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 70px;
    padding: 6px 10px;

    font-size: 15px;
    font-weight: 700;

    background: var(--ink);
    color: white;
    border-radius: 3px;
}

/* FOOTNOTE */
.feed-stat-box small {
    display: block;
    margin-top: 10px;
    font-size: .85rem;
    color: var(--muted);
}


.round-nav{
    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:var(--paper-alt);
    border: 1px solid var(--line);
    border-radius:4px;

    color:var(--ink);
    text-decoration:none;
    font-size:18px;
    font-weight:700;

    transition:0.2s;
}

.round-nav:hover{
    border-color: var(--accent);
    color: var(--accent);
}

.feed-stat-box{
    width:100%;
    box-sizing:border-box;

    max-height:520px;
    overflow-y:auto;
}

/* Scrollbar (Chrome/Edge/Safari) */
.feed-stat-box::-webkit-scrollbar{
    width:8px;
}

.feed-stat-box::-webkit-scrollbar-track{
    background:var(--paper-alt);
    border-radius:10px;
}

.feed-stat-box::-webkit-scrollbar-thumb{
    background:var(--line);
    border-radius:10px;
}

.feed-stat-box::-webkit-scrollbar-thumb:hover{
    background:#c9c7c1;
}
.feed-stat-box .match{
    min-height:88px;
}

.played {
    background: var(--ink);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 600;
}

.feed-stat-box .match strong.upcoming{
    background:var(--paper);
    border: 1px solid var(--line);
    color:var(--muted);
}
.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.round-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.league-badge {
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.results-header h4{
    margin:0;
    font-size:16px;
}

@media (max-width: 768px) {

    .match {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
        padding: 14px 0;
    }

    .match span:first-child,
    .match span:last-of-type {
        text-align: center;
    }

    .match strong {
        margin: 6px auto;
        display: inline-block;
        min-width: 70px;
    }

}
@media (max-width: 768px) {
    .match-date {
        max-width: 100%;
        width: fit-content;
        margin: 6px auto 0;
        display: block;
    }
}
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .round-nav-row {
        justify-content: center;
        gap: 16px;
    }

    .league-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* ================================
MOBIL FIX (FORBREDE / OVERFLOW)
================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

@media (max-width: 700px) {

    /* CONTAINER FIX */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }

    /* MATCH BOKS FIX */
    .feed-stat-box {
        width: 100%;
        max-width: 100%;
    }

    .feed-stat-box .match {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
      
      color: var(--ink);
    }

    .feed-stat-box .match span:first-child,
    .feed-stat-box .match span:last-child {
        text-align: center;
    }

    .feed-stat-box .match strong {
        margin: 6px auto;
        display: inline-flex;
    }

    /* DATO FIX */
    .match-date {
        max-width: 100%;
        width: fit-content;
        margin: 6px auto 0;
    }

    /* SIKRER BILLEDER IKKE OVERFLOW */
    img {
        max-width: 100%;
        height: auto;
    }

}

/* ================================
COMPACT MATCH
================================ */

.feed-stat-box{
    padding: 12px;          /* mindre ramme */
    border-radius: 4px;    /* mindre "box" look */
}

/* hver kamp bliver mindre */
.feed-stat-box .match{
    min-height: 60px;       /* var 88px */
    padding: 8px 10px;      /* mindre luft */
    gap: 6px;
}

/* hold-navne mindre */
.feed-stat-box .match span{
    font-size: 0.85rem;
}

/* score-boksen mindre */
.feed-stat-box .match strong{
    min-width: 55px;
    padding: 6px 10px;
    font-size: 1rem;
    border-radius: 3px;
}

/* dato mindre */
.match-date{
    font-size: 10px;
    padding: 3px 6px;
}

.feed-stat-box .results-header {
    position: sticky;
    top: 0;
    z-index: 10;

    background: var(--card);
    padding: 10px 12px;

    border-bottom: 1px solid var(--line);
    top: -12px;
}

/* =================================
CHARITY BANNER
================================= */

.charity-banner{
    display:flex;
    align-items:center;
    gap:10px;

    background: var(--paper-alt);

    border:1px solid var(--line);
    border-left: 3px solid var(--accent);

    padding:12px 14px;

    border-radius:4px;

    margin: 0 0 20px 0;
}

.charity-content{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
}

.charity-label{
    font-size:.72rem;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.08em;

    color:var(--accent);

}

.charity-content p{
    color:var(--muted);

    font-size:.88rem;

    line-height:1.4;

    font-weight:500;
}

/* MOBIL */

@media(max-width:700px){

    .charity-banner{
        padding:10px 12px;
    }

    .charity-content{
        display:block;
    }

    .charity-label{
        display:block;
        margin-bottom:2px;
    }

    .charity-content p{
        font-size:.82rem;
    }

}
/* LÆS MERE KNAP */

.charity-btn{
    margin-left:auto;

    background:transparent;

    border:1px solid var(--line);

    color:var(--ink);

    text-decoration:none;

    padding:8px 14px;

    border-radius:4px;

    font-size:.82rem;

    font-weight:600;

    transition:.2s;

    flex-shrink:0;
}

.charity-btn:hover{
    border-color:var(--accent);
    color:var(--accent);
}

/* MOBIL */

@media(max-width:700px){

    .charity-banner{
        align-items:flex-start;
    }

    .charity-btn{
        margin-left:0;
        margin-top:8px;
    }

}

/* =================================
BREAKING BAR
================================= */

.breaking-bar{

    position: relative;

    width: 100%;

    height: 46px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--paper);

    border-bottom: 1px solid var(--line);

    z-index: 998;
}

/* BREAKING LABEL */

.breaking-label{

    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 18px;

    background: var(--accent);

    color: #ffffff;

    font-weight: 700;

    font-size: .72rem;

    letter-spacing: .1em;

    text-transform: uppercase;

    flex-shrink: 0;
}

/* TRACK */

.breaking-track{

    position: relative;

    flex: 1;

    height: 100%;

    overflow: hidden;

    display: flex;

    align-items: center;
}

/* MARQUEE WRAPPER */

.breaking-marquee{

    display: flex;

    width: max-content;

    animation: breakingScroll 72s linear infinite;
}

/* MOVING TEXT */

.breaking-content{

    display: flex;

    align-items: center;

    gap: 46px;

    white-space: nowrap;

    padding: 0 23px 0 14px;

    padding-right: 46px;

    text-decoration: none;

    color: var(--ink);

    font-size: .88rem;

    font-weight: 500;

    letter-spacing: .01em;

    flex-shrink: 0;
}

/* HOVER */

.breaking-content:hover{

    color: var(--accent);
}

/* DOTS */

.breaking-content span{

    display: flex;

    align-items: center;
}

.breaking-content span::after{

    content: "•";

    color: var(--muted);

    margin-left: 46px;

}

/* ANIMATION */

@keyframes breakingScroll{

    from{
        transform: translateX(0);
    }

    to{
        transform: translateX(-100%);
    }
}

/* MOBILE */

@media(max-width:700px){

    .breaking-bar{
        height: 38px;
    }

    .breaking-label{

        padding: 0 12px;

        font-size: .62rem;

        letter-spacing: .08em;
    }

    .breaking-content{

        font-size: .78rem;

        gap: 34px;

        animation-duration: 24s;
    }

    .breaking-content span::after{

        margin-left: 34px;
    }

}

.article-topic{
display:inline-flex;
align-items:center;
padding:5px 10px;
margin-bottom:10px;
border-radius:3px;

background:var(--accent-soft);
border:1px solid rgba(139,30,36,.18);

color:var(--accent);

font-size:.68rem;
font-weight:700;
letter-spacing:.06em;
text-transform:uppercase;
}

.topicXdate{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.topicXdate .article-topic{
    margin-bottom:0;
    display:flex;
    align-items:center;
    height:22px;
    line-height:1;
}

.topicXdate small{
    margin:0;
    padding:0;
    line-height:1;
    display:flex;
    align-items:center;
    height:22px;
    color: var(--muted);
}

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin: 10px 0 20px 0;
    padding: 8px 12px;

    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;

    color: var(--ink);
    text-decoration: none;

    font-weight: 600;
    font-size: .9rem;

    transition: .2s;
    width: fit-content;
}

.back-btn:hover{
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {

    .overlay {
        padding: 5px;
    }

    .overlay h2 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .overlay h3 {
        font-size: 0.8rem;
        opacity: 0.85;
    }
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: 0.25s;
}

/* MOBIL MENU */
@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    /* dropdown i stedet for full screen */
    .nav-links {
        position: absolute;
        top: 55px;
        right: 12px;

        display: flex;
        flex-direction: column;
        gap: 10px;

        background: var(--paper);

        padding: 12px;
        border-radius: 4px;

        border: 1px solid var(--line);
        box-shadow: 0 10px 26px rgba(0,0,0,0.12);

        width: 160px;

        transform: translateY(-4px);
        opacity: 0;
        pointer-events: none;

        transition: 0.18s ease;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.95rem;
        padding: 6px 8px;
        border-radius: 4px;
    }

    .nav-links a:hover {
        background: var(--paper-alt);
    }

    /* ACTIVE STATE */
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media(max-width:700px){

    .feed-quiz-insert{
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 20px 0;
    }

    .feed-quiz-insert a{
        height: 110px;
        flex-direction: row;
        align-items: center;

        padding: 10px;
        border-radius: 4px;
    }

    /* billede venstre */
    .feed-quiz-insert a img{
        position: relative;
        width: 120px;
        height: 100%;
        border-radius: 3px;
        flex-shrink: 0;

        transform: none;
    }

    /* fjern overlay effekt lidt på mobil */
    .feed-quiz-insert a::after{
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.15)
        );
    }

    /* tekst */
    .feed-quiz-insert a span{
        font-size: 0.9rem;
        padding: 0 10px;
        font-weight: 700;
        z-index: 2;
    }

    /* CTA mere tydelig */
    .feed-quiz-insert a span::after{
        content:"Start →";
        display:block;

        font-size:0.75rem;
        font-weight:500;
        opacity:0.8;
        margin-top:4px;
    }

    /* fjern hover effekter på mobil */
    .feed-quiz-insert a:hover{
        border-color: var(--line);
    }
}

.feed-item{
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.author-box{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
}

.author-top{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

.author-img{
    width:58px;
    height:58px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid var(--line);
}

.author-info h3{
    margin:0;
    font-size:1.1rem;
    font-weight:700;
}

.author-info span{
    font-size:.85rem;
    color: var(--muted);
}

.author-bio{
    font-size:.95rem;
    line-height:1.5;
    color: var(--ink);
    margin-bottom:12px;
}

.author-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.author-tags span{
    font-size:.7rem;
    padding:4px 8px;
    border-radius:3px;
    background: var(--paper-alt);
    border:1px solid var(--line);
    color: var(--ink);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.author-articles{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.author-article-card{
    display:flex;
    gap:12px;
    padding:10px;
    background: var(--card);
    border:1px solid var(--line);
    border-radius:4px;
    text-decoration:none;
    color:var(--ink);
    transition:.2s;
}

.author-article-card:hover{
    border-color: var(--accent);
}

.author-article-card img{
    width:90px;
    height:60px;
    object-fit:cover;
    border-radius:3px;
}

.author-article-card h3{
    font-size:.95rem;
    margin:0;
}

.meta{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  margin-top: 4px;
}

.meta .topic{
display:inline-flex;
align-items:center;
padding:5px 10px;
margin-bottom:10px;
border-radius:3px;

background:var(--accent-soft);
border:1px solid rgba(139,30,36,.18);

color:var(--accent);

font-size:.68rem;
font-weight:700;
letter-spacing:.06em;
text-transform:uppercase;
}

.author-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:14px;
    margin-top:10px;
}

/* CARD */
.author-grid-card{
    display:flex;
    gap:12px;
    padding:10px;

    background: var(--card);
    border:1px solid var(--line);
    border-radius:4px;

    text-decoration:none;
    color:var(--ink);

    transition:.2s;
    min-height:90px;
}

.author-grid-card:hover{
    border-color: var(--accent);
}

/* IMAGE */
.author-grid-card img{
    width:90px;
    height:70px;
    object-fit:cover;
    border-radius:3px;
    flex-shrink:0;
}

/* TEXT */
.author-grid-content h3{
    font-size:.9rem;
    margin:0;
    line-height:1.25;
}

/* RESPONSIVE */
@media(max-width:768px){
    .author-grid{
        grid-template-columns:1fr;
    }
}

/* =================================
STANDINGS TABLE
================================= */

.table-page-header{
    margin-bottom: 20px;
}

.table-page-header h1{
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.table-page-header p{
    color: var(--muted);
    font-size: .92rem;
}

.table-controls{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.league-select{
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
}

.table-wrap{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-scroll{
    overflow-x: auto;
}

.standings-table{
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.standings-table thead th{
    text-align: left;
    padding: 12px 14px;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.standings-table thead th.num,
.standings-table tbody td.num{
    text-align: center;
    width: 34px;
}

.standings-table tbody tr{
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}

.standings-table tbody tr:last-child{
    border-bottom: none;
}

.standings-table tbody tr:hover{
    background: var(--card-hover);
}

.standings-table td{
    padding: 11px 14px;
    color: var(--ink);
    white-space: nowrap;
}

.standings-table td.points{
    font-weight: 700;
}

.standings-table td.diff.positive{
    color: #1a6b2f;
}

.standings-table td.diff.negative{
    color: var(--accent);
}

.rank-cell{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 6px;
}

.rank-marker{
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: transparent;
    flex-shrink: 0;
}

.rank-marker.zone-euro{
    background: var(--accent);
}

.rank-marker.zone-relegation{
    background: var(--muted);
}

.team-cell{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 600;
}

.team-cell img{
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.table-legend{
    display:flex;
    flex-wrap:wrap;
    gap: 18px;
    padding: 14px 18px;
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--muted);
}

.table-legend span{
    display:flex;
    align-items:center;
    gap: 8px;
}

.legend-dot{
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display:inline-block;
    flex-shrink: 0;
}

.legend-dot.zone-euro{
    background: var(--accent);
}

.legend-dot.zone-relegation{
    background: var(--muted);
}

.table-note{
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 24px;
}

/* MOBILE: skjul mindre vigtige kolonner, behold kerne-info */
@media(max-width:700px){

    .standings-table thead th.hide-mobile,
    .standings-table tbody td.hide-mobile{
        display: none;
    }

    .standings-table td,
    .standings-table th{
        padding: 10px 8px;
        font-size: .85rem;
    }

    .team-cell img{
        width: 18px;
        height: 18px;
    }
}

/* =================================
QUIZ "SPILLET" STATUS
================================= */

.quiz-played-status{
    margin-top: 4px;
}

.quiz-played-status .quiz-score{
    display:inline-block;
    margin-top: 0;
    padding: 4px 10px 4px 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
}

/* =================================
PLAYER NAME AUTOCOMPLETE
================================= */

.autocomplete-wrap{
    position: relative;
    flex: 1;
    min-width: 200px;
}

.autocomplete-list{
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(0,0,0,.12);

    z-index: 20;
    display: none;
}

.autocomplete-list.open{
    display: block;
}

.autocomplete-item{
    padding: 10px 14px;
    cursor: pointer;
    font-size: .92rem;
    color: var(--ink);
    text-align: left;
}

.autocomplete-item:hover,
.autocomplete-item.active{
    background: var(--card-hover);
}

/* =================================
SENESTE ARTIKLER (bruges på quiz-sider m.fl.)
================================= */

.latest-articles{
    margin-top:50px;
    padding-top:30px;
    border-top:1px solid var(--line);
}

.latest-articles h2{
    margin-bottom:20px;
}

.latest-articles-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.latest-article-card{
    background:var(--card);
    border-radius:4px;
    overflow:hidden;
    text-decoration:none;
    color:var(--ink);
    transition:.2s;
    border:1px solid var(--line);
}

.latest-article-card:hover{
    border-color:var(--accent);
}

.latest-article-card img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
}

.latest-article-content{
    padding:16px;
}

.latest-article-content h3{
    font-size:1rem;
    line-height:1.4;
    margin-bottom:8px;
}

.latest-article-content span{
    font-size:.85rem;
    color:var(--muted);
}

@media(max-width:768px){

    .latest-articles-grid{
        grid-template-columns:1fr;
    }

    .latest-article-card{
        display:flex;
        gap:14px;
        align-items:center;
    }

    .latest-article-card img{
        width:160px;
        height:100px;
        object-fit:cover;
        border-radius:4px;
        flex-shrink:0;
        margin:10px -10px 10px 10px;
    }

    .latest-article-content{
        padding:12px;
    }

    .latest-article-content h3{
        font-size:.95rem;
    }
}

/* =================================
MINI QUIZ-LISTE (sidebar)
================================= */

.mini-quiz-link{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--ink);
    margin-bottom:14px;
}

.mini-quiz-link:last-child{
    margin-bottom:0;
}

.mini-quiz-link img{
    width:56px;
    height:44px;
    object-fit:cover;
    border-radius:4px;
    flex-shrink:0;
}

.mini-quiz-link span{
    font-size:.85rem;
    font-weight:600;
    line-height:1.3;
}

.mini-quiz-link:hover span{
    color:var(--accent);
}