body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0b0c10;
  color: #c5c6c7;
  text-align: center;
}

header {
  background: #1f2833;
  padding: 2rem 1rem;
  color: #66fcf1;
}

.section {
  margin: 1rem auto;
  max-width: 1000px;
  text-align: left;
}

.dropdown-toggle {
  width: 100%;
  background: #1f2833;
  color: #66fcf1;
  border: none;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.dropdown-toggle:hover {
  background: #2c3d4f;
}

.dropdown-toggle .arrow {
  width: 24px;
  height: 24px;
  stroke: #66fcf1;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.dropdown-toggle.open .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  background: #0b0c10;
  border-left: 3px solid #66fcf1;
  padding: 1rem;
}

.dropdown-content.open {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.grid a {
  background: #45a29e;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.grid a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.grid a:hover {
  background: #66fcf1;
  color: #000000;
  transform: scale(1.05);
}

.grid a.online {
  box-shadow: 0 0 10px #66fcf1;
}

.grid a.offline {
  opacity: 0.5;
  filter: grayscale(1);
}

footer {
  background: #1f2833;
  padding: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* Plex logo button - full color */
.plex-logo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.plex-logo img {
  width: 160px;
  height: auto;
  filter: none; /* keep color */
}

.plex-logo:hover {
  transform: scale(1.08);
}

/* Plex logo button - full color */
.plex-logo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.plex-logo img {
  width: 160px;
  height: auto;
  filter: none; /* keep color */
}

.plex-logo:hover {
  transform: scale(1.08);
}

.grid .plex-logo {
  justify-self: center;
}

/* Plex logo button - override all tile styles */
.plex-logo {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto !important;
  transition: transform 0.2s ease;
}

.plex-logo img {
  width: 160px;
  height: auto;
  filter: none !important; /* preserve Plex colors */
  display: block;
}

.plex-logo:hover {
  transform: scale(1.08);
  background: none !important;
  box-shadow: none !important;
}
