@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  background: #0f111a;
  color: #ccc;
}

.container {
      display: flex;
    }


/* HEADER BANNER */
.banner-divider {
  width: 100%;
  height: 1px;
  background-color: #e50914;
  }


.banner-static {
  width: 100%;
  height: 400px;
  overflow: hidden;
 
}

.banner-static img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}      

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
} 

.home-link {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-links {
  display: flex;
  gap: 20px;
}

.header-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.header-links a:hover {
  color: #e50914;
}

.banner-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  text-align: left;
  color: black;
  z-index: 3;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.main-content {
  flex-grow: 1;
  padding: 20px;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


h4 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e5e5e5;
  margin: 0 0 10px 10px;
}

.main-header {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}


.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 10px 10px 10px;
}

.section-header h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #e5e5e5;
}

.section-header .view-more {
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
  color: #e50914;
  text-decoration: none;
}

.section-header .view-more:visited,
.section-header .view-more:hover,
.section-header .view-more:active,
.section-header .view-more:focus {
  color: #e50914;
  text-decoration: none;
}


/* =====================================================
   VIDEO MODAL – FADE ANIMATION
===================================================== */

#videoModal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.85);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 1000ms ease,
    visibility 0s linear 1250ms;
}


/* Visible state */
#videoModal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 1000ms ease,
    visibility 0s linear 0s;
}


/* =====================================================
   VIDEO MODAL – LARGE PLAYER LAYOUT
===================================================== */

#videoModal .modal-content {
  width: 92vw;
  max-width: 1400px;
  height: 80vh;
  max-height: 85vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}


#videoModal.show .modal-content {
  transform: scale(1);
}


/* =====================================================
   ENSURE VIDEO & IFRAME FILL THE CONTAINER
===================================================== */

/* Video / iframe fill frame */
#videoModal video,
#videoModal iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #000;
}


/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  #videoModal,
  #videoModal .modal-content {
    transition: none;
  }
}


#videoModal .close-button {
  position: absolute;
  top: 8px;
  right: 0px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  text-align: center;

  cursor: pointer;
  z-index: 20;
  border: none;
}
