
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: #454545;
  color: white;
  margin: 0;
}

h1 { text-align: center; margin: 20px 0; }

.filters {
  position: sticky;
  top: 0;
  width: 100%;
  background: #2c2c2c;
  color: #ff9b19;
  font-weight: bold;
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #444;
  margin: 0;
}

.filters label  { margin: 0 10px; }

.filters select,
.filters input {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 5px 8px;
}

.film-count {
  background: #1e1e1e;
  color: #ff9b19;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.95em;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px;
  max-width: 98%;
  margin: 0 auto;
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 50%); gap: 16px; }
  .film { max-width: 100%; min-width: 50%; }
  .cover img { max-width: 100%; }
  #filter-jahr, #filter-lagerort, #filter-kategorie {
    width: 80px; max-width: 100%; padding: 5px 8px;
  }
}

#filter-lagerort { width: 80px; }
#filter-jahr     { width: 100px; }

.film {
  background: #333;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  position: relative;
  width: 100%;
  max-width: 220px;
  min-width: 160px;
  margin: 0 auto;
}

.cover {
  position: relative;
  display: inline-block;
  width: 100%;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 5px;
  margin: 0 auto;
}

.cover-clickable { cursor: pointer; }

.cover-clickable::after {
  content: "💬";
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 1.2em;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 2px 4px;
  line-height: 1;
  pointer-events: none;
}

.cover-clickable:hover img {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.neu-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ff9b19;
  color: #000;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

/* Badge-Labels auf Filmkacheln */
.card-badge {
  display: inline-block;
  background: #1e1e1e;
  color: #ff9b19;
  border: 1px solid #ff9b19;
  font-size: 0.65em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 2px 1px 0 1px;
}

.card-badge-gold {
  background: #ff9b19;
  color: #000;
  border-color: #ff9b19;
}

/* Comments Modal */
#comments-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.78);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#comments-modal-box {
  background: #2c2c2c;
  color: #f0f0f0;
  padding: 35px 30px 30px 30px;
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid #ff9b19;
  box-shadow: 0 0 30px rgba(255,155,25,0.3);
  line-height: 1.75;
  font-size: 1em;
}

#comments-close-btn {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #ff9b19;
  font-size: 1.5em;
  cursor: pointer;
}

#comments-close-btn:hover { color: #ffaa33; }

#comments-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
}

#comments-modal-left  { flex: 1; }

#comments-modal-right {
  flex-shrink: 0;
  width: 100px;
  margin-right: 15px;
}

#comments-modal-cover {
  width: 100%;
  border-radius: 5px;
  display: block;
}

#comments-modal-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #ff9b19;
  margin-bottom: 6px;
}

#comments-modal-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

#comments-modal-stars span        { font-size: 30px; color: #555; }
#comments-modal-stars span.filled { font-size: 30px; color: #ff9b19; }

#comments-modal-year {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 4px;
}

#comments-modal-divider {
  border: none;
  border-top: 1px solid #444;
  margin: 10px 0 14px 0;
}

#comments-modal-box strong { color: #ff9b19; }

.md-h2 { color: #ff9b19; font-size: 1.15em; font-weight: bold; margin: 14px 0 4px 0; }
.md-h3 { color: #ff9b19; font-size: 1.0em;  font-weight: bold; margin: 10px 0 2px 0; }
.md-hr { border: none; border-top: 1px solid #444; margin: 12px 0; }
.md-stars { display: inline-flex; gap: 1px; vertical-align: middle; font-size: 1.15em; }

/* Slideshow Overlay */
#slideshow-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 8888;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#slideshow-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  width: 90%;
  background: #2c2c2c;
  border: 2px solid #ff9b19;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 0 40px rgba(255,155,25,0.25);
}

#slide-left img {
  width: 160px;
  border-radius: 8px;
  display: block;
}

#slide-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#slide-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff9b19;
  line-height: 1.2;
}

#slide-year      { font-size: 0.9em; color: #aaa; }
#slide-medium    { font-size: 0.95em; color: #fff; }
#slide-kategorie { font-size: 0.9em; color: #ccc; }
#slide-lagerort  { font-size: 0.85em; color: #aaa; }

#slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.slide-badge {
  background: #1e1e1e;
  color: #ff9b19;
  border: 1px solid #ff9b19;
  font-size: 0.75em;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
}

.slide-badge-gold {
  background: #ff9b19;
  color: #000;
  border-color: #ff9b19;
}

#slideshow-hint {
  margin-top: 20px;
  color: #666;
  font-size: 0.85em;
}

/* Sterne Filmkacheln */
.stars { display: flex; justify-content: center; gap: 2px; margin-bottom: 5px; }
.stars span        { font-size: 30px; color: white; }
.stars span.filled { color: #ff9b19; }

.title {
  font-weight: bold;
  margin: 5px 0;
  color: black;
  background: #ff9b19;
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
}

.medium, .year, .lagerort, .running_time, .kategorie, .borrowed {
  font-size: 0.9em; margin: 2px 0;
}

.borrowed { color: #ff9b19; font-weight: bold; }

.banner {
  background: #ff9b19;
  color: black;
  text-align: center;
  padding: 10px;
  font-size: 1.8em;
  font-weight: bold;
}

.intro {
  max-width: 95%;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  line-height: 1.6;
}

.fc-container { background: #2c2c2c; padding: 30px 15px; margin-top: 30px; }

.fc-hinweise {
  background: #2c2c2c;
  color: #ff9b19;
  text-align: center;
  font-size: 1.6em;
  font-weight: bold;
  margin: 20px 0 10px;
  width: 100%;
  padding: 10px;
}

.fc-rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.fc-rating-info          { width: 100%; border-collapse: collapse; }
.fc-rating-info td       { text-align: center; padding: 4px 0; }
.fc-text                 { text-align: center; padding-bottom: 8px; }
.fc-stars                { font-size: 2.0rem; color: #ff9b19; font-weight: bold; }

a                        { color: #ff9b19; text-decoration: none; font-weight: bold; }
a:hover                  { color: #ffaa33; text-decoration: underline; }

.film[data-neu="Neu"]    { box-shadow: 0 0 10px rgba(255,155,25,0.6); }

header                   { text-align: center; padding: 20px; }
header img               { max-width: 400px; height: auto; }

.highlight               { font-weight: bold; color: #ff9b19; }
