/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Universal box-sizing reset — prevents padding from causing horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Netflix-inspired styling */
:root {
  --netflix-red: #e50914;
  --netflix-black: #141414;
  --netflix-dark-gray: #181818;
  --netflix-gray: #2f2f2f;
  --netflix-light-gray: #808080;
  --netflix-white: #ffffff;

  /* Sport theming — defaults to snowboard */
  --sport-accent: #e50914;
  --sport-accent-rgb: 229, 9, 20;
  --sport-accent-text: #ffffff;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--netflix-black);
  color: var(--netflix-white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 64px;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.95);
  transition: background-color 0.3s ease;
  padding: 0 2.5rem;
  box-sizing: border-box;
  max-width: 100vw;
  height: 64px;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 10, 0.99);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--netflix-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.nav-link--icon {
  font-size: 0.8rem;
  gap: 0.3rem;
}

.nav-link--icon svg {
  flex-shrink: 0;
}

.logo-link {
  display: block;
  line-height: 0;
  padding: 0.35rem 0.8rem;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  width: 100px;
  height: auto;
  color: var(--sport-accent);
  transition: color 0.2s ease;
  line-height: 0;
}

.site-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo:hover {
  color: var(--netflix-white);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 65vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--netflix-black) 0%,
    transparent 50%,
    transparent 100%
  );
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--netflix-black) 0%,
    transparent 50%
  );
}

.hero-content {
  position: absolute;
  top: 56px;
  bottom: 5rem;
  left: 4rem;
  max-width: 42%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

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

.btn-play,
.btn-info {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-play {
  background-color: var(--netflix-white);
  color: var(--netflix-black);
}

.btn-play:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: var(--netflix-white);
}

.btn-info:hover {
  background-color: rgba(109, 109, 110, 0.4);
}

/* Movie Rows */
.movie-rows {
  padding: 0 4rem 4rem;
  margin-top: -6rem;
  position: relative;
  z-index: 3;
}

.movie-row {
  margin-bottom: 1.25rem;
}

.row-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #e5e5e5;
  white-space: nowrap;
}

.row-container {
  position: relative;
  overflow: hidden;
}

.row-scroll-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(10,10,10,0.85) 40%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s;
}

.movie-row:hover .row-scroll-btn {
  opacity: 1;
}

.row-scroll-btn:hover {
  color: var(--sport-accent);
}

.row-content {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0 0.5rem 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.row-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.year-row-skeleton {
  pointer-events: none;
}

.skeleton-title,
.skeleton-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
  animation: year-row-shimmer 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 180px;
  height: 1.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-card {
  min-width: 250px;
  width: 250px;
  height: 140px;
  border-radius: 4px;
}

@keyframes year-row-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Movie Card */
.movie-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.movie-card {
  position: relative;
  min-width: 250px;
  width: 250px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--netflix-gray);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.movie-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.movie-card:hover img {
  filter: brightness(0.7);
}

.movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.15), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.movie-card:hover .movie-card-overlay {
  opacity: 1;
}

.movie-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--netflix-white);
}

.movie-card-info {
  font-size: 0.85rem;
  color: var(--netflix-light-gray);
  margin: 0;
}

.movie-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--netflix-gray) 0%, var(--netflix-dark-gray) 100%);
  color: var(--netflix-light-gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--netflix-light-gray);
}

.empty-state h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Video Player Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal.hidden {
  display: none;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background-color: var(--netflix-black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--netflix-white);
}

.video-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Search Page Styles */
.search-page {
  min-height: 100vh;
  padding-top: 56px;
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 4rem;
}

.search-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: var(--netflix-white);
}

.search-form {
  margin-bottom: 3rem;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 800px;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--netflix-white);
  border: 2px solid var(--netflix-gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--netflix-light-gray);
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--sport-accent);
}

.search-button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--sport-accent);
  color: var(--netflix-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  filter: brightness(0.9);
  transform: scale(1.02);
}

.search-results {
  margin-top: 2rem;
}

.results-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #e5e5e5;
}

.results-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #e5e5e5;
  border-bottom: 2px solid var(--netflix-gray);
  padding-bottom: 0.75rem;
}

.movie-results {
  display: grid;
  gap: 1.5rem;
}

.search-movie-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--netflix-dark-gray);
  border-radius: 8px;
  border: 1px solid var(--netflix-gray);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.search-movie-card:hover {
  background: var(--netflix-gray);
  transform: scale(1.01);
  border-color: var(--netflix-light-gray);
}

.search-movie-cover {
  width: 200px;
  height: 112px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-movie-cover-placeholder {
  width: 200px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--netflix-gray) 0%, var(--netflix-dark-gray) 100%);
  color: var(--netflix-light-gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-movie-info {
  flex: 1;
  min-width: 0;
}

.search-movie-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--netflix-white);
}

.search-movie-year {
  color: var(--netflix-light-gray);
  margin: 0.25rem 0;
  font-size: 1rem;
}

.search-movie-meta {
  margin: 0.5rem 0;
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta-label {
  color: var(--netflix-light-gray);
  font-weight: 600;
}

.search-movie-description {
  margin: 0.75rem 0;
  color: #d0d0d0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.play-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--netflix-white);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.people-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.search-person-card {
  padding: 1.5rem;
  background: var(--netflix-dark-gray);
  border-radius: 8px;
  border: 1px solid var(--netflix-gray);
  transition: all 0.3s ease;
}

.search-person-card:hover {
  background: var(--netflix-gray);
  border-color: var(--netflix-light-gray);
}

.search-person-name {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--netflix-white);
}

.search-person-movies {
  margin: 0.5rem 0;
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.6;
}

.person-movie-link {
  color: var(--netflix-white);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.person-movie-link:hover {
  color: var(--sport-accent);
  text-decoration-color: var(--sport-accent);
}

.person-movie-no-link {
  color: #b3b3b3;
}

.no-results,
.search-prompt {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--netflix-light-gray);
  background: var(--netflix-dark-gray);
  border-radius: 8px;
  border: 1px solid var(--netflix-gray);
  font-size: 1.1rem;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--netflix-gray);
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: var(--sport-accent);
  color: var(--netflix-black);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(var(--sport-accent-rgb), 0.3);
}

.load-more-button:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--sport-accent-rgb), 0.5);
}

.load-more-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-banner {
    padding: 0 3rem 6rem;
  }
  
  .movie-rows {
    padding: 0 3rem 3rem;
  }
  
  .hero-content {
    max-width: 50%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* Row title with chevron */
.row-title-link {
  color: #e5e5e5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.row-title-link:hover {
  color: var(--sport-accent);
}
.row-title-chevron {
  display: inline;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.movie-row:hover .row-title-chevron {
  opacity: 1;
  transform: translateX(0);
}

/* More Info hero button */
.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: var(--netflix-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-info:hover {
  background-color: rgba(109, 109, 110, 0.5);
}

/* Hero metadata line */
.hero-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.6rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.4;
}
.hero-meta-dot {
  opacity: 0.5;
  margin: 0 0.15rem;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .sport-nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  /* Search icon only, hide label */
  .nav-link--icon span {
    display: none;
  }

  .search-page {
    padding-top: 50px;
  }

  .auth-page {
    padding-top: 50px;
  }

  .store-page {
    padding-top: 50px;
  }

  .search-container {
    padding: 2rem 2rem;
  }

  .search-title {
    font-size: 2rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
  }

  .search-movie-card {
    flex-direction: column;
  }

  .search-movie-cover,
  .search-movie-cover-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .hero-banner {
    height: 60vh;
    min-height: 460px;
  }
  
  .hero-content {
    top: auto;
    bottom: 4rem;
    left: 2rem;
    max-width: 72%;
  }

  .movie-rows {
    padding: 0 2rem 2rem;
    margin-top: -4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .btn-play,
  .btn-info {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .movie-card {
    min-width: 180px;
    width: 180px;
    height: 100px;
  }
  
  .movie-card-overlay {
    opacity: 1;
    padding: 0.75rem;
  }

  .movie-card-title {
    font-size: 0.95rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .movie-card-info {
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .row-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 0.75rem;
    height: 50px;
  }

  .logo-link {
    padding: 0.25rem 0.5rem;
  }

  .site-logo {
    width: 72px;
  }

  .header-nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .search-container {
    padding: 2rem 1rem;
  }

  .search-title {
    font-size: 1.75rem;
  }

  .search-input {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  .search-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .search-movie-title {
    font-size: 1.25rem;
  }

  .people-results {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    height: 55vh;
    min-height: 420px;
  }

  .hero-content {
    bottom: 3rem;
    left: 1rem;
    max-width: 92%;
  }

  .movie-rows {
    padding: 0 1rem 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .movie-card {
    min-width: 150px;
    width: 150px;
    height: 85px;
  }

  .movie-card-overlay {
    padding: 0.6rem;
  }

  .movie-card-title {
    font-size: 0.9rem;
  }

  .movie-card-info {
    font-size: 0.75rem;
  }
}

/* Authentication Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  padding-top: 56px;
  background: var(--netflix-black);
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-box {
  background: rgba(0, 0, 0, 0.75);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.auth-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--netflix-white);
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--netflix-light-gray);
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--netflix-light-gray);
  font-style: italic;
  margin-left: 0.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--netflix-white);
}

.form-input {
  padding: 1rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--netflix-white);
  border: 1px solid var(--netflix-gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--netflix-light-gray);
}

.form-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--netflix-white);
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.95rem;
  color: var(--netflix-light-gray);
  cursor: pointer;
}

.form-actions {
  margin-top: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--netflix-red);
  color: var(--netflix-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #f40612;
  transform: scale(1.01);
}

.auth-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--netflix-gray);
}

.auth-links a {
  color: var(--netflix-white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.75rem;
}

.auth-links a:hover {
  color: var(--netflix-light-gray);
  text-decoration: underline;
}

.error-messages {
  background-color: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--netflix-red);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--netflix-red);
  margin: 0 0 0.75rem 0;
}

.error-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #ff6b6b;
  font-size: 0.9rem;
}

.error-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .auth-page {
    padding-top: 0.5rem;
    align-items: flex-start;
  }

  .auth-box {
    padding: 1.5rem 1.25rem;
  }

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

  .auth-subtitle {
    margin: 0 0 1rem 0;
  }
}

/* Admin Interface Enhancements */
.main-content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.main-content__header > div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--netflix-red);
  color: var(--netflix-white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #f40612;
  transform: scale(1.02);
}

/* ========================================
   Ad Placeholder Styles
   ======================================== */

.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
}

.ad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--netflix-light-gray);
  opacity: 0.6;
}

.ad-placeholder {
  width: var(--ad-width);
  height: var(--ad-height);
  max-width: 100%;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
  border: 1px dashed rgba(128, 128, 128, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ad-placeholder:hover {
  border-color: rgba(128, 128, 128, 0.5);
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(35, 35, 35, 0.95) 100%);
}

/* Real ad content container */
.ad-content {
  width: var(--ad-width);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.ad-content ins,
.ad-content iframe,
.ad-content img {
  max-width: 100%;
  height: auto;
}

.ad-content a {
  display: block;
  text-decoration: none;
}

.ad-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--netflix-light-gray);
  opacity: 0.5;
  text-align: center;
  padding: 1rem;
}

.ad-icon {
  opacity: 0.4;
}

.ad-placeholder-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.ad-placeholder-subtext {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--netflix-red);
  opacity: 0.7;
}

/* Leaderboard Ad - Full width banner */
.ad-leaderboard {
  margin: 1.5rem 0;
}

.ad-leaderboard .ad-placeholder {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Sidebar Ad */
.ad-sidebar {
  padding: 0;
}

.ad-sidebar .ad-wrapper {
  position: sticky;
  top: 76px;
}

/* In-Feed Ad - Blends with content */
.ad-in_feed {
  padding: 0.5rem;
}

.ad-in_feed .ad-placeholder {
  border-radius: 8px;
}

/* Banner Ad */
.ad-banner {
  margin: 1rem 0;
}

/* Mobile Banner */
.ad-mobile_banner {
  display: none;
}

/* Homepage specific ad row */
.ad-row {
  display: flex;
  justify-content: center;
  padding: 0 4rem;
  margin: 0;
}

/* Movie detail page ad layout */
.movie-content-with-ads {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.movie-main-content {
  min-width: 0;
}

.movie-sidebar-ads {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search page ad placement */
.search-ad-container {
  margin: 2rem 0;
}

/* In-feed ad card for search results */
.search-ad-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--netflix-dark-gray);
  border-radius: 8px;
  border: 1px solid var(--netflix-gray);
  min-height: 150px;
}

/* Responsive Ad Styles */
@media (max-width: 1200px) {
  .movie-content-with-ads {
    grid-template-columns: 1fr;
  }
  
  .movie-sidebar-ads {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .ad-sidebar .ad-wrapper {
    position: static;
  }
  
  .ad-row {
    padding: 0 3rem;
  }
}

@media (max-width: 768px) {
  .ad-placeholder {
    width: var(--ad-mobile-width);
    height: var(--ad-mobile-height);
  }
  
  .ad-leaderboard,
  .ad-banner {
    padding: 0;
  }
  
  .ad-row {
    padding: 0 1rem;
  }
  
  .ad-placeholder-content {
    gap: 0.25rem;
    padding: 0.5rem;
  }
  
  .ad-icon {
    width: 20px;
    height: 20px;
  }
  
  .ad-placeholder-text {
    font-size: 0.65rem;
  }
  
  .ad-placeholder-subtext {
    font-size: 0.75rem;
  }
  
  .movie-sidebar-ads {
    display: none;
  }
  
  .mobile-ad-container {
    display: block;
  }
}

@media (max-width: 480px) {
  .ad-row {
    padding: 0;
  }
  
  .ad-mobile_banner {
    display: flex;
  }
  
  .ad-leaderboard .ad-placeholder,
  .ad-banner .ad-placeholder {
    width: 320px;
    height: 50px;
  }
}

/* Favorites */
.movie-card-wrapper {
  position: relative;
  display: inline-block;
}

.movie-card-favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 15;
}

.favorite-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.favorite-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

.favorite-toggle--active:hover {
  background: rgba(0, 0, 0, 0.85);
}

.favorite-toggle svg {
  display: block;
}

.movie-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.movie-show-favorite .favorite-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.movie-show-favorite .favorite-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.movie-show-favorite .favorite-toggle svg {
  width: 24px;
  height: 24px;
}

.favorites-row-title {
  color: #f6c700 !important;
}

.favorites-cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 199, 0, 0.06);
  border: 1px dashed rgba(246, 199, 0, 0.3);
}

.favorites-cta-card:hover {
  background: rgba(246, 199, 0, 0.12);
  border-color: rgba(246, 199, 0, 0.5);
}

.favorites-cta-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.favorites-cta-card-text {
  font-size: 0.85rem;
  color: #b3b3b3;
  line-height: 1.3;
}

.recaptcha-notice {
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  margin-top: 0.75rem;
}
.recaptcha-notice a { color: #aaa; }

/* Store pages — clear fixed header */
.store-page {
  padding-top: 56px;
}

@media (max-width: 480px) {
  .store-page {
    padding-top: 50px;
  }
}

/* Watch progress bar on movie cards */
.movie-card-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transform: translateZ(0);
}

.movie-card-progress-bar {
  height: 100%;
  background: var(--sport-accent);
  transition: width 0.3s ease;
}

/* ========================================
   Account Badge
   ======================================== */

.account-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: var(--sport-accent);
  color: var(--sport-accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

/* ========================================
   Sport Navigation (inline in header)
   ======================================== */

.sport-nav {
  flex: 1;
  overflow: hidden;
}

.sport-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

.sport-nav-list::-webkit-scrollbar {
  display: none;
}

.sport-nav-item {
  flex-shrink: 0;
}

.sport-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 .75rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.sport-nav-link:hover {
  color: var(--hover-accent, var(--sport-accent));
  border-bottom: 3px solid var(--hover-accent, var(--sport-accent));
}

.sport-nav-link.active {
  color: var(--sport-accent);
  border-bottom: 3px solid var(--sport-accent);
}

.sport-nav-link svg {
  flex-shrink: 0;
}

/* Search scope control */
.search-scope-control {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
}

.search-scope-btn {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 0;
}

.search-scope-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.search-scope-btn:last-child {
  border-radius: 0 20px 20px 0;
  border-left: none;
}

.search-scope-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--netflix-white);
}

.search-scope-btn.active {
  background: var(--sport-accent);
  border-color: var(--sport-accent);
  color: var(--sport-accent-text);
  font-weight: 600;
}

.search-scope-btn.active + .search-scope-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.search-scope-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.search-sport-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  margin-left: 0.4rem;
}

.search-sport-badge.active {
  background: rgba(var(--sport-accent-rgb), 0.2);
  color: var(--sport-accent);
}

/* Sport featured label on hero */
.hero-sport-label {
  display: inline-block;
  color: var(--sport-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* Related videos rail on movie detail */
.related-videos {
  margin-top: 3rem;
}

.related-videos-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.related-videos-title svg {
  display: inline;
  vertical-align: middle;
}

/* Focus styles — use sport accent */
:focus-visible {
  outline: 2px solid var(--sport-accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .sport-nav-label {
    display: none;
  }

  .sport-nav-link {
    padding: 0.35rem 0.45rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1000px) {
  body {
    padding-top: 110px;
  }

  .site-header {
    height: auto;
    min-height: 50px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 0;
  }

  .sport-nav {
    flex: 0 0 100%;
    order: 3;
    padding: 0 0 0.15rem;
    margin-top: -1.5rem;
  }

  .sport-nav-list {
    justify-content: center;
  }

  .sport-nav-link {
    padding: 0.15rem 0.35rem;
    gap: 0;
    font-size: 0.75rem;
  }

  .sport-nav-link svg {
    width: 44px;
    height: 44px;
  }
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 2.5rem;
  background-color: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.55;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-disclaimer {
  margin: 0 0 0.75rem;
}

.site-footer-disclaimer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.site-footer-links {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-links span {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}
