:root{
  --bg:#0b0f14;
  --panel:#111824;
  --panel2:#0f1621;
  --text:#e8eef6;
  --muted:#9fb0c4;
  --line:#203044;
  --accent:#6ea8ff;
  --ok:#41d3a2;
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, #18263a 0%, var(--bg) 60%);
  color: var(--text);
}

.wrap{ max-width: 1100px; margin: 0 auto; padding: 18px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
}
h1{ margin: 10px 0 14px; font-size: 26px; letter-spacing:.2px; }

.card{
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.controls{
  padding: 14px;
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
}
.control{ display:flex; flex-direction:column; gap:6px; }
.control.inline{ grid-column: 1 / -1; flex-direction:row; align-items:center; gap:10px; }
label{ color: var(--muted); font-size: 12px; }

input[type="search"], select{
  background: #0b121b;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
input[type="search"]:focus, select:focus{ border-color: rgba(110,168,255,.7); box-shadow: 0 0 0 3px rgba(110,168,255,.15); }

.hint{
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  padding-top: 4px;
}
code{ background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }

.btn{
  background: rgba(110,168,255,.14);
  border: 1px solid rgba(110,168,255,.35);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(110,168,255,.6); }

.stats{ color: var(--muted); margin: 14px 2px 10px; }

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.game{
  display:flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.thumb{
  width: 100%;
  aspect-ratio: 460 / 215;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  background-size: cover;
  background-position: center;
}

.info{ display:flex; flex-direction:column; gap: 10px; min-width: 0; }
.title{
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.2;
}

.meta{ display:flex; flex-direction:column; gap: 8px; }

/* ===== NEU HINZUGEFÜGT ===== */
.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* ============================ */

.badge{
  font-size: 12px;
  color: var(--text);
  background: rgba(65,211,162,.12);
  border: 1px solid rgba(65,211,162,.30);
  padding: 4px 8px;
  border-radius: 999px;
}

.tags{ display:flex; flex-wrap:wrap; gap: 6px; }
.tag{
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.link{
  color: var(--accent);
  text-decoration:none;
  border: 1px solid rgba(110,168,255,.25);
  background: rgba(110,168,255,.08);
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.link:hover{ border-color: rgba(110,168,255,.55); }

.footer{ color: var(--muted); padding-bottom: 26px; }

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17,24,36,.92);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.toast.show{ opacity: 1; }

@media (max-width: 860px){
  .controls{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .controls{ grid-template-columns: 1fr; }
}
.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;          /* WICHTIG: nicht umbrechen */
}

.row .links{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;          /* Buttons bleiben in einer Reihe */
  width: auto !important;     /* nimmt nicht 100% Breite */
  margin: 0 !important;       /* kein auto nach unten */
  flex: 0 0 auto;             /* nicht wachsen */
}

.row .badge{
  margin-left: auto;          /* rechts bleiben */
  flex: 0 0 auto;
  white-space: nowrap;
}
.top-actions{ display:flex; gap:10px; align-items:center; }

.btn-danger{
  border-color: rgba(255,90,90,.45);
  background: rgba(255,90,90,.12);
}

.voteBox{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}

.voteBtn{
  cursor:pointer;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 6px 10px;
  font-size: 14px;
}
.voteBtn:disabled{ opacity:.6; cursor:not-allowed; }

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.45);
}

.modal{
  position:fixed; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.modal-card{
  width: min(560px, 100%);
  padding: 14px;
}

.modal-title{
  font-weight: 700;
  margin-bottom: 10px;
}

textarea{
  width:100%;
  resize: vertical;
  background:#0b121b;
  border:1px solid var(--line);
  color:var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 10px;
}
.rightBox{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.row .links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  width: auto;
  flex: 0 0 auto;
}

.row .playersMid{
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.row .voteBox{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.thumb {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.thumb:hover {
  transform: scale(1.03);
  filter: brightness(0.9);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
 