/* ============================================
   FUTURE FRAMES — Reference-matched layout
   ============================================ */

:root {
  --bg: #3d4f5f;
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --font: 'Public Sans', 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url('hintergrund.webp');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Film grain ---- */
.grain-overlay {
  position: fixed;
  inset: -150%;
  width: 400%;
  height: 400%;
  z-index: 1;
  pointer-events: none;
  /* 
     SECRET FOR SHARPNESS & B&W: 
     - feColorMatrix (saturate 0) removes color.
     - feComponentTransfer (discrete) makes it sharp B&W points.
  */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='10' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.2;
  mix-blend-mode: multiply;

  /* Cinematic vibration */
  animation: grain-dance 0.12s steps(3) infinite;
  will-change: transform;
}

@keyframes grain-dance {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-1%, -2%);
  }

  20% {
    transform: translate(-3%, 1%);
  }

  30% {
    transform: translate(2%, -3%);
  }

  40% {
    transform: translate(-1%, 2%);
  }

  50% {
    transform: translate(-2%, -3%);
  }

  60% {
    transform: translate(3%, 1%);
  }

  70% {
    transform: translate(1%, -1%);
  }

  80% {
    transform: translate(-2%, 2%);
  }

  90% {
    transform: translate(-3%, -2%);
  }

  100% {
    transform: translate(1%, 2%);
  }
}

/* ---- Page ---- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* ---- Header ---- */
.page-header {
  padding: 64px 0 48px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.9;
}

.meta-date {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.logo-container {
  display: flex;
  align-items: center;
}

.title-img {
  width: 280px;
  height: auto;
  display: block;
  filter: invert(1);
  margin-top: -6px;
  /* Align visually with top of meta text */
}

/* ---- Film List ---- */
.film-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 0;
}

.film-item {
  display: flex;
  align-items: center;
  /* Center items vertically */
  gap: 16px;
  padding: 14px 0;
  transition: opacity 0.15s ease;
}

/* Link Indicator Badge (Arrow only) */
.watch-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  opacity: 0.5;
}

.film-item:hover .watch-badge {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(1px, -1px);
}

@media (max-width: 640px) {
  .watch-badge {
    opacity: 0.7;
    width: 20px;
    height: 20px;
  }
}

.film-item:hover {
  opacity: 1;
}

.film-item--nolink {
  cursor: default;
}

.film-item--nolink:hover {
  opacity: 1;
}

/* Numbered circle */
.film-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 1px;
}

.film-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.film-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.screening-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.film-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Intro / Interstitial labels */
.intro-label,
.drinks-label {
  padding: 8px 0 8px 44px;
  font-size: 14px;
  color: var(--text-secondary);
}

.drinks-label {
  padding-top: 20px;
  padding-bottom: 0;
}

/* ---- Footer ---- */
.page-footer {
  padding: 40px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-logo-img {
  height: 14px;
  width: auto;
  display: block;
}

.footer-sponsor-img {
  height: 24px;
  width: auto;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page {
    padding: 0 20px;
  }

  .page-header {
    padding: 40px 0 24px;
  }

  .header-top {
    flex-direction: column-reverse;
    /* Logo on top for impact */
    align-items: flex-start;
    gap: 32px;
  }

  .title-img {
    width: 220px;
    /* Scaled for mobile width */
    max-width: 100%;
  }

  .header-meta {
    gap: 2px;
  }

  .meta-label {
    font-size: 10px;
  }

  .meta-date {
    font-size: 12px;
  }

  .film-list {
    padding: 12px 0;
  }

  .film-item {
    padding: 18px 0;
    /* Better touch target for mobile */
    gap: 12px;
  }

  .film-title {
    font-size: 15px;
  }

  .film-sub {
    font-size: 12px;
  }

  .intro-label,
  .drinks-label {
    padding-left: 36px;
    font-size: 13px;
  }

  .film-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 11px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }

  .footer-label {
    font-size: 10px;
  }
}