  /* The parent container needs relative positioning */
  .series-container {
    position: relative;
    display: inline-block;
  }

  /* Style the trigger image */
  .series-image {
    width: 200px;
    cursor: pointer;
    display: block;
  }

  /* Hide the series menu by default */
  .series-menu {
    display: none;
    position: absolute;
    top: 100%; /* Places menu directly below the image */
    left: 0;
    border-radius: 4px;
    padding: 8px 0;
    z-index: 10; /* Ensures it floats above other content */
background-color: transparent;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(250,250,250,0.8);
background-color: rgba(20, 20, 20, 0.8); /* Semi-transparent background is crucial */
  backdrop-filter: blur(10px); /* Apply the blur effect */
animation: polygon-glow-filter 6s infinite alternate;
  /* Add vendor prefix for broader compatibility */
  -webkit-backdrop-filter: blur(10px);
  }

  /* Style the links inside the series */
  .series-menu a {
    color: aqua;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-family: sans-serif;
    font-size: 14px;
  }

  /* Change link color on hover */
  .series-menu a:hover {
    background-color: #000000;
    animation: polygon-glow-filter 6s infinite alternate;
  }

/* Desktop / Mouse hover */
@media (hover: hover) {
  .series-container:hover .series-menu {
    display: block;
    animation: polygon-glow-filter 6s infinite alternate;
  }
}

/* Mobile / Tap toggle (also works on desktop if clicked) */
.series-container.is-open .series-menu {
  display: block;
  animation: polygon-glow-filter 6s infinite alternate;
}

