.red {
    background-color: red;
}

.blue {
    background-color: blue;
}

.coral {
    background-color: coral;
}

.green {
    background-color: green;
}

.header_background {
	background-color: yellow;
}

.box {
    height: 5.0rem;
    cursor: pointer;
}

.pointer {
    cursor: pointer;
}

.box2 {
    height: 40.0rem;
}

.hideAll {
    display: none;
}

.height-1 {
     height: 10.0rem;
}

.callout {
    background-color: transparent;
    color: white;
    font-weight: bold;
    border: none;
}

body {
    background-color: #0f1b27;
    color: #e6edf3;
}

.header_background {
    background-color: #0b1621;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header_background .grid-x.align-middle {
  align-items: center;
}

.header-search-cell {
  display: flex;
  align-items: center;
  margin-top: 0;
}

.header-search-cell #search {
  width: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

#search {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0f2231;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: #e6edf3;
}
#search::placeholder { color: #98a6b3; }

.callout.gray-1 {
    background: #112336;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
}
.image-container {
    aspect-ratio: 3/4;
    background: #0f2231;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.image-container img { width: 100%; height: 100%; object-fit: cover; }
.text-container { padding: 0.75rem; font-weight: 600; }

.placeholder { background: #112336; border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; min-height: 4rem; }
.placeholder-card {
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  aspect-ratio: 16/9;
}

.moviePage-show .casts .placeholder-card,
.moviePage-show .similar .placeholder-card {
  color: #ffffff;
  background: #112336;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/4;
}

.moviePage-show .casts .placeholder-card img,
.moviePage-show .similar .placeholder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1 1 auto;
}

.moviePage-show .casts .card-label,
.moviePage-show .similar .card-label {
  padding: 0.5rem 0.75rem;
  background: #0f2231;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}
.poster.placeholder { aspect-ratio: 2/3; min-height: 12rem; }

/* movie page top layout */
.moviePage-show .movie-detail-layout {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.moviePage-show .movie-detail-layout .poster.placeholder {
  flex: 0 0 260px;
  background: transparent;
  border: none;
  min-height: 0;
  max-height: none;
}

.moviePage-show .movie-detail-layout .poster.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

.moviePage-show .movie-detail-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.moviePage-show .movie-detail-info .detail-block {
  padding: 0.5rem 0;
}

.moviePage-show .movie-detail-info .detail-block-top h1,
.moviePage-show .movie-detail-info .detail-block-top h2 {
  margin: 0;
}

.grid.placeholder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.pointer { cursor: pointer; }

.image-container img {
    width: 100%;
}

.text-container {
    height: 3.0rem;
}

.gray-1 {
    background-color: rgb(135, 135, 135);
}

.height-1 { height: auto !important; }
.callout.gray-1 { padding: 0; overflow: hidden; }
.image-container img { display: block; }

.site-footer {
  background: #0b1621;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
  color: #e6edf3;
}

.site-footer h5 {
  margin: 0 0 .75rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
}

.site-footer .no-bullet {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .no-bullet li + li {
  margin-top: .4rem;
}

.site-footer a {
  color: #e6edf3;
  opacity: .8;
  text-decoration: none;
  transition: opacity .15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  opacity: 1;
  text-decoration: underline;
}

.site-footer small {
  display: inline-block;
  opacity: .7;
  padding-top: 1rem;
}

.site-footer .grid-margin-y > .cell {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .site-footer { padding: 1.5rem 0; }
  .site-footer .text-center { margin-top: .5rem; }
}

.hero {
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 440px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f2231;
  position: relative;
}
.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  max-width: 42%;
  color: #ffffff;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.98) 0%,
    rgba(0,0,0,0.88) 40%,
    rgba(0,0,0,0.15) 100%);
  border-radius: 0;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.hero-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-meta {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-desc {
  margin-top: 0.6rem;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #0b1621;
}

.hero-button-secondary {
  background: transparent;
  color: #e6edf3;
  border: 1px solid rgba(255,255,255,0.7);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.header-link {
  color: #e6edf3;
  opacity: .85;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width .2s ease;
}

.header-link:hover::after,
.header-link:focus::after {
  width: 100%;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.85);
}

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

.section-heading h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.moviePage-show h1.detail-title {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: .25rem;
}

.moviePage-show h2.detail-subtitle {
  font-size: 1rem;
  font-weight: 500;
  opacity: .85;
  margin-bottom: 1.5rem;
}

.moviePage-show .poster.placeholder img,
.peoplePage-show .people-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

/* people page: keep poster similar size to movie poster */
.peoplePage-show .people-poster.placeholder {
	aspect-ratio: 2/3;
	min-height: 12rem;
}

.moviePage-show .metadata,
.moviePage-show .plot,
.peoplePage-show .people-metadata,
.peoplePage-show .people-bio {
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

/* people page: no card background for metadata/bio */
.peoplePage-show .people-metadata,
.peoplePage-show .people-bio {
	background: transparent;
	border: none;
}

/* people page heading inside metadata */
.peoplePage-show .people-metadata .people-name {
	margin: 0 0 .5rem 0;
	font-size: 1.6rem;
	font-weight: 700;
}

.moviePage-show .plot {
  margin-top: 0.75rem;
}

.moviePage-show h3,
.peoplePage-show h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.moviePage-show .grid.placeholder,
.peoplePage-show .grid.placeholder,
.peoplePage-show .people-similar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* 5 across for main casts on movie page (slightly tighter gap) */
.moviePage-show .casts.grid.placeholder {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

/* 5 across for similar movies on movie page */
.moviePage-show .similar.grid.placeholder {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .moviePage-show .grid.placeholder,
  .peoplePage-show .grid.placeholder,
  .peoplePage-show .people-similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-nav {
    justify-content: flex-start;
  }

  .moviePage-show .grid.placeholder,
  .peoplePage-show .grid.placeholder,
  .peoplePage-show .people-similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

main{
  margin-top: 40px;
}

/* search dropdown for dynamic site */
.search-container {
  position: relative;
  width: 100%;
}

.search-results {
  position: absolute;
  width: 100%;
  max-height: 20rem;
  overflow-y: auto;
  background-color: #112336;
  top: 110%;
  left: 0;
  list-style: none;
  z-index: 1000;
  display: none;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.search-results li:hover {
  background: rgba(255,255,255,0.06);
}

.search-results img {
  width: 3.0rem;
  height: 3.0rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Home trending movie cards – match static card structure (home page frozen per user) */
.callout.height-1.gray4 {
  background: #112336;
  border-radius: 0.75rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.callout.height-1.gray4 h4,
.callout.height-1.gray4 h5 {
  padding: 0 0.75rem 0.25rem;
}

.callout.height-1.gray4 .movie-poster {
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: visible;
  margin-bottom: 0.5rem;
}

.callout.height-1.gray4 h4 {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.callout.height-1.gray4 h5 {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.movie-poster {
    position: relative;
}
.movie-poster img {
    width: 100%;
    display: block;
}

/* ensure only the image in cards has rounded top corners */
.callout.height-1.gray4 .movie-poster img {
    border-radius: 0.75rem 0.75rem 0 0;
}

.movie-circle {
    position: absolute;
    width: 6.0rem;
    height: 6.0rem;
    bottom: 2.0rem;
    right: -1.0rem;
    background-color: #000000; 
    border-radius: 3.0rem;
    font-size: 2.0rem;
    text-align: center;
    line-height: 6.0rem;
    font-weight: 700;
    z-index: 5;
}

.slick-dots {
    bottom: 0px;
}

.slick-dots li button::before {
    color: #112336;
    opacity: 1.0;
}

.slick-dots li.slick-active button::before {
    color: rgb(255, 255, 255);
    font-size: 12px;
}

.slick-prev,
.slick-next {
    width: 48px;
    height: 48px;
    z-index: 10;
    background: none;
    border: none;
}

.slick-prev {
    left: 18px;
}

.slick-next {
    right: 18px;
}

.slick-prev::before,
.slick-next::before {
    color: rgb(255, 255, 255);
    font-size: 32px;
    line-height: 48px;
    opacity: 0.95;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

/* extra space under home page cards */
.homePage-show {
  margin-bottom: 3rem;
}

/* extra space under movie and people pages above footer */
.moviePage-show,
.peoplePage-show {
	margin-bottom: 3rem;
}

/* Center trailer section on movie page */
.moviePage-show .movie-trailer {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.moviePage-show .movie-trailer .movie-youtube {
  width: 100%;
  height: 450px;
  display: block;
}

/* Movie page: card sizing for Main Casts */
.moviePage-show .movie-actors .callout.height-1.gray4 {
	max-width: 185px;
	width: 185px;
}

.moviePage-show .movie-actors .movie-poster {
	height: 210px;
	border-radius: 0.75rem 0.75rem 0 0;
	overflow: hidden;
}

/* Similar Movies keep original larger card size */
.moviePage-show .movie-related-movies .callout.height-1.gray4 {
  max-width: 200px;
  width: 200px;
}

.moviePage-show .movie-related-movies .movie-poster {
  height: 220px;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}

.moviePage-show .movie-actors .movie-poster img,
.moviePage-show .movie-related-movies .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moviePage-show .movie-screen-shot {
  margin-top: 0.5rem;
}

.moviePage-show .movie-screen-shot.slick-slider {
  width: 100%;
  display: block;
  grid-template-columns: none;
}

.moviePage-show .movie-actors.slick-slider {
  width: 100%;
  display: block;
  grid-template-columns: none;
}

.moviePage-show .movie-related-movies.slick-slider {
  width: 100%;
  display: block;
  grid-template-columns: none;
}

.moviePage-show .movie-screen-shot.slick-slider .slick-slide,
.moviePage-show .movie-related-movies.slick-slider .slick-slide {
  padding-right: 0.75rem;
}

/* people page: other works slider layout */
.peoplePage-show .people-movies.slick-slider {
	width: 100%;
	display: block;        /* override .grid.placeholder display:grid */
	grid-template-columns: none;
}

.peoplePage-show .people-movies.slick-slider .slick-slide {
	padding-right: 0.75rem;
}

.moviePage-show .movie-screen-shot .scene-card {
  height: 150px;
  overflow: hidden;
}

.moviePage-show .movie-screen-shot .scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
} 