.video-details {
  display: none; 
  margin: 1rem auto;
  text-align: center;
}

.video-details.active {
  display: block; 
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thumbnail container */
#thumbnail-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#video-thumbnail-img {
  max-width: 700px; 
  width: 100%;     
  height: auto;     
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: none;  
}

/* Table styling */
.video-details h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #0F2BC9;
}

.details-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: 'Merriweather', serif;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.details-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  color: #fff;
  border-bottom: 1px solid #ddd;
  background-color: #0F2BC9;
  font-weight: 500;
  font-family: 'Roboto Slab', serif;
  width: 30%;
}

.details-table td {
  padding: 0.8rem 1.2rem;
  text-align: left;
  color: #555;
  font-family: 'Roboto Slab', serif;
  border-bottom: 1px solid #ddd;
}

.details-table tr:last-child td {
  border-bottom: none;
}




/***** Media Query *****/
/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
#video-thumbnail-img {
  max-width: 550px; 
}

.details-table {
  width: 100%;
  max-width: 550px;
}

.details-table th {
  padding: 0.6rem 1rem;
}

.details-table td {
  padding: 0.6rem 1rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
#video-thumbnail-img {
  max-width: 400px; 
}

.video-details h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.details-table {
    width: 100%;
    max-width: 400px;
    background-color: #fafafa;
  }

  .details-table th,
  .details-table td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .details-table th {
    border: none;
  }

  .details-table td {
    margin-bottom: 0.7rem;
    border: none;
  }

  .details-table tr {
    display: block;
    margin-bottom: 0.7rem;
  }
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
#video-thumbnail-img {
  max-width: 320px; 
}

.video-details h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.details-table {
    width: 100%;
    max-width: 320px;
    background-color: #fafafa;
  }

  .details-table th,
  .details-table td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .details-table th {
    border: none;
  }

  .details-table td {
    margin-bottom: 0.7rem;
    border: none;
  }

  .details-table tr {
    display: block;
    margin-bottom: 0.7rem;
  }
}

