* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #050506 20px, #262a2e 170px, #262a2e) fixed;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
  min-height: 100vh;
}

.container {
  width: 980px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .container {
    width: 100%;
    max-width: 640px;
  }
}

a {
  text-decoration: none;
  color: #0066cc;
}

a:hover {
  text-decoration: underline;
}

/* Top bar */
.top-bar {
  color: #fff;
  padding: 3px 10px;
  text-align: right;
}
@media (max-width: 1024px) {
  .top-bar {
    text-align: center;
  }
}

.top-links a {
  color: #fff;
  font-size: 11px;
}

/* Header */
.header {
  padding: 10px 0 0;
}

.header-content {
  display: flex;
  align-items: flex-start;
  /* justify-content: space-between; */
  width: 100%;
  padding: 0;
}
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    align-items: center;
  }
}

.logo {
  margin-top: 10px;
}

.logo img {
	width: 325px;
	
}

.nav-search-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-top: 25px;
	width: 100%;
}
@media (max-width: 1024px) {
  .nav-search-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
  }
}

.main-nav {
  display: flex;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
  margin-right: 10px;
	margin-left: 17px;
  gap: 0;
  padding: 0;
}

.main-nav a {
	font-family: verdana, arial, sans-serif;
  color: #fff;
  font-weight: bold;
  padding: 8px 13px;
  font-size: 13px;
  text-transform: none;
  border: none;
  background: linear-gradient(to bottom, #0c3383, #001542);
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  margin-right: 1px;
  z-index: 1;
  border-radius: 0;
}

.main-nav a:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 0;
}

.main-nav a:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 0;
  margin-right: 0;
}

.main-nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: -1px;
  width: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 2;
}

.main-nav a:hover {
  background: linear-gradient(to bottom, #001542, #0c3383);
  text-decoration: none;
}

.search-box {
  display: flex;
	
  padding-right: 0;
  margin-right: 0;
}

.search-box input {
  padding: 3px 5px;
  border: 1px solid #666;
  width: 170px;
  margin-right: 0;
  border-radius: 0;
  height: 22px;
}

.search-button {
  background: #00419e;
  color: #fff;
  border: 1px solid #002a66;
  padding: 3px 10px;
  cursor: pointer;
  margin-left: 0;
  font-weight: bold;
  height: 22px;
  font-size: 12px;
}

/* Member section */
.member-section {
  background-color: #e6e6e6;
	background-image: url('../img/navGrayTile.gif');
  padding: 5px 10px;
  border-bottom: 1px solid #ccc;
}

.returning-members {
	font-family: 'Trebuchet MS', Arial, sans-serif;
	font-weight: bold;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-left a {
  font-weight: bold;
  color: #0066cc;
}

.member-right img {
  vertical-align: middle;
}

.take-poll {
  color: #0066cc;
  font-size: 11px;
}

/* Main content */
.main-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
	background: #fff;
}

/* Hero Section */
.hero-section {
  display: flex;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  height: 400px;
}
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    height: auto;
  }
}

.hero-video {
  width: 60%;
  padding: 0;
  background-color: #000;
  position: relative;
}

@media (max-width: 1024px) {
  .hero-video {
    width: 100%;
    aspect-ratio: 16 / 9;  
  }
}

.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-image {
  width: 40%;
  background-color: #0056a6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (max-width: 1024px) {
  .hero-image {
    width: 100%;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* The following styles are for the old hero section layout and can be removed if not needed elsewhere */
.hero-left {
  background-color: #0056a6;
  color: #fff;
  padding: 20px;
  width: 40%;
}

.hero-left h2 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 5px;
}

.blockbuster-logo-large {
  font-size: 30px;
  font-weight: bold;
  color: #ffcb05;
  margin-bottom: 5px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.hero-left h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.hero-features {
  list-style: none;
}

.hero-features li {
  padding-left: 30px;
  margin-bottom: 15px;
  background-repeat: no-repeat;
  background-position: 0 center;
  background-size: 24px;
  line-height: 1.2;
}

.mail-icon {
  background-image: url('../img/mail-icon-small.png');
}

.store-icon {
  background-image: url('../img/store-icon.png');
}

.new-releases-icon {
  background-image: url('../img/new-release-icon.png');
}

.games-icon {
  background-image: url('../img/games-icon-small.png');
}

.hero-middle {
  background-color: #57a1d9;
  padding: 20px;
  width: 30%;
  color: #fff;
}

.hero-middle h2 {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-middle h2 span {
  font-weight: bold;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"] {
  width: 100%;
  padding: 7px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.terms {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  font-size: 11px;
}

.terms input {
  margin-right: 5px;
  margin-top: 2px;
}

.continue-button {
  background: linear-gradient(to bottom, #ffda44, #ffb300);
  border: 1px solid #cc9900;
  color: #333;
  font-weight: bold;
  padding: 8px 25px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.hero-right {
  width: 30%;
  background-color: #f0f0f0;
  padding: 10px;
}

.movie-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.movie-thumbnail {
  position: relative;
}

.movie-thumbnail img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.movie-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  font-weight: bold;
  font-size: 11px;
}


.dsc-section {
  display: flex;
  align-items: center;
	align-self: center;
  width: 45%;
}
@media (max-width: 1024px) {
  .dsc-section {
    width: 100%;
  }
}

.dsc-section h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.dsc-section p {
  font-size: 11px;
  margin-bottom: 5px;
  line-height: 1.3;
}

.dsc-content {
  display: flex;
  align-items: center;

}

.dsc-logo {
  width: 120px;
  margin-right: 20px;
}
@media (max-width: 1024px) {
  .dsc-logo {
    width: 100px;
    margin-right: 15px;
  }
}

.sign-up-link {
  color: #0066cc;
  font-weight: bold;
}

.twitter-section {
  display: flex;
  justify-content: space-around;
  background-color: #fafafa;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
}
@media (max-width: 1024px) {
  .twitter-section {
    flex-direction: column;
    align-items: center;
    gap: 21px;
  }
}

.twitter-content {
  display: flex;
  align-items: center;
  width: 45%;
}
@media (max-width: 1024px) {
  .twitter-content {
    width: 100%;
  }
}

.twitter-icon {
  width: 120px;
  margin-right: 15px;
}
@media (max-width: 1024px) {
  .twitter-icon {
    width: 100px;
    }
}

.twitter-text h3 {
  font-size: 14px;
  margin-bottom: 3px;
}

.twitter-text p {
  font-size: 12px;
}




/* Movie section */
.movie-section {
  padding: 20px 0;
  position: relative;
  overflow: visible;
}

.movie-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  position: relative;
  z-index: 1;
}

.movie-tabs a {
  font-family: 'Trebuchet MS', Arial, sans-serif;
  padding: 3px 9px 2px;
  color: #003366;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #e6e6e6;
  margin-right: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.movie-tabs a.active {
  position: relative;
  background-color: #00205b;
  color: #fff;
  border: none;
  margin-bottom: -1px;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.2);
}

.movie-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #00205b;
}

.movie-carousel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  padding: 0;
  background: url(../img/bgMarquee.gif);
  border: 1px solid #ccc;
  height: 265px;
}
@media (max-width: 1024px) {
  .movie-carousel {
    height: auto;
    background-repeat: repeat-x;
    background-size: 100% 100%;
  }
}

.carousel-nav {
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 91%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../img/bgMarquee.gif);
  color: transparent;
  border: 0;
  z-index: 0;
}
@media (max-width: 1024px) {
  .carousel-nav {
    display: none;
  }
}

.carousel-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
}

.carousel-nav.prev::after {
  right: -1px;
  border-right: 25px solid #00205b;
}

.carousel-nav.next::after {
  left: -1px;
  border-left: 25px solid #00205b;
}

.carousel-nav:hover::after {
  opacity: 0.9;
}

.movie-items {
  display: flex;
  gap: 5px;
  overflow: visible;
  position: relative;
  padding: 21px 10px;
  flex: 1;
  justify-content: center;
}
@media (max-width: 1024px) {
  .movie-items {
    flex-wrap: wrap;
    gap: 20px 5px;
  }
}

.movie-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0s linear 0.25s;
  width: 130px;
  z-index: 1;
}
@media (max-width: 1024px) {
  .movie-item {
    width: 42%;
  }
}

.movie-item-inner {
  user-select: none;
  pointer-events: none;
  position: relative;
  width: 130px;
  height: 192px;
  perspective: 1000px;
  transition: transform 0.5s, box-shadow 0.3s;
}

@media (max-width: 1024px) {
  .movie-item-inner {
    margin: 0 auto;
  }
}

.movie-item img {
  width: 130px;
  height: auto;
  border: 1px solid #ccc;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
}


.movie-item.zoomed {
  position: relative;
  z-index: 100;
  transition: transform 0.3s ease, z-index 0s;
}

.movie-item.zoomed .movie-item-inner {
  transform: scale(3.25);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
@media (max-width: 1024px) {
  .movie-item.zoomed .movie-item-inner {
    transform: scale(1.75);
  }
}

.click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.movie-item.zoomed .click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 192px;
  transform: scale(3.25);
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .movie-item.zoomed .click-overlay {
    transform: scale(1.75);
    left: 56px;
    
  }
}

.toggle-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  padding: 0;
  background-color: #003366;
  border: 1px solid #fff;
  border-bottom: none;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  border-radius: 3px 3px 0 0;
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  z-index: 300;
  cursor: pointer;
  display: none;
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  transition: opacity .6s ease-in;
}

.movie-item.zoomed .toggle-arrow {
  pointer-events: auto;
  display: flex;
  transform: scale(1);
  top: calc(-110% - 1px);
  left: -110%;
  opacity: 1;
  transition: opacity .6s ease-in;
}
@media (max-width: 1024px) {
  .movie-item.zoomed .toggle-arrow {
    top: calc(-51% - 2px);
    left: 5%;
  }
}


/* No transition for fade out */
.movie-item:not(.zoomed) .toggle-arrow {
  transition: none;
  opacity: 0;
}

.toggle-arrow:hover {
  background-color: #00205b;
}

.movie-item .front {
  opacity: 1;
  z-index: 2;
}

.movie-item .back {
  opacity: 0;
  z-index: 1;
}

/* Force JavaScript control of zoomed items */
.movie-item.zoomed .front,
.movie-item.zoomed .back {
  transition: opacity 0.3s ease;
}

.movie-item.zoomed:hover .front,
.movie-item.zoomed:hover .back {
  opacity: unset; /* Remove the CSS-controlled opacity for zoomed items */
}

.more-link {
  text-align: right;
  padding: 5px 0;
}

/* On-demand banner */
.on-demand-banner {
  padding: 10px 20px;
}

.on-demand-banner img {
  width: 100%;
  max-height: 40px;
}

/* Quick links */
.quick-links {
	background: url(../img/standard01Header.gif) top left repeat-x;
	background-size: 24px 24px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 2px 5px;
	margin-top: 20px;
}

.quick-links > h3 {
  font-family: 'Trebuchet MS', Arial, sans-serif;
	font-size: 14.4px;
}
.quick-links > h4 {
  font-size: 14.4px;
	margin-top: 10px;
}

.email-signup {
  display: flex;
  /* justify-content: space-between; */
	gap: 10px;
  align-items: center;
  padding: 5px 0;
}

.signup-button {
  background-color: #003366;
  color: #fff;
  border: none;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: "Trebuchet MS";
  font-weight: bold;
  border-radius: 3px;
  display: inline-block;
  text-decoration: none;
}

.signup-button:hover {
  background-color: #00205b;
  text-decoration: none;
}

.email-signup input {
  padding: 1px 2px;
  border: 1px solid #ccc;
	color: #000;
	font-size: 12px;
  width: 150px;
	height: 20px;
	margin-right: 10px;
}

/* Movie categories */
.movie-categories {
  padding: 17px 0 0;
	margin-top: 18px;
	border-top: 1px solid #ccc;
}

.category-section {
  margin-bottom: 20px;
}

.category-section h3 {
  font-size: 13.2px;
  margin-bottom: 10px;
}

.categories {
  display: flex;
  justify-content: space-between;
}

.category-column {
  display: flex;
  flex-direction: column;
  width: 23%;
}

.category-column a {
  color: #0066cc;
  font-size: 12px;
	line-height: 1.25;
}

/* Alpha links */
.alpha-links {
  padding: 7px 0 0;
	margin-top: 13px;
	border-top: 1px solid #ccc;
}

.alpha-section {
  margin-bottom: 10px;
    display: flex;
		flex-wrap: wrap;
    align-items: center;
}

.alpha-section h3 {
  font-size: 13.2px;
  margin-bottom: 0;
	padding-right: 10px;
}

.alpha-nav {
  font-size: 12px;
}

/* Footer */
.footer {
	background: #fff;
  padding: 10px 20px 20px;
  border-top: 1px solid #ccc;
}

.footer-links {
  font-size: 11px;
  margin-bottom: 10px;
	a {
		color: #444;
	}
}

.copyright {
  font-size: 10px;
	color: #444;
}

/* Modal Popover Styles */
.account-modal {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  width: 500px;
  margin: auto;
  border: none;
  background-color: white;
}

.account-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-left: 20px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.close-modal {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.5rem;
  padding: 0;
}

@media (max-width: 768px) {
  .account-modal {
    width: 90%;
    padding: 15px;
  }
}
