/* Home page: make the player borderless */
.home .tracklist .track-btn {
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.home .tracklist .tb-play {
  border: 1px solid currentColor;
}
* Home page: make the player borderless */
.home .tracklist .track-btn {
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.home .tracklist .tb-play {
  border: 1px solid currentColor;
}




/* Center the list and keep it narrow like your custom-audio */
.tracklist {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 90%;
  max-width: 800px;   /* matches .caption text width */
  margin-left: auto;
  margin-right: auto;
}


/* Convert your track-btn into a 2-row grid while preserving your border/radius look */
.track-btn {
  font: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;

  text-align: left;
  width: 100%;

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 10px;
  align-items: center;
     -webkit-appearance: none;
  appearance: none;
  background: transparent;

  line-height: 1.2;         /* avoids odd vertical centering */
  margin: 0;                /* prevents UA margins in some cases */
  border-radius: 10px;      /* keep your rouunding*/
}

.track-btn.is-active {
  opacity: 0.85;
}

/* Remove browser focus box on click */
.track-btn:focus {
  outline: none;
}

/* Hard reset so buttons don't render like OS widgets */
.track-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid currentColor; /* keep if you want bordered version */
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  line-height: 1.2;
}

/* Left cluster: play + title */
.tb-left {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tb-title {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Play/pause capsule */
.tb-play {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  flex: 0 0 auto;
}

.tb-icon {
  display: none;
  line-height: 1;
}

/* Default: show play icon */
.track-btn .tb-icon-play { display: inline; }

/* Active + playing: show pause icon, hide play */
.track-btn.is-active.is-playing .tb-icon-play { display: none; }
.track-btn.is-active.is-playing .tb-icon-pause { display: inline; }

/* Time display */
.tb-time {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

/* Progress bar (clickable) */
.tb-progress {
  grid-column: 1 / span 2;
  grid-row: 2;
  height: 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  overflow: hidden;
  position: relative;
}

.tb-progressbar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: currentColor;
  opacity: 0.35;
}


/* Reset and base styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Overpass', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: red;
    background-color: #ffffff;
    text-align: center;
}

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

a:hover {
    text-decoration: underline;
}

/* Header styles */

/* Regular logo styles (non-fixed) */
.logo-container {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    z-index: 2; /* Ensure logo is above other elements */
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    max-width: 75px;
    height: auto;
    border: none;
}
@media (max-width: 768px) {
    .logo-image {
        max-width: 60px; /* Adjusted for mobile */
    }
/* Radio page specific logo styles */
.radio-logo-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 100px;
    }
}
}        
.header-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Add spacing between image and audio */
}

.header-image {
    width: 100%;
    display: block;
}

/* Audio player styles */
.center-container {
    position: relative;
    padding: 20px 0; /* Add more padding to ensure space */
    text-align: center;
    z-index: 1; /* Ensure it's not overlapping other content */
    clear: both; /* Ensure it clears floating elements */
}

.custom-audio {
    width: 90%;
    max-width: 400px;
    opacity: 0.8;
    margin: 0 auto;
}

/* Main content styles */
.main-content {
    padding: 10px;
    background-color: #ffffff;
    text-align: left;
}

.caption {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
}
.centercaption {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}
.imagecaption {
    font-style: italic;
    font-size: 0.8em;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
}
.caption h4 {
    margin-top: 0; /* Remove top margin from the first h4 */
}

h4 {
    margin: 1em 0 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    color: red;
    text-align: center;
}

.divider {
    margin: 20px 0;
    font-size: 1.5em;
    color: red;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

/* Image styles */
img:not(.header-image) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* Iframe styles */
/*iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    width: 80%;
    height: auto;
    aspect-ratio: 16 / 9;*/
.video-container {
    position: relative;
    width: 90%; /* Video takes up 90% of the container width */
    max-width: 1200px; /* Restrict the video to a max of 1200px */
    margin: 0 auto; /* Center the video */
    overflow: hidden;
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Video scales with the container */
    height: 100%;
    border: none;
}


/* Footer styles */
footer {
    background-color: #fff2d1;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-image {
        max-width: 60px;
    }
    
    iframe {
         
        height: 315px;
        
    }
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .header-image {
        width: auto;
        height: 80vh;
        max-height: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 20px;
    }
    
    .header-image {
        height: 90vh;
    }
}

/* Reset and base styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Overpass', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: red;
    background-color: #ffffff;
    text-align: center;
}

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

a:hover {
    text-decoration: underline;
}

/* Header styles */

/* Regular logo styles (non-fixed) */
.logo-container {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    z-index: 2; /* Ensure logo is above other elements */
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    max-width: 75px;
    height: auto;
    border: none;
}
@media (max-width: 768px) {
    .logo-image {
        max-width: 60px; /* Adjusted for mobile */
    }
/* Radio page specific logo styles */
.radio-logo-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 100px;
    }
}
}        
.header-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Add spacing between image and audio */
}

.header-image {
    width: 100%;
    display: block;
}

/* Audio player styles */
.center-container {
    position: relative;
    padding: 20px 0; /* Add more padding to ensure space */
    text-align: center;
    z-index: 1; /* Ensure it's not overlapping other content */
    clear: both; /* Ensure it clears floating elements */
}

.custom-audio {
    width: 90%;
    max-width: 400px;
    opacity: 0.8;
    margin: 0 auto;
}

/* Main content styles */
.main-content {
    padding: 10px;
    background-color: #ffffff;
    text-align: left;
}

.caption {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
}
.centercaption {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}
.imagecaption {
    font-style: italic;
    font-size: 0.8em;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
}
.caption h4 {
    margin-top: 0; /* Remove top margin from the first h4 */
}

h4 {
    margin: 1em 0 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    color: red;
    text-align: center;
}

.divider {
    margin: 20px 0;
    font-size: 1.5em;
    color: red;
    text-align: center;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

/* Image styles */
img:not(.header-image) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* Iframe styles */
/*iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    width: 80%;
    height: auto;
    aspect-ratio: 16 / 9;*/
.video-container {
    position: relative;
    width: 90%; /* Video takes up 90% of the container width */
    max-width: 1200px; /* Restrict the video to a max of 1200px */
    margin: 0 auto; /* Center the video */
    overflow: hidden;
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Video scales with the container */
    height: 100%;
    border: none;
}


/* Footer styles */
footer {
    background-color: #fff2d1;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-image {
        max-width: 60px;
    }
    
    iframe {
         
        height: 315px;
        
    }
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .header-image {
        width: auto;
        height: 80vh;
        max-height: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 20px;
    }
    
    .header-image {
        height: 90vh;
    }
}