:root {
  --color-primary: #ff6310;
  --color-primary-hover: #fd7c47;
  --color-heading: #fe7000;
  --color-text: #111518;
  --color-bg: #ffffff;
  --color-surface: #F4F5F6;
  --color-surface-2: #E9EBEC;
  --color-dark: #111518;
  --color-darker: #000000;
  --color-muted: #687279;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: var(--color-primary-hover); }

h1, h2, h3, h4 { color: var(--color-heading); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 50px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 20px; }

::selection { background: var(--color-primary); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5em 1em; z-index: 1000; }

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

.site-header {
  background: var(--color-darker);
  border-bottom: 5px solid var(--color-primary);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
}
.site-logo img { display: block; max-height: 200px; height: auto; width: auto; }
.menu-trigger {
  display: none;
  background: transparent; border: 0; color: var(--color-primary);
  font-size: 30px; line-height: 1; padding: 0.5rem;
  cursor: pointer;
}
.site-menu { flex: 1; }
.menu-root {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: flex-end; align-items: center;
  gap: 30px;
}
.menu-root > li { position: relative; }
.menu-root > li > a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 100px;
  display: inline-block;
}
.menu-root > li > a:hover { color: var(--color-primary); }
.has-submenu > a .fa-caret-down { margin-left: 0.25em; font-size: 12px; }
.submenu {
  position: absolute; top: 100%; right: 0; min-width: 240px;
  background: #0a0a0a; border-top: 3px solid var(--color-primary);
  list-style: none; margin: 0; padding: 0.5rem 0;
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  visibility: visible; opacity: 1; transform: translateY(0);
}
.submenu li a {
  display: block; padding: 0.5rem 1.25rem;
  color: #f4f4f4; text-transform: none; font-weight: 500; font-size: 14px;
  line-height: 1.4;
}
.submenu li a:hover { background: #1a1a1a; color: var(--color-primary); }

@media (max-width: 999px) {
  .header-inner { flex-wrap: wrap; padding: 0.5rem 1rem; }
  .site-logo { order: 1; margin: 0 auto; }
  .site-logo img { max-height: 90px; }
  .menu-trigger { display: inline-flex; order: 2; align-items: center; justify-content: center; }
  .site-menu {
    order: 3; width: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-menu.open { max-height: 80vh; overflow-y: auto; padding-bottom: 1rem; }
  .menu-root { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-root > li { border-top: 1px solid #1f1f1f; }
  .menu-root > li > a { line-height: 1.4; padding: 0.9rem 1rem; }
  .submenu {
    position: static;
    visibility: hidden; opacity: 0; max-height: 0;
    transform: none; transition: max-height 0.25s ease;
    background: #050505; border-top: none;
    padding: 0;
  }
  .has-submenu.open > .submenu {
    visibility: visible; opacity: 1; max-height: 60vh; padding: 0.25rem 0;
  }
  .submenu li a { padding: 0.6rem 2rem; font-size: 13px; }
}

/* ---------- Hero / live player surface ---------- */

.hero {
  background: #0e0e0e;
  color: #fff;
  padding: 2rem 1rem 3rem;
  text-align: center;
}

/* ---------- Generic page hero ---------- */

.page-hero {
  background: var(--color-dark);
  color: #fff;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.25em; }
.page-hero p { color: #d2d6db; margin: 0; }

/* ---------- Section / container ---------- */

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section-title { color: var(--color-heading); margin-bottom: 1.5rem; text-align: center; }
.section-cta { text-align: center; margin-top: 2rem; }

.button {
  display: inline-block;
  padding: 0.7em 1.4em;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.button:hover { background: var(--color-primary-hover); }
.button-secondary { background: transparent; color: var(--color-primary) !important; border: 1px solid var(--color-primary); }
.button-secondary:hover { background: var(--color-primary); color: #fff !important; }

/* ---------- Episode grid ---------- */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.episode-card {
  background: var(--color-surface);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.episode-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.episode-cover { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #ddd; }
.episode-meta { padding: 0.9rem 1rem 1.1rem; }
.episode-title { font-size: 17px; margin: 0 0 0.25em; color: var(--color-text); line-height: 1.3; }
.episode-title a { color: var(--color-text); }
.episode-title a:hover { color: var(--color-primary); }
.episode-sub { color: var(--color-muted); font-size: 13px; margin: 0 0 0.6em; }
.episode-sub .programa-name { color: var(--color-heading); font-weight: 600; }
.episode-desc { font-size: 14px; color: var(--color-text); margin: 0; }

/* ---------- Single episode ---------- */

.episode-detail { max-width: 760px; }
.episode-cover-large { display: block; max-width: 100%; margin: 0 auto 1.5rem; border-radius: 6px; }
.podcast-audio { width: 100%; margin: 0 0 1.5rem; }
.tracklist { background: var(--color-surface); padding: 1rem 1.25rem; border-radius: 6px; white-space: pre-wrap; font-size: 13px; }

/* ---------- Program list ---------- */

.program-list .program-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-surface-2);
}
.program-list .program-row.off-air h2 { color: var(--color-muted); }
.program-list .program-row.off-air small { color: var(--color-muted); font-weight: 400; font-size: 13px; }
.program-author, .program-airtime { color: var(--color-muted); font-size: 14px; margin: 0.1em 0 0.6em; }
.program-desc { font-size: 15px; margin: 0; }

/* ---------- Schedule ---------- */

.schedule-wrap { overflow-x: auto; }
.schedule {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  min-width: 880px;
}
.schedule th, .schedule td {
  border: 1px solid var(--color-surface-2);
  padding: 0.5rem 0.6rem;
  text-align: center;
  vertical-align: top;
}
.schedule thead th {
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.schedule .hour-cell {
  background: var(--color-surface);
  color: var(--color-muted);
  font-weight: 700;
  width: 56px;
}
.schedule .slot.fill span { color: var(--color-muted); font-style: italic; }
.schedule .slot.filled { background: #fff8f0; }
.schedule .slot.filled a { color: var(--color-text); font-weight: 600; }
.schedule .slot.filled a:hover { color: var(--color-primary); }
.schedule .slot.rebroadcast { background: var(--color-surface); }
.schedule .slot.rebroadcast small { display: block; color: var(--color-muted); font-size: 11px; }

/* ---------- Page (static content) ---------- */

.page-content { max-width: 760px; }
.page-content img { max-width: 100%; height: auto; }

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

.site-footer {
  background: var(--color-dark);
  color: #d2d6db;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  text-align: center;
}
.site-footer p { margin: 0.5em 0; }
.footer-pages { list-style: none; padding: 0; margin: 1em 0; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-pages a { color: #d2d6db; }
.footer-pages a:hover { color: var(--color-primary); }
.socials a { color: var(--color-primary); font-size: 20px; margin: 0 0.5em; }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem;
  background: var(--color-primary); color: #fff;
  width: 42px; height: 42px; line-height: 42px;
  border-radius: 50%; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0.85;
}
.back-to-top:hover { opacity: 1; color: #fff; }

@media (max-width: 749px) {
  .section { padding: 2rem 0; }
  .container { padding: 0 1rem; }
}
