:root {
  --bg: #F9FAFB;
  --text: #1F2937;
  --accent: #8B1E3F;
  --accent-dark: #66112E;
  --nav-bg: #ffffff;
  --nav-text: #8B1E3F;
  --white: #ffffff;
  --text-muted: #888888;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

header {
  padding: 0.75rem 2rem;
  box-shadow: 0 1.5px 4px rgba(0,0,0,0.1);
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-form {
  background-color: #fff;
  padding: 6px 12px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.search-form input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  color: #333;
  font-size: 15px;
  padding: 6px 12px;
  width: 100%;
  border-radius: 24px 0 0 24px;
  caret-color: #8B1E3F;
}

.search-form input[type="text"]::placeholder {
  color: #aaa;
}
.search-form button {
  background-color: #8B1E3F;
  border: none;
  padding: 6px 16px;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  color: white;
}

.search-form button:hover {
  background-color: #66112E;
}

.search-form button svg {
  stroke: white;
  width: 18px;
  height: 18px;
  user-select: none;
  pointer-events: none;
}

.about {
  background-image: url('image.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  color: #f5f1ed;
}

.about-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: 0;
  text-align: left;
}

.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.highlight {
  color: var(--accent-dark);
  font-style: italic;
  position: relative;
  cursor: default;
}

.subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #6f6e6f;
  text-shadow: 0 1px 4px rgba(233, 221, 221, 0.375);
}

.about-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.mod-button,
.rast-button {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.8rem 1.3rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
  border: none;
}

.mod-button:hover,
.rast-button:hover {
  background-color: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.movie-list-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem 0;
  position: relative;
  scroll-behavior: smooth;
  -ms-overflow-style: none;  
  scrollbar-width: none;    
}

.movie-list-wrapper::-webkit-scrollbar {
  display: none;  
}

.movie-list-wrapper > .film-card {
  display: inline-block;
  vertical-align: top;
  width: 180px;
  margin: 0 12px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.movie-list-wrapper > .film-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 20px rgba(139, 30, 63, 0.25);
  z-index: 10;
}

.movie-section {
  position: relative;
  margin-bottom: 3rem;
}

.btn-arrow {
  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;
}

.btn-arrow:hover {
  background-color: var(--accent-dark);
}

.btn-left {
  left: 0;
}

.btn-right {
  right: 0;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none; 
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.modal.active {
  display: flex;
  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;
  background: none;
  border: none;
  color: var(--accent-dark);
  transition: color 0.3s ease;
}

#filmModalClose:hover {
  color: var(--accent);
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  color: #8B1E3F;
}

.modal-body {
  display: flex;
  flex-direction: row;
  gap: 30px;
  height: 500px;
}

.modal-left {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  box-sizing: border-box;
}

.modal-left img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

#modalDescription {
  max-width: 100%;
  max-height: 100px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  text-align: center;
}

.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  box-sizing: border-box;
}

.modal-right iframe {
  width: 100%;
  max-width: 600px;
  height: 320px;
  border-radius: 8px;
  border: none;
}

#modalComment {
  max-width: 100%;
  max-height: 120px;
  overflow-y: auto;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }

  .search-form {
    max-width: 100%;
    padding: 4px 8px;
  }

  .search-form input[type="text"] {
    font-size: 14px;
    padding: 4px 8px;
  }

  .search-form button {
    padding: 4px 12px;
  }
  
  .about {
    padding: 2rem 1rem;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
  }

  .about-container {
    margin: 0 auto;
  }

  .tagline {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.7rem;
  }

  .about-actions {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .mod-button,
  .rast-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    max-width: 180px;
  }

  .movie-list-wrapper {
    padding: 0.5rem 0;
  }

  .movie-list-wrapper > .film-card {
    width: 140px;
    margin: 0 8px;
  }

  .btn-arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .modal-body {
    flex-direction: column;
    height: auto;
  }

  .modal-left,
  .modal-right {
    flex: 1 1 100%;
    padding: 10px 0;
    align-items: center;
  }

  .modal-left img {
    max-height: 180px;
  }

  .modal-right iframe {
    height: 200px;
  }

  #modalDescription,
  #modalComment {
    font-size: 0.9rem;
    max-height: none;
  }
}
