/* --- CSS STYLING --- */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 10px;
    line-height: 1.6;
}

header{
  position:sticky;
  top:0;
  padding-bottom:12px;
  background:black;
  z-index:100;
}

h1{
  color:#ffa500;
  font-size:28px;
  text-align: center;
  margin-bottom:16px;
  padding-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Container for a single news item */
.news-item {
    border: 2px solid #ffa500;
    border-radius: 10px;
    margin-bottom: 56px;
    margin-top: 12px;
    padding: 12px;
    /*border-bottom: 4px solid #ffa500;  The gold line at the bottom */
    /* padding-bottom: 30px; */
}

/* Typography */
.news-date {
    color: #00e5ff; /* Cyan color */
    font-size: 16px;
    margin-bottom: 5px;
}

.news-title {
    color: #ffa500; /* Gold/Orange color */
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.news-source {
    color: #0099cc; /* Blue color */
    font-size: 18px;
    margin-bottom: 20px;
    display: block;
}

.news-body {
    color: #e0e0e0;
    font-size: 21px;
    margin-bottom: 25px;
    /*white-space: pre-wrap;  Preserves line breaks in text */
}

/* Image styling (to prove we ignore it later) */
.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Share Button Styling */
.share-btn {
    background-color: #29abe2;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px; /* Pill shape */
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.share-btn:active {
    opacity: 0.8;
}

/* SVG Icon inside button */
.share-icon {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 10px;
}

/* Audio Player */
.audio-player {
    background: #1e1e1e;
    border-radius: 12px;
    border: 2px solid sandybrown;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
    max-width: 85%;
    box-sizing: border-box;
    font-family: sans-serif;
  }

  .audio-player button {
    background: none;
    border: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
  }

  .audio-player button:hover { color: #3f9aeb; }

  .player-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .player-title {
    color: #ccc;
    font-size: 1rem;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-bar {
    width: 100%;
    height: 6px;
    appearance: none;
    background: #103d90;
    border-radius: 2px;
    cursor: pointer;
    accent-color: turquoise;
  }

  .player-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: turquoise;
  }

  .player-time {
    color: wheat;
    user-select: none;
    font-size: 0.9rem;
  }
