:root {
  --bg: #000;
  --card: #111113;
  --card-2: #1c1c1f;
  --ink: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f5c542;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.accent { color: var(--accent); }

/* Profil (Instagram-Stil) */
.profile { max-width: 900px; margin: 0 auto; padding: 96px 24px 24px; }
.profile-top { display: flex; align-items: center; gap: 48px; }
.avatar-ring {
  flex: none; width: 200px; height: 200px; padding: 6px; border-radius: 50%;
  background: conic-gradient(from 210deg, #f5c542, #ff9f0a, #f5c542, #fff3c4, #f5c542);
}
.avatar { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); transform-origin: 56% 28%; }
.profile h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.handle { margin: 10px 0 0; font-size: 19px; color: var(--muted); font-weight: 500; }
.bio { margin: 20px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }

.highlights { display: flex; justify-content: center; gap: 32px; margin-top: 56px; }
.hl { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; }
.hl-ring { width: 84px; height: 84px; padding: 3px; border-radius: 50%; background: #3a3a3c; transition: background 0.2s; }
.hl:hover .hl-ring { background: var(--accent); }
.hl img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }

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

/* Rubriken */
.section { padding-top: 88px; scroll-margin-top: 16px; }
.section > h2 { margin: 0 0 28px; font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.row .card h3 { font-size: 22px; }
.row .card .score { font-size: 30px; }
.row .card .score span { font-size: 18px; }
.row .card-body { padding: 18px 20px 22px; }

/* Filter */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.chip {
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  background: var(--card-2); color: var(--ink);
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: #2a2a2e; }
.chip.active { background: var(--accent); color: #000; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  border: 0; padding: 0; text-align: left;
  background: var(--card); border-radius: 24px; overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .poster { aspect-ratio: 2 / 3; overflow: hidden; }
.card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .poster img { transform: scale(1.03); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.card .meta { color: var(--muted); font-size: 17px; }

.score { font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.score b { color: var(--accent); }
.score span { color: var(--muted); font-weight: 600; }
.card .score { font-size: 36px; margin-top: 6px; }
.card .score span { font-size: 20px; }

.award { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--accent); }
.award svg { flex: none; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 20px; }

.footer { text-align: center; color: var(--muted); font-size: 15px; padding: 96px 24px 48px; }

/* Popup */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.overlay[hidden] { display: none; }
.overlay-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 48px);
  overflow-y: auto; border-radius: 28px;
  background: var(--card);
  animation: pop 0.25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }
.sheet-img { aspect-ratio: 16 / 8; background-size: cover; background-position: center 30%; position: relative; }
.sheet-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 60%); }
.close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.sheet-body { padding: 0 40px 40px; margin-top: -40px; position: relative; z-index: 1; }
.sheet h2 { margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.sheet .aka { color: var(--muted); font-size: 18px; margin-top: 8px; }
.sheet .score { font-size: 56px; margin: 20px 0 8px; }
.sheet .score span { font-size: 28px; }
.facts { color: var(--muted); font-size: 18px; }

.sheet h3 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sheet p { margin: 0; }
.review { font-size: 21px; line-height: 1.55; }
.logline { color: #c7c7cc; }

.tip {
  margin-top: 32px; padding: 18px 22px; border-radius: 18px;
  background: rgba(245, 197, 66, 0.12); color: var(--accent);
  font-size: 18px; font-weight: 600;
}

.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.awards li { display: flex; gap: 10px; align-items: baseline; font-size: 18px; }
.awards .won { color: var(--ink); font-weight: 600; }
.awards .nom { color: var(--muted); }
.awards li::before { flex: none; width: 1.3em; }
.awards .won::before { content: "🏆"; }
.awards .nom::before { content: "·"; text-align: center; font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px;
  font-size: 18px; font-weight: 600; text-decoration: none;
  background: var(--card-2); color: var(--ink);
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn.primary { background: var(--accent); color: #000; }

/* Tablet */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .profile { padding: 48px 16px 8px; }
  .profile-top { flex-direction: column; text-align: center; gap: 22px; }
  .avatar-ring { width: 152px; height: 152px; padding: 5px; }
  .avatar { border-width: 5px; }
  .highlights { gap: 22px; margin-top: 36px; }
  .hl-ring { width: 72px; height: 72px; }
  .wrap { padding: 0 16px; }
  .section { padding-top: 64px; }
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .card { flex: none; width: 62vw; flex-direction: column; scroll-snap-align: start; }
  .row .card .poster { width: 100%; }
  .row .card-body { padding: 14px 16px 18px; }
  .row .card h3 { font-size: 19px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 32px; padding: 0 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 11px 18px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { flex-direction: row; border-radius: 20px; }
  .card .poster { width: 112px; flex: none; }
  .card-body { padding: 16px 18px; gap: 4px; justify-content: center; }
  .card h3 { font-size: 21px; }
  .card .meta { font-size: 16px; }
  .card .score { font-size: 30px; }
  .card .score span { font-size: 17px; }
  .award { font-size: 16px; }
  .overlay { padding: 0; place-items: end center; }
  .sheet { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .sheet-body { padding: 0 20px 32px; margin-top: -24px; }
  .sheet .score { font-size: 48px; }
  .review { font-size: 19px; }
  .btn { flex: 1; padding: 16px 20px; }
}
