/* Weather widget styling */
#weatherContainer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: transparent;
  color: #afeeee;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
}

/* Player selection styling */
.player-selection {
  margin: 5 0 0 5px; 
  display: flex;
  align-items: center;
  color: black;
  max-width: auto; 
}

.player-selection:hover {
  color: #afeeee;
}

.player-dropdown {
  color: #afeeee;
  background-color: transparent;
  border: 1px solid #afeeee;
  border-radius: 10px;
  padding: 5px 10px;
  height: 30px;
  font-family: Arial, sans-serif;
}

.player-dropdown:focus {
  outline: none;
  transition: .1s;
  transition-property: box-shadow;
}

.player-dropdown:hover {
  background: #afeeee;
  color: black;
}

.player-dropdown option {
  background-color: #000000;
  color: #afeeee;
  padding: 10px;
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  z-index: 999;
  max-width: 200px;
}

/* Base styling */
body {
  background-color: black;
  color: #afeeee;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Movie container styling */
#movieContainer {
  max-width: 600px;
}

#filmName {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

#detailedFilmName {
  font-size: 24px;
  font-weight: bold;
  font-style: inherit;
  margin-bottom: 10px;
}

#description {
  font-size: 18px;
  font-style: inherit;
  max-width: 600px;
  color: #689696;
}

#shortdescription {
  font-size: 18px;
  font-style: inherit;
  max-width: 600px;
  color: #afeeee;
}

#year, #ratingAgeLimits, #ratingImdb, #genres {
  /* font-size: 18px; */
  font-style: inherit;
  max-width: 600px;
  color: rgb(228, 12, 12);
}

#slogan {
  font-size: 18px;
  font-style: inherit;
  max-width: 600px;
  color: #3b6161;
}

#movieBlok {
  display: flex;
  flex-wrap: wrap;
  justify-content: baseline;
}

/* Related movies section */
.related-movies-section {
  margin-bottom: 20px;
}

.related-movies-section h3 {
  margin-bottom: 10px;
}

.movies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

/* Movie card styling */
.movie {
  margin: 10px;
  padding: 10px;
  background-color: #000000;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 150px;
}

.movie img {
  max-width: 100px;
  height: 150px;
  border-radius: 5px;
}

.movie p {
  margin: 10px 0 0;
  max-width: 100px;
}

.movie a {
  text-decoration: none;
  color: #afeeee;
}

.movie a:visited {
  color: #afeeee;
}

.movie:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #afeeee;
}

.movie-link {
  text-decoration: none;
  color: #4bc3c3;
}

/* Container styling */
#container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Actor container styling */
#actorsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: baseline;
  margin-top: 20px;
}

.actor {
  margin: 10px;
  padding: 10px;
  background-color: #000000;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 150px;
}

.actor img {
  max-width: 100px;
  height: 150px;
  border-radius: 5px;
}

.actor-link {
  text-decoration: none;
  color: #598c8c;
  max-width: 150px;
}

.actor:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #598c8c;
}

/* Form styles */
#movieIdInput {
  display: none;
}

#searchInput {
  background-color: #000000;
  max-width: 120px;
  height: 30px;
  padding: 10px;
  color: rgb(0, 255, 255);
  border: 1px solid #afeeee;
  border-radius: 10px;
}

#searchInput:focus {
  color: rgb(0, 255, 255);
  background-color: #000000;
  box-shadow: -3px -3px 15px rgb(0, 255, 255);
  transition: .1s;
  transition-property: box-shadow;
}

.hideable {
  display: block;
}

/* Button styling */
.button, #button, #back-btn {
  color: #afeeee;
  border: 1px solid #afeeee;
  border-radius: 10px;
  padding: 5px 10px;
  background: transparent;
  height: 30px;
  margin-top: 5px;
  /* margin-left: 5px; */
}

.button:hover, #button:hover, #back-btn:hover {
  background: #afeeee;
  color: #000;
}

.button:active, #button:active, #back-btn:active {
  box-shadow: 2px 2px 55px #afeeee inset;
  color: #000000;
}

/* Switch styling */
.switch {
  margin-left: 5px;
  font-size: 15px;
  position: absolute;
  display: inline-block;
  width: 3.5em;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  --background: #000000;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 10px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 8px -4px 0px 0px #fff000;
  background: var(--background);
  transition: .5s;
}

input:checked + .slider {
  background-color: #000000;
}

input:checked + .slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #fff000;
}

/* Options container (from filter.html) */
#optionsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: baseline;
  margin-top: 5px;
}

#optionsContainer label {
  margin-right: 5px;
}
#optionsContainer select {
  width: 130px;
  color: #afeeee;
  border: 1px solid #afeeee;
  border-radius: 10px;
  padding: 5px 10px;
  background: black;
  height: 30px;
}
#optionsContainer select:hover {
  width: 130px;
  color: #000000;
  border: 1px solid #afeeee;
  border-radius: 10px;
  padding: 5px 10px;
  background: #afeeee;
  height: 30px;
  
}
/* Loader animation */
.loader {
  margin-top: 10px;
  margin-left: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  border-top: 3px solid #afeeee;
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Movies grid layout - consistent across pages */
#results, .movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin: 10px 20px;
  justify-content: center;
}

/* Movie Card Styling */
.movie-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: rgb(11, 11, 11);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #afeeee;
}

/* Poster Container */
.poster-container {
  position: relative;
  height: 270px;
  overflow: hidden;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.1s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.05);
  box-shadow: 0 0 15px #afeeee;
}

/* Movie Info */
.movie-info {
  padding: 10px;
  text-align: center;
}

/* Remove underline from all links in the site */
a {
  text-decoration: none;
}

/* Specific styling for movie card links */
.movie-card a {
  text-decoration: none;
  color: inherit;
}

.movie-title {
  margin: 0 0 5px 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

/* Rating Badge */
.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.rating-high {
  background-color: #4CAF50;
}

.rating-medium {
  background-color: #FFC107;
}

.rating-low {
  background-color: #F44336;
}

/* Load more container */
#loadMoreContainer {
  text-align: center;
  margin: 20px 0 40px 0;
}

/* Search container styling */
#searchContainer {
  /* padding: 10px; */
  align-items: center;
}

/* Responsive Styles */
@media (min-width: 600px) {
  #results, .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 900px) {
  #results, .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}
