:root {
  --bs-body-font-family: "Nunito", sans-serif;
  --bs-body-bg: #000;
}

.navbar {
  background-color: #000;
  border-bottom: 1px solid #333;
}

.navbar .navbar-nav .nav-link {
  display: inline-block;
  padding: 23px 15px 19px 15px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.navbar .navbar-nav .nav-link.active {
  color: red;
}

.hero img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 25%, transparent 55%),
    linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 65%, #000 100%);
  pointer-events: none;
}

.hero-placeholder {
  height: 600px;
  background: radial-gradient(circle at center, #2a0a10 0%, #000 70%);
}

.hero-caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 48px;
  z-index: 4;
  max-width: 600px;
  font-family: "Nunito Sans", Nunito, sans-serif;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0 0 16px;
}

.hero-description {
  color: #f2f2f2;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
}

.hero-caption .movie-actions {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .hero img,
  .hero-placeholder {
    height: 420px;
  }

  .hero-caption {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-description {
    display: none;
  }

  .hero-caption .movie-meta {
    font-size: 15px;
    margin-bottom: 0;
  }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: radial-gradient(circle at top, #1a0a0d 0%, #000 60%);
}

.auth-wrapper {
  width: 100%;
  max-width: 445px;
}

.auth-card {
  background-color: #000;
  border: 5px solid #1a1a1a;
  border-radius: 12px;
  padding: 40px 40px 45px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.auth-title {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 25px;
  position: relative;
}

.auth-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #ff0022;
}

.auth-input {
  height: 50px;
  background-color: #111;
  border: 2px solid #262626;
  color: #fff;
}

.auth-input:focus {
  background-color: #111;
  border-color: #ff0022;
  box-shadow: none;
}

.auth-input::placeholder {
  color: #888;
}

.auth-page .form-check-input {
  background-color: #fff;
  border-color: #fff;
}

.auth-page .form-check-input:checked {
  background-color: #ff0022;
  border-color: #ff0022;
}

/* Navbar search */
.nav-search {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

@media (min-width: 992px) {
  .nav-search {
    margin: 0 16px 0 0;
  }
}

.nav-search-input {
  width: 0;
  padding: 0;
  opacity: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  height: 38px;
  transition: width 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

.nav-search-input::placeholder {
  color: #999;
}

.nav-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-search.is-open .nav-search-input,
.nav-search-input:not(:placeholder-shown) {
  width: 220px;
  padding: 0 14px;
  opacity: 1;
  margin-right: 6px;
}

.nav-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
}

.nav-search-toggle:hover,
.nav-search-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-login {
  background-color: #ff0022;
  border-color: #ff0022;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 22px;
}

.btn-login:hover,
.btn-login:focus-visible {
  background-color: #b3001a;
  border-color: #b3001a;
  color: #fff;
}

.auth-status {
  background-color: rgba(25, 135, 84, 0.15);
  border: 1px solid rgba(25, 135, 84, 0.5);
  border-radius: 6px;
  color: #d1f0e0;
  font-size: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.auth-link {
  color: #ff0022;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: #ff4d64;
}

.btn-auth,
.btn-google {
  color: #fff;
  font-weight: 700;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-auth {
  background-color: #ff0022;
  text-transform: uppercase;
}

.btn-google {
  background-color: #d10a2b;
}

.btn-auth:hover,
.btn-google:hover {
  background-color: #b3001a;
  color: #fff;
}

/* Movies */
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.movie-card-image {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at center, #2a0a10 0%, #111 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.movie-card:hover .movie-card-image img {
  transform: scale(1.05);
}

.movie-card-placeholder {
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

.movie-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0 2px;
}

.movie-grid .movie-card-title {
  font-size: 17px;
  margin-top: 12px;
}

.movie-card-meta {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.movie-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.movie-card:hover .movie-card-title {
  color: #ff0022;
}

/* Single movie */
.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #2a0a10 0%, #111 80%);
}

.movie-player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 35%);
  pointer-events: none;
}

.movie-player-video {
  background: #000;
}

.movie-player-video::after {
  display: none;
}

.movie-player-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-player-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background-color: #fff;
  color: #ff0022;
  font-size: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  transition: transform 0.2s ease;
  will-change: transform;
}

.movie-player-play i {
  display: block;
  line-height: 1;
}

.movie-player-play:hover {
  color: #ff0022;
  transform: scale(1.1);
}

@media (max-width: 575.98px) {
  .movie-player-play {
    width: 64px;
    height: 64px;
    font-size: 38px;
    padding-left: 4px;
  }
}

.movie-player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.movie-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.movie-imdb {
  background-color: #f5c518;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 2px;
}

.movie-info {
  margin-top: 24px;
  font-family: "Nunito Sans", Nunito, sans-serif;
}

@media (min-width: 992px) {
  .movie-hero {
    position: relative;
  }

  .movie-hero .movie-player {
    aspect-ratio: 13 / 6;
  }

  .movie-hero .movie-player::after {
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 20%, transparent 50%);
  }

  .movie-info {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--bs-gutter-x) * 0.5);
    z-index: 2;
    width: 45%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe flex-end;
    overflow-y: auto;
    border-radius: 0.5rem 0 0 0.5rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  }
}

.movie-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}

@media (min-width: 992px) {
  .movie-title {
    font-size: 56px;
  }
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 400;
  color: #e6e6e6;
}

.movie-meta-tag {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  color: #bbb;
  font-size: 16px;
}

.movie-meta-badge {
  padding: 2px 9px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.movie-tags {
  font-weight: 700;
  margin-bottom: 16px;
}

.movie-credit {
  color: #ccc;
  margin-bottom: 8px;
}

.movie-credit strong {
  color: #fff;
}

.movie-description {
  max-width: 30em;
  color: #f2f2f2;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 0;
}

.watch-info {
  background-color: #111;
  border-radius: 6px;
  padding: 20px 24px;
}

.watch-info-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.watch-tabs .nav {
  gap: 6px;
}

.watch-tabs .nav-link {
  background-color: #222;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px 6px 0 0;
}

.watch-tabs .nav-link:hover {
  color: #ff0022;
}

.watch-tabs .nav-link.active {
  background-color: #ff0022;
  color: #fff;
}

.watch-tabs .tab-content {
  background-color: #111;
  border: 1px solid #222;
  border-radius: 0 6px 6px 6px;
  padding: 24px;
  color: #ddd;
  line-height: 1.8;
}

.movie-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.movie-scroll-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-scroll-track::-webkit-scrollbar {
  display: none;
}

.movie-scroll-track .movie-card {
  scroll-snap-align: start;
}

.movie-scroll {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #ff0022;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.movie-scroll[hidden] {
  display: none;
}

.movie-scroll-prev {
  left: 6px;
}

.movie-scroll-next {
  right: 6px;
}

/* Home movie rows */
.movie-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.movie-row-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.movie-row-link {
  font-weight: 700;
  color: #ff0022;
  text-decoration: none;
}

.movie-row-link:hover {
  color: #fff;
}

.movie-scroll-track-wide {
  grid-auto-columns: calc((100% - 6 * 16px) / 7);
}

.movie-row .movie-scroll {
  top: 50%;
}

.movie-card-image {
  position: relative;
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card-overlay-meta {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #ccc;
}

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

@media (max-width: 991.98px) {
  .movie-scroll-track {
    grid-auto-columns: calc((100% - 2 * 16px) / 3);
  }
}

@media (max-width: 575.98px) {
  .movie-scroll-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

/* Navbar active underline */
.navbar .navbar-nav .nav-link.active {
  box-shadow: inset 0 -3px 0 #ff0022;
}

/* Footer */
.site-footer {
  background: #111 url("../images/footer-bg-item.png") center / cover no-repeat;
  padding: 40px 0;
  margin-top: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.footer-links a,
.footer-copy {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff0022;
}

.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.footer-connect .footer-email {
  margin-top: 0;
}

.footer-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social:hover {
  background-color: #ff0022;
  color: #fff;
}

/* Ad banner (728 x 90) */
.ad-banner {
  max-width: 728px;
  margin: 0 auto;
}

.ad-banner {
  margin-top: 24px;
  margin-bottom: 24px;
}

.ad-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Password reveal */
.password-field {
  position: relative;
}

.password-field .auth-input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  border: none;
  background: none;
  color: #888;
  font-size: 18px;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: #ff0022;
}

.auth-error {
  color: #ff4d64;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.auth-input.is-invalid,
.auth-input.is-invalid:focus {
  border-color: #ff0022;
  background-image: none;
}

/* Buy / Rent */
.movie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 12px;
}

.movie-purchase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.movie-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  min-height: 64px;
  padding: 10px 28px 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  color: #fff;
}

.movie-action i {
  font-size: 32px;
  line-height: 1;
}

.movie-action-primary {
  background-color: #ff0022;
  border: 2px solid #ff0022;
}

.movie-action-primary:hover {
  background-color: #b3001a;
  border-color: #b3001a;
  color: #fff;
}

.movie-action-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  background-color: rgba(0, 0, 0, 0.35);
}

.movie-action-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.movie-price {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.movie-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 22px;
}

.movie-action-icon:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.movie-rent-note {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 16px;
}

/* User menu */
.user-menu-toggle,
.user-menu-toggle:hover,
.user-menu-toggle.show {
  color: #fff;
}

.user-menu .dropdown-menu {
  --bs-dropdown-bg: #111;
  --bs-dropdown-border-color: #333;
  --bs-dropdown-link-hover-bg: #ff0022;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-active-bg: #ff0022;
  min-width: 220px;
}

.user-menu .dropdown-header {
  color: #999;
  font-size: 13px;
}

/* Avatar */
.avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ff0022;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

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

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 0;
  border: none;
}

.user-menu-toggle .avatar {
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.2s ease;
}

.user-menu-toggle:hover .avatar,
.user-menu-toggle.show .avatar {
  box-shadow: 0 0 0 2px #fff;
}

/* Purchases */
.movie-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
}

.movie-access-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background-color: rgba(25, 135, 84, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.movie-access-badge-rent {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.4);
}

.movie-access-badge-expired {
  background-color: #1a1a1a;
  color: #999;
  border-color: #333;
}

.checkout {
  max-width: 480px;
  margin: 0 auto;
}

.checkout-card {
  background-color: #000;
  border: 5px solid #1a1a1a;
  border-radius: 12px;
  padding: 32px;
}

.checkout-item {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.checkout-poster {
  flex: 0 0 80px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #2a0a10 0%, #111 80%);
}

.checkout-poster img,
.purchase-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-movie-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.checkout-type {
  color: #ccc;
  font-weight: 700;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
  font-size: 18px;
}

.checkout-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.watch-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.watch-placeholder .bi {
  font-size: 48px;
  color: #ff0022;
}

.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  background-color: #111;
}

.purchase-poster {
  flex: 0 0 60px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.purchase-title {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.purchase-title:hover {
  color: #ff0022;
}

.purchase-meta {
  font-size: 13px;
  color: #999;
}

/* Payment methods */
.checkout-legend {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #262626;
  border-radius: 8px;
  background-color: #111;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.payment-method:hover {
  border-color: #444;
}

.payment-method:has(input:checked) {
  border-color: #ff0022;
  background-color: #1a0508;
}

.payment-method input {
  accent-color: #ff0022;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.payment-method-icon {
  font-size: 22px;
  width: 28px;
  text-align: center;
  color: #ff4d64;
}

.payment-method small {
  color: #999;
}

.user-menu-name {
  text-transform: uppercase;
}

/* Page banner */
.page-banner {
  position: relative;
  padding: 36px 0;
  background-color: #111;
  background-position: center;
  background-size: cover;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.page-banner .container {
  position: relative;
}

.page-banner-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

/* Profile */
.profile-card {
  max-width: 876px;
  padding: 30px;
  background-color: #111;
  border-radius: 6px;
}

.profile-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

.profile-input {
  height: 50px;
  background-color: #1a1a1a;
  border: 2px solid #262626;
  color: #fff;
  font-weight: 700;
}

.profile-input:focus {
  background-color: #1a1a1a;
  border-color: #ff0022;
  color: #fff;
  box-shadow: none;
}

.profile-input::placeholder {
  color: #666;
  font-weight: 400;
}

.profile-file {
  display: flex;
  height: 50px;
  margin: 0;
  overflow: hidden;
  background-color: #1a1a1a;
  border: 2px solid #262626;
  border-radius: 4px;
  cursor: pointer;
}

.profile-file.is-invalid {
  border-color: var(--bs-form-invalid-border-color);
}

input:focus-visible + .profile-file,
.profile-file:has(+ input:focus-visible) {
  border-color: #ff0022;
}

.profile-file-name {
  flex-grow: 1;
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  line-height: 46px;
  color: #888;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-file-button {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background-color: #ff0022;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-avatar {
  border: 2px solid #262626;
}

.profile-submit {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* Content pages */
.panel-card {
  padding: 30px;
  background-color: #111;
  border-radius: 6px;
}

.profile-textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.contact-info p {
  font-weight: 700;
  color: #ccc;
}

.contact-info a,
.page-content a {
  color: #ff0022;
  text-decoration: none;
}

.contact-info a:hover,
.page-content a:hover {
  text-decoration: underline;
}

.page-content {
  max-width: 876px;
  margin: 0 auto;
  line-height: 1.7;
  color: #ccc;
}

.page-content h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-updated {
  font-size: 14px;
  color: #888;
}

.faq {
  max-width: 876px;
  margin: 0 auto;
  --bs-accordion-bg: #111;
  --bs-accordion-border-color: #262626;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-bg: #1a1a1a;
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 2px #ff0022;
}

.faq .accordion-button {
  font-weight: 700;
}

.faq .accordion-body {
  color: #ccc;
}

/* Admin login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background-color: #0b0b0c;
}

.admin-login {
  width: 100%;
  max-width: 420px;
}

.admin-login-card {
  background-color: #1c1c1e;
  border-radius: 6px;
  padding: 32px 20px 40px;
}

.admin-login-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.admin-login-input {
  height: 44px;
  background-color: #2c2c2e;
  border: 0;
  color: #fff;
}

.admin-login-input:focus {
  background-color: #3a3a3c;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 0, 34, 0.5);
}

.admin-login-input::placeholder {
  color: #8e8e93;
}

.admin-login-page .form-check-input {
  background-color: #fff;
  border-color: #fff;
}

.admin-login-page .form-check-input:checked {
  background-color: #ff0022;
  border-color: #ff0022;
}

.admin-login-button {
  height: 40px;
  text-transform: uppercase;
  font-size: 14px;
}

.admin-login-link {
  color: #aeaeb2;
  text-decoration: none;
}

.admin-login-link:hover {
  color: #fff;
}

/* Admin layout */
.admin-body {
  min-height: 100vh;
  background-color: #0b0b0c;
}

.admin-sidebar {
  background-color: #141416;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #222;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  flex-grow: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #c7c7cc;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav-link:hover {
  background-color: #1f1f22;
  color: #fff;
}

.admin-nav-link.active {
  background-color: #ff0022;
  color: #fff;
}

.admin-nav-group {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}

.admin-nav-group.is-open {
  color: #fff;
}

.admin-nav-caret {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.admin-nav-group:not(.collapsed) .admin-nav-caret {
  transform: rotate(180deg);
}

.admin-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 30px;
}

.admin-nav-sub .admin-nav-link {
  padding: 8px 14px;
  font-size: 14px;
}

.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid #222;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background-color: #141416;
  border-bottom: 1px solid #222;
}

.admin-page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.admin-menu-toggle {
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  color: #fff;
}

.admin-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
}

.admin-content {
  padding: 24px;
}

.admin-panel {
  background-color: #1c1c1e;
  border-radius: 6px;
  padding: 20px 24px;
}

.admin-search {
  max-width: 480px;
}

.admin-table {
  --bs-table-bg: transparent;
}

.admin-table th {
  color: #8e8e93;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
}

.admin-panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.admin-form-narrow {
  max-width: 560px;
}

.admin-form .form-select {
  background-color: #2c2c2e;
  border-color: #3a3a3c;
}

.admin-gateway-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: #2c2c2e;
  color: #ff0022;
  font-size: 22px;
  flex-shrink: 0;
}

.admin-stat span {
  display: block;
  color: #8e8e93;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat strong {
  font-size: 22px;
}

.footer-email {
  display: inline-block;
  margin-top: 14px;
  color: #ccc;
  text-decoration: none;
}

.footer-email:hover {
  color: #ff0022;
}

.admin-setting-image {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  background-color: #0b0b0c;
}

.admin-setting-image img {
  max-height: 48px;
  max-width: 220px;
}

.admin-setting-favicon img {
  width: 32px;
  height: 32px;
}

.admin-ad-preview {
  max-width: 100%;
  padding: 8px;
  border-radius: 6px;
  background-color: #0b0b0c;
}

.admin-ad-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.admin-ad-preview-mobile {
  max-width: 340px;
}

.admin-gateway {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.admin-gateway + .admin-gateway {
  border-top: 1px solid #2c2c2e;
}

.admin-gateway form {
  display: flex;
  align-items: center;
}

.admin-switch {
  width: 3em !important;
  height: 1.5em;
  cursor: pointer;
}

.admin-switch:checked {
  background-color: #ff0022;
  border-color: #ff0022;
}

.admin-poster {
  width: 40px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-poster-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2c2c2e;
  color: #8e8e93;
}

.admin-form .form-control,
.admin-form .input-group-text {
  background-color: #2c2c2e;
  border-color: #3a3a3c;
}

.admin-form .form-control:focus {
  border-color: #ff0022;
  box-shadow: 0 0 0 2px rgba(255, 0, 34, 0.25);
}

.admin-form .form-check-input:checked {
  background-color: #ff0022;
  border-color: #ff0022;
}

.admin-image-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background-color: #2c2c2e;
  color: #8e8e93;
  font-size: 32px;
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-preview-poster {
  width: 140px;
  aspect-ratio: 2 / 3;
}

.admin-image-preview-banner {
  aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    /* Bootstrap makes .offcanvas-lg transparent at this width. */
    background-color: #141416 !important;
  }

  .admin-main {
    margin-left: 240px;
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    --bs-offcanvas-width: 260px;
    --bs-offcanvas-bg: #141416;
  }

  .admin-topbar,
  .admin-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Trailer modal */
.trailer-modal .modal-content {
  background-color: #000;
  border: 1px solid #222;
}

.trailer-modal .modal-header {
  border-bottom-color: #222;
}

.trailer-modal iframe,
.trailer-modal video {
  width: 100%;
  height: 100%;
  border: 0;
  background-color: #000;
}
