:root {
  --bg: #15141b;
  --surface: #1e1c26;
  --surface-2: #262432;
  --ink: #ede9e3;
  --muted: #9691a0;
  --line: rgba(237, 233, 227, 0.12);
  --accent: #d6a24c;
  --film: #d6a24c;
  --serie: #4fa6a0;
  --game: #8b7fe0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Kopf ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 40px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
  margin-right: auto;
}

.filters {
  display: flex;
  gap: 6px;
}

.filter {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.filter:hover { color: var(--ink); }

.filter.is-active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.search {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  min-width: 200px;
}

.search::placeholder { color: var(--muted); }

.sort {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- Regal / Grid ---------- */

main { padding: 32px 40px 80px; }

.empty-state {
  color: var(--muted);
  font-size: 15px;
  padding: 60px 0;
  text-align: center;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px 18px;
}

.cover-card {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.cover-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-art .placeholder-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: "Fraunces", serif;
  font-size: 42px;
  color: var(--muted);
}

.type-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.type-tag.film  { background: var(--film); }
.type-tag.serie { background: var(--serie); }
.type-tag.game  { background: var(--game); }

.host-stamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(21, 20, 27, 0.85);
  color: var(--accent);
  font-family: "Fraunces", serif;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--accent);
}

.cover-meta { margin-top: 9px; }

.cover-meta .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.cover-meta .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Detailansicht (Ticket) ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.overlay[hidden] {
  display: none;
}

.ticket {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface-2);
  border: none;
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  z-index: 2;
}
.close:hover { color: var(--ink); }

.ticket-body { padding: 0; }

.ticket-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  padding: 26px;
}

.ticket-cover {
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.ticket-cover img { width: 100%; height: 100%; object-fit: cover; }

.ticket-title {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 4px;
  padding-right: 30px;
}

.ticket-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.ticket-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}

.tear-line {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 16px 0;
}

.verdicts {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.verdict .label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.verdict .value {
  font-family: "Fraunces", serif;
  font-size: 22px;
}
.verdict.host .value { color: var(--accent); }

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.like-btn {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.like-btn.is-liked {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.rate-row select {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: inherit;
}

/* ---------- Kommentare ---------- */

.comments {
  border-top: 1px solid var(--line);
  padding: 22px 26px 28px;
}

.comments h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 14px;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: none; }

.comment .who {
  font-size: 13.5px;
  font-weight: 500;
}
.comment .when {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}
.comment p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.comment-form input,
.comment-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.comment-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #221a0c;
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 560px) {
  .site-head { padding: 20px 20px 16px; }
  main { padding: 22px 20px 60px; }
  .ticket-top { grid-template-columns: 1fr; }
  .ticket-cover { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
