@font-face {
  font-family: 'Courier Prime';
  src: url('/assets/fonts/CourierPrime-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('/assets/fonts/CourierPrime-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #fff;
  --border: #222;
}

html, body {
  height: 100vh;
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  body {
    display: flex;
    flex-direction: column;
  }
}

body {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* Header & Navigation */
.header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lang-switch a.active {
  border-bottom: 1px solid var(--accent);
}

/* Main Content */
.main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.hero-header {
  text-align: center;
  padding: 1rem 2rem;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-video {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sound-toggle {
  margin-top: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sound-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

.sound-toggle.unmuted {
  color: var(--accent);
  border-color: var(--accent);
}

/* Film Grid */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.film-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s;
}

.film-card:hover {
  transform: translateY(-4px);
}

.film-card h3 {
  padding: 1.5rem;
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.film-card .meta {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Video Consent Placeholder */
.video-consent {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
}

.consent-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.consent-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.consent-icon {
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.consent-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.consent-message {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.consent-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.consent-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.video-consent.video-loaded {
  background: #000;
}

.video-consent iframe {
  width: 100%;
  height: 100%;
}

/* About Section */
.about-content {
  max-width: 700px;
}

.about-content h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Section Titles */
.section-title {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

/* Splash Overlay */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.splash-overlay.hidden {
  display: none;
}

.splash-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .splash-overlay img {
    transform: rotate(-90deg);
    width: 100vh;
    height: 100vw;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .main {
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .sound-toggle {
    margin-top: 0.5rem;
    padding: 0.4rem;
  }

  .footer {
    padding: 0.5rem 1rem;
    margin-top: auto;
  }

  .film-grid {
    grid-template-columns: 1fr;
  }

  .main {
    flex: none;
  }

  .hero {
    flex: none;
  }

  .hero-video {
    flex: none;
    width: 100%;
    aspect-ratio: auto;
  }

  .hero-video video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
