/* Spieldetails – Night */

table:has(> tbody > tr > td.body_mc .gdb) {
  width: 100%;
  table-layout: fixed;
}

.gdb,
.gdb * {
  box-sizing: border-box;
}

.gdb {
  width: 100%;
  max-width: min(1100px, 100%);
  min-width: 0;
  margin: 0 auto 8px;
  text-align: left;
  color: var(--text);
}

.gdb-head {
  margin: 0 0 16px;
}

.gdb-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.gdb-head h1,
.body_mc .gdb-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  text-align: left;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.gdb-title-icon {
  width: 24px;
  height: 24px;
  border: 0;
}

.gdb-lead {
  margin: 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.gdb-notices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}

.gdb-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 18px;
  align-items: start;
  margin: 0 0 16px;
}

.gdb-meta {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gdb-meta-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(44, 53, 68, 0.55);
}

.gdb-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gdb-meta-row:first-child {
  padding-top: 0;
}

.gdb-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gdb-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gdb-meta a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.gdb-meta a:hover {
  color: var(--accent);
}

.gdb-meta-id {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.gdb-empty-val {
  color: var(--muted);
}

.gdb-panel {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gdb-section-title,
.body_mc .gdb-section-title {
  margin: 0 0 12px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.gdb-description {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gdb-icon-lg {
  display: block;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--inset);
  object-fit: cover;
}

.gdb-boxart {
  margin: 0;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gdb-boxart img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
}

.gdb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.gdb-actions .standardButton {
  width: auto !important;
  margin: 0 !important;
}

.gdb-related,
.gdb-threads {
  margin: 0 0 18px;
}

.gdb-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gdb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gdb-table th,
.gdb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(44, 53, 68, 0.7);
  vertical-align: middle;
  text-align: left;
}

.gdb-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gdb-table tr:last-child td {
  border-bottom: 0;
}

.gdb-table tbody tr:hover td {
  background: rgba(62, 207, 255, 0.04);
}

.gdb-table a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.gdb-table a:hover {
  color: var(--accent);
}

.gdb-col-icon {
  width: 3rem;
  text-align: center !important;
}

.gdb-col-status {
  width: 3.5rem;
  text-align: center !important;
}

.gdb-col-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gdb-col-muted {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.gdb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--inset);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

.gdb-icon-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.gdb-icon-btn--static {
  cursor: default;
}

.gdb-icon-btn img {
  display: block;
  width: 16px;
  height: 16px;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .gdb-detail-layout {
    grid-template-columns: 1fr;
  }

  .gdb-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gdb-actions .standardButton {
    width: 100% !important;
  }

  .gdb-aside {
    order: -1;
  }
}
