body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #18191c;
  background-image: url('resources/background.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  z-index: 1;
}
.background-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: url('resources/scanline.png') repeat;
  opacity: 0.18;
  animation: scanline-move-up 12s linear infinite;
}

@keyframes scanline-move-up {
  0% { background-position: 0 128px; }
  100% { background-position: 0 0; }
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.navbar {
  background: #111;
  display: flex;
  align-items: center;
  position: relative;
  height: 64px; 
  border-bottom: 2px solid #222;
  padding: 0 40px;
  border-radius: 0;
  box-shadow: none;
}
.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  z-index: 2;
}
.navbar .logo span {
  color: #e00;
  margin-right: 6px;
}
.navbar nav {
  display: flex;
  gap: 24px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.navbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
.navbar nav a.active, .navbar nav a:hover {
  border-bottom: 2px solid #e00;
  color: #e00;
}
.navbar .auth {
  display: flex;
  gap: 12px;
}
.navbar .auth button {
  background: #e00;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.navbar .auth button.secondary {
  background: #222;
  color: #fff;
  border: 1px solid #e00;
}
.hero {
  background: rgba(35, 36, 39, 0.5);
  margin: 32px auto 0 auto;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 4px 24px #0008;
  padding: 48px 32px 32px 32px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.hero h1 .red {
  color: #e00;
}
.hero p {
  color: #ccc;
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.hero .cta {
  background: #e00;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.hero .cta:hover {
  background: #b00;
}
.cta.discord-btn {
  background: #5865F2;
  color: #fff;
  display: inline-block;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  border-radius: 6px;
  padding: 12px 32px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.cta.discord-btn:hover {
  background: #404eed;
}
.cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 40px auto 0 auto;
  max-width: 900px;
  flex-wrap: wrap;
}
.card {
  background: #232427;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0006;
  width: 260px;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}
.card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #111;
}
.card h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #e00;
}
.card p {
  color: #bbb;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.news-hot {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 48px auto 0 auto;
  max-width: 900px;
  flex-wrap: wrap;
}
.news, .hot {
  background: #232427;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0006;
  flex: 1 1 320px;
  min-width: 280px;
  padding: 18px 20px 18px 20px;
  margin-bottom: 16px;
}
.news h2, .hot h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
  border-left: 4px solid #e00;
  padding-left: 8px;
}
.news-item, .hot-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.news-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  background: #111;
}
.news-item .info {
  display: flex;
  flex-direction: column;
}
.news-item .title {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
}
.news-item .meta {
  color: #aaa;
  font-size: 0.85rem;
}
.hot-item {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
}
.hot-item .topic {
  color: #e00;
  font-weight: bold;
  font-size: 1rem;
}
.hot-item .meta {
  color: #aaa;
  font-size: 0.85rem;
}
.footer {
  margin-top: auto;
  padding: 24px 0 16px 0;
  background: rgba(20, 20, 20, 0.85);
  color: #bbb;
  text-align: center;
  font-size: 1rem;
  border-top: 1px solid #232427;
  letter-spacing: 1px;
}
.video-gallery {
  background: rgba(35, 36, 39, 0.5);
  margin: 32px auto 0 auto;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 4px 24px #0008;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}
.video-frame {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}
.video-frame iframe {
  width: 100%;
  max-width: 832px;
  height: 468px;
  border-radius: 8px;
  background: #000;
}
.gallery-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.gallery-arrow.left {
  left: 0;
}
.gallery-arrow.right {
  right: 0;
}
.video-gallery {
  padding-left: 48px;
  padding-right: 48px;
}
.video-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #444;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}
.hero, .video-gallery {
  max-width: 900px;
  width: 100%;
  margin: 32px auto 0 auto;
  padding: 48px 32px 32px 32px;
  box-sizing: border-box;
}
.logo-mobile { display: none !important; }

.navbar {
  background: #111;
  display: flex;
  align-items: center;
  position: relative;
  height: 64px;
  border-bottom: 2px solid #222;
  padding: 0 40px;
}

@media (max-width: 1200px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100vw;
    min-width: 0;
  }
  .navbar .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 18px 0 10px 0;
    background: #111;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  .navbar .logo img {
    height: 28px !important;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 2px 8px #0008);
  }
  .navbar nav {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    justify-content: center;
    width: 100vw;
    gap: 16px;
    margin-bottom: 4px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100vw;
    min-width: 0;
  }
  .navbar .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    padding: 18px 0 10px 0;
    background: #111;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  .navbar nav {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    justify-content: center;
    width: 100vw;
    gap: 16px;
    margin-bottom: 4px;
    text-align: center;
  }
}

.navbar .logo img {
  height: 28px;
  width: auto;
}
@media (max-width: 900px) {
  .hero, .video-gallery {
    max-width: 100vw;
    padding: 10px 0.5rem 18px 0.5rem;
    margin: 16px auto 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px #0006;
  }
  .video-frame iframe {
    width: 98vw;
    max-width: 98vw;
    height: 210px;
  }
  .gallery-arrow svg {
    width: 24px;
    height: 24px;
  }
  .gallery-arrow {
    padding: 4px;
  }
  .video-dots {
    margin-top: 10px;
    gap: 7px;
  }
  .cta.discord-btn {
    font-size: 1rem;
    padding: 10px 18px;
  }
  .footer {
    margin-top: auto;
  }
} 

.serverlist-hero {
  background: rgba(35, 36, 39, 0.5);
  margin: 32px auto 0 auto;
  max-width: 1150px;
  padding: 32px 24px 18px 24px;
  text-align: center;
  border-radius: 0;
  box-shadow: none;
}
.serverlist-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.serverlist-hero p {
  color: #ccc;
  font-size: 1.1rem;
}
.serverlist-container {
  position: relative;
  margin: 24px auto 0 auto;
  max-width: 1150px;
  background: #18211c;
  padding: 0 0 0 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  border: 2px solid #3a4a3c;
  clip-path: polygon(0 0, 100% 0, 100% 98%, 99.5% 100%, 0.5% 100%, 0 98%);
}
.serverlist-bg {
  width: 100%;
  height: 559px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  filter: brightness(0.5);
  position: absolute;
  top: 0; left: 0; z-index: 0;
  pointer-events: none;
}
.table-responsive {
  position: relative;
  width: 100%;
  height: 460px;
  margin: 49px 0 0 0;
  padding: 0 2% 0 2%;
  background: transparent;
  overflow: auto;
  z-index: 2;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  color: #fff;
  font-size: 1rem;
  background: transparent;
  border-bottom: 1px solid #3a4a3c;
}
.table th {
  background: none;
  color: #fff;
  font-weight: bold;
  border-bottom: 2px solid #b6cbb2;
}
.table tr {
  background: transparent;
}
.table tr:last-child td {
  border-bottom: none;
}
.serverlist-info {
  color: #b6cbb2;
  font-size: 1rem;
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0 0 8px 8px;
  z-index: 3;
}
#server-count {
  color: #b6cbb2;
  font-size: 1.08rem;
  margin-left: 2px;
}
#loading-img {
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 1200px) {
  .serverlist-container {
    max-width: 100vw;
    border-radius: 0;
    margin: 12px 0 0 0;
    box-shadow: none;
    clip-path: none;
    border-width: 1.5px;
  }
  .serverlist-bg {
    height: 220px;
  }
  .table-responsive {
    height: auto;
    margin: 0;
    padding: 0 2vw;
    overflow-x: auto;
  }
  .table {
    min-width: 600px;
  }
  .serverlist-info {
    left: 8px;
    bottom: 8px;
    font-size: 0.98rem;
  }
} 

.downloads-hero {
  background: rgba(35, 36, 39, 0.5);
  margin: 18px auto 0 auto;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 2px 12px #0006;
  padding: 18px 18px 12px 18px;
  text-align: center;
}
.download-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto 0 auto;
  max-width: 900px;
}
.download-card {
  background: #232427;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0006;
  width: 340px;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.download-card img {
  width: 320px;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #18191c;
  box-shadow: 0 2px 8px #0004;
}
.download-card h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
  margin-top: 0;
}
.download-card p {
  color: #bbb;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.download-btn {
  background: #e00;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px #0003;
}
.download-btn:hover {
  background: #b00;
}
@media (max-width: 900px) {
  .download-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .download-card {
    width: 98vw;
    max-width: 400px;
  }
} 