:root{
  --bg:#14181c;
  --panel:#1b2229;
  --panel2:#202a33;
  --text:#d8e0e7;
  --muted:#9fb0bf;
  --line:#2b3642;
  --accent:#00c030;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
}

a{color:inherit;text-decoration:none}
a:hover{color:#fff}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.topbar{
  position:fixed;
  top:0;
  z-index:1000;
  background:rgba(20,24,28,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
  width: 100%;
}

.topbar .wrap{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 16px;
}

.brand a{
  font-weight:700;
  letter-spacing:.5px;
  text-transform:lowercase;
}

.search{
  flex:1;
  display:flex;
  gap:10px;
  align-items:center;
}

.search input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  outline:none;
}
.search input:focus{
  border-color:#3a4a5a;
}

.search button{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  cursor:pointer;
}
.search button:hover{
  border-color:#3a4a5a;
}

.nav{
  display:flex;
  gap:14px;
  color:var(--muted);
  font-weight:600;
}
.nav a{
  padding:6px 8px;
  border-radius:8px;
}
.nav a:hover{background:var(--panel)}
.nav a.active{color:#fff}

.pagehead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:18px 0 10px;
}
.pagehead h1{
  margin:0;
  font-size:20px;
}
.pagehead .meta{
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:14px;
  padding:8px 0 26px;
  align-items:start;
}

@media (max-width:1100px){
  .grid{grid-template-columns:repeat(5, 1fr);}
}
@media (max-width:920px){
  .grid{grid-template-columns:repeat(4, 1fr);}
  .nav{display:none}
}
@media (max-width:680px){
  .grid{grid-template-columns:repeat(3, 1fr);}
  .search button{display:none}
}
@media (max-width:420px){
  .grid{ grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); }
}

.card{
  display:block;
  width:100%;
  min-width:0;      /* wichtig bei CSS Grid: verhindert min-content-Einflüsse */
}

.poster{
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--panel);
  aspect-ratio: 2 / 3;
  position:relative;
}

.poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .15s ease;
}
.card:hover .poster img{transform:scale(1.03)}

.poster-fallback{
  width:100%;
  height:100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0)),
    radial-gradient(80% 80% at 30% 20%, rgba(0,192,48,.18), rgba(0,0,0,0));
}

.caption{
  padding:8px 2px 0;
}

.caption .t{
  font-weight:650;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* gemeinsame Basis */
.caption .s{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  gap:8px;
  align-items:center;
  line-height:1.2;
}
.caption .dot{opacity:.6}

.footer{
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:16px 0;
}

.stars{
  display:inline-flex;
  gap:2px;
  vertical-align:middle;
  color:var(--accent);
  transform: translateY(1px);
}
.rating-num{
  margin-left:6px;
  color:var(--accent);
  font-weight:700;
  font-size:12px;
}
