:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #1a1d20;
  --panel-2: #22262a;
  --text: #f4f5f6;
  --muted: #a9b0b7;
  --accent: #38bdf8;
  --good: #4ade80;
  --bad: #fb7185;
  --border: #30363d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;

  padding: 24px max(18px, calc((100vw - 980px) / 2));

  background: #15181b;
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

.mod-button,
.secondary,
.small-button,
.watched-button,
.dialog-form button,
.add-form button {
  min-height: 42px;
  padding: 0 14px;

  border-radius: 10px;
  border: 1px solid var(--border);

  background: var(--panel-2);
  color: var(--text);
}

.mod-button:hover,
.secondary:hover {
  border-color: var(--accent);
}

.mod-button.active {
  border-color: var(--good);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 11px 13px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.message.success {
  border-color: rgba(74, 222, 128, 0.45);
}

.message.error {
  border-color: rgba(251, 113, 133, 0.45);
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;

  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;

  min-height: 34px;
  padding: 0 12px;

  border-radius: 999px;
  font-weight: 700;
}

.pill.open {
  background: rgba(74, 222, 128, 0.13);
  color: var(--good);
}

.pill.closed {
  background: rgba(251, 113, 133, 0.13);
  color: var(--bad);
}

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

.moderator-panel {
  margin-bottom: 26px;
  padding: 18px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.moderator-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;

  margin-bottom: 18px;
}

.moderator-head h2 {
  margin: 0 0 2px;
}

.moderator-head p {
  margin: 0;
  color: var(--muted);
}

.add-form label,
.name-label,
.dialog-form label {
  display: block;

  margin-bottom: 8px;

  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 46px;

  padding: 0 13px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #0f1113;
  color: var(--text);

  outline: none;
}

input:focus {
  border-color: var(--accent);
}

.add-form button,
.dialog-form button,
.vote-button {
  background: var(--accent);
  color: #06141b;
  font-weight: 800;

  border: 0;
}

.watched-zone {
  margin-top: 18px;
  padding-top: 14px;

  border-top: 1px solid var(--border);

  color: var(--muted);
}

.watched-zone summary {
  cursor: pointer;

  color: var(--text);
  font-weight: 750;
}

.watched-list {
  display: grid;
  gap: 8px;

  margin-top: 14px;
}

.watched-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: #15181b;
  color: var(--text);
}

.small-button,
.watched-button {
  background: rgba(74, 222, 128, 0.10);
  color: var(--good);

  border: 1px solid rgba(74, 222, 128, 0.25);
}

.danger-zone {
  margin-top: 18px;
  padding-top: 14px;

  border-top: 1px solid var(--border);

  color: var(--muted);
}

.danger-zone summary {
  cursor: pointer;
  color: var(--text);
}

.danger {
  min-height: 42px;
  padding: 0 13px;

  border-radius: 9px;
  border: 1px solid rgba(251, 113, 133, 0.35);

  background: rgba(251, 113, 133, 0.13);
  color: var(--bad);
}

.name-input {
  max-width: 420px;
  margin-bottom: 18px;
}

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

.film-card {
  min-width: 0;

  overflow: hidden;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.film-select {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 82px;
  padding: 16px;

  cursor: pointer;
}

.film-select input {
  position: absolute;

  opacity: 0;

  width: 1px;
  height: 1px;
}

.checkmark {
  display: grid;
  place-items: center;

  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  border: 2px solid #59636d;
  border-radius: 9px;

  color: transparent;
  font-weight: 900;
}

.film-select input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);

  color: #06141b;
}

.film-title {
  font-size: 1.08rem;
  font-weight: 750;

  overflow-wrap: anywhere;
}

.film-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 42px;
  padding: 8px 14px;

  border-top: 1px solid var(--border);

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

.mod-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-button {
  min-width: 34px;
  min-height: 34px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: var(--bad);
}

.vote-button {
  display: block;

  width: 100%;
  min-height: 54px;

  margin-top: 18px;

  border-radius: 12px;
}

.closed-note {
  margin-top: 18px;
  padding: 14px;

  border-radius: 12px;

  background: var(--panel);
  color: var(--muted);

  text-align: center;
}

.results {
  margin-top: 34px;
  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.result-row {
  margin-bottom: 14px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 5px;
}

.bar {
  height: 9px;

  overflow: hidden;

  border-radius: 999px;

  background: #272c31;
}

.bar-fill {
  height: 100%;

  border-radius: inherit;

  background: var(--accent);
}

.empty {
  padding: 60px 20px;

  color: var(--muted);

  text-align: center;
}

.empty .big {
  margin-bottom: 10px;

  font-size: 3rem;
}

.empty h2 {
  color: var(--text);
}

dialog {
  width: min(92vw, 390px);

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-form {
  display: grid;
  gap: 12px;

  padding: 20px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-head h2 {
  margin: 0;
}

.dialog-close {
  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 9px;

  background: transparent;
  color: var(--muted);
}

@media (max-width: 650px) {

  .topbar {
    padding-top: 18px;
  }

  .topbar p {
    display: none;
  }

  .film-grid {
    grid-template-columns: 1fr;
  }

  .moderator-head,
  .input-row {
    flex-direction: column;
  }

  .moderator-head form,
  .moderator-head button,
  .add-form button {
    width: 100%;
  }

  .watched-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .watched-item form,
  .watched-item button {
    width: 100%;
  }

  .film-select {
    min-height: 74px;
  }
}


.suggestion-panel {
  margin-bottom: 26px;
  padding: 18px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.suggestion-panel h2 {
  margin: 0 0 4px;
}

.suggestion-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.suggestion-panel .add-form {
  margin-top: 12px;
}

@media (max-width: 650px) {
  .suggestion-panel .input-row {
    flex-direction: column;
  }

  .suggestion-panel button {
    width: 100%;
  }
}

.event-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.event-head h2 {
  margin: 3px 0 12px;
  font-size: 1.4rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moderator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.new-event-form {
  display: grid;
  grid-template-columns: 180px minmax(200px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.new-event-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.new-event-form button {
  min-height: 46px;
  padding: 0 18px;

  border: 0;
  border-radius: 10px;

  background: var(--accent);
  color: #06141b;

  font-weight: 800;
}

.shown-button {
  min-height: 34px;
  padding: 0 10px;

  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;

  background: rgba(74, 222, 128, 0.1);
  color: var(--good);
}

.current-empty {
  margin-bottom: 24px;
  padding-top: 32px;
  padding-bottom: 32px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.history {
  margin-top: 46px;
  padding-top: 28px;

  border-top: 1px solid var(--border);
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 16px;
}

.history-head h2 {
  margin: 3px 0 0;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.history-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 15px 16px;

  cursor: pointer;
}

.history-item summary > div {
  display: grid;
  gap: 3px;
}

.history-item summary span {
  color: var(--muted);
}

.history-meta {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.history-content {
  padding: 16px;

  border-top: 1px solid var(--border);
}

.winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 20px;
  padding: 13px 14px;

  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 10px;

  background: rgba(74, 222, 128, 0.08);
}

.winner span {
  color: var(--muted);
}

@media (max-width: 650px) {

  .new-event-form {
    grid-template-columns: 1fr;
  }

  .new-event-form button {
    width: 100%;
  }

  .moderator-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .moderator-controls form,
  .moderator-controls button {
    width: 100%;
  }

  .history-item summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-meta {
    flex-shrink: 1;
  }
}

.round-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.dice-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin: 0 0 18px;
  padding: 14px;

  border: 1px dashed var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.dice-panel > div {
  display: grid;
}

.dice-panel span {
  color: var(--muted);
  font-size: .9rem;
}

.dice-button {
  min-height: 44px;
  padding: 0 14px;

  border: 1px solid var(--accent);
  border-radius: 10px;

  background: transparent;
  color: var(--accent);

  font-weight: 800;
}

.dice-result {
  flex-basis: 100%;
  margin: 0;

  color: var(--good);
  font-weight: 700;
}

.dice-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hidden-results {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 28px;
  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.hidden-results h2,
.hidden-results p {
  margin: 0;
}

.hidden-results p {
  margin-top: 4px;
  color: var(--muted);
}

.big-lock {
  font-size: 2.2rem;
}

.runoff-panel {
  margin-top: 30px;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.runoff-panel h2 {
  margin: 3px 0 8px;
}

.runoff-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;

  margin: 16px 0;
}

.runoff-option {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  cursor: pointer;
}

.runoff-option input {
  width: auto;
  min-height: auto;
}

.runoff-option span {
  flex: 1;
}

.runoff-button {
  width: 100%;
  min-height: 48px;

  border: 0;
  border-radius: 10px;

  background: var(--accent);
  color: #06141b;

  font-weight: 900;
}

.previous-rounds {
  margin-top: 32px;
}

.previous-rounds h2 {
  margin-top: 3px;
}

.archive-round + .archive-round {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.archive-round-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 14px;
}

.app-footer {
  margin-top: 50px;
  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

@media (max-width: 650px) {
  .runoff-options {
    grid-template-columns: 1fr;
  }

  .dice-button {
    width: 100%;
  }

  .archive-round-head {
    flex-direction: column;
    gap: 3px;
  }
}

.stats-zone {
  margin-top: 48px;
  padding-top: 30px;

  border-top: 1px solid var(--border);
}

.stats-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.stats-head h2 {
  margin: 3px 0 0;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;

  margin-bottom: 18px;
}

.stat-card,
.record-card {
  display: grid;
  gap: 3px;

  min-width: 0;
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.stat-card span,
.record-card span {
  color: var(--muted);
  font-size: .86rem;
}

.stat-card strong {
  font-size: 1.65rem;
}

.stat-card small,
.record-card small {
  color: var(--muted);
}

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

  margin-bottom: 18px;
}

.stats-panel {
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.stats-panel h3 {
  margin: 3px 0 16px;
}

.award {
  display: grid;
  gap: 2px;

  padding: 11px 0;

  border-top: 1px solid var(--border);
}

.award:first-of-type {
  border-top: 0;
}

.award > span {
  color: var(--muted);
  font-size: .86rem;
}

.award strong {
  font-size: 1.05rem;
}

.award small {
  color: var(--muted);
}

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

  margin-bottom: 18px;
}

.record-card strong {
  font-size: 1.15rem;
}

.career-box {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.career-box > summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding: 16px;

  cursor: pointer;
  font-weight: 800;
}

.career-box > summary span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}

.career-list {
  border-top: 1px solid var(--border);
}

.career-item {
  display: grid;
  gap: 9px;

  padding: 14px 16px;

  border-bottom: 1px solid var(--border);
}

.career-item:last-child {
  border-bottom: 0;
}

.career-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.career-main > span,
.career-meta {
  color: var(--muted);
  font-size: .88rem;
}

.career-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.career-badges span {
  padding: 4px 8px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--panel-2);

  font-size: .78rem;
}

.career-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stats-empty {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 22px;

  border: 1px dashed var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.stats-empty > div:first-child {
  font-size: 2.2rem;
}

.stats-empty h3,
.stats-empty p {
  margin: 0;
}

.stats-empty p {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 760px) {

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fame-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .career-main,
  .career-meta {
    flex-direction: column;
    gap: 3px;
  }

  .stats-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {

  .stats-summary {
    grid-template-columns: 1fr;
  }

}

.admin-dev {
  margin: 28px 0;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel-2);
}

.admin-dev h2 {
  margin: 3px 0 8px;
}

.admin-dev-status {
  margin: 16px 0;
  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.admin-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dev-actions form {
  margin: 0;
}

@media (max-width: 650px) {
  .admin-dev-actions {
    display: grid;
  }

  .admin-dev-actions button {
    width: 100%;
  }
}

.movie-search {
  margin-top: 14px;
}

.movie-search > input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
  color: inherit;

  font-size: 1rem;
}

.movie-search-status {
  min-height: 28px;
  padding: 7px 2px;

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

.movie-search-results {
  display: grid;
  gap: 8px;
}

.movie-search-result {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;

  margin: 0;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.movie-search-poster {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 92px;

  overflow: hidden;

  border-radius: 8px;
  background: var(--panel-2);

  font-size: 1.8rem;
}

.movie-search-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-search-info {
  min-width: 0;
}

.movie-search-info strong {
  display: block;
  margin-bottom: 4px;

  font-size: 1rem;
}

.movie-search-meta {
  display: flex;
  gap: 10px;

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

.movie-search-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  margin: 6px 0 0;

  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}

.movie-search-add {
  width: 44px;
  height: 44px;
  padding: 0;

  border: 0;
  border-radius: 999px;

  font-size: 1.35rem;
  font-weight: 900;
}

@media (max-width: 520px) {

  .movie-search-result {
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    gap: 9px;
  }

  .movie-search-poster {
    width: 52px;
    height: 78px;
  }

  .movie-search-add {
    width: 40px;
    height: 40px;
  }

}

.voting-state {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 0 0 20px;
  padding: 16px 18px;

  border: 2px solid;
  border-radius: 14px;
}

.voting-state-icon {
  flex: 0 0 auto;
  font-size: 1.7rem;
}

.voting-state > div:last-child {
  display: grid;
  gap: 3px;
}

.voting-state strong {
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.voting-state span {
  font-size: .9rem;
}

.voting-state-open {
  border-color: #3fb950;
  background: rgba(63, 185, 80, .10);
}

.voting-state-open strong {
  color: #56d364;
}

.voting-state-closed {
  border-color: #f85149;
  background: rgba(248, 81, 73, .10);
}

.voting-state-closed strong {
  color: #ff7b72;
}

.voting-closed .film-checkbox:disabled {
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .voting-state {
    align-items: flex-start;
    padding: 14px;
  }
}

/* ==================================================
   MovieVote v1.5 – TMDb Movie Cards
   ================================================== */

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

.movie-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--panel);
}

.movie-card-vote {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  flex: 1;

  min-height: 190px;

  cursor: pointer;
}

.movie-card-vote > .film-checkbox {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.movie-poster {
  position: relative;

  min-height: 190px;
  overflow: hidden;

  background: var(--panel-2);
}

.movie-poster img {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 190px;

  object-fit: cover;
}

.movie-poster-fallback {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  min-height: 190px;

  font-size: 3rem;
}

.movie-check {
  position: absolute;
  top: 10px;
  left: 10px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 999px;

  background: rgba(0, 0, 0, .65);
  color: transparent;

  font-size: 1.15rem;
  font-weight: 900;

  backdrop-filter: blur(4px);

  transition:
    transform .15s ease,
    background .15s ease,
    color .15s ease;
}

.film-checkbox:checked ~ .movie-poster .movie-check {
  background: var(--accent);
  color: #06141b;

  transform: scale(1.08);
}

.movie-card:has(.film-checkbox:checked) {
  border-color: var(--accent);

  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 25px rgba(0, 0, 0, .18);
}

.movie-card:has(.film-checkbox:disabled) .movie-card-vote {
  cursor: default;
}

.movie-card-content {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 14px;
}

.movie-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.movie-card-title-row h3 {
  margin: 0;

  font-size: 1.05rem;
  line-height: 1.25;
}

.movie-original-title {
  margin-top: 3px;

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

.movie-rating {
  flex: 0 0 auto;

  padding: 4px 7px;

  border-radius: 999px;

  background: rgba(255, 193, 7, .12);

  color: #ffd166;
  font-size: .78rem;
  font-weight: 800;
}

.movie-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;

  margin-top: 10px;

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

.movie-overview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  margin: 11px 0 0;

  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.movie-no-data {
  font-style: italic;
}

.movie-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 46px;
  padding: 8px 12px;

  border-top: 1px solid var(--border);
}

.movie-votes {
  color: var(--muted);
  font-size: .8rem;
}

.movie-votes.hidden {
  opacity: .75;
}

@media (hover: hover) {
  .movie-card-vote:hover {
    background: rgba(255, 255, 255, .02);
  }

  .movie-card-vote:hover .movie-poster img {
    transform: scale(1.025);
  }

  .movie-poster img {
    transition: transform .2s ease;
  }
}

@media (max-width: 850px) {
  .film-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-vote {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .movie-poster,
  .movie-poster img,
  .movie-poster-fallback {
    min-height: 165px;
  }
}

@media (max-width: 480px) {
  .movie-card-vote {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .movie-poster,
  .movie-poster img,
  .movie-poster-fallback {
    min-height: 145px;
  }

  .movie-card-content {
    padding: 11px;
  }

  .movie-card-title-row {
    display: block;
  }

  .movie-rating {
    display: inline-flex;
    margin-top: 7px;
  }

  .movie-overview {
    -webkit-line-clamp: 3;
  }

  .movie-facts {
    font-size: .74rem;
  }
}

.admin-reset-zone {
  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid var(--border);
}

.admin-reset-zone h3 {
  margin: 0 0 6px;
}

.admin-reset-zone .danger {
  margin-top: 8px;
}

/* ==================================================
   MovieVote v1.5b – Movie Meter & Archive
   ================================================== */

.movie-meter {
  margin: 18px 0;
  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.movie-meter-title {
  margin-bottom: 10px;

  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.movie-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.movie-meter-grid > div {
  display: grid;
  gap: 2px;

  padding: 10px;

  border-radius: 10px;

  background: var(--panel-2);
}

.movie-meter-grid strong {
  overflow: hidden;

  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meter-grid span {
  color: var(--muted);
  font-size: .72rem;
}

.archive-winner {
  display: flex;
  align-items: center;
  gap: 14px;

  overflow: hidden;
}

.archive-winner img {
  width: 66px;
  height: 98px;

  flex: 0 0 auto;

  border-radius: 8px;
  object-fit: cover;
}

.archive-winner > div {
  display: grid;
  gap: 4px;
}

.archive-winner > div > span,
.archive-winner small {
  color: var(--muted);
}

.archive-winner strong {
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .movie-meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .movie-meter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==================================================
   MovieVote v1.5c – Movie Details
   ================================================== */

.movie-details-button {
  flex: 0 0 auto;

  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel-2);
  color: inherit;

  font-size: .8rem;
  font-weight: 700;
}

.movie-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);

  padding: 0;

  overflow: auto;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--panel);
  color: inherit;

  box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

.movie-dialog::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}

.movie-dialog-shell {
  overflow: hidden;
}

.movie-dialog-backdrop,
.movie-dialog-no-backdrop {
  position: relative;

  height: 240px;

  background-position: center;
  background-size: cover;
}

.movie-dialog-backdrop::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .05),
      rgba(0, 0, 0, .75)
    );
}

.movie-dialog-no-backdrop {
  height: 80px;

  background: var(--panel-2);
}

.movie-dialog-close {
  position: absolute;
  z-index: 3;

  top: 12px;
  right: 12px;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;

  background: rgba(0, 0, 0, .65);
  color: white;

  font-size: 1rem;
}

.movie-dialog-content {
  padding: 20px;
}

.movie-dialog-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;

  align-items: start;
}

.movie-dialog-poster {
  width: 150px;

  border-radius: 11px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
}

.movie-dialog-poster-fallback {
  display: grid;
  place-items: center;

  width: 150px;
  aspect-ratio: 2 / 3;

  border-radius: 11px;

  background: var(--panel-2);

  font-size: 3rem;
}

.movie-dialog-info {
  min-width: 0;
}

.movie-dialog-info h2 {
  margin: 0;

  font-size: 1.55rem;
  line-height: 1.15;
}

.movie-dialog-original {
  margin-top: 4px;

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

.movie-dialog-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;

  margin-top: 14px;

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

.movie-dialog-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 14px;
}

.movie-dialog-genres span {
  padding: 5px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--panel-2);

  font-size: .78rem;
}

.movie-dialog-overview {
  margin: 18px 0 0;

  line-height: 1.55;
}

.movie-dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 20px;
}

.movie-dialog-links a {
  padding: 8px 11px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel-2);
  color: inherit;

  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

@media (max-width: 580px) {

  .movie-dialog-backdrop {
    height: 170px;
  }

  .movie-dialog-content {
    padding: 15px;
  }

  .movie-dialog-main {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 13px;
  }

  .movie-dialog-poster,
  .movie-dialog-poster-fallback {
    width: 90px;
  }

  .movie-dialog-info h2 {
    font-size: 1.2rem;
  }

  .movie-dialog-overview,
  .movie-dialog-links {
    grid-column: 1 / -1;
  }
}

/* ==================================================
   MovieVote v1.5d – Film DNA
   ================================================== */

.movie-dna {
  margin: 0 0 22px;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.movie-dna-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 16px;
}

.movie-dna-head h2 {
  margin: 3px 0 0;
}

.marathon-level {
  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--panel-2);

  font-size: .82rem;
  white-space: nowrap;
}

.movie-dna-records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.movie-dna-records > div {
  display: grid;
  gap: 3px;

  min-width: 0;
  padding: 11px;

  border-radius: 10px;

  background: var(--panel-2);
}

.movie-dna-records span,
.movie-dna-records small {
  color: var(--muted);
  font-size: .74rem;
}

.movie-dna-records strong {
  overflow: hidden;

  font-size: .9rem;
  text-overflow: ellipsis;
}

.dna-section {
  margin-top: 20px;
  padding-top: 16px;

  border-top: 1px solid var(--border);
}

.dna-section h3 {
  margin: 0 0 12px;

  font-size: .95rem;
}

.dna-bars {
  display: grid;
  gap: 9px;
}

.dna-bar-row > div:first-child {
  display: flex;
  justify-content: space-between;

  margin-bottom: 4px;

  font-size: .8rem;
}

.dna-bar-row > div:first-child strong {
  color: var(--muted);
}

.dna-bar {
  height: 6px;

  overflow: hidden;

  border-radius: 999px;

  background: var(--panel-2);
}

.dna-bar > div {
  height: 100%;
  border-radius: inherit;

  background: var(--accent);
}

.decade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.decade-chips > span {
  display: flex;
  gap: 5px;

  padding: 6px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--panel-2);

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

.decade-chips strong {
  color: inherit;
}

@media (max-width: 780px) {

  .movie-dna-records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 520px) {

  .movie-dna-head {
    flex-direction: column;
  }

  .marathon-level {
    white-space: normal;
  }

}

/* ==================================================
   MovieVote v1.5e – Vorschläge & Film-Orakel
   ================================================== */

.proposal-identity {
  display: grid;
  gap: 6px;

  margin: 14px 0;
}

.proposal-identity label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.proposal-identity input {
  min-height: 46px;
  padding: 0 13px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
  color: inherit;
}

.random-proposal-zone {
  margin: 14px 0 20px;
  padding: 14px;

  border: 1px dashed var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.random-proposal-button {
  width: 100%;
  min-height: 46px;

  border: 1px solid var(--accent);
  border-radius: 10px;

  background: transparent;
  color: var(--accent);

  font-weight: 800;
}

.random-proposal-button:disabled {
  opacity: .6;
}

.random-movie-result {
  margin-top: 4px;

  border-color: var(--accent);
}

.random-accept-button {
  width: auto;
  min-width: 105px;
  padding: 0 12px;

  border-radius: 9px;

  font-size: .78rem;
}

@media (max-width: 520px) {

  .random-movie-result {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .random-movie-result .random-accept-button {
    grid-column: 1 / -1;

    width: 100%;
    min-height: 40px;
  }

}

/* ==================================================
   MovieVote v1.5 – Leader & Roulette
   ================================================== */

.current-leader {
  display: flex;
  align-items: center;
  gap: 18px;

  margin: 18px 0 24px;
  padding: 16px;

  overflow: hidden;

  border: 1px solid var(--accent);
  border-radius: 16px;

  background: var(--panel);

  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.current-leader-poster {
  width: 74px;
  height: 110px;

  flex: 0 0 auto;

  border-radius: 9px;
  object-fit: cover;
}

.current-leader > div {
  display: grid;
  gap: 4px;
}

.current-leader-label {
  color: var(--accent);

  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.current-leader strong {
  font-size: 1.55rem;
  line-height: 1.15;
}

.current-leader small {
  color: var(--muted);
}

.current-leader-tie {
  padding: 6px;
}


.roulette-launch {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 18px;
  padding: 13px;

  border: 1px dashed var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.roulette-launch span {
  color: var(--muted);
  font-size: .78rem;
}

.roulette-button {
  flex: 0 0 auto;

  min-height: 42px;
  padding: 0 14px;

  border: 1px solid var(--accent);
  border-radius: 10px;

  background: transparent;
  color: var(--accent);

  font-weight: 800;
}


.roulette-dialog {
  width: min(460px, calc(100vw - 24px));

  padding: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--panel);
  color: inherit;

  box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}

.roulette-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(6px);
}

.roulette-shell {
  position: relative;

  display: grid;
  gap: 14px;

  padding: 22px;
}

.roulette-shell h2 {
  margin: 0;
}

.roulette-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;

  padding: 0;

  border-radius: 999px;
}

.roulette-stage {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  align-items: center;
  gap: 18px;

  min-height: 175px;

  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel-2);
}

.roulette-poster-box {
  display: grid;
  place-items: center;

  width: 115px;
  height: 170px;

  overflow: hidden;

  border-radius: 10px;

  background: var(--panel);
}

.roulette-poster-box img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.roulette-poster-box div {
  font-size: 3rem;
}

.roulette-result {
  display: grid;
  gap: 8px;
}

.roulette-result span {
  color: var(--muted);
  font-size: .82rem;
}

.roulette-result strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.roulette-again {
  min-height: 46px;

  border-radius: 10px;

  font-weight: 900;
}

.roulette-shell > small {
  color: var(--muted);

  font-size: .72rem;
  text-align: center;
}

@media (max-width: 520px) {

  .current-leader strong {
    font-size: 1.25rem;
  }

  .roulette-launch {
    display: grid;
  }

  .roulette-button {
    width: 100%;
  }

  .roulette-stage {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }

  .roulette-poster-box {
    width: 90px;
    height: 134px;
  }

}
