:root {
    --padding-value: 10px;
  }

body {
    height: 100%;
    font-size: 15px;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    margin: 0;
  }
  
  #bgHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #000;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    color: #fff;
    gap: 10px;
  }
  
  #HeaderLeft {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    z-index: 2;
    height: 100%;
  }
  
  #imgHeader {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
  
  #txtHeader {
    display: flex;
    font-size: 17px;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    height: 100%;
    align-items: center;
  }
  
  #HeaderTopics {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1vw, 16px);
    position: relative;
    z-index: 10;
    min-width: 0;
    height: 100%;
    align-items: center;
  }
  
  #NewsHeader,
  #SportsHeader {
    display: flex;
    gap: clamp(6px, 1vw, 16px);
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    overflow: visible;
    z-index: 10;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    height: 100%;
  }

  #SportsHeader {
    display: none;
  }
  
  /* ================== HAMBURGER ================== */
#HeaderRight {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  z-index: 1002;
  height: 100%;
}

#hamburgerBtn {
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  height: 100%;
}

#hamburgerBtn:hover { color: #999; }

#hamburgerMenu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  display: none; /* hidden by default */
}

/* Hover-to-open for hover-capable devices only */
@media (hover: hover) {
  /* show menu only when button is hovered */
  #hamburgerBtn:hover + #hamburgerMenu { display: flex; }

  /* keep menu open while hovering inside */
  #hamburgerMenu:hover { display: flex; }
}

/* keep it open when "pinned" via click */
#HeaderRight.pinned #hamburgerMenu { display: flex !important; }

/* ================== GENERIC DROPDOWNS ================== */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
  height: 100%;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  z-index: 1001;
  flex-direction: column;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  background-color: transparent;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-content a:hover { background-color: #444; }

.dropdown-content a img.favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Hover-to-open only on devices that support hover */
@media (hover: hover) {
  .dropdown:hover > .dropdown-content { display: flex; }
}

/* Click pin keeps it open (works everywhere) */
.dropdown.pinned > .dropdown-content { display: flex !important; }

  /* ========== TOPIC BUTTONS OUTSIDE DROPDOWNS ========== */
  
  .topicButton {
    background-color: #000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    height: 100%;
  }
  
  .topicButton:hover {
    color: #999;
  }
  
  /* ========== MORE DROPDOWN WRAPPER ========== */
  
  .more-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    z-index: 1000;
    height: 100%;
  }
  
  .more-dropdown-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  
  /* ========== MORE DROPDOWN CONTENT ========== */
  
  .more-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    flex-direction: column;
    overflow: visible;
  }
  
  .more-dropdown:hover .more-dropdown-content {
    display: flex;
  }
  
  .more-dropdown-content a,
  .more-flat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    transition: background-color 0.2s ease;
    font-family: Arial, sans-serif;
    width: 100%; 
    box-sizing: border-box;
  }
  
  .more-dropdown-content a:hover,
  .more-flat-link:hover {
    background-color: #444;
  }
  
  .abc-footer-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
  }
  
  .copy-url-btn {
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    width: 40px;             /* ✅ fixed width prevents resize */
    height: 40px;            /* optional for perfect circle look */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
  }
  
  .copy-url-btn:hover {
    background: #444;
  }
  
  /* default state = link */
  .copy-url-btn::before {
    content: "🔗";
    display: block;
  }
  
  /* success */
  .copy-url-btn[data-state="success"]::before {
    content: "✔";
    color: #28d14e;
  }
  
  /* error */
  .copy-url-btn[data-state="error"]::before {
    content: "✖";
    color: #ff4040;
  }
  
  
  /* ========== TOPIC BUTTONS INSIDE MORE DROPDOWN ========== */
  
  .more-dropdown-content .topicButton {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    width: 100%;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
  }
  
  .more-dropdown-content .topicButton:hover {
    background-color: #444;
    color: white;
  }
  
  .more-dropdown-content .dropdown {
    width: 100%;
  }
  
  
  /* ========== NESTED DROPDOWNS IN MORE (OPEN LEFT) ========== */
  
  .more-dropdown-content .dropdown {
    position: relative;
  }
  
  .more-dropdown-content .dropdown-content {
    top: 0;
    left: auto;
    right: 100%;
  }
  
  
  /* ========== CLONED FALLBACK BUTTONS (if used) ========== */
  
  .more-button-wrapper {
    padding: 2px 0;
  }
  
  .more-cloned-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: left;
  }
  
#Main {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    overflow: hidden;
}

#leftPanel {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border: 1px solid #222;
    width: calc(50% - 50px);
    min-width: 200px;
    height: 100%;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}

#feedLabel {
    position: sticky;
    top: 0;
    background-color: #1a1a1a;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    z-index: 1;
    border-bottom: 1px solid #222;
}

#feedFavicon {
    width: 32px;
    height: 32px;
    margin-right: 6px;
    vertical-align: middle;
}

#SearchContainer {
    background-color: #1a1a1a;
    padding: 0;
    margin-bottom: var(--padding-value);
    border-bottom: 1px solid #222;
    height: 30px;
}

#searchInput {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    background-color: #222;
    color: #fff;
    border-radius: 0;
    outline: none;
    transition: background-color 0.2s ease;
    font-family: Arial, sans-serif;
    height: 100%;
}

#searchInput:hover,
#searchInput:focus {
    background-color: #2a2a2a;
    color: #fff;
}

#feedContent {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--padding-value) var(--padding-value) var(--padding-value);
    box-sizing: border-box;
}

#splitterMain {
    width: 5px;
    cursor: col-resize;
    background-color: #111;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
}

#rightPanel {
    background-color: #1a1a1a;
    border: 1px solid #222;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    margin-left: 0;
}

#iframeBlocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: transparent;
    display: none;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 13px;
    color: #888;
}

.meta-date {
    text-align: left;
}

.meta-source {
    text-align: right;
    font-style: italic;
}

.storyPanel {
    background: #222;
    border: 1px solid #333;
    margin-bottom: var(--padding-value);
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.storyPanel:hover {
    background-color: #2a2a2a;
}

.storyPanel.active {
    background-color: #333;
    border: 1px solid #fff;
}

.storyPanel img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

.storyPanel h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.storyPanel a {
    color: #1e90ff;
    text-decoration: none;
}

.storyPanel time {
    font-size: 12px;
    color: #888;
}


#leftPanel::-webkit-scrollbar,
#rightPanel::-webkit-scrollbar {
  width: 10px;
}

#leftPanel::-webkit-scrollbar-track,
#rightPanel::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 5px;
}

#leftPanel::-webkit-scrollbar-thumb,
#rightPanel::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 5px;
  border: 2px solid #1a1a1a;
}

#leftPanel::-webkit-scrollbar-thumb:hover,
#rightPanel::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}

#leftPanel,
#rightPanel {
  scrollbar-width: 10px;
  scrollbar-color: #555 #1a1a1a;
}
/* Container */
.abc-article-wrapper {
  padding: 24px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Headline */
.abc-headline {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

/* Byline + time + summary */
.abc-author {
  font-size: 15px;
  font-weight: bold;
  margin-top: 4px;
  color: #aaa;
}
.abc-time {
  font-size: 13px;
  margin-bottom: 10px;
  color: #888;
}
.abc-summary {
  font-size: 15px;
  font-weight: 500;
  color: #ddd;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Body paragraphs */
.abc-body p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #e0e0e0;
}

/* Body media & captions */
.abc-body img { max-width: 100%; height: auto; display: block; }
.abc-body figure { margin: 16px 0; }

/* Prevent generic figure rules from clobbering hero styling */
figure:not(.abc-hero) {
  background: none !important;
  overflow: visible;     /* don't clip captions for inline images */
}

/* Hero (image by default: transparent, no clipping) */
.abc-hero {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 16px;
  border-radius: 8px;
  background: transparent;   /* ← no black under images */
  overflow: visible;         /* ← don't clip figcaption */
}
.abc-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Inline images (when renderer emits <img class="abc-image">) */
.abc-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

/* Hero captions */
.abc-caption {
  font-size: 13px;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 16px;
  color: #888;
}
/* Unified hero video (HLS + iframe + MP4) */
.abc-hero.abc-hero-video {
  background: transparent;   /* no black frame */
  border-radius: 8px;
  overflow: visible;         /* let caption sit below */
}

/* the <figure> we inject around the player */
.abc-hero.abc-hero-video > figure.oz-video {
  margin: 0;
  background: transparent;
}

/* player sizing matches HLS */
.abc-hero.abc-hero-video video,
.abc-hero.abc-hero-video iframe {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  max-height: var(--hero-fit-h, 100vh); /* JS sets this like HLS */
  border: 0;
}

/* portrait clips behave like HLS vertical mode */
.abc-hero.abc-hero-video.vertical video,
.abc-hero.abc-hero-video.vertical iframe {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--hero-fit-h, 70vh);
  margin: 0 auto;
}

/* caption directly under the player, same look as HLS captions */
.abc-hero.abc-hero-video figcaption.abc-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9em;
  opacity: 0.8;
  color: #ccc;
}



/* Remove scrollbars for watch/portrait mode (renderer toggles this) */
#rightPanel.watch-no-scroll {
  overflow-y: hidden;
}

