html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  background-color: black;
  scroll-behavior: smooth;
}

.not-found {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  background: radial-gradient(circle at top, rgba(255, 221, 0, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(0, 0, 0, 0.94));
  color: white;
}

.not-found-container {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.not-found-code {
  font-family: 'Gravity Wide', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin: 0;
  color: rgba(255, 221, 0, 0.85);
  letter-spacing: 0.12em;
}

.not-found-title {
  font-family: 'Diatype-bold', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.not-found-message {
  font-family: 'Diatype-light', sans-serif;
  font-size: 1.05rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.not-found-hint {
  font-family: 'Diatype-light', sans-serif;
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.not-found-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.not-found-btn {
  font-family: 'Diatype-bold', sans-serif;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.not-found-btn.primary {
  background: rgba(255, 221, 0, 0.9);
  color: black;
  box-shadow: 0 12px 28px rgba(255, 221, 0, 0.25);
}

.not-found-btn.primary:hover,
.not-found-btn.primary:focus-visible {
  transform: translateY(-2px);
  background: rgb(255, 221, 0);
  box-shadow: 0 18px 38px rgba(255, 221, 0, 0.35);
}

.not-found-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.not-found-btn.secondary:hover,
.not-found-btn.secondary:focus-visible {
  transform: translateY(-2px);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  .not-found {
    padding: 4rem 1.25rem;
  }

  .not-found-container {
    gap: 1.25rem;
  }

  .not-found-btn {
    width: 100%;
    text-align: center;
  }
}

h2,
h3,
p {
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Font type */
/* Gravity Wide for logo */
@font-face {
  font-family: 'Gravity Wide';
  src: url('/fonts/ABCGravity/ABCGravity-Wide-Trial.woff2') format('woff2'),
    url('/fonts/ABCGravity/ABCGravity-Wide-Trial.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Diatype for all other text */
@font-face {
  font-family: 'Diatype-bold';
  src: url('/fonts/ABCDiatype/ABCDiatype-Bold-Trial.woff2') format('woff2'),
    url('/fonts/ABCDiatype/ABCDiatype-Bold-Trial.woff') format('woff');
  font-weight: 700;
  /* Bold */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diatype-light';
  src: url('/fonts/ABCDiatype/ABCDiatype-Light-Trial.woff2') format('woff2'),
    url('/fonts/ABCDiatype/ABCDiatype-Light-Trial.woff') format('woff');
  font-weight: 300;
  /* Light */
  font-style: normal;
  font-display: swap;
}

h3,
h2 {
  font-family: 'Diatype-bold';
}

p {
  font-family: 'Diatype-light';
}

/* Hero container */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay to darken video */
.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Text overlay container */
.hero-text-left {
  position: absolute;
  left: 7.5vw;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
  color: white;
}

/* Logo text */
.logo-text {
  font-family: 'Gravity Wide', sans-serif;
  font-feature-settings: "ss05";
  font-weight: 800;
  font-size: 2.3rem;
  line-height: .75;
  margin: 0;
  cursor: pointer;
}

/* Tagline / body text using Diatype */
.tagline-text {
  font-family: 'Diatype-bold', sans-serif;
  font-size: .71rem;
  max-width: 35rem;
  padding-left: .2rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  color: lightgray;
}

/* Search */
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  font-family: 'Diatype-bold', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  color: white;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-trigger svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  transition: transform 0.3s ease;
}

.search-trigger:hover,
.search-trigger:focus-visible {
  color: rgb(255, 221, 0);
  outline: none;
}

.search-trigger:hover svg,
.search-trigger:focus-visible svg {
  transform: scale(1.05);
}

.search-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-backdrop[hidden] {
  display: none;
}

.search-modal {
  width: min(66vw, 960px);
  max-height: 75vh;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-modal-header h2 {
  margin: 0;
  font-family: 'Diatype-bold', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: white;
}

.search-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.search-close:hover,
.search-close:focus-visible {
  color: rgb(255, 221, 0);
  transform: scale(1.1);
  outline: none;
}

.search-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.search-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-modal-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: 'Diatype-light', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.search-modal-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-modal-form input[type="search"]:focus {
  border-color: rgba(255, 221, 0, 0.7);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.15);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  color: white;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(255, 221, 0, 0.6);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.search-result-title {
  font-family: 'Diatype-bold', sans-serif;
  font-size: 1.05rem;
  margin: 0;
}

.search-result-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.search-result-summary {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.search-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Menu */
.header {
  position: relative;
  top: 5vh;
  z-index: 10;
}

.header.home-page {
  top: 7vh;
}

.menu {
  position: absolute;
  right: 7.5vw;
  z-index: 2;
  color: white;
  font-family: 'Diatype-bold', sans-serif;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu h3 {
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  line-height: 1.25;
  transition: color 0.5s ease;
}

#menu-toggle {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.menu h3:hover {
  color: rgb(255, 221, 0);
}

/* User menu styling */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-display-name,
.user-logout {
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.user-display-name:hover,
.user-logout:hover {
  color: rgb(255, 221, 0);
}

.user-menu-separator {
  color: white;
  margin: 0 0.25rem;
  cursor: default;
}

/* Prevent the parent h3 hover from affecting user menu items */
.menu h3.user-menu:hover {
  color: inherit;
}

a.button,
a {
  text-decoration: none !important;
  color: inherit;
}

/* Language Change */
.language-select-container {
  position: relative;
  display: inline-block;
}

.language-select-container::before {
  content: "\f1ab";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  font-size: 0.95rem;
}

.language-select-container::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  font-size: 0.95rem;
}

.language-select-container .language-select {
  font-family: 'Diatype-bold';
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.35rem 2.25rem 0.35rem 2.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.language-select-container:hover .language-select,
.language-select-container:focus-within .language-select {
  border-color: rgb(255, 221, 0);
  color: rgb(255, 221, 0);
}

.language-select-container:hover::before,
.language-select-container:hover::after,
.language-select-container:focus-within::before,
.language-select-container:focus-within::after {
  color: rgb(255, 221, 0);
}

.language-select-container .language-select option {
  background: #333;
  color: white;
}

/* Menu dropdown */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1rem);
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  min-width: 200px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.menu.active .menu-dropdown {
  display: flex;
}

/* Hide default-hidden by default */
.menu-buttons.default-hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show all default-hidden items in dropdown with staggered animation */
.menu-dropdown .menu-buttons.default-hidden {
  animation: slideIn 0.3s ease forwards;
}

/* Stagger animation for each item */
.menu-dropdown .menu-buttons.default-hidden:nth-child(1) {
  animation-delay: 0s;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(2) {
  animation-delay: 0.05s;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(3) {
  animation-delay: 0.1s;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(4) {
  animation-delay: 0.15s;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(5) {
  animation-delay: 0.2s;
}

.menu-dropdown .menu-buttons.default-hidden:nth-child(6) {
  animation-delay: 0.25s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Film info */
.hero-text-middle {
  font-family: 'Diatype-light';
  z-index: 2;
  position: absolute;
  /* top: 65vh; */
  top: 75vh;
  left: 7.5vw;
  color: white;
}

.promotion {
  display: none;
}

.promotion h3 {
  font-size: 1rem;
  font-weight: 525;
  margin-top: -.8rem;
}

.promotion button,
.promotion a {
  font-family: 'Diatype-bold', sans-serif;
  color: rgb(255, 255, 255);
  background-color: rgba(255, 221, 0, 0.4);
  border: 2px solid rgba(255, 221, 0, 0.6);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 10px;
  transition: background-color 0.3s, color 0.3s;
}

.promotion button:hover,
.promotion a:hover {
  background-color: rgb(255, 221, 0);
  color: black;
}

.yellow {
  color: rgb(255, 221, 0);
}

.film-info {
  display: flex;
  align-items: flex-start;
  gap: 18vw;
  flex-wrap: wrap;
  margin-top: 5vh;
}

.film-info>div {
  flex: 0 0 auto;
}

.film-info .description {
  flex: 1;
}

.film-title-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.film-title-container .buttons {
  margin: auto;
}

.film-title-container .buttons #watch-button {
  background-color: rgba(0, 0, 0, 0, );
}

.film-title-text {
  font-family: 'Diatype-bold', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.director {
  font-family: 'Diatype-light', sans-serif;
  font-size: 1rem;
  margin-top: 1rem;
}

.description {
  font-size: .9rem;
  width: 55vw;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .menu {
    position: relative;
    top: 0;
    right: 0;
    width: 90vw;
    margin: 0 auto;
    padding: 0.5rem 0;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
  }

  .menu h3 {
    font-size: 0.95rem;
    text-align: right;
  }

  #menu-toggle {
    display: inline-flex;
    align-self: flex-end;
    padding: 0.35rem;
  }

  .menu h3.menu-buttons:not(#menu-toggle) {
    display: none;
    width: 100%;
  }

  .menu.active {
    align-items: stretch;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
  }

  .menu.active h3.menu-buttons:not(#menu-toggle) {
    display: flex;
    justify-content: flex-end;
  }

  .menu.active h3.menu-buttons.menu-search {
    justify-content: flex-end;
  }

  .menu.active .search-trigger {
    margin-left: auto;
  }

  .menu-dropdown {
    position: static;
    right: auto;
    top: auto;
    background: transparent;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .menu.active .menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-buttons.default-hidden {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 768px) {
  .search-backdrop {
    padding-top: 8vh;
  }

  .search-modal {
    width: min(90vw, 560px);
  }

  .logo-text {
    font-size: 3rem;
  }

  .subtitle-text {
    font-size: 2rem;
  }

  .description-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 2.25rem;
  }

  .subtitle-text {
    font-size: 1.5rem;
  }

  .description-text {
    font-size: 0.875rem;
  }
}

/* Curator's spotlight */
/* Section container - must allow overflow for floating hover cards */
section.main {
  overflow: visible;
}

.grid-container {
  max-width: 90vw;
  margin: 0 auto;
  overflow: visible;
  /* Allow cards to escape container bounds */
}

.grid-heading {
  font-weight: bolder;
  color: white;
}

/* Grid wrapper with scroll buttons */
.grid-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Horizontal scrolling grid */
.grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - 1vw);
  gap: 1vw;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
  /* Allow cards to overflow for hover effects */
}

.grid::-webkit-scrollbar {
  display: none;
}

.grid .film {
  scroll-snap-align: start;
}

/* Scroll buttons - Netflix style: hidden by default, show on hover */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Show buttons when hovering over grid-wrapper */
.grid-wrapper:hover .scroll-button {
  opacity: 1;
  pointer-events: auto;
}

.scroll-button.left {
  left: 10px;
}

.scroll-button.right {
  right: 10px;
}

.scroll-button:hover {
  background: rgba(255, 221, 0, 0.9);
  color: black;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 221, 0, 0.4);
  border-color: rgba(255, 221, 0, 0.9);
}

.scroll-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-button i {
  font-size: 1.2rem;
}

.film {
  width: 100%;
  height: 35vh;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s ease;
  z-index: 1;
  /* Ensure hover state can float above everything */
}

.film img {
  width: 100%;
  height: 35vh;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

.film-text {
  position: absolute;
  bottom: 0vh;
  left: 0vw;
  right: 0;
  margin: 0;
  padding: 1rem;
  color: white;
  z-index: 1;
  text-align: left;
}

.film-title {
  font-size: 2rem;
  margin: 0;
}

.director-year {
  font-size: 0.9rem;
  margin: 0;
  padding-top: 0.5rem;
}

.film-image-container {
  position: relative;
  height: 35vh;
  transition: transform 0.3s ease;
}

.film-hover {
  position: absolute;
  width: inherit;
  top: 35vh;
  background-color: whitesmoke;
  padding: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.2s ease;
  z-index: 10;
  box-sizing: border-box;
}

.buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.buttons button,
.buttons a {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid black;
  color: black;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.5s ease;
}

#watch-button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

#add-button {
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
}

#heart-button {
  padding: 0.5rem 0.7rem;
  border-radius: 50%;
}

.buttons button:hover,
.buttons a:hover {
  transform: scale(1.1);
  color: white;
  background-color: rgba(0, 0, 128, 1);
  transition: all 0.1s ease;
}

.buttons button:active,
.buttons a:active {
  transform: scale(1.05);
  color: black;
  background-color: white;
}

.film-synopsis {
  color: black;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

/* Netflix-style hover effect: pop up and scale, float above all content */
.film:hover {
  transform: translateY(-50px) scale(1.08);
  height: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  /* Higher than scroll buttons (50) to float above everything */
}

.film:hover .film-hover {
  opacity: 1;
  max-height: 20vh;
}

/* ============================================
   PORTAL HOVER SYSTEM - Netflix Style
   ============================================ */

/* Hide scrollbar utility class */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Base movie card - remove hover scale to prevent clipping */
.film.movie-card {
  transition: opacity 0.3s ease;
}

/* Disable the original hover effect for movie-card to prevent double scaling */
.film.movie-card:hover {
  transform: none;
  height: 35vh;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.film.movie-card:hover .film-hover {
  opacity: 0;
  max-height: 0;
}


/* Portal Card - Lives in body with fixed positioning */
.portal-card {
  position: fixed;
  z-index: 200;
  /* Higher than all other elements */
  background-color: #141414;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  transform-origin: center center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  pointer-events: auto;
  /* Allow mouse events immediately */
  opacity: 0;
  cursor: pointer;
  /* Indicate clickable */
}

.portal-card.active {
  opacity: 1;
  pointer-events: auto;
  /* Enable interaction once active */
  /* No scale - keep original size to prevent quality loss and edge clipping */
}

/* Portal card image */
.portal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Portal info section */
.portal-info {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
  padding: 1rem;
  background-color: rgba(20, 20, 20, 0.85);
  /* Semi-transparent to show content below */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.portal-card.active .portal-info {
  opacity: 1;
}

/* Portal buttons */
.portal-info .portal-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.portal-info .portal-buttons button,
.portal-info .portal-buttons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.portal-info .portal-buttons button:hover,
.portal-info .portal-buttons a:hover {
  background: rgb(255, 221, 0);
  color: black;
  border-color: rgb(255, 221, 0);
  transform: scale(1.1);
}

/* Ensure play button is perfectly circular like other buttons */
.portal-info .portal-buttons .portal-play-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

/* Portal title */
.portal-info h4 {
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  font-family: 'Diatype-bold', sans-serif;
}

/* Portal metadata */
.portal-info .portal-meta {
  font-size: 0.75rem;
  color: rgb(255, 221, 0);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portal-info .portal-meta .year {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.5rem;
}

/* Portal tags */
.portal-info .portal-tags {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.portal-info .portal-tags span:not(:last-child)::after {
  content: '•';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive portal scaling */
@media (max-width: 768px) {
  .portal-card.active {
    transform: scale(1.1);
    /* Smaller scale on mobile */
  }
}


.grid-heading-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  width: fit-content;
}

.see-all {
  width: fit-content;
  text-align: right;
  padding: 0;
  margin: 2vh 0;
  right: 0%;
  color: lightgrey;
  font-size: 1.27rem;
  font-weight: bolder;
  cursor: pointer;
  transition: color 0.5s ease;
  z-index: 10;
}

.see-all p {
  font-family: "Diatype";
}

.see-all:hover {
  color: rgb(255, 221, 0);
}

/* Full bleed feature */
.full-bleed-feature {
  margin: 5vh auto;
  position: relative;
}

.feature-image-container {
  position: relative;
  height: 75vh;
  width: 59.7vw;
  margin-left: 4.5vw;
}

.feature-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  width: 5vw;
  height: 5vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(10);
  z-index: 2;
  transition: all 0.3s ease;
}

.play-button:hover {
  filter: brightness(1);
}

.feature-text {
  color: white;
  position: absolute;
  top: 0vh;
  left: 65.2vw;
  width: 29.3vw;
  height: 75vh;
  z-index: 2;
}

.feature-text-heading h1 {
  font-family: "Gravity Wide";
  font-feature-settings: "ss05";
  font-size: 2.5rem;
  margin: 0 0 3vh 0;
  line-height: 1;
}

.feature-text-heading p {
  font-family: 'Arial';
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0 0 2vh 0;
}

.feature-synopsis,
.filmmaker-bio {
  color: whitesmoke;
  font-family: 'Arial';
  font-size: 1rem;
  width: 100%;
  line-height: 1.5rem;
  text-align: justify;
}

.feature-block-2 {
  position: inherit;
  bottom: 0;
}

.feature-block-2 p {
  padding: 0;
  margin: 0;
}

.feature-text-heading {
  margin-bottom: 2vh;
}

.space {
  height: 2vh;
}

@media (max-width: 1750px) {
  .full-bleed-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 3vw;
    padding: 0 5vw;
  }

  .feature-image-container {
    width: min(60vw, 960px);
    margin: 0;
    height: auto;
  }

  .feature-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .feature-text {
    position: relative;
    top: auto;
    left: auto;
    width: min(32vw, 520px);
    height: auto;
    margin: 0;
  }

  .feature-text-heading h1 {
    font-size: 2.3rem;
  }

  .feature-text-heading p {
    font-size: 1.15rem;
  }
}

@media (max-width: 1200px) {
  .full-bleed-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .feature-image-container {
    width: 90vw;
    margin-left: 5vw;
    height: auto;
  }

  .feature-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .feature-text {
    position: relative;
    top: auto;
    left: auto;
    width: 90vw;
    height: auto;
    margin-left: 5vw;
  }

  .feature-text-heading h1 {
    font-size: 2.2rem;
  }

  .feature-text-heading p {
    font-size: 1.1rem;
  }
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 5vh;
}

.footer-container {
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Diatype-light', sans-serif;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: rgb(255, 221, 0);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.follow-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Diatype-light', sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 221, 0, 0.2);
  color: rgb(255, 221, 0);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  /* Hero text adjustments */
  .hero-text-left {
    top: 3vh;
    left: 5vw;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .tagline-text {
    font-size: 0.46rem;
    max-width: 90vw;
  }

  /* Menu adjustments */
  .menu {
    position: relative;
    top: 0;
    right: 0;
    width: 90vw;
    margin: 0 auto;
    padding: 0.5rem 0;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
  }

  .menu.active {
    align-items: stretch;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
  }

  .menu h3 {
    font-size: 0.9rem;
    text-align: right;
  }

  .menu h3.menu-buttons:not(#menu-toggle) {
    display: none;
  }

  #menu-toggle {
    display: inline-block;
    align-self: flex-end;
  }

  .menu.active h3.menu-buttons:not(#menu-toggle) {
    display: block;
  }

  .menu-dropdown {
    position: static;
    right: auto;
    top: auto;
    background: transparent;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }

  .menu.active .menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-buttons.default-hidden {
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* Film info section */
  .hero-text-middle {
    left: 5vw;
    right: 5vw;
    top: 70vh;
  }

  .film-info {
    flex-direction: column;
    gap: 1vh;
    margin-top: 3vh;
  }

  .film-title-text {
    font-size: 1.2rem;
  }

  .director {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .description {
    margin-top: 0;
    font-size: 0.8rem;
    width: 85vw;
  }

  /* Grid adjustments */
  .grid-container {
    max-width: 85vw;
  }

  /* Hide scroll buttons on mobile */
  .scroll-button {
    display: none;
  }

  .grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    gap: 3vh;
    overflow-x: visible;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .film {
    height: 30vh;
  }

  .film img,
  .film-image-container {
    height: 30vh;
  }

  .film-title {
    font-size: 1.5rem;
  }

  .director-year {
    font-size: 0.8rem;
  }

  /* Mobile tap functionality for film hover */
  .film:hover {
    transform: none;
    box-shadow: none;
  }

  .film-hover {
    position: relative;
    top: 0;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
  }

  .film.active .film-hover {
    opacity: 1;
    max-height: 30vh;
  }

  .film.active {
    height: auto;
  }

  /* Full bleed feature adjustments */
  .full-bleed-feature {
    margin: 3vh auto;
  }

  .feature-image {
    width: 90vw;
    height: 50vh;
    margin-left: 5vw;
  }

  .feature-text {
    position: relative;
    top: auto;
    left: 5vw;
    width: 90vw;
    height: auto;
    margin-top: 3vh;
  }

  .feature-text-heading h1 {
    font-size: 2rem;
    margin-bottom: 2vh;
  }

  .feature-text-heading p {
    font-size: 1rem;
  }

  .feature-synopsis,
  .filmmaker-bio {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
}