/* =========================================
ROOT VARIABLES
========================================= */
:root{
  /* Dark base (clean radio portal atmosphere) */
  --bg: #0b0d10;
  --bgDeep: #07080a;

  /* Surfaces */
  --panel: #10151b;
  --panel2: #121a22;
  --panel3: #16212b;
  --surface: #0f1720;
  --text: #f2f6ff;
  --muted: rgba(242,246,255,0.70);
  --line: rgba(255,255,255,0.12);
  --line2: rgba(255,255,255,0.08);

  /* Base accent (cyan/blue) */
  --cyan: #00cfff;
  --cyanHi: #5ae6ff;
  --cyanBorder: rgba(0,207,255,0.32);
  --cyanGlow: rgba(0,207,255,0.18);

  /* Orange highlight accent (used for hover/active/LIVE) */
  --accent: #ff9500;
  --accentHi: rgba(255,255,255,0.92);
  --accentBorder: rgba(255,149,0,0.32);
  --accentGlow: rgba(255,149,0,0.35);

  /* Keep the explicit orange vars as aliases (requested earlier) */
  --accent2: var(--accent);
  --accent2Hi: #ffb14a;
  --accent2Border: var(--accentBorder);
  --accent2Glow: var(--accentGlow);

  /* Legacy aliases used in post.css */
  --gold: var(--accent2);
  --gold2: var(--accent2Hi);

  /* Extra glow */
  --uiGlow: rgba(0,207,255,0.08);

  /* Theme-required variables */
  --border: rgba(255,255,255,0.08);
  --blueBadge: #4b7792;

  --shadow: 0 16px 34px rgba(0,0,0,0.45);
  --radius: 6px;
  --radiusSharp: 3px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shared bar styling */
  --barTop: #111a22;
  --barBottom: #0b1016;
  --barBorder: var(--border);
  --barShadow: 0 12px 26px rgba(0,0,0,0.42);

  --siteWidth: 1440px;
  --nf-cookie-offset: 0px;
  /* ON AIR banner følger samme bredde som resten af siden (mmMain). */

  /* =========================================
     NanoFM banner standard
     Desktop canvas: 1920x450 (ratio ~4.266)
     ========================================= */
  --nf-banner-aspect: 1920 / 450;

  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 22px;
  --s5: 28px;
}

/* Theme switching removed (single fixed NanoFM dark theme). */

/* =========================================
BASE / RESET
========================================= */
*{ box-sizing: border-box; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;

  background:
    linear-gradient(
      180deg,
      #081018 0%,
      #07080a 100%
    );

  overflow-x:hidden;
}

body.has-cookie-banner{
  padding-top: var(--nf-cookie-offset);
}

/* =========================================
GLOBAL LINK CLEANUP
========================================= */

a::before,
a::after{
  content:none !important;
  display:none !important;
}

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

/* =========================================
ACCESSIBILITY
========================================= */
.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left: 12px;
  top: 12px;
  width:auto;
  height:auto;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--accentBorder);
  border-radius: var(--radius);
  z-index: 9999;
}

/* =========================================
COOKIE BANNER
========================================= */
.nfCookieBanner{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1700;
  padding: 10px 12px;
}
.nfCookieBanner[hidden]{
  display: none !important;
}
.nfCookieBanner__inner{
  width: min(var(--siteWidth), calc(100% - 24px));
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14,20,27,0.96), rgba(8,12,17,0.96));
  box-shadow:
    0 16px 34px rgba(0,0,0,0.32),
    0 0 18px rgba(0,207,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nfCookieBanner__copy{
  flex: 1 1 auto;
  min-width: 0;
}
.nfCookieBanner__text{
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.5;
}
.nfCookieBanner__text p{
  margin: 0;
}
.nfCookieBanner__actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}
.nfCookieBanner__btn{
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.nfCookieBanner__btn:hover{
  transform: translateY(-1px);
}
.nfCookieBanner__btn--primary{
  background: rgba(0,207,255,0.14);
  border-color: rgba(0,207,255,0.28);
  color: rgba(255,255,255,0.96);
  cursor: pointer;
}
.nfCookieBanner__btn--primary:hover{
  border-color: rgba(0,207,255,0.48);
  box-shadow: 0 0 0 3px rgba(0,207,255,0.10);
}
.nfCookieBanner__btn--ghost{
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.78);
}
.nfCookieBanner__btn--ghost:hover{
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.94);
}

body.has-cookie-banner .mmPlayerBar{
  top: var(--nf-cookie-offset);
}

/* =========================================
MAIN LAYOUT
========================================= */
.mmMain{
  width: min(var(--siteWidth), calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 20px;
}

/* Shared panel glow/shadow */
.mmBanner,
.newsSection,
.sidebar .mmCol--shows{
  box-shadow:
    var(--shadow),
    0 0 18px var(--uiGlow);
}

/* =========================================
MUSIC PANEL
========================================= */
.npBar{
  /* tighter placement under header */
  margin: -12px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.npBar__row{
  display:flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.npBar__avatar{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
  display: none;
}
body.is-live .npBar__avatar{ display: inline-block; }
/* LIVE statusbar: kun tekst (ingen avatar/ikon/prikker) */
body.is-live .npBar__avatar{ display: none !important; }
body.is-live .npBar__label{ display: none !important; }
body.is-live .npBar__label::before{ display: none !important; }
.npBar__label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
  white-space: nowrap;
}
.npBar__label::before{
  content:"";
  display:inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 8px;
  background: rgba(255,255,255,0.28);
}
/* Fjern prik før "NU SPILLER:" */
.npBar__label::before{
  display: none;
  content: none;
}
body.is-live .npBar__label::before{
  background: var(--accent);
}
.npBar__title{
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.npBar__track{
  margin-top: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0,207,255,0.14);
  overflow: hidden;
}
.npBar__fill{
  height: 100%;
  width: 0%;
  background: rgba(0,207,255,0.78);
  transition: width 350ms linear;
}

/* LIVE mode: hide "Recently Played" column */
body.is-live #recently{
  display:none;
}

/* LIVE mode: hide all AutoDJ/Music panels (queue + recently played) */
body.is-live .musicPanel{
  display: none;
}

/* LIVE overlay on banner */
.mmLiveOverlay{
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  display:none;
}
body.is-live .mmLiveOverlay{ display:block; }
.mmLiveOverlay__pill{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.26);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 3px rgba(0,207,255,0.06);
}
.mmLiveOverlay__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accentGlow);
}
.mmLiveOverlay__avatar{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}
.mmLiveOverlay__top{
  font-weight: 900;
  letter-spacing: .3px;
  color: rgba(255,255,255,0.94);
  line-height: 1.1;
  white-space: nowrap;
}
.mmLiveOverlay__sub{
  font-size: 12px;
  color: rgba(255,255,255,0.70);
  margin-top: 2px;
  line-height: 1.1;
  max-width: 52ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LIVE takeover: Banneret skal være rent visuelt (ingen LIVE tekst ovenpå) */
body.is-live .mmLiveOverlay{
  display: none;
}

.musicPanel{
  /* Ingen stor container-box bag cards (kun selve track-kortene skal ses) */
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: hidden;
  margin: 0 0 14px;
}
.musicPanel__head{
  /* Skjul "MUSIC" header—kun de to kolonner vises som i reference */
  display:none;
}
.musicPanel__title{
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.musicPanel__sub{ font-size: 12px; color: rgba(255,255,255,0.60); }
.musicPanel__body{
  display:grid;
  grid-template-columns: 1fr 1fr;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.musicPanel__col{ padding: 6px 8px 8px; }
.musicPanel__col + .musicPanel__col{ border-left: 1px solid rgba(255,255,255,0.08); }
.musicPanel__colHead h3{
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.92);
}
/* NanoFM music lists (card rows) */
.musicList{ list-style: none; padding: 0; margin: 0; display:flex; flex-direction: column; gap: 6px; }
.musicRow{
  display:flex;
  align-items:center;
  padding: 8px 10px;
  height: 44px; /* ens højde på alle bokse */
  min-height: 44px; /* fallback */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  /* Subtil dark fill (ikke en stor container box) */
  background: rgba(8,12,18,0.30) !important;
  background-color: rgba(8,12,18,0.30) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.musicRow:hover{
  transform: translateY(-1px);
  border-color: rgba(43,77,122,0.55);
  box-shadow: 0 0 0 3px rgba(43,77,122,0.10);
}
.musicRow__t{ min-width: 0; display:flex; flex-direction: column; gap: 2px; }
.musicRow__title{ font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.musicRow__meta{ font-size: 11px; color: rgba(255,255,255,0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Safety aliases (in case template uses older class names) */
.musicBox,
.queueBox,
.musicSection,
.musicWrapper,
.musicContainer{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.08);
}

/* =========================================
ON AIR / BANNER
========================================= */
.nfBanner{
  position: relative;
  width: 100%;
  aspect-ratio: var(--nf-banner-aspect);
  height: auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.55);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 10px),
    linear-gradient(180deg, #1b2328, #0f1316);
}
.nfBanner__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.mmOnAirLabel{
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 12px 0 8px;
  color: rgba(255,255,255,0.92);
}
.mmBanner{
  position: relative;
  width: 100%;
  aspect-ratio: var(--nf-banner-aspect);
  height: auto;
  overflow: hidden;
}
.mmBanner__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* fade-in/out via .has-banner */
  opacity: 0;
  transition: opacity 700ms ease;
}
.mmBanner.has-banner .mmBanner__img{ opacity: 1; }
.mmBanner::after{
  content:"";
  position:absolute;
  inset:0;
  /* mørk overlay så tekst altid kan læses */
  background: linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.62));
  pointer-events:none;
}
.mmBanner__inner{ height: 100%; position: relative; z-index: 2; }
.mmBanner__overlay{
  position:absolute;
  inset: 0;
  padding: 18px;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.mmBanner__word{
  font-size: 58px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.mmBanner__sub{ font-size: 13px; color: rgba(255,255,255,0.88); }
.mmSep{ color: rgba(255,255,255,0.55); padding: 0 4px; }

/* Homepage banner: skjul kun tekst-overlay (behold banner image + dark overlay) */
.mmBanner .mmBanner__word,
.mmBanner .mmBanner__sub{
  display: none;
}

/* (mmBanner__btn removed in original design) */

/* =========================================
NEWS SECTION
========================================= */
.contentGrid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items:start;
}
.homeMobileScheduleCta{
  display:none;
  margin-top: 16px;
}
.newsSection{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: var(--panel2);
  overflow: hidden;
}
.newsSection__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, var(--barTop), var(--barBottom));
}
.newsSection__title{
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.newsSection__sub{ font-size: 12px; color: rgba(255,255,255,0.62); }
.newsFeed{
  --news-card-height: 220px;
  --news-card-cover-width: clamp(220px, 32%, 320px);
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.newsCard{
  height: var(--news-card-height);
  min-height: var(--news-card-height);
  display:grid;
  grid-template-columns: var(--news-card-cover-width) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.newsCard__thumb{
  position: relative;
  background: linear-gradient(180deg, #20282d, #0f1316);
  border-right: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.newsCard__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display:block;
}
.newsCard__body{
  padding: 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.newsCard__title{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  /* Clamp long titles so card height never changes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsCard__meta{
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.newsCard__excerpt{
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.74);
  /* Clamp long excerpts so card height never changes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsCard__actions{ margin-top: auto; }
.newsBtn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 800;
}
.newsBtn:hover{
  border-color: var(--accentBorder);
  color: var(--accentHi);
  box-shadow: 0 0 0 3px var(--accentGlow);
}

/* =========================================
SIDEBAR
========================================= */
.sidebar .mmCol--shows{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: var(--panel2);
  padding: 12px 14px 14px;
}
.mmCol__title{
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
}
.mmCol__title--split{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.mmCol__week{
  font-size: 11px;
  font-weight: 1000;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.mmShowsCta__text{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
.mmShowsCta__btn{
  width: 100%;
  justify-content:center;
}

/* Frontpage shows box (from Programplan) */
.mmShowsBox{ display:flex; flex-direction: column; gap: 12px; }
.mmShowsSection{ padding: 10px 10px; border-radius: calc(var(--radius) - 2px); border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.10); }
.mmShowsLabel{ font-size: 11px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,0.86); }

/* Simple "classic radio" list */
.mmShowsSimpleList{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.mmShowsSimpleItem{
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mmShowsSimpleItem:first-child{ padding-top: 0; border-top: 0; }
.mmShowsSimpleTime{
  font-size: 12px;
  font-weight: 1000;
  color: rgba(255,255,255,0.86);
  display:flex;
  justify-content: space-between;
  gap: 10px;
}
.mmShowsDay{
  color: rgba(255,255,255,0.66);
  font-weight: 900;
  flex: 0 0 auto;
  text-transform: uppercase;
}
.mmShowsSimpleName{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 1000;
  color: rgba(255,255,255,0.94);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* =========================================
MODAL
========================================= */
/* Banner cropper modal */
.nfCropModal{ position: fixed; inset: 0; display:none; z-index: 1200; }
.nfCropModal.is-open{ display:block; }
.nfCropBackdrop{ position:absolute; inset: 0; background: rgba(0,0,0,0.70); }
.nfCropPanel{
  position: relative;
  width: min(980px, calc(100% - 24px));
  margin: 6vh auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, var(--panel3), var(--panel));
  box-shadow: 0 20px 60px rgba(0,0,0,0.60);
  overflow: hidden;
}
.nfCropHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, var(--barTop), var(--barBottom));
}
.nfCropTitle{ font-weight: 950; letter-spacing: 0.2px; }
.nfCropClose{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  cursor:pointer;
}
.nfCropBody{ padding: 14px; display:flex; flex-direction: column; gap: 12px; }
.nfCropStageWrap{ width: 100%; }
.nfCropStage{
  position: relative;
  width: 100%;
  /* Cropper always targets the canonical desktop canvas */
  aspect-ratio: 1920 / 450;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  cursor: grab;
  touch-action: none;
}
.nfCropStage.is-dragging{ cursor: grabbing; }
.nfCropStage img{
  position:absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
  user-select:none;
  -webkit-user-drag: none;
  pointer-events:none;
}
.nfCropControls{ display:flex; align-items:center; gap: 12px; }
.nfCropZoom{ display:flex; align-items:center; gap: 12px; width: 100%; }
.nfCropZoom span{ font-size: 12px; font-weight: 900; color: rgba(255,255,255,0.86); min-width: 50px; }
.nfCropZoom input[type="range"]{ width: 100%; }
.nfCropPreviews{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.nfCropPrevCol{ min-width: 0; }
.nfCropPrevLabel{ font-size: 11px; font-weight: 900; color: rgba(255,255,255,0.72); margin-bottom: 6px; }
.nfCropPrevFrame{
  width: 100%;
  aspect-ratio: 1920 / 450;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.14);
}
.nfCropPrevFrame img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.nfCropActions{ display:flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px){
  .nfCropPreviews{ grid-template-columns: 1fr; }
}

/* Modal (Stream URL) */
.modal{ position: fixed; inset: 0; display:none; z-index: 80; }
.modal.is-open{ display:block; }
.modal__backdrop{ position:absolute; inset: 0; background: rgba(0,0,0,0.65); }
.modal__panel{
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 10vh auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, var(--panel3), var(--panel));
  box-shadow: var(--shadow);
  padding: 12px;
}

/* Mobile sticky mini-player */
body.radio-modal-open{
  overflow: hidden;
}

.nfMiniPlayer{
  display: none;
}

.nfRadioModal{
  z-index: 1700;
}

.nfRadioModal__panel{
  width: min(560px, calc(100% - 24px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(0,207,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(18,26,34,0.98), rgba(8,12,18,0.98));
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 22px rgba(0,207,255,0.08);
}

.nfRadioModal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nfRadioModal__logo{
  width: clamp(140px, 34vw, 190px);
  height: auto;
  display:block;
}

.nfRadioModal__close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  font-size: 24px;
  cursor:pointer;
}

.nfRadioModal__body{
  display:grid;
  gap: 16px;
}

.nfRadioModal__coverWrap{
  display:flex;
  justify-content:center;
}

.nfRadioModal__cover{
  width: min(220px, 54vw);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    0 0 26px rgba(0,207,255,0.08);
  transition: opacity .18s ease;
}

.nfRadioModal__cover.is-fading{
  opacity: .72;
}

.nfRadioModal__statusRow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.nfRadioModal__badge{
  display:inline-flex;
  align-items:center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,207,255,0.24);
  background: rgba(0,207,255,0.08);
  color: rgba(255,255,255,0.94);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
}

.nfRadioModal__badge.is-offline{
  border-color: rgba(255,90,120,0.30);
  background: rgba(255,90,120,0.10);
}

.nfRadioModal__status{
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
}

.nfRadioModal__now{
  text-align:center;
}

.nfRadioModal__eyebrow{
  margin-bottom: 8px;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.nfRadioModal__track{
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  color: rgba(255,255,255,0.96);
  line-height: 1.15;
}

.nfRadioModal__artist{
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  font-weight: 700;
}

.nfRadioModal__controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
}

.nfRadioModal__play{
  width: 68px;
  height: 68px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(16,23,32,0.94), rgba(7,11,17,0.94));
  color: rgba(255,255,255,0.95);
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.38),
    0 0 20px rgba(0,207,255,0.08);
}

.nfRadioModal__play i{
  font-size: 22px;
}

.nfRadioModal__volume{
  display:flex;
  align-items:center;
  gap: 10px;
  min-height: 52px;
  min-width: min(260px, 100%);
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.82);
}

.nfRadioModal__volume input{
  flex: 1;
  accent-color: rgba(0,207,255,0.88);
}

@media (max-width: 1023px){
  body.mm{
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mmPlayerBar{
    display:none;
  }

  .nfMiniPlayer{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
      linear-gradient(180deg, rgba(16,23,32,0.96), rgba(6,10,16,0.96));
    box-shadow:
      0 18px 38px rgba(0,0,0,0.46),
      0 0 18px rgba(0,207,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nfMiniPlayer__surface{
    flex: 1;
    min-width: 0;
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align:left;
    cursor:pointer;
  }

  .nfMiniPlayer__logoWrap{
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display:grid;
    place-items:center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
  }

  .nfMiniPlayer__logo{
    width: 34px;
    height: auto;
    display:block;
  }

  .nfMiniPlayer__copy{
    min-width: 0;
    display:grid;
    gap: 4px;
  }

  .nfMiniPlayer__title{
    font-size: 14px;
    font-weight: 900;
    color: rgba(255,255,255,0.95);
    line-height: 1.1;
  }

  .nfMiniPlayer__meta{
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nfMiniPlayer__live{
    display:flex;
    align-items:flex-end;
    gap: 3px;
    align-self:center;
    min-width: 18px;
    opacity: .32;
    transition: opacity .18s ease;
  }

  .nfMiniPlayer__live span{
    display:block;
    width: 3px;
    border-radius: 999px;
    background: rgba(0,207,255,0.92);
    box-shadow: 0 0 10px rgba(0,207,255,0.35);
  }

  .nfMiniPlayer__live span:nth-child(1){ height: 8px; animation: nfMiniEq 1s ease-in-out infinite .05s; }
  .nfMiniPlayer__live span:nth-child(2){ height: 14px; animation: nfMiniEq 1s ease-in-out infinite .15s; }
  .nfMiniPlayer__live span:nth-child(3){ height: 10px; animation: nfMiniEq 1s ease-in-out infinite .25s; }

  .nfMiniPlayer__play{
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(18,26,34,0.94), rgba(7,11,17,0.94));
    color: rgba(255,255,255,0.95);
    display:grid;
    place-items:center;
    cursor:pointer;
    box-shadow:
      0 12px 24px rgba(0,0,0,0.36),
      0 0 18px rgba(0,207,255,0.06);
  }

  .nfMiniPlayer__play i{
    font-size: 18px;
  }

  .nfMiniPlayer.is-playing .nfMiniPlayer__live{
    opacity: 1;
  }

  .nfMiniPlayer.is-playing{
    border-color: rgba(0,207,255,0.22);
    box-shadow:
      0 18px 38px rgba(0,0,0,0.46),
      0 0 24px rgba(0,207,255,0.12);
  }
}

@media (max-width: 640px){
  .nfRadioModal__panel{
    width: calc(100% - 18px);
    margin: 4vh auto;
    padding: 12px;
  }

  .nfRadioModal__play{
    width: 62px;
    height: 62px;
  }

  .nfRadioModal__volume{
    width: 100%;
    min-width: 0;
  }
}

@keyframes nfMiniEq{
  0%, 100%{ transform: scaleY(.55); opacity: .56; }
  50%{ transform: scaleY(1.08); opacity: 1; }
}

/* =========================================
MOBILE MENU
========================================= */
/* Mobile menu drawer */
.mobileMenu{ position: fixed; inset: 0; display:none; z-index: 1000; }
.mobileMenu.is-open{ display:block; }
.mobileMenu__backdrop{ position:absolute; inset: 0; background: rgba(0,0,0,0.62); }
.mobileMenu__panel{
  position:absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 88vw);
  background: linear-gradient(180deg, var(--barTop), var(--barBottom));
  border-left: 1px solid var(--barBorder);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  display:flex;
  flex-direction: column;
}
.mobileMenu__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobileMenu__title{ font-weight: 900; letter-spacing: 0.4px; }
.mobileMenu__close{
  cursor:pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radiusSharp);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 22px;
}
.mobileMenu__nav{ padding: 10px 10px; display:flex; flex-direction: column; }
.mobileMenu__nav a{ padding: 12px 12px; border-radius: var(--radiusSharp); color: rgba(255,255,255,0.90); font-weight: 800; }
.mobileMenu__nav a:hover{ color: var(--accentHi); background: rgba(255,255,255,0.04); }
.mobileMenu__tabletUp{ display:block; }
.mobileMenu__mobileOnly{ display:none; }
.mobileMenu__section{
  padding: 0 10px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobileMenu__sectionTitle{
  padding: 12px 12px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.mobileMenu__nav--account{ padding-top: 0; }
.mobileMenu__cta{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  border-radius: var(--radiusSharp);
  border: 1px solid var(--accentBorder);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.96) !important;
  box-shadow: 0 0 0 3px rgba(255,149,0,0.08);
}
.mobileMenu__cta:hover{
  border-color: var(--accentBorder);
  background: rgba(255,255,255,0.04);
}
.mobileMenu__social{ margin-top: auto; padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,0.08); display:flex; gap: 12px; flex-wrap: wrap; }
.mobileMenu__social a{ color: rgba(255,255,255,0.72); text-decoration: none; }
/* Theme switcher removed */


/* =========================================
   TIGHTER CONTENT SPACING
========================================= */

section,
.block,
.widget,
.card{
  margin-bottom:18px !important;
}

.music,
.musicBox,
.nowPlaying{
  margin-bottom:14px !important;
}

.hero,
.onAir,
.onAirNow{
  margin-bottom:16px !important;
}

.latestNews,
.newsWrap,
.contentGrid{
  gap:16px !important;
}

.card,
.panel,
.widget{
  padding:12px !important;
}

/* =========================================
RESPONSIVE
========================================= */
@media (max-width: 1024px){
  .contentGrid{ grid-template-columns: 1fr; }
  .contentGrid{ grid-template-columns: 1fr; }
  .contentGrid{ grid-template-columns: 1fr; }
  .sidebar{ display:none; }
  .homeMobileScheduleCta{ display:block; }
  .npBar__row{ flex-wrap: wrap; row-gap: 6px; }
  .npBar__time{ margin-left: auto; }
  .musicPanel__body{ grid-template-columns: 1fr; }
  .musicPanel__col + .musicPanel__col{ border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .nfCookieBanner{
    padding: 8px 10px;
  }
  .nfCookieBanner__inner{
    width: calc(100% - 20px);
    min-height: 0;
    padding: 12px 14px;
    flex-direction: column;
    gap: 12px;
  }
  .nfCookieBanner__text{
    font-size: 13px;
  }
  .nfCookieBanner__actions{
    width: 100%;
  }
  .nfCookieBanner__btn{
    flex: 1 1 0;
  }
}

@media (max-width: 980px){
  .newsFeed{
    --news-card-height: 200px;
    --news-card-cover-width: clamp(180px, 34%, 260px);
  }
}

@media (max-width: 520px){
  .mmMain{ padding: 12px 0 18px; }
  .mmBanner::after{
    /* lidt lettere overlay på små skærme */
    background: linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.55));
  }
  .mmBanner__word{ font-size: 42px; }
  .newsFeed{
    --news-card-height: auto;
    --news-card-cover-width: 100%;
  }
  .newsCard{
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
  }
  .newsCard__thumb{
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .newsCard__title{ -webkit-line-clamp: 2; }
  .newsCard__excerpt{ -webkit-line-clamp: 2; }
}

/* Mobil: skjul links som kun skal vises på tablet/desktop */
@media (max-width: 767px){
  body.has-cookie-banner .mmHeader{
    top: var(--nf-cookie-offset) !important;
  }
  .npBar{
    margin: 6px 0 10px;
  }
  .mobileMenu__tabletUp{ display:none; }
  .mobileMenu__mobileOnly{ display:block; }
}

/* =========================================
LOGOUT TOAST
========================================= */

.mmAlertBar{
  width: 100%;
  padding: 0 20px;
  margin: 10px 0 0;
}

.mmAlertBar__inner{
  width: min(var(--siteWidth), 100%);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.2px;
  opacity: 0;
}

.mmAlertBar__inner--danger{
  color: rgba(255,255,255,0.92);
  background: rgba(255, 52, 92, 0.14);
  border: 1px solid rgba(255, 52, 92, 0.28);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.55),
    0 0 18px rgba(255, 52, 92, 0.16);
}

.mmAlertBar__inner--success{
  color: rgba(255,255,255,0.92);
  background: rgba(44, 208, 122, 0.14);
  border: 1px solid rgba(44, 208, 122, 0.28);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.55),
    0 0 18px rgba(44, 208, 122, 0.16);
}

.mmAlertBar__inner.is-show{
  animation: mmAlertIn 180ms ease forwards;
}
.mmAlertBar__inner.is-hide{
  animation: mmAlertOut 220ms ease forwards;
}

@keyframes mmAlertIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes mmAlertOut{
  from{ opacity: 1; transform: translateY(0); }
  to{ opacity: 0; transform: translateY(-6px); }
}
