:root {
  --gold: #f0c040;
  --gold-dim: #a07820;
  --blue: #2a6adf;
  --blue-bright: #5599ff;
  --black: #080808;
  --panel: rgba(10, 16, 30, 0.92);
  --text: #e8dfc0;
  --muted: #8a8570;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  min-height: 100vh;
  font-family: 'Cinzel', serif;
  color: var(--text);
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.guild-name {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-bright) 40%, var(--blue) 70%, #1a3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-nav {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tab-btn.active {
  background: var(--gold-dim);
  color: var(--black);
  border-color: var(--gold-dim);
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-panel.active {
  display: flex;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 1.5rem;
}

.section-title {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(160, 120, 32, 0.25);
  font-size: 0.95rem;
}

th {
  color: var(--gold);
  font-weight: 600;
}

#now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.np-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.np-dot.playing {
  background: #5cd97a;
}

.np-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.np-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.np-album {
  font-size: 0.8rem;
}

#discord-widget iframe {
  border: none;
  border-radius: 6px;
  width: 100%;
  min-height: 300px;
}

.discord-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--blue-bright);
  text-decoration: none;
}

.discord-link:hover {
  text-decoration: underline;
}

.merch-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.merch-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  background: rgba(240, 192, 64, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.merch-card:hover {
  border-color: var(--gold);
  background: rgba(240, 192, 64, 0.1);
}

.merch-card-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}

.merch-card-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.armory-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-dim);
}

.armory-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.class-row {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.class-label {
  font-size: 0.85rem;
  text-align: right;
}

.class-bar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 16px;
  overflow: hidden;
}

.class-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.class-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-header-row .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.page-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--text);
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.active {
  background: var(--gold-dim);
  color: var(--black);
  border-color: var(--gold-dim);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 0.2rem;
}

.achievement-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(160, 120, 32, 0.15);
  font-size: 0.9rem;
}

.achievement-row:last-child {
  border-bottom: none;
}

.achievement-name {
  color: var(--text);
}

.achievement-time {
  margin-left: auto;
  font-size: 0.8rem;
}

.toggle-form-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.toggle-form-btn:hover {
  border-color: var(--gold);
  background: rgba(240, 192, 64, 0.08);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-form.hidden {
  display: none;
}

.form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 140px;
}

.admin-form input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-dim);
  color: var(--text);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color-scheme: dark;
}

.admin-form input::placeholder {
  color: var(--muted);
}

.admin-form button[type="submit"] {
  background: var(--gold-dim);
  color: var(--black);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-form button[type="submit"]:hover {
  background: var(--gold);
}

.form-status {
  min-height: 1em;
}

.dj-controls-row {
  margin-top: 1rem;
}

.dj-buttons {
  gap: 0.5rem;
}

.dj-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-dim);
  color: var(--text);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dj-btn:hover {
  border-color: var(--gold);
  background: rgba(240, 192, 64, 0.1);
}

.dj-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dj-btn:disabled:hover {
  border-color: var(--gold-dim);
  background: rgba(255, 255, 255, 0.05);
}

.np-radio-tag {
  font-size: 0.75rem;
}

#up-next {
  margin-top: 1rem;
}

.np-up-next-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.up-next-list {
  list-style: decimal;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.np-up-next-empty {
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.6rem;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-name {
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
}

.hof-list {
  list-style: decimal;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hof-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(160, 120, 32, 0.15);
}

.hof-row:last-child {
  border-bottom: none;
}

.hof-spec {
  font-size: 0.8rem;
}

.hof-score {
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
