:root {
  --black: #000000;
  --yellow: #FFDE59;
  --mokka:#7E6958;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --header-height: 88px;
  --font-display: 'Anton', 'Archivo Black', Impact, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* The viewport is locked at every size: header, hero and bottom bar fit
   on one screen, only the news box scrolls. */
html, body {
  height: 100vh;
  height: 100dvh;
}

body {
  margin: 0;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Header ---------- */

.site-header {
  flex-shrink: 0;
  background: var(--black);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  flex-wrap: nowrap;
}

.header-logo img {
  height: 46px;
  width: auto;
}

.header-logo--right img {
  height: 58px;
}

.main-nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.main-nav a,
.nav-disabled {
  font-family: var(--font-display);
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--yellow);
}

.main-nav li:not(:last-child) .main-nav a::after,
.main-nav li:not(:last-child)::after {
  content: "";
}

.main-nav ul li + li::before {
  content: "-";
  margin-right: clamp(6px, 2.4vw, 28px);
  color: var(--white);
  font-family: var(--font-display);
}

.nav-disabled {
  color: #555;
  cursor: default;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 32px 24px;
}

/* Single row sized to the hero, not to its content. */
.hero-inner {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 40px;
}

/* The mascot shrinks (keeping its ratio) when the window is not tall enough. */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
}

.mascot {
  width: 100%;
  max-width: 620px;
  height: auto;
  min-height: 0;
  flex: 0 1 auto;
  object-fit: contain;
}

.hero-title {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  height: auto;
  flex-shrink: 0;
}

/* The box fills the height it is given; its content is taken out of the
   flow so it scrolls inside the box instead of stretching it. */
.news-box {
  position: relative;
  border: 5px solid var(--black);
  background: var(--yellow);
  min-width: 0;
  min-height: 120px;
}

.news-box__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.news-status {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.news-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item__date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0 4px;
}

.news-item__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.news-item__title a {
  text-decoration: none;
  color: var(--black);
}

.news-item__title a:hover {
  text-decoration: underline;
}

.news-item__excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #2b2b2b;
}

.news-box__scroll::-webkit-scrollbar {
  width: 8px;
}

.news-box__scroll::-webkit-scrollbar-thumb {
  background: var(--black);
}

/* ---------- Bottom bar (player + footer) ---------- */

.bottom-bar {
  flex-shrink: 0;
}

/* ---------- Player bar ---------- */

.player-bar {
  background: var(--black);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
}

.play-btn {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.play-btn:hover,
.play-btn:focus-visible {
  background: var(--white);
  color: var(--black);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Pause icon = the favicon shape, used as a mask so it takes the button
   colour (white, black on hover) like the play icon. */
.play-btn .icon-pause {
  /* larger than the play icon: the favicon has transparent margins */
  width: 36px;
  height: 36px;
  background: currentColor;
  -webkit-mask: url("../assets/img/favicon.png") center / contain no-repeat;
  mask: url("../assets/img/favicon.png") center / contain no-repeat;
}

.play-btn [hidden] {
  display: none;
}

.player-info {
  flex: 1 1 auto;
  min-width: 0;
}

.player-status {
  color: var(--yellow);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin: 0 0 2px;
}

.player-track {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track__artist {
  font-weight: 700;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  max-width: 560px;
}

.player-progress[hidden] {
  display: none;
}

.player-progress__track {
  flex: 1 1 auto;
  height: 4px;
  background: #333;
  overflow: hidden;
}

.player-progress__fill {
  height: 100%;
  width: 0;
  background: var(--yellow);
  transition: width 1s linear;
}

.player-time {
  flex-shrink: 0;
  color: #aaa;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--yellow);
  padding: 18px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.legal-link {
  background: none;
  border: none;
  color: var(--text-dark);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: var(--black);
}

/* ---------- Legal modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--white);
  color: var(--text-dark);
  width: min(720px, 100%);
  max-height: min(80vh, 800px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 3px solid var(--black);
  flex-shrink: 0;
}

.modal__header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0;
  font-size: 1.3rem;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
  padding: 4px 8px;
}

.modal__body {
  overflow-y: auto;
  padding: 20px 24px 32px;
}

.modal__body h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.modal__body h3:first-child {
  margin-top: 0;
}

.modal__body p,
.modal__body ul {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 10px;
}

.legal-updated {
  font-style: italic;
  opacity: 0.7;
}

/* ---------- Links modal ---------- */

.modal--small {
  width: min(420px, 100%);
}

.links-intro {
  text-align: center;
  font-weight: 600;
}

.link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__body .link-list {
  margin: 16px 0 20px;
}

.link-list a {
  display: block;
  padding: 14px 18px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  color: var(--yellow);
}

.links-more {
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* Stacked: the visual keeps its size, the news box fills whatever
     height is left down to the player bar. */
  .hero {
    padding: 16px 24px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero-visual {
    flex-shrink: 0;
  }

  .mascot {
    width: auto;
    max-height: 30vh;
    max-height: 30dvh;
  }

  .hero-title {
    margin-top: 2px;
  }

  .news-box {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 10px;
    gap: 8px;
    min-height: 0;
  }

  .header-logo {
    flex-shrink: 0;
  }

  .header-logo img {
    height: 26px;
  }

  .header-logo--right img {
    height: 30px;
  }

  .main-nav a,
  .nav-disabled {
    font-size: 0.62rem;
  }

  .main-nav ul {
    gap: 6px;
  }

  .main-nav ul li + li::before {
    margin-right: 6px;
  }

  .hero {
    padding: 12px 16px;
  }

  .news-box__scroll {
    padding: 4px 14px;
  }

  /* One line per post: short date + title */
  .news-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
    white-space: nowrap;
  }

  .news-item:last-child {
    padding-bottom: 8px;
  }

  .news-item__date {
    flex-shrink: 0;
    margin: 0;
    font-size: 0.6rem;
  }

  .news-item__title {
    margin: 0;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .news-item__excerpt {
    display: none;
  }

  .news-status {
    font-size: 0.8rem;
  }

  .player-bar {
    padding: 10px 16px;
    gap: 12px;
  }

  .play-btn {
    width: 44px;
    height: 44px;
  }

  .player-track {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .player-progress {
    margin-top: 6px;
    gap: 8px;
  }

  .player-time {
    font-size: 0.65rem;
  }

  .site-footer {
    padding: 8px 16px 12px;
    gap: 16px;
    font-size: 0.78rem;
  }
}
