:root {
  --ink: #e8e6e1;
  --dim: #9b9690;
  --blood: #8a1c1c;
  --bg: #0a0a0a;
  --card-bg: rgba(20, 20, 20, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  height: 72vh;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('assets/twins-background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: grayscale(1) contrast(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(10,10,10,1) 100%);
}

.hero-title {
  position: relative;
  font-family: 'Creepster', cursive;
  font-weight: normal;
  letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  color: #f2f0ec;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.25),
    0 0 38px rgba(138, 28, 28, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.9);
  margin: 0;
  filter: grayscale(1);
}

.hero-subtitle {
  position: relative;
  font-style: italic;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* ---- Tricycle ride ---- */

.ride {
  position: relative;
  height: 260vh;
  background: #000;
}

.ride-corridor {
  position: sticky;
  top: 0;
  height: 100vh;
  background-image: url('assets/corridor-ride.png');
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(1) contrast(1.2);
  transform-origin: center 65%;
  will-change: transform;
}

.ride-vignette {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-top: -100vh;
  background: radial-gradient(ellipse at center 60%, transparent 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.ride-tricycle {
  position: sticky;
  bottom: 6%;
  left: 50%;
  margin-top: -22vh;
  width: 160px;
  margin-left: -80px;
  opacity: 0.85;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.8));
  will-change: transform;
}

.ride-tricycle svg {
  display: block;
  width: 100%;
  height: auto;
}

.ride-caption {
  position: sticky;
  top: 12%;
  text-align: center;
  font-family: 'Creepster', cursive;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: rgba(217, 140, 140, 0.65);
  text-shadow: 0 0 20px rgba(138, 28, 28, 0.6);
  margin: 0;
}

/* ---- Film list ---- */

.film-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.loading, .error {
  text-align: center;
  color: var(--dim);
  font-style: italic;
}

.film-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--blood);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.film-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.film-title {
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink);
}

.film-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--dim);
}

.film-title a:hover {
  border-bottom-color: var(--blood);
}

.film-year {
  color: var(--dim);
  font-size: 0.95rem;
  font-style: italic;
}

.film-meta {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag {
  border: 1px solid var(--card-border);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  color: var(--dim);
}

.tag.grade {
  border-color: var(--blood);
  color: #d98c8c;
}

.tag.viewed {
  color: #8aa988;
  border-color: rgba(138, 169, 136, 0.4);
}

.tag.queued {
  color: #c9b27e;
  border-color: rgba(201, 178, 126, 0.4);
}

.film-review {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  white-space: pre-line;
}

.film-review.empty {
  color: var(--dim);
  font-style: italic;
}

.review-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-toggle {
  margin-top: 0.4rem;
  background: none;
  border: none;
  color: #d98c8c;
  font-family: 'Crimson Text', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}

.review-toggle:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--card-border);
}
