body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-image: url("Background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #111;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.dark {
  background-image: url("OtherBackground.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f5f5f5;
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 15px;
  border: 1px solid #2d3350;
  color: #f5f5f5;
  cursor: pointer;
  transition: 0.25s ease;
  z-index: 200;
}

#theme-toggle:hover {
  background: rgba(43,92,255,0.6);
  border-color: #3f6dff;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0b0d14;
  border-bottom: 1px solid #222633;
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 150;
}

.tabs-logo {
  height: 36px;
  width: auto;
}

.tab-btn {
  background: rgba(255,255,255,0.15);
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 15px;
  border: 1px solid #2d3350;
  color: #f5f5f5;
  cursor: pointer;
  transition: 0.25s ease;
}

body.dark .tab-btn {
  background: rgba(255,255,255,0.08);
}

.tab-btn:hover {
  background: rgba(43,92,255,0.6);
  border-color: #3f6dff;
}

.tab-btn.active {
  background: rgba(43,92,255,0.6);
  border-color: #3f6dff;
}

.tab-content {
  display: none;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  margin: 80px auto 0 auto;
}

.tab-content.active {
  display: block;
}

.panel {
  background: transparent !important;
  border: none !important;
  padding: 20px !important;
}

body.dark .panel {
  background: transparent !important;
  border: none !important;
}

#search-bar {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #222633;
  margin-bottom: 15px;
  background: #ffffffee;
  color: #111;
}

body.dark #search-bar {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #444;
}

.dropdown-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.dropdown-group label {
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

.dropdown-group select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #222633;
  background: #ffffffee;
  color: #111;
}

body.dark .dropdown-group select {
  background: #1a1a1a;
  color: #f5f5f5;
  border-color: #444;
}

#demon-container,
#leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.demon-card,
.player-card {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: 0.2s ease;
  width: 780px;
  height: 170px;
  margin: 0 auto;
  overflow: hidden;
}

body.dark .demon-card,
body.dark .player-card {
  background: rgba(30,30,30,0.95);
  border-color: #333;
}

.demon-card:hover,
.player-card:hover {
  transform: translateY(-3px);
}

.demon-card img {
  width: 300px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}

.player-card.no-image {
  justify-content: center;
  align-items: center;
}

.player-card.no-image .player-info {
  text-align: center;
}

.placeholder-card,
.placeholder-player {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #ccc;
  width: 780px;
  height: 170px;
  margin: 0 auto;
  animation: placeholderGlow 1.8s ease-in-out infinite;
}

body.dark .placeholder-card,
body.dark .placeholder-player {
  background: rgba(30,30,30,0.95);
  border-color: #333;
}

.placeholder-thumb {
  width: 300px;
  height: 170px;
  background: #1a1d2e;
  border-radius: 8px;
}

.placeholder-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placeholder-line {
  height: 14px;
  width: 70%;
  background: #1a1d2e;
  border-radius: 4px;
}

@keyframes placeholderGlow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@media (max-width: 700px) {
  .demon-card,
  .player-card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .demon-card img {
    width: 100%;
    height: 300px;
  }

  .placeholder-card,
  .placeholder-player {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .placeholder-thumb {
    width: 100%;
    height: 300px;
  }
}

.demon-info {
  margin-top: -18px;
}

.fancy-video-wrap iframe,
.fancy-video-wrap img {
  width: 100%;
  height: 440px;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .fancy-video-wrap iframe,
  .fancy-video-wrap img {
    height: 240px;
  }
}

.warning-box {
  background: #ff8800;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
}

#old-notice {
  background: #ff8800;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  font-size: 15px;
}

#old-notice-btn {
  background: white;
  color: #ff8800;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

#old-notice-btn:hover {
  opacity: 0.8;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0b0d14;
  border-bottom: 1px solid #222633;
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 150;
}

.nav-logo {
  height: 40px;
}

.tab-btn {
  background: #151821;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: #1f2330;
}

.tab-content {
  display: none;
  margin-top: 80px;
  padding: 20px;
}

.tab-content.active {
  display: block;
}



