body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: #05060a;
  color: #f5f5f5;
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #151827;
  color: #f5f5f5;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  z-index: 20;
}

.tab-btn,
.filter-btn,
.submit-btn {
  background: linear-gradient(135deg, #1a1d2e, #2b2f47);
  color: #f5f5f5;
  border: 1px solid #2d3350;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.tab-btn:hover,
.filter-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2b5cff, #3f6dff);
  box-shadow: 0 4px 12px rgba(43,92,255,0.35);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2b5cff, #3f6dff);
  border-color: #3f6dff;
  box-shadow: 0 4px 12px rgba(43,92,255,0.35);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #0b0d14;
  border-bottom: 1px solid #222633;
}

.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

.panel {
  padding: 16px;
  background: rgba(10, 12, 20, 0.95);
  border-radius: 8px;
  border: 1px solid #151827;
}

#search-bar {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 14px;
  border-radius: 4px;
  border: 1px solid #222633;
  background: #0b0d14;
  color: #f5f5f5;
  font-size: 14px;
}

.dropdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.dropdown-group label {
  font-size: 13px;
  opacity: 0.8;
}

.dropdown-group select {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #222633;
  background: #0b0d14;
  color: #f5f5f5;
  font-size: 13px;
}

#demon-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demon-card {
  display: flex;
  gap: 20px;
  background: #0b0d14;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  border: 1px solid #151827;
  transition: 0.2s ease;
}

.demon-card:hover {
  transform: translateY(-3px);
  border-color: #2b5cff;
}

.demon-card img {
  width: 300px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}

.demon-info h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.demon-info p {
  margin: 4px 0;
  font-size: 15px;
}

#demon-page-container {
  max-width: 900px;
  margin: 0 auto;
  background: #0b0d14;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #151827;
}

.demon-page-video {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0 25px 0;
}

.demon-page-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#leaderboard-container {
  max-width: 800px;
  margin: 0 auto;
  background: #0b0d14;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #151827;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #151827;
  font-size: 16px;
  cursor: pointer;
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.player-back {
  margin-bottom: 15px;
  cursor: pointer;
  color: #3f6dff;
  font-size: 16px;
}

.player-back:hover {
  text-decoration: underline;
}

.player-records {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.light {
  background: #f5f5f5;
  color: #111;
}

body.light #theme-toggle {
  background: #e0e0e0;
  color: #111;
}

body.light .tabs {
  background: #ffffff;
  border-bottom-color: #ddd;
}

body.light .panel,
body.light #demon-page-container,
body.light #leaderboard-container,
body.light .demon-card,
body.light .dropdown-group select {
  background: #ffffff;
  border-color: #ddd;
  color: #111;
}

body.light #search-bar {
  background: #ffffff;
  border-color: #ccc;
  color: #111;
}

body.light .leaderboard-row {
  border-bottom-color: #eee;
}

body.light .tab-btn,
body.light .filter-btn,
body.light .submit-btn {
  background: linear-gradient(135deg, #e6e6e6, #ffffff);
  color: #111;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.light .tab-btn:hover,
body.light .filter-btn:hover,
body.light .submit-btn:hover {
  background: linear-gradient(135deg, #2b5cff, #3f6dff);
  color: #fff;
}

body.light .tab-btn.active {
  background: linear-gradient(135deg, #2b5cff, #3f6dff);
  color: #fff;
  border-color: #3f6dff;
}
