/* GRELLA Radio — main styles (no Wix chrome) */

@font-face {
  font-family: "Grella Display";
  src:
    url("../fonts/grella-display.woff2") format("woff2"),
    url("../fonts/grella-display.woff") format("woff"),
    url("../fonts/grella-display.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --gold: #e6c3a3;
  --gold-dim: #736252;
  --text: #f2e6d8;
  --muted: #9a8674;
  --line: rgba(230, 195, 163, 0.45);
  --max: 1046px;
  --font-ui: "Oswald", system-ui, sans-serif;
  --font-display: "Grella Display", "Oswald", Impact, sans-serif;
  --font-body: "Oswald", "Segoe UI", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #fff;
}

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

.site {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

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

.site-header {
  text-align: center;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.lang-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lang-links a {
  color: var(--gold);
}

.site-branding {
  display: flex;
  justify-content: center;
}

.site-logo,
.custom-logo {
  width: min(200px, 42vw);
  height: auto;
  margin: 0 auto;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-links--header {
  justify-content: flex-end;
}

.social-links img {
  width: 22px;
  height: 22px;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-links a:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

.site-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.nav-menu a {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu .current-menu-item > a,
.nav-menu a:hover {
  color: #fff;
}

/* ----- On-air player ----- */

.on-air {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  text-align: center;
}

.on-air__btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.on-air__btn:hover,
.on-air__btn.is-playing {
  background: var(--gold);
  color: #000;
}

.on-air__meta {
  font-size: 1rem;
}

.now-playing {
  margin: 0;
  color: var(--gold);
}

.now-playing strong,
[data-myinfo="song"] {
  font-weight: 700;
  color: var(--gold);
}

.next-playing {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--gold-dim);
}

/* ----- Content ----- */

.site-main {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.page-block {
  padding-bottom: 2rem;
}

.entry-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.entry-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.entry-content {
  max-width: none;
  margin: 0 auto;
  color: var(--text);
}

body.is-about-page .entry-content--about > p:not(.lead-italic) {
  font-family: Arial, Helvetica, sans-serif;
}

.entry-content > p,
.entry-content > h2,
.entry-content > h3,
.entry-content > ul,
.entry-content > ol,
.entry-content > details,
.entry-content > .entry-subtitle,
.entry-content > .content-figure,
.entry-content > .coming-soon {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.home-tagline {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text);
}

.coming-soon {
  margin: 2.5rem 0 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 5rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
}

/* WP sometimes wraps seed HTML in <p> — keep coming soon centered */
.entry-content > .coming-soon,
.entry-content > p.coming-soon {
  margin-top: 2rem;
}

/* FAQ-friendly details */
.entry-content details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.entry-content details:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-content summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.entry-content details[open] summary {
  margin-bottom: 0.5rem;
}

/* Partners / galleries from editor */
.entry-content .wp-block-gallery,
.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.lead-italic {
  text-align: center;
  font-style: italic;
  color: var(--gold);
}

.content-figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

.content-figure img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.about-hero {
  max-width: 1108px;
  margin: 2rem auto 4rem;
  border: 1px solid var(--gold);
  background: #000;
}

.about-hero img {
  width: 100%;
  height: auto;
}

.stats-gallery {
  max-width: 651px;
  margin: 2rem auto;
}

.stats-gallery__switches {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.stats-gallery__toggle {
  position: absolute;
  opacity: 0;
}

.stats-gallery__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.stats-gallery__item {
  display: none;
  margin: 0;
}

.stats-gallery__item img {
  width: 100%;
  aspect-ratio: 562 / 333;
  object-fit: cover;
}

.stats-gallery__item figcaption {
  padding: 0.55rem 0.75rem;
  color: var(--gold);
  text-align: center;
  font-family: var(--font-ui);
}

.stats-gallery:has(#stats-september:checked) .stats-gallery__item--september,
.stats-gallery:has(#stats-august:checked) .stats-gallery__item--august,
.stats-gallery:has(#stats-july:checked) .stats-gallery__item--july,
.stats-gallery:has(#stats-june:checked) .stats-gallery__item--june {
  display: block;
}

.stats-gallery__controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.9rem;
}

.stats-gallery__controls p {
  display: contents;
}

.stats-gallery__controls label {
  cursor: pointer;
  color: var(--gold-dim);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.stats-gallery:has(#stats-september:checked) .stats-gallery__controls label[for="stats-september"],
.stats-gallery:has(#stats-august:checked) .stats-gallery__controls label[for="stats-august"],
.stats-gallery:has(#stats-july:checked) .stats-gallery__controls label[for="stats-july"],
.stats-gallery:has(#stats-june:checked) .stats-gallery__controls label[for="stats-june"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.country-distribution {
  max-width: 656px;
  margin: 2rem auto 4rem;
  border: 1px solid var(--line);
}

.country-distribution img {
  width: 100%;
  height: auto;
}

.lead-italic {
  font-family: "Marck Script", cursive;
  font-size: 1.35rem;
  font-style: normal;
}

.about-milestone {
  font-family: var(--font-display);
  font-weight: 400;
}

.team-section {
  margin: 4rem 0;
}

.team-section > h2 {
  margin-bottom: 1.5rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.team-card {
  min-width: 0;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 443 / 431;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.team-card__body {
  padding-top: 0.65rem;
}

.team-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-card h3 {
  margin: 0;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.25rem;
}

.team-card__social {
  flex: 0 0 auto;
}

.team-card__social img {
  width: 24px;
  height: 24px;
}

.team-card p {
  margin: 0.35rem 0 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.partners-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 624px);
  gap: 3.5rem;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
}

.partners-copy {
  max-width: 28rem;
}

.partners-heading {
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem) !important;
  line-height: 1.2;
  max-width: 28rem;
  margin-top: 0;
}

.partners-copy > p {
  max-width: 28rem;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.45;
}

.entry-content .partners-grid,
.partners-grid {
  width: 100%;
  max-width: 624px;
  justify-self: end;
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2.8rem;
  margin: 0;
  padding: 0;
}

/* wpautop wraps raw seed HTML in paragraphs and line breaks. */
.partners-grid > p {
  display: contents;
}

.partners-grid br {
  display: none;
}

.entry-content .partners-grid > .partner-card,
.partners-grid > .partner-card {
  grid-column: auto !important;
  grid-row: auto !important;
}

.entry-content .partner-card,
.partner-card {
  display: block;
  margin: 0;
  padding: 0;
  border: 2px solid var(--gold);
  background: #000;
  aspect-ratio: 1;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.partner-card:hover {
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(230, 195, 163, 0.35);
}

.entry-content .partner-card img,
.partner-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.partner-card--soon {
  pointer-events: none;
  display: grid;
  place-items: center;
}

.partner-card--soon > span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.partner-card--soon img {
  object-fit: contain;
  padding: 0;
  background: #000;
}

@media (max-width: 720px) {
  .partners-layout {
    grid-template-columns: 1fr;
  }

  .entry-content .partners-grid,
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 721px) and (max-width: 1050px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ----- Channels ----- */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.channel-card {
  display: block;
  border: 1px solid transparent;
  padding: 0.75rem;
  text-align: center;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.channel-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  color: inherit;
}

.channel-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 0.75rem;
}

.channel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-card__title {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.channel-card--locked {
  opacity: 0.85;
}

/* ----- Playlist ----- */

.playlist-widget {
  margin-top: 1rem;
  text-align: left;
}

.playlist-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0.85rem 1rem;
  font-family: var(--font-ui);
}

.playlist-time {
  color: #fff;
  min-width: 4.5rem;
}

.playlist-track {
  color: var(--gold);
}

/* ----- Table iframe ----- */

.iframe-wrap {
  width: 100%;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
}

.order-table-iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  height: 75vh;
  border: 0;
  background: #fff;
}

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

.site-footer {
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-email {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.social-links--footer {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-copy {
  margin: 0 0 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-disclaimer {
  margin: 0 auto 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

/* WP admin bar offset */
.admin-bar .site {
  padding-top: 2rem;
}

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

@media (max-width: 720px) {
  .header-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "langs socials";
    align-items: center;
    gap: 0.6rem 0.75rem;
    margin-bottom: 0.85rem;
  }

  .site-branding {
    grid-area: brand;
  }

  .lang-links {
    grid-area: langs;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 0.7rem;
    min-width: 0;
  }

  .social-links--header {
    grid-area: socials;
    justify-content: flex-end;
  }

  .site-logo,
  .custom-logo {
    width: min(150px, 42vw);
  }

  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
  }

  .site-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

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

  .nav-menu {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.25rem 1rem;
  }

  .nav-menu a {
    display: block;
    padding: 0.35rem 0;
    white-space: nowrap;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
  }

  .on-air {
    gap: 0.55rem;
    margin-bottom: 1.25rem;
  }

  .on-air__btn {
    width: min(100%, 19rem);
    min-height: 44px;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .on-air__meta {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.25rem;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
  }

  .now-playing,
  .next-playing {
    overflow-wrap: anywhere;
  }

  .site-main {
    padding-top: 1.15rem;
  }

  .page-block {
    padding-bottom: 1.25rem;
  }

  .entry-header {
    margin-bottom: 1rem;
  }

  .entry-title {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .entry-subtitle {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .entry-content {
    font-size: 0.98rem;
  }

  .entry-content h2,
  .entry-content h3 {
    line-height: 1.15;
    text-wrap: balance;
  }

  .entry-content .wp-block-gallery,
  .entry-content .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stats-gallery,
  .country-distribution {
    width: 100%;
    margin-top: 1.5rem;
  }

  .stats-gallery__controls {
    gap: 0.35rem 0.75rem;
  }

  .stats-gallery__controls label {
    font-size: 0.82rem;
  }

  .partners-layout {
    gap: 1.75rem;
  }

  .partners-copy,
  .partners-copy > p,
  .partners-heading {
    max-width: none;
  }

  .partners-heading {
    font-size: clamp(1.6rem, 8vw, 2.15rem) !important;
    line-height: 1.12;
  }

  .partners-copy > p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .entry-content .partners-grid,
  .partners-grid {
    max-width: none;
    gap: 0.75rem;
  }

  .team-section {
    margin: 2.5rem 0;
  }

  .team-grid {
    gap: 1.5rem;
  }

  .channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .channel-card {
    padding: 0.4rem;
  }

  .channel-card__media {
    margin-bottom: 0.5rem;
  }

  .channel-card__title {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  .channel-card__desc {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .playlist-row {
    gap: 0.5rem;
    margin: 0.7rem 0;
    align-items: flex-start;
  }

  .playlist-time {
    min-width: 3.6rem;
    font-size: 0.85rem;
  }

  .playlist-track {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .order-table-iframe {
    min-height: 0;
    height: max(520px, 72dvh);
  }

  .site-footer {
    margin-top: 0.75rem;
    padding-top: 1.35rem;
  }

  .footer-email {
    font-size: 0.98rem;
  }

  .footer-menu {
    gap: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .site {
    width: 100%;
    padding-top: 0.75rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: 2rem;
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .admin-bar .site {
    padding-top: 2.75rem;
  }
}

@media (max-width: 380px) {
  .site {
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .site-nav {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .nav-menu {
    gap: 0.25rem 0.8rem;
  }

  .nav-menu a {
    font-size: 0.74rem;
  }

  .channels-grid {
    gap: 0.5rem;
  }

  .channel-card__desc {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
