:root {
  --bg: #F9FAFB;
  --text: #1F2937;
  --accent: #8B1E3F;
  --accent-dark: #66112E;
  --nav-bg: #ffffff;
  --nav-text: #8B1E3F;
  --white: #ffffff;
  --shadow-light: rgba(139, 30, 63, 0.15);
  --text-muted: #888888;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 40px;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  background: var(--nav-bg);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav {
  width: 100%;
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-left a {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.2rem;
  text-decoration: none;
  user-select: none;
}

.nav-right a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 600;
  margin-left: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: var(--accent-dark);
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-dark);
  user-select: none;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--accent);
}

.scene-header {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.scene-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scene-header h1 {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3.5rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  user-select: none;
  margin: 0;
  max-width: 55%;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.motto {
  position: absolute;
  top: calc(50% + 70px);
  left: 40px;
  color: #f0e6d2;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
  user-select: none;
  margin: 0;
  max-width: 55%;
  letter-spacing: 0.02em;
}

h2 {
  margin: 24px 20px 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
  max-width: fit-content;
  transition: color 0.3s ease;
  cursor: default;
}

h2:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
h2 a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 700;
}

h2 a:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.genre-section {
  position: relative;
  margin-bottom: 48px;
}

.film-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 20px 12px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.film-container::-webkit-scrollbar {
  display: none;
}

#filmModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

#filmModal.active {
  opacity: 1;
  pointer-events: auto;
}

#filmModalContent {
  background: var(--white);
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(139,30,63,0.5);
}

#filmModalContent iframe {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  border: none;
  margin-bottom: 15px;
}

#filmModalContent p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  white-space: pre-wrap;
}

#filmModalClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  color: var(--accent-dark);
  transition: color 0.3s ease;
}

#filmModalClose:hover {
  color: var(--accent);
}

.genre-section {
  position: relative;
  margin-bottom: 48px;
}

.film-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px; 
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.arrow-left {
  left: 0;
}

.arrow-right {
  right: 0;
}

.arrow-btn:hover {
  background-color: var(--accent-dark);
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-left a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav-right a {
    margin: 0.5rem 0.75rem 0 0;
  }

  .menu-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-dark);
  }
  .scene-header {
    height: 250px;
  }

  .scene-header h1 {
    top: 30%;
    font-size: 1.7rem;
    left: 20px;
    max-width: 90%;
  }

  .motto {
    font-size: 1.1rem;
    top: calc(50% + 50px);
    left: 20px;
    max-width: 90%;
    top: 80%
  }

  h2 {
    font-size: 20px;
    margin: 20px 16px 10px;
  }

  .film-container {
    gap: 12px;
    padding: 0 12px 8px 12px;
  }

  .film-card {
    width: 120px !important;
  }

  .film-card img {
    height: 180px !important;
  }

  .arrow-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .film-row {
    padding: 0 20px;
  }

  #filmModalContent {
    padding: 12px;
  }

  #filmModalContent iframe {
    height: 200px;
  }

  #filmModalClose {
    top: 5px;
    right: 10px;
    font-size: 24px;
  }
}
