:root {
  --bg: #111;
  --fg: #fff;
  --navbar-bg: #222;
}

[data-theme="light"] {
  --bg: #f0f0f0;
  --fg: #111;
  --navbar-bg: #ddd;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, sans-serif;
  margin: 0;
}

.navbar {
  background: var(--navbar-bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px;
}

.navbar img {
  height: 40px;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
}

.search-bar {
  padding: 5px;
  border-radius: 5px;
  border: none;
  flex: 1;
  min-width: 100px;
}

.banner {
  height: 40vh;
  background-image: url('/747A4406-14E4-431C-9C9D-C0B14068CD01.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner h1 {
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  text-align: center;
}

.row {
  margin: 15px;
}

.row h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
}

.list img {
  width: 120px;
  border-radius: 5px;
  flex-shrink: 0;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow-y: auto;
}

.modal-content {
  background: var(--navbar-bg);
  padding: 15px;
  border-radius: 10px;
  max-width: 90%;
  width: 600px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-body img {
  width: 60%;
  max-width: 250px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 10px auto;
  padding-top: 56.25%;
}

#modal-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.server-selector {
  margin: 10px 0;
}

.modal-text {
  width: 100%;
  margin-top: 10px;
}
