:root {
  color-scheme: dark;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #101214;
  color: #eef2f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101214;
}

.shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8fb4c7;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 18px;
}

.discord-links,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-links a,
button {
  min-height: 38px;
  border: 1px solid #31424b;
  border-radius: 6px;
  background: #1f6f8f;
  color: #fff;
  padding: 9px 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.discord-links a {
  background: #26323a;
}

button:hover,
.discord-links a:hover {
  filter: brightness(1.12);
}

.warning {
  background: #9a6b16;
}

.danger-soft {
  background: #8d4d24;
}

.danger {
  background: #9d2f2f;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.status-strip div,
.panel {
  border: 1px solid #27333a;
  border-radius: 8px;
  background: #171b1f;
}

.status-strip div {
  padding: 14px;
}

.status-strip span,
.panel-head span {
  display: block;
  color: #9aa8af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: #c6d0d5;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #33444c;
  border-radius: 6px;
  background: #0f1316;
  color: #f2f6f8;
  padding: 10px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.result {
  min-height: 38px;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 6px;
  background: #0f1316;
  color: #d7e2e7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
}

.command {
  border: 1px solid #27333a;
  border-radius: 6px;
  padding: 10px;
  background: #11161a;
}

.command code {
  display: block;
  margin-bottom: 5px;
  color: #81c7e8;
  font-size: 14px;
}

.command p {
  margin: 0;
  color: #b7c3c9;
  font-size: 13px;
}

@media (max-width: 860px) {
  .topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip,
  .layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
}


.compact {
  grid-template-columns: 1fr 120px;
}

.match-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 420px;
  overflow: auto;
}

.match-row,
.empty {
  border: 1px solid #27333a;
  border-radius: 6px;
  padding: 10px;
  background: #11161a;
}

.match-row strong,
.match-row span,
.match-row code {
  display: block;
}

.match-row span {
  margin: 4px 0;
  color: #b7c3c9;
  font-size: 13px;
}

.match-row code {
  color: #81c7e8;
  overflow-wrap: anywhere;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}


.panel-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.panel-subhead h3 {
  margin: 0;
  font-size: 15px;
}

.panel-subhead button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
}

.rotation-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
}

.rotation-row {
  border: 1px solid #27333a;
  border-radius: 6px;
  padding: 9px;
  background: #11161a;
}

.rotation-row strong,
.rotation-row code {
  display: block;
}

.rotation-row code {
  margin-top: 4px;
  color: #81c7e8;
  overflow-wrap: anywhere;
}

/* =========================================================
   GRINDHOUSE VIETNAM THEME
   Grindhouse Vietnam Live Operations
   ========================================================= */

:root {
  color-scheme: dark;
  --gh-ink: #0a0b0b;
  --gh-coal: #101212;
  --gh-panel: #151818;
  --gh-panel-2: #1b1f1e;
  --gh-line: rgba(236, 227, 207, .14);
  --gh-paper: #ece3cf;
  --gh-muted: #a79f8d;
  --gh-gold: #d69b2d;
  --gh-gold-bright: #f0b647;
  --gh-gold-dark: #8f611d;
  --gh-green: #8fb36b;
  --gh-red: #b85f4e;

  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--gh-ink);
  color: var(--gh-paper);
}

html {
  background: var(--gh-ink);
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(214, 155, 45, .07),
      transparent 32rem
    ),
    linear-gradient(
      180deg,
      var(--gh-coal) 0%,
      var(--gh-ink) 100%
    );
  color: var(--gh-paper);
  min-height: 100vh;
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  border-bottom: 1px solid var(--gh-line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--gh-gold-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong,
label {
  color: var(--gh-paper);
}

h1 {
  letter-spacing: .02em;
}

.muted,
.panel-head span {
  color: var(--gh-muted);
}

.status-strip > div,
.panel {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .018),
      rgba(255, 255, 255, 0)
    ),
    var(--gh-panel);
  border: 1px solid var(--gh-line);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .02);
}

.status-strip > div {
  border-radius: 8px;
}

.status-strip span {
  color: var(--gh-gold-bright);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.panel {
  border-radius: 8px;
}

.panel-head {
  border-bottom: 1px solid var(--gh-line);
  padding-bottom: 12px;
}

.panel-head span {
  color: var(--gh-gold-bright);
}

input,
select,
textarea {
  color: var(--gh-paper);
  background: var(--gh-coal);
  border: 1px solid rgba(236, 227, 207, .20);
  border-radius: 6px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gh-gold);
  box-shadow: 0 0 0 3px rgba(214, 155, 45, .12);
}

button {
  color: var(--gh-ink);
  background:
    linear-gradient(
      180deg,
      var(--gh-gold-bright),
      var(--gh-gold)
    );
  border: 1px solid var(--gh-gold-dark);
  border-radius: 5px;
  font-weight: 800;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button.warning {
  background: var(--gh-gold-dark);
  color: var(--gh-paper);
}

button.danger {
  background: var(--gh-red);
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
}

.result {
  background: var(--gh-coal);
  border: 1px solid var(--gh-line);
  color: var(--gh-paper);
}

.rotation-row {
  background: var(--gh-coal);
  border: 1px solid var(--gh-line);
  border-radius: 6px;
}

.rotation-row code {
  color: var(--gh-gold-bright);
}

.discord-links a {
  color: var(--gh-paper);
  background: var(--gh-panel-2);
  border: 1px solid var(--gh-line);
}

.discord-links a:hover {
  color: var(--gh-ink);
  background: var(--gh-gold);
  border-color: var(--gh-gold-bright);
}

::selection {
  color: var(--gh-ink);
  background: var(--gh-gold-bright);
}

* {
  scrollbar-color: var(--gh-gold-dark) var(--gh-coal);
}
/* =========================================================
   GRINDHOUSE COMMAND USER AREA
   ========================================================= */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.command-user {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  min-width: 220px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .018),
      rgba(255, 255, 255, 0)
    ),
    var(--gh-panel-2);

  border: 1px solid var(--gh-line);
  border-radius: 7px;
}

.command-user-label {
  grid-column: 1 / -1;
  color: var(--gh-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.command-user strong {
  color: var(--gh-gold-bright);
  overflow-wrap: anywhere;
}

#command-logout-button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  justify-self: end;

  color: var(--gh-paper);
  background: var(--gh-coal);
  border: 1px solid var(--gh-line);
}

#command-logout-button:hover {
  color: var(--gh-ink);
  background: var(--gh-gold);
  border-color: var(--gh-gold-bright);
}

#command-logout-button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .command-user {
    width: 100%;
    box-sizing: border-box;
  }
}

.player-search-box {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid rgba(236, 227, 207, .14);
  background: rgba(255, 255, 255, .03);
  border-radius: 10px;
}

.player-search-box label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e8a22d;
}

.player-search-box input {
  margin-top: 8px;
  width: 100%;
}

.player-search-results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.player-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(236, 227, 207, .10);
  background: rgba(10, 11, 11, .55);
  border-radius: 8px;
}

.player-search-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.player-search-info strong {
  color: #ece3cf;
  font-size: 14px;
}

.player-search-info span {
  color: #9d9b91;
  font-size: 12px;
}

.player-search-info code {
  color: #777a74;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-search-row button {
  padding: 8px 12px;
  min-height: auto;
}
