/* ==========================================================================
   Anvendt AI – farver og typografi hentet fra coveret (Studio Tobias Røder)
   ========================================================================== */
:root {
  --black: #000;
  --ink: #0b0b0b;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --line: #262626;
  --white: #f6f6f6;
  --muted: #9a9a9a;
  --green: #00ff1e;
  --green-deep: #155a1a;
  --red: #ff1e24;

  --font: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-player { padding-bottom: 96px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: var(--black); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow--green { color: var(--green); }

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  background: transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: var(--black); }
.btn--primary:hover { background: var(--white); }
.btn--primary[disabled] { opacity: .5; cursor: default; }
.btn--ghost { border-color: #3a3a3a; }
.btn--ghost:hover { border-color: var(--white); }
.btn--small { height: 40px; padding: 0 18px; font-size: 15px; background: var(--white); color: var(--black); }
.btn--small:hover { background: var(--green); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; font-size: 20px; letter-spacing: -.03em;
}
.nav__logo span { font-weight: 600; }
.nav__logo strong { font-weight: 800; color: var(--green); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--white); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
  padding-top: clamp(28px, 6vh, 72px);
  overflow: hidden;
}
.hero__wave {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 260px;
  margin-top: clamp(16px, 3vh, 40px);
}
@media (min-width: 960px) {
  .hero__wave {
    position: absolute; right: 0; bottom: 0;
    width: min(66%, 1100px); height: min(78%, 640px);
    min-height: 0; margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 28%);
            mask-image: linear-gradient(to right, transparent, #000 28%);
  }
  .hero__inner { position: relative; z-index: 1; }
}
.hero__band { stroke: var(--green-deep); }
.hero__line { fill: none; stroke-width: 48; stroke-linecap: butt; stroke-linejoin: round; }
.hero__line--red { stroke: var(--red); }
.hero__line--green { stroke: var(--green); }
.hero__line--red, .hero__line--green {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}
.hero__band { opacity: 0; animation: fade 1.2s ease .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__line--red, .hero__line--green, .hero__band { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

.hero__title {
  font-size: clamp(64px, min(12vw, 19vh), 170px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.055em;
  margin: 0 0 clamp(18px, 3.5vh, 32px) -.04em;
}
.hero__title span { display: block; font-size: .56em; letter-spacing: -.04em; margin-bottom: .08em; }
.hero__lead {
  max-width: 38ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: #d8d8d8;
  margin-bottom: clamp(20px, 3.5vh, 32px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Latest ---------- */
.latest { position: relative; margin-top: 40px; z-index: 2; }
.latest__card {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 24px;
  background: rgba(18, 18, 18, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
}
.latest__art { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; }
.latest__art img { width: 100%; height: 100%; object-fit: cover; }
.latest__art .play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border: 0; opacity: 0; transition: opacity .2s;
}
.latest__art:hover .play-overlay, .play-overlay:focus-visible { opacity: 1; }
.play-overlay span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center;
}
.play-overlay svg { width: 26px; height: 26px; fill: var(--black); margin-left: 3px; }
.latest__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.latest__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 10px; }
.latest__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.latest__desc { color: #cfcfcf; font-size: 16px; }
.latest__desc p + p { margin-top: 8px; }
.latest__desc a { color: var(--green); }
.latest__actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .latest__card { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .latest__art { max-width: 120px; }
}

/* ---------- Platforms ---------- */
.platforms { padding-top: clamp(80px, 10vw, 120px); }
.platforms .section-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }
.platforms__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.platform {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  text-decoration: none; font-weight: 600;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.platform svg { width: 24px; height: 24px; fill: currentColor; }
.platform:hover { border-color: var(--green); background: var(--surface-2); transform: translateY(-2px); }
.platform:hover svg { fill: var(--green); }

/* ---------- Format ---------- */
.format { padding-block: clamp(96px, 12vw, 160px); }
.format__grid {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.format__item { padding: 32px 32px 8px 0; position: relative; }
.format__item + .format__item { padding-left: 32px; border-left: 1px solid var(--line); }
.format__num { display: block; font-family: var(--mono); font-size: 14px; color: var(--green); margin-bottom: 40px; }
.format__item h3 { font-size: 26px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 12px; }
.format__item p { color: var(--muted); }
@media (max-width: 860px) {
  .format__grid { grid-template-columns: 1fr; }
  .format__item, .format__item + .format__item { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .format__num { margin-bottom: 16px; }
}

/* ---------- Episodes ---------- */
.episodes { padding-bottom: clamp(96px, 12vw, 160px); }
.episodes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.search {
  display: flex; align-items: center; gap: 10px;
  width: min(100%, 380px); height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--green); }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--white);
  font: inherit; font-size: 15px; outline: none;
}
.search input::placeholder { color: #6a6a6a; }

.episodes__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.episode {
  display: grid;
  grid-template-columns: 56px 88px 1fr auto;
  gap: 24px; align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.episode__num { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.episode__art { width: 88px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.episode__art img { width: 100%; height: 100%; object-fit: cover; }
.episode__main { min-width: 0; }
.episode__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 6px; }
.episode__meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.episode__desc {
  color: #bdbdbd; font-size: 15.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.episode.is-open .episode__desc { display: block; }
.episode__desc p + p { margin-top: 8px; }
.episode__desc a { color: var(--green); }
.episode__toggle {
  margin-top: 8px; padding: 0; border: 0; background: none;
  font-size: 14px; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 3px;
}
.episode__play {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid #3a3a3a; background: none;
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.episode__play svg { width: 20px; height: 20px; fill: currentColor; }
.episode__play .i-pause { display: none; }
.episode__play:hover { border-color: var(--green); color: var(--green); }
.episode.is-playing .episode__play { background: var(--green); border-color: var(--green); color: var(--black); }
.episode.is-playing .episode__play .i-play { display: none; }
.episode.is-playing .episode__play .i-pause { display: block; }
.episode.is-playing .episode__title { color: var(--green); }
.episode--skeleton { height: 137px; display: block; background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (max-width: 720px) {
  .episode { grid-template-columns: 64px 1fr auto; gap: 16px; }
  .episode__num { display: none; }
  .episode__art { width: 64px; }
  .episode__title { font-size: 18px; }
  .episode__play { width: 44px; height: 44px; }
}
.episodes__empty { padding: 32px 0; color: var(--muted); }
.episodes__more { margin-top: 32px; display: flex; justify-content: center; }
.episodes__error { padding: 32px 0; color: var(--muted); }
.episodes__error a { color: var(--green); }

/* ---------- Hosts ---------- */
.hosts { padding-block: clamp(96px, 12vw, 160px); background: var(--ink); border-block: 1px solid var(--line); }
.hosts__grid { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.host { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.host__photo {
  display: block; width: 128px; height: 128px; margin: 28px 28px 0; border-radius: 12px; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .3s ease;
}
.host:hover .host__photo { filter: none; }
.host h3, .host__role, .host__bio { padding-inline: 28px; }
.host h3 { font-size: 22px; letter-spacing: -.02em; margin: 20px 0 4px; }
.host__role { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.host__bio { color: #bdbdbd; font-size: 15.5px; line-height: 1.5; padding-bottom: 28px; }
.host__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.host__link svg { width: 18px; height: 18px; fill: var(--muted); flex: none; transition: fill .15s; }
.host__link:hover, .host__link:hover svg { color: var(--green); fill: var(--green); }
@media (max-width: 860px) {
  .hosts__grid { grid-template-columns: 1fr; }
  .host { display: grid; grid-template-columns: 112px 1fr; column-gap: 20px; align-items: start; padding: 16px; }
  .host__photo { grid-row: span 3; width: 112px; height: 112px; margin: 0; align-self: start; border-radius: 10px; }
  .host h3, .host__role, .host__bio { padding-inline: 0; }
  .host h3 { margin-top: 0; font-size: 20px; }
  .host__bio { grid-column: 1 / -1; margin-top: 16px; padding-bottom: 0; }
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(96px, 14vw, 180px); }
.contact__title { font-size: clamp(32px, 5.4vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; margin-bottom: 40px; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(22px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em;
  text-decoration: none; color: var(--green);
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact__mail svg { width: .9em; height: .9em; fill: currentColor; flex: none; transition: transform .2s; }
.contact__mail:hover svg { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.footer__credits { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; }
.footer__credits dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__credits dd { margin: 0; font-size: 15px; }

/* ---------- Player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 14, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.player.is-visible { transform: none; }
.player__inner { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.player__art { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.player__info { flex: 1; min-width: 0; }
.player__title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.player__progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.player__progress input { flex: 1; min-width: 0; }
.player__controls { display: flex; align-items: center; gap: 4px; flex: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  display: grid; place-items: center; color: var(--white);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn text { fill: currentColor; }
.icon-btn--play { width: 48px; height: 48px; background: var(--white); color: var(--black); }
.icon-btn--play:hover { background: var(--green); }
.icon-btn--play svg { width: 20px; height: 20px; }
.icon-btn--play .i-pause { display: none; }
.player.is-playing .icon-btn--play .i-play { display: none; }
.player.is-playing .icon-btn--play .i-pause { display: block; }
.speed-btn {
  height: 32px; min-width: 52px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  font-family: var(--mono); font-size: 13px;
}
.speed-btn:hover { border-color: var(--white); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px; background: #333; cursor: pointer;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: var(--p, 0%) 100%; background-repeat: no-repeat;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 0;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 0; }

@media (max-width: 600px) {
  .player__inner { flex-wrap: wrap; gap: 10px 12px; }
  .player__info { flex-basis: calc(100% - 60px); }
  .player__controls { width: 100%; justify-content: center; gap: 12px; }
  body.has-player { padding-bottom: 150px; }
}

/* ---------- Skeletons ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2), #222, var(--surface-2)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; color: transparent; }
.skeleton--text { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
