/* ==================================================
   VIDEO SCREEN
   ================================================== */

/* --- Otsikot --- */
.video-section,
.video-section h3 {
  text-align: center;
  color: #fff;
}

/* --- Kausikortit Grid --- */
.video-grid-seasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom:6rem;
}
/* --- Otsikkopalkki kortissa --- */
.video-grid-seasons .video-card .video-thumb .video-overlay {
  font-size: 1.8rem !important;
}


@media (max-width: 900px) {
  .video-grid-seasons {
    grid-template-columns: 1fr;
    gap: 2rem;
        padding-top:10px;
    padding-left:60px;
    padding-right:60px;
    padding-bottom:10px;
  }
  /* --- Otsikkopalkki kortissa --- */
.video-grid-seasons .video-card .video-thumb .video-overlay {
  font-size: 1rem !important;
}
}


/* --- Jaksot Grid --- */
.video-grid-episodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .video-grid-episodes {
    grid-template-columns: 1fr;
    gap: 2rem;
        padding-top:10px;
    padding-left:60px;
    padding-right:60px;
    padding-bottom:10px;
  }

}






/* --- Kortti --- */
.video-card {
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  opacity: 0.9;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  }

.video-card:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* --- Thumbnail --- */
.video-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Otsikkopalkki kortissa --- */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}


/* ALA-NAVIGAATIO*/
.back-to-videos {
  margin-top: 2rem;
  text-align: left;
  padding-left: 1rem;
  text-align: center;
}

.back-to-videos .back-link {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.back-to-videos .back-link:hover {
  background-color: #fff;
  color: #253a65;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.season-switch-link {
  margin-top: 1rem;
  text-align: center;
  padding-bottom: 2rem;
}

.season-switch-button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.season-switch-button:hover {
  background-color: #fff;
  color: #253a65;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.button.season-talvi,
.theme-button.winter {
  background:  #007BFF;
  border-color: #007BFF;
  color:#fff;
}
.button.season-kevat,
.theme-button.spring {
  background: #4CAF50;
  border-color: #4CAF50;
  color:#fff;
}

.theme-button.summer {
  background: darkgreen;
  border-color: darkgreen;
}

.theme-button.autumn {
  background: #ffd6cc;
  border-color: #FF5722;
}

