/* ============================================================
   FTL Frontend – Film Tier-List Anzeige
   ============================================================ */

.ftl-frontend {
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ftl-loading, .ftl-error {
  text-align: center;
  padding: 40px;
  opacity: .7;
  font-size: 15px;
}

/* Besucher-Banner */
.ftl-visitor-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f0f6fc;
  border: 1px solid #c5d9ed;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #1d4a75;
}
.ftl-reset-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid #2271b1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #2271b1;
  cursor: pointer;
  white-space: nowrap;
}
.ftl-reset-btn:hover { background: #e8f0f9; }

/* Tier-Tabelle */
.ftl-frontend-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ftl-frontend-row {
  display: flex;
  min-height: 110px;
  border-radius: 8px;
  overflow: hidden;
}

/* Tier-Label */
.ftl-frontend-label {
  width: 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
}

/* Films */
.ftl-frontend-films {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,.04);
  align-content: flex-start;
  min-height: 110px;
}
.ftl-frontend-films--pool {
  background: #fafafa;
  min-height: 80px;
}

/* Film-Karte */
.ftl-frontend-card {
  width: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: transform .15s, box-shadow .15s;
}
.ftl-frontend-card[draggable="true"] { cursor: grab; }
.ftl-frontend-card[draggable="true"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.ftl-frontend-card.ftl-dragging { opacity: .3; transform: scale(.93); }

.ftl-frontend-poster {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}
.ftl-frontend-poster--ph {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #eee;
}
.ftl-frontend-title {
  padding: 4px 5px 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  color: #888;
}
.ftl-frontend-year {
  font-size: 9.5px;
  color: #888;
  text-align: center;
  padding-bottom: 4px;
}

/* Drop-Placeholder (Visitor D&D) */
.ftl-ph {
  width: 80px;
  height: 130px;
  border: 2px dashed #aaa;
  border-radius: 8px;
  background: rgba(0,0,0,.03);
  flex-shrink: 0;
}

/* Unranked */
.ftl-frontend-unranked {
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
}
.ftl-frontend-unranked-title {
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  background: rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

/* Responsive */
@media (max-width: 600px) {
  .ftl-frontend-label { width: 100px; min-width: 100px; font-size: 10px; }
  .ftl-frontend-card  { width: 64px; }
  .ftl-frontend-poster,
  .ftl-frontend-poster--ph { height: 88px; }
  .ftl-frontend-title { font-size: 9px; }
}
