/*
BU SİTENİN TÜM KODLAMASI VE TASARIMI MOVYRA EKİBİ TARAFINDAN ÖZENLE YAZILMIŞ VE TASARLANMIŞTIR.
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-scrollbar-size: 6px;
}

body {
  background: #070b14;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.1), rgba(9, 13, 24, 0));
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.96), rgba(8, 12, 22, 0.88));
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

.nav-left {
  display: flex;
  gap: 28px;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: #e50914;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 2px 0;
}

.logo-image {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 4px 14px rgba(229, 9, 20, 0.16));
  transform: translateY(1px);
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.logo-link:hover .logo-image {
  opacity: 1;
  filter: drop-shadow(0 6px 18px rgba(229, 9, 20, 0.22));
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu a {
  color: #fff;
  opacity: .92;
  text-decoration: none;
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.menu a::after {
  display: none;
}

.menu a:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-right > .fa-regular.fa-bell,
.nav-right > .fa-solid.fa-bell,
.nav-right > .fa-bell {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.about-link {
  color: #fff;
  opacity: .95;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 99999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: color .2s ease, opacity .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-random-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(135deg, rgba(229,9,20,.22), rgba(255,255,255,.05)),
    rgba(255,255,255,.04);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.2);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-random-btn i {
  font-size: 12px;
  opacity: .92;
}

.navbar:not(.scrolled) .nav-right > .fa-regular.fa-bell,
.navbar:not(.scrolled) .nav-right > .fa-solid.fa-bell,
.navbar:not(.scrolled) .nav-right > .fa-bell {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.navbar:not(.scrolled) .about-link {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.navbar:not(.scrolled) .nav-random-btn {
  background: rgba(8, 11, 20, .6);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.navbar:not(.scrolled) .about-link:hover {
  background: transparent;
  border-color: transparent;
}

.about-link:hover {
  color: #e50914;
  opacity: 1;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.nav-random-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(229,9,20,.42);
  background:
    linear-gradient(135deg, rgba(229,9,20,.34), rgba(255,255,255,.08)),
    rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 28px rgba(0,0,0,.28);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e50914;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}


.hero {
  height: 90vh;
  min-height: 500px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}

.hero-video-layer.is-active {
  opacity: 1;
}

.hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.04);
  filter: saturate(1) contrast(1.06) brightness(.92);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(7, 11, 20, .95),
      rgba(7, 11, 20, .6),
      rgba(7, 11, 20, .2));
  z-index: 1;
}

.hero.has-video-bg .hero-overlay {
  background: linear-gradient(90deg,
      rgba(7, 11, 20, .84) 0%,
      rgba(7, 11, 20, .44) 38%,
      rgba(7, 11, 20, .12) 72%,
      rgba(7, 11, 20, .06) 100%);
}

.hero-content {
  max-width: 620px;
  width: 100%;
  position: relative;
  padding-top: 0;
  margin-top: 72px;
  transform: translateY(40px);
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 60px;
  z-index: 2;
  box-sizing: border-box;
}

.hero-logo {
  max-width: 330px;
  width: 100%;
  max-height: 380px;
  
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  
  margin-bottom: 20px;
  display: block;
  margin-left: 0;
  opacity: .68;
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .16));
}

.hero-logo:hover {
  opacity: .96;
  transform: translateY(-2px);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, .32));
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.hero-highlight {
  color: #f5c518;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: opacity .4s;
}

.badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.badges img {
  height: 22px;
  width: auto;
}

#heroDesc {
  font-size: 15px;
  line-height: 1.6;
  opacity: .9;
  margin-bottom: 18px;
  word-wrap: break-word;
  overflow-wrap: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons button {
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-play {
  background: #fff;
  font-weight: bold;
  color: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btn-info {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.btn-random {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14) !important;
  backdrop-filter: blur(10px);
}

.btn-fragman {
  background: rgba(0, 0, 0, .6);
  color: #fff;
}

.hero-buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.btn-play:hover:not(.disabled) {
  background: #e50914;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
}

.btn-info:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-random:hover {
  background: rgba(229, 9, 20, .18);
  border-color: rgba(229, 9, 20, .45) !important;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.22);
}

.btn-fragman:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-content {
  flex: 1;
}


@media (max-width: 1200px) {
  .hero-content {
    padding-top: 110px;
    padding-left: 50px;
    padding-right: 50px;
  }

  .hero-logo {
    max-width: 300px;
    max-height: 250px;
  }
}


@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .hero-video-layer {
    display: none;
  }

  .hero {
    height: 75vh;
    min-height: 450px;
    background-position: center top;
  }

  .hero-content {
    padding-top: 90px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 40px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-logo {
    max-width: 280px;
    max-height: 200px;
    opacity: .96;
  }

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

  .hero-highlight {
    font-size: 14px;
  }

  #heroDesc {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-buttons {
    gap: 8px;
  }

  .hero-buttons button {
    padding: 8px 14px;
    font-size: 13px;
  }

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 30px 24px;
    gap: 12px;
  }

  .category-showcase-card {
    aspect-ratio: 1 / 0.68;
    border-radius: 18px;
  }

  .category-showcase-title {
    width: calc(100% - 20px);
    font-size: 20px;
  }

  .badges img {
    height: 18px;
  }

  
  .movie-list {
    padding: 30px 30px;
    gap: 14px;
  }

  .section-title {
    font-size: 20px;
    margin: 0 30px 15px;
  }

  .new-slider {
    padding: 0 30px 25px;
  }

  .new-card {
    min-width: 160px;
  }

  .search-hero {
    padding: 110px 30px 35px;
  }

  .search-hero input {
    padding: 18px 22px;
    font-size: 22px;
  }

  .search-results {
    padding: 35px 30px;
    gap: 15px;
  }

  .site-footer {
    padding: 50px 30px 70px;
  }

  .all-movies-section {
    padding: 90px 30px 60px;
  }

  .all-movies-section .section-title {
    margin-bottom: 25px;
  }
}


@media (max-width: 600px) {
  .navbar {
    padding: 0 15px;
    height: 60px;
  }

  .logo {
    font-size: 24px;
  }

  .nav-right {
    gap: 8px;
    font-size: 12px;
  }

  .avatar {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }

  .hero {
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center top;
  }

  .hero-content {
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-logo {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 15px;
    opacity: .96;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .hero-highlight {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .badges {
    gap: 8px;
    margin-bottom: 10px;
  }

  .badges img {
    height: 16px;
  }

  #heroDesc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-buttons {
    gap: 6px;
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons button {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
  }

  
  .movie-list {
    padding: 30px 15px;
    gap: 12px;
  }

  .new-section {
    padding: 20px 0 10px;
  }

  .section-title {
    font-size: 18px;
    margin: 0 20px 15px;
  }

  .new-slider {
    padding: 0 20px 20px;
    gap: 10px;
  }

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 20px 22px;
    gap: 10px;
  }

  .category-showcase-card {
    aspect-ratio: 1 / 0.74;
    border-radius: 16px;
  }

  .category-showcase-title {
    width: calc(100% - 18px);
    font-size: 16px;
  }

  .new-card {
    min-width: 140px;
  }

  .search-hero {
    padding: 100px 20px 30px;
  }

  .search-hero input {
    padding: 16px 20px;
    font-size: 18px;
  }

  .search-results {
    padding: 30px 15px;
    gap: 12px;
  }

  .site-footer {
    padding: 40px 20px 50px;
  }

  .footer-logo {
    font-size: 28px;
  }

  .footer-links {
    gap: 12px;
    font-size: 12px;
  }

  .all-movies-section {
    padding: 80px 20px 50px;
  }

  .all-movies-section .section-title {
    margin-bottom: 20px;
    font-size: 24px;
  }
}


.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 40px 60px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transform: translateZ(0);
  will-change: transform;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s ease;
}

.movie-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: opacity .3s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  z-index: 2;
}

.movie-card:hover img {
  opacity: .75;
}


.trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 9999;
}

.trailer-box {
  position: relative;
  width: min(1080px, 100%);
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.98), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.trailer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.trailer-topbar__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.trailer-kicker {
  color: #ffcc1b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#trailerTitleText {
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#trailerMetaText {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

.trailer-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.trailer-close:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 204, 27, 0.35);
}

.trailer-player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #000;
}

.trailer-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.no-trailer-msg {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: #dfe6ff;
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(24, 45, 98, 0.55), rgba(5, 8, 18, 0.92));
}

.no-trailer-msg__icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 204, 27, 0.14);
  border: 1px solid rgba(255, 204, 27, 0.28);
}

.no-trailer-msg i {
  font-size: 30px;
  opacity: 0.95;
  color: #ffcc1b;
}

.no-trailer-msg h3 {
  margin: 0;
  font-size: 26px;
  color: #fff;
}

.no-trailer-msg p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  max-width: 460px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .trailer-modal { padding: 14px; }
  .trailer-box { border-radius: 18px; }
  .trailer-topbar { padding: 12px 14px; align-items: flex-start; }
  #trailerTitleText { font-size: 16px; white-space: normal; }
  #trailerMetaText { font-size: 12px; }
  .no-trailer-msg h3 { font-size: 22px; }
}

.hidden {
  display: none;
}



.site-footer {
  background: linear-gradient(180deg, #050814, #03040a);
  padding: 60px 40px 90px;
  text-align: center;
  color: #cfcfcf;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-social a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  color: #e50914;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 20px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}

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

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

.footer-copy {
  font-size: 12px;
  opacity: 0.6;
}


.search-hero {
  padding: 120px 60px 40px;
}

.search-hero input {
  width: 100%;
  padding: 22px 26px;
  font-size: 28px;
  border-radius: 12px;
  border: none;
  background: #2b2f3a;
  color: #fff;
  outline: none;
}

.search-results {
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.search-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transform: translateZ(0);
  will-change: transform;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s ease;
}

.search-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: opacity .3s ease;
}

.search-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  z-index: 2;
}

.search-card:hover img {
  opacity: .75;
}

.search-card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(229, 9, 20, 0.85);
  
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}


.footer {
  background: #070b14;
  padding: 80px 40px;
  text-align: center;
}

.footer h2 {
  color: #e50914;
  margin: 20px 0;
}

.footer nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer nav a {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.footer small {
  color: #666;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex;
}

.video-box {
  position: relative;
  width: 90%;
  height: 90%;
}

.video-box iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}


.new-section {
  padding: 30px 0 10px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.95), rgba(7, 11, 20, 1));
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 60px 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 60px 18px;
}

.section-heading .section-title {
  margin: 0;
}

.section-kicker {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-slider {
  display: flex;
  gap: 14px;
  padding: 0 60px 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  align-items: flex-start;
}

.new-slider::-webkit-scrollbar {
  height: var(--main-scrollbar-size);
}

.new-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 10px;
}

.category-showcase-section {
  padding-top: 8px;
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 60px 28px;
}

.category-showcase-card {
  position: relative;
  aspect-ratio: 1 / 0.6;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 24, 38, 0.96), rgba(8, 12, 22, 1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  isolation: isolate;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.category-showcase-card:hover,
.category-showcase-card:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.category-showcase-video,
.category-showcase-overlay {
  position: absolute;
  inset: 0;
}

.category-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #050914;
  filter: saturate(.96) brightness(.94);
  transform: scale(1);
  transition: filter .28s ease, transform .28s ease;
}

.category-showcase-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.12), rgba(7, 11, 20, 0.26) 55%, rgba(7, 11, 20, 0.48)),
    linear-gradient(135deg, rgba(7, 11, 20, 0.1), rgba(7, 11, 20, 0.04));
  transition: background .28s ease;
}

.category-showcase-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  width: calc(100% - 24px);
  text-align: center;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  opacity: .96;
  transition: opacity .28s ease, transform .28s ease;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.category-showcase-logo {
  display: block;
  width: min(74%, 220px);
  max-width: 100%;
  max-height: 58px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.34));
}

.category-showcase-card[data-brand="marvel"] .category-showcase-logo {
  width: min(86%, 900);
  max-height: 900px;
}

.category-showcase-card[data-brand="disney"] .category-showcase-logo {
  width: min(60%, 910px);
  max-height: 900px;
}

.category-showcase-card[data-brand="pixar"] .category-showcase-logo {
  width: min(74%, 220px);
  max-height: 198px;
}

.category-showcase-card[data-brand="star-wars"] .category-showcase-logo {
  width: min(72%, 240px);
  max-height: 900px;
  filter: brightness(1.18) drop-shadow(0 10px 28px rgba(0, 0, 0, 0.38));
}

.category-showcase-card:hover .category-showcase-video,
.category-showcase-card:focus-visible .category-showcase-video {
  filter: saturate(.94) brightness(.86);
}

.category-showcase-card:hover .category-showcase-title,
.category-showcase-card:focus-visible .category-showcase-title {
  opacity: .5;
  transform: translate(-50%, -50%) scale(.985);
}

.new-card {
  min-width: 180px;
  cursor: pointer;
}

.top-rank-badge {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #16130c;
  border: none;
  box-shadow: 0 12px 28px rgba(253, 160, 133, 0.28);
}

.quick-category-section {
  padding-top: 18px;
}

.quick-category-tabs {
  display: flex;
  gap: 12px;
  padding: 0 60px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-category-tabs::-webkit-scrollbar {
  display: none;
}

.quick-category-tab {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}

.quick-category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.quick-category-tab.active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(255, 113, 67, 0.92));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(229, 9, 20, 0.26);
}

.quick-category-status {
  min-height: 180px;
  margin: 0 60px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(17, 22, 36, 0.98), rgba(8, 12, 22, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

@media (max-width: 900px) {
  .section-heading {
    margin: 0 30px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .new-section > .section-title {
    margin: 0 30px 16px;
  }

  .quick-category-tabs {
    padding: 0 30px 18px;
  }

  .quick-category-status {
    margin: 0 30px 22px;
  }
}

@media (max-width: 600px) {
  .section-heading {
    margin: 0 20px 14px;
  }

  .new-section > .section-title {
    margin: 0 20px 14px;
  }

  .quick-category-tabs {
    gap: 10px;
    padding: 0 20px 16px;
  }

  .quick-category-tab {
    padding: 9px 15px;
    font-size: 13px;
  }

  .quick-category-status {
    margin: 0 20px 18px;
    min-height: 150px;
    font-size: 14px;
  }
}

.all-movies-section {
  padding: 30px 60px 70px;
}

.all-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.all-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  
  gap: 30px;
  align-items: flex-start;
}


.filter-panel {
  position: sticky;
  top: 100px;
  height: fit-content;
}


.filter-panel h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.filter-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.filter-btn.active {
  background: #e50914;
}

@media (max-width: 900px) {
  .all-layout {
    grid-template-columns: 1fr;
  }
}


.all-movies-section {
  padding: 100px 60px 80px;
}

.all-movies-section .section-title {
  padding: 0;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 25px;
}


.movies-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: flex-start;
}






.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px;
}


.movie-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card:hover {
  transform: scale(1.06);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}


@media (max-width: 900px) {
  .movies-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: relative;
    top: 0;
  }
}


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



.filter-btn {
  background: #1c2230;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: #2a3142;
}

.filter-btn.active {
  background: #e50914;
}


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


.category-btn {
  background: #1c2230;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: background .25s;
}

.category-btn:hover {
  background: #2a3142;
}


.category-dropdown {
  position: relative;
}

.category-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: rgba(20, 25, 35, .98);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px;
  min-width: 180px;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  z-index: 200;
}

.category-menu.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


body.no-hero .all-movies-section {
  padding-top: 100px;
  
}

body.no-hero .navbar {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.96), rgba(8, 12, 22, 0.9));
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }


.category-menu .filter-btn {
  background: #1c2230;
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.category-menu .filter-btn:hover {
  background: #2a3142;
}

.category-menu .filter-btn.active {
  background: #e50914;
}


.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  padding: 0;
}


.movie-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}


@media (min-width: 1600px) {
  .movies-grid {
    max-width: 1600px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}


@media (max-width: 900px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 16px;
  }
}


@media (max-width: 600px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
  }
  .movie-card {
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}


.fullscreen-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
}

.fullscreen-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.player-top>* {
  pointer-events: none; 
}

.back-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;

  backdrop-filter: blur(6px);
}




.detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 9999;
}

.detail-modal__content {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  background: linear-gradient(180deg, #111728 0%, #0b1020 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 36px 80px rgba(0,0,0,0.58);
}

.detail-modal__content{
  scrollbar-width: thin;
  scrollbar-color: rgba(219,50,20,.75) rgba(14,16,20,.72);
}

.detail-modal__content::-webkit-scrollbar{
  width: var(--main-scrollbar-size);
  height: var(--main-scrollbar-size);
}

.detail-modal__content::-webkit-scrollbar-track{
  background: rgba(14,16,20,.72);
  border-radius: 999px;
}

.detail-modal__content::-webkit-scrollbar-thumb{
  background: rgba(219,50,20,.75);
  border-radius: 999px;
}

.detail-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.detail-modal__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.detail-modal__visual {
  position: relative;
  width: 180px;
  height: 252px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.detail-modal__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-modal__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0.05) 0%, rgba(5,7,12,0.78) 100%);
}

.detail-modal__logo {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 1;
  max-width: calc(100% - 28px);
  max-height: 80px;
  object-fit: contain;
  object-position: left bottom;
}

.detail-modal__title-wrap h3 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.detail-modal__title-wrap {
  position: relative;
  padding-bottom: 8px;
}

#modalMeta {
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

.detail-modal__custom-layer {
  position: relative;
  margin: 4px 0 14px;
  min-height: 92px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.detail-modal__custom-layer:empty {
  display: none !important;
}

.detail-modal__custom-note {
  position: absolute;
  max-width: min(240px, 84%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,23,42,0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}

.detail-modal__custom-note.note-highlight {
  background: linear-gradient(135deg, rgba(250,204,21,0.22), rgba(120,53,15,0.56));
  border-color: rgba(252,211,77,0.42);
  color: #fff5bf;
}

.detail-modal__custom-note.note-accent {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(30,41,59,0.82));
  border-color: rgba(147,197,253,0.34);
  color: #dbeafe;
}

.detail-modal__custom-note.note-soft {
  background: linear-gradient(135deg, rgba(244,114,182,0.18), rgba(76,29,149,0.62));
  border-color: rgba(244,114,182,0.26);
  color: #fdf2f8;
}

.detail-modal__description {
  color: rgba(255,255,255,0.86);
  line-height: 1.75;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-modal__description.open {
  display: block;
}

.detail-modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
}

.detail-modal__stats span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
}

.detail-modal__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-modal__columns h4 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 16px;
}

.detail-modal__columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-modal__columns li {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  line-height: 1.45;
}

.toggle-desc {
  background: none;
  border: none;
  color: #8ab4ff;
  margin: 0 0 8px;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 720px) {
  .detail-modal { padding: 18px; }
  .detail-modal__content { padding: 22px; border-radius: 20px; }
  .detail-modal__head { grid-template-columns: 1fr; }
  .detail-modal__visual { width: 100%; max-width: 220px; height: 300px; }
  .detail-modal__custom-layer { min-height: 82px; margin-bottom: 12px; }
  .detail-modal__columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }
}


@media (max-height: 800px) {
  .hero {
    min-height: auto;
    height: auto;
  }

  .hero-content {
    margin-top: 72px;
    
    padding-bottom: 40px;
    transform: none;
  }

  #heroDesc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-buttons {
    margin-top: 12px;
  }
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content img,
.hero-logo {
  margin-bottom: 12px;
}


.hero-highlight,
.badges,
#heroDesc,
.hero-buttons {
  margin-left: 0;
}

.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end;
}

.hero-logo {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hero-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-highlight,
.badges,
#heroDesc,
.hero-buttons {
  margin-left: 0 !important;
  text-align: left !important;
}

.hero-info {
  margin-top: 0;
  padding-top: 0;
}
.btn-play.disabled {
  background: #444 !important;
  cursor: not-allowed;
  opacity: 0.7;
  color: white;
}
#playerBack {
  position: absolute;
  top: 50px;
  left: 20px;
  z-index: 9999;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
}

#playerBack:hover {
  background: rgba(0, 0, 0, 0.85);
}
#fullscreenPlayer {
  position: fixed;
  inset: 0;
  z-index: 9990;
}



#playerBack {
  
  position: absolute;
  top: 50px;
  left: 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(0, 0, 0, 0.7);
  color: #fff;

  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  z-index: 9999;

}
.fullscreen-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9990;
}



#playerBack {
 

  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;

  padding: 8px 14px;
  border-radius: 20px;

  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  z-index: 10000;
}


.player-frame-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.fullscreen-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none;
}


.player-top {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10000;

  pointer-events: none; 
}


#playerBack {
  pointer-events: auto; 
  
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;

  padding: 10px 16px;
  border-radius: 12px;

  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 270px;
}


#playerFrame {
  width: 100%;
  height: 100%;
  border: none;
}

.rainbow{
    animation: rgbcolor 3s linear infinite;
    font-weight: bold;
  opacity: 5.0;
}

@keyframes rgbcolor {
    0% { color: red; }
    22% {color: orange;}
    44% {color: yellow;}
    66% {color: green;}
    88% {color: blue;}
    100% {color: red;}
}


.new-carousel{
  position: relative;
  padding: 0 60px 30px; 
}

.new-carousel .new-slider{
  padding: 0; 
  overflow: hidden; 
  scrollbar-width: none;
}

.new-carousel .new-slider::-webkit-scrollbar{
  display: none;
}


.new-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 5;

  background: rgba(94, 91, 91, 0.45);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}

.new-arrow:hover{
  background: rgba(110, 109, 109, 0.65);
}

.new-arrow.left{ left: 10px; }
.new-arrow.right{ right: 10px; }


@media (max-width: 600px){
  .new-carousel{
    padding: 0 20px 20px;
  }
  .new-arrow{
    width: 38px;
    height: 68px;
  }
  .new-arrow.left{ left: 6px; }
  .new-arrow.right{ right: 6px; }
}




.movie-card, .new-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;

  transform: translateZ(0);
  will-change: transform;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94),
              box-shadow .25s ease;
}


.movie-card:hover, .new-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  z-index: 2;
}


.movie-card img, .new-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: opacity .3s ease;
}

.movie-card:hover img, .new-card:hover img {
  opacity: .75;
}


.card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 11px 11px;
  background: linear-gradient(to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.5) 50%,
    rgba(0,0,0,0) 100%);
  color: #fff;
  pointer-events: none;
  transition: background .25s ease;
}

.card-overlay.small { padding: 32px 9px 9px; }


.movie-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  transition: color .2s ease, font-size .2s ease;
}

.movie-card:hover .movie-name,
.new-card:hover .movie-name {
  color: #fbbf24;
  font-size: 14px;
}


.movie-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 4px;
  opacity: .9;
}
.movie-lang .tr-flag { width:16px; height:11px; object-fit:cover; border-radius:2px; }
.movie-lang i.far.fa-closed-captioning { font-size:14px; opacity:.9; }


.movie-meta-stack {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 4;
}

.movie-card:hover .movie-meta-stack,
.new-card:hover .movie-meta-stack {
  opacity: 1;
  transform: translateY(-50%);
}

.movie-genre-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.movie-genre-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.movie-runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.95);
  font-size: 12px;
  font-weight: 700;
}
.movie-runtime-chip i { font-size:11px; opacity:.85; }


.movie-top-badge {
  position: absolute;
  top: 8px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 7px;
  background: rgba(0,0,0,.65);
  color: #fff;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.movie-top-badge.left  { left: 8px; }
.movie-top-badge.right { right: 8px; }


.movie-card:hover .movie-top-badge,
.new-card:hover .movie-top-badge {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}


.card-title {
  font-size: 13px; font-weight: 700; line-height: 1.2;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-overlay.small .card-title { font-size: 12px; -webkit-line-clamp: 1; }
.card-meta { font-size: 11px; opacity:.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-overlay.small .card-meta { font-size: 10px; }

.movie-bottom-title { display:flex; align-items:flex-end; gap:6px; margin-bottom:3px; }

.new-carousel{
  --new-gap: 20px;
}

.new-carousel .new-slider{
  display: flex;
  gap: var(--new-gap);
  overflow: hidden;
  align-items: flex-start;
  cursor: grab;
}


.new-carousel .new-card{
  flex: 0 0 calc((100% - (6 * var(--new-gap))) / 7);
  max-width: calc((100% - (6 * var(--new-gap))) / 7);
  align-self: flex-start;
  height: auto !important;
  aspect-ratio: 2 / 3;
  display: block;
}

.new-carousel .new-card > img{
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.new-carousel .new-slider.is-dragging{
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}

.new-carousel .new-card .card-overlay.small{
  padding: 22px 8px 8px !important;
  min-height: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.58) 44%, rgba(0,0,0,.02) 100%) !important;
}

.new-carousel .new-card .movie-bottom-title .movie-name{
  min-height: 0 !important;
  line-height: 1.16;
}

.new-carousel .new-card .movie-lang{
  min-height: 0 !important;
}

@media (max-width: 1200px){
  .new-carousel .new-card{
    flex: 0 0 calc((100% - (4 * var(--new-gap))) / 5);
    max-width: calc((100% - (4 * var(--new-gap))) / 5);
  }
}

@media (max-width: 900px){
  .new-carousel{
    padding: 0 0 24px;
    --new-gap: 14px;
  }

  .new-carousel .new-slider{
    overflow-x: auto;
    padding: 0 30px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .new-carousel .new-card{
    flex: 0 0 calc((100% - (2 * var(--new-gap))) / 3);
    max-width: calc((100% - (2 * var(--new-gap))) / 3);
    scroll-snap-align: start;
  }

  .new-arrow{
    display: none;
  }
}

@media (max-width: 600px){
  .new-carousel{
    padding: 0 0 20px;
    --new-gap: 12px;
  }

  .new-carousel .new-slider{
    padding: 0 20px 4px;
  }

  .new-carousel .new-card{
    flex: 0 0 calc((100% - var(--new-gap)) / 2.35);
    max-width: calc((100% - var(--new-gap)) / 2.35);
  }
}



.movie-card, .search-card { position: relative; }

.lang-badges{
  position:absolute;
  left:10px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  background:rgba(0,0,0,.58);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color:#fff;
  font-size:12px;
  font-weight:800;
  z-index:5;
}

.lang-badges .tr-flag{
  font-size:14px;
  line-height:1;
}

.lang-badges i{
  font-size:16px;
  line-height:1;
}

.search-card .lang-badges{
  left:8px;
  bottom:8px;
  padding:5px 9px;
  border-radius:9px;
  font-size:11px;
}

.search-card .lang-badges i{ font-size:15px; }
.search-card .lang-badges .tr-flag{ font-size:13px; }


.movie-top-badge{
  position:absolute;
  top:10px;
  padding:4px 8px;
  font-size:12px;
  font-weight:800;
  border-radius:8px;
  background:rgba(0,0,0,.72);
  color:#fff;
  z-index:3;
  backdrop-filter: blur(6px);
}
.movie-top-badge.left{ left:10px; }
.movie-top-badge.right{ right:10px; }

.movie-bottom-title{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-bottom:6px;
}
.movie-bottom-title .movie-name{
  font-size:14px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.movie-bottom-title .movie-runtime{
  font-size:12px;
  opacity:.85;
  white-space:nowrap;
  flex:0 0 auto;
}

.movie-lang{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  opacity:.92;
  
}
.movie-lang .tr-flag{
  width:18px;
  height:12px;
  object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(255,255,255,.25);
}
.movie-lang i.far.fa-closed-captioning{
  font-size:16px;
  opacity:.95;
}


.search-card .card-overlay.small .movie-bottom-title .movie-name{
  font-size:12px;
  -webkit-line-clamp:1;
}
.search-card .card-overlay.small .movie-lang{
  font-size:11px;
}
.soon-badge {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
  border: 1px solid rgba(255,255,255,0.15);
  animation: pulseSoon 1.8s infinite ease-in-out;
}

@keyframes pulseSoon {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}


.legal-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.legal-modal.is-open{ display: flex; }

.legal-modal__dialog{
  width: min(920px, 92vw);
  max-height: 86vh;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
}

.legal-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.legal-modal__title{
  font-weight: 900;
  letter-spacing: .2px;
}
.legal-modal__close{
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.legal-modal__close:hover{
  background: rgba(255,255,255,.06);
}

.legal-modal__body{
  padding: 16px 16px 18px;
  overflow: auto;
  max-height: calc(86vh - 56px);
  line-height: 1.65;
  font-size: 14px;
  color: rgba(255,255,255,.90);
}

.legal-lead{ margin-bottom: 10px; }

.legal-hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 14px 0;
}

.legal-mail{
  font-weight: 900;
  color: #ff3b3b;
  text-decoration: none;
}
.legal-mail:hover{ text-decoration: underline; }

.legal-strong{
  font-weight: 900;
  color: #ff3b3b;
}

.legal-accent{
  font-weight: 900;
  color: #ff3b3b;
}

@media (max-width: 600px){
  .legal-modal__body{ font-size: 13px; }
}


.policy-list{
  margin: 10px 0 12px 18px;
}
.policy-list li{
  margin: 6px 0;
}
.policy-k{
  font-weight: 900;
  color: #ff3b3b;
}



.home-banner{
  width: 100%;
  margin-top: 72px; 
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(90deg, rgba(122,0,0,0.95), rgba(179,0,0,0.95));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.10);
  position: relative;
  z-index: 950;
}
.home-banner.info{
  background: linear-gradient(90deg, rgba(0,61,122,0.95), rgba(0,102,204,0.95));
}
@media (max-width: 600px){
  .home-banner{ padding: 12px 14px; font-size: 13px; }
}

.load-more-btn {
  background: rgba(43, 47, 58, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 45px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.load-more-btn:hover {
  border-color: #fff;
  background: rgba(229, 9, 20, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

.vizyon-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(255,255,255,0.15);
  animation: pulseSoon 1.8s infinite ease-in-out;
}



.search-hero{
  padding: 120px 60px 18px; 
}
.search-hero input{
  background: rgba(43, 47, 58, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-hero input:focus{
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 18px 70px rgba(0,0,0,0.45);
}
.search-meta{
  margin-top: 10px;
  padding: 0 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-meta .meta-left b{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}
.search-meta .meta-right{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.search-meta b{
  color: rgba(255,255,255,0.92);
}
.search-results{
  padding: 26px 60px 60px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.search-card{
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.search-card:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(0,0,0,0.55);
}
.search-card img{
  transition: transform .22s ease;
}
.search-card:hover img{
  transform: scale(1.06);
}
.search-empty{
  padding: 10px 60px 70px;
}
.search-empty-card{
  width: min(820px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 70px rgba(0,0,0,0.35);
}
.search-empty-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.22);
  margin-bottom: 10px;
}
.search-empty-icon i{
  font-size: 22px;
  color: rgba(229,9,20,0.95);
}
.search-empty-title{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}
.search-empty-text{
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.search-empty-text .hint{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}
@media (max-width: 900px){
  .search-results{ padding: 22px 30px 55px; }
  .search-empty{ padding: 10px 30px 60px; }
}
@media (max-width: 600px){
  .search-hero{ padding: 100px 20px 14px; }
  .search-results{ padding: 18px 15px 45px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .search-empty{ padding: 10px 15px 50px; }
}


.toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-group.compact {
  margin-left: 14px;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-bar-row #searchInput {
  flex: 1;
}

.filter-wrap,
.category-dropdown {
  position: relative;
}

.category-btn,
.filter-btn {
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(141, 133, 134, 0.11));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.category-btn .category-label {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-btn {
  width: 52px;
  justify-content: center;
  padding: 0;
}

.category-btn:hover,
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.category-menu,
.filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: radial-gradient(circle at top, rgba(18, 24, 38, 0.98), rgba(5, 6, 13, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 12px;
  display: none;
  z-index: 300;
}

.category-menu.open,
.filter-panel.open {
  display: block;
}

.cat-menu-btn,
.filter-chip,
.filter-panel button {
  width: 100%;
  border: none;
  background: #1a2233;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 13px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.cat-menu-btn:hover,
.filter-chip:hover,
.filter-panel button:hover {
  background: #202a3d;
  transform: translateY(-1px);
}

.cat-menu-btn.active,
.filter-chip.active {
  background: #e50914;
}

.filter-panel .filter-group {
  margin-bottom: 10px;
}

.filter-panel .filter-title {
  font-size: 13px;
  color: #bfc7d9;
  margin-bottom: 8px;
}

.filter-select {
  width: 100%;
  background: #1a2233;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.movie-meta-stack{
  position:absolute;
  top:46px;
  right:10px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  z-index:4;
}

.movie-genre-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}

.movie-genre-chip,.movie-runtime-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 10px;
  border-radius:8px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.92);
  font-size:11px;
  font-weight:700;
  letter-spacing:.2px;
}

.movie-runtime-chip i{font-size:11px;opacity:.8}


.hero-genre-chip,
.hero-runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(31, 41, 55, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
}

.hero-runtime-chip {
  margin-left: 10px;
}

.hero-info .badges {
  align-items: center;
}

.movie-bottom-title .movie-runtime {
  display: none;
}

.all-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.all-header .section-title {
  margin: 0;
}

.new-section .all-header {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .search-bar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-group.compact {
    margin-left: 0;
  }

  .toolbar-group {
    width: 100%;
  }

  .category-btn {
    flex: 1;
    justify-content: space-between;
  }
}



.fullscreen-player {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 28px;
  overflow: hidden;
  overscroll-behavior: contain;
}
.fullscreen-player.is-open {
  display: flex !important;
}
.fullscreen-player.is-m3u8 {
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.player-stage {
  position: relative;
  width: calc(100vw - 40px);
  height: calc(100vh - 136px);
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.fullscreen-player.is-m3u8 .player-stage {
  width: min(calc(100vw - 24px), calc((100dvh - 24px) * var(--player-stage-ratio, 1.77778)));
  height: min(calc(100dvh - 24px), calc((100vw - 24px) / var(--player-stage-ratio, 1.77778)));
  max-width: 100vw;
  max-height: 100dvh;
  aspect-ratio: var(--player-stage-ratio, 16 / 9);
  border-radius: 26px;
  box-shadow: 0 24px 90px rgba(0,0,0,.52);
}
.player-stage iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #000;
}
.fullscreen-player.native-fullscreen {
  padding: 0;
}

#fullscreenPlayer:fullscreen .player-stage,
#fullscreenPlayer:-webkit-full-screen .player-stage,
.fullscreen-player.native-fullscreen .player-stage {
  width: 100vw;
  height: 100dvh;
  aspect-ratio: unset;
  border-radius: 0;
  box-shadow: none;
}

.fullscreen-player .player-top {
  top: max(18px, calc(env(safe-area-inset-top, 0px) + 6px));
  left: max(18px, calc(env(safe-area-inset-left, 0px) + 6px));
}

.fullscreen-player #playerBack {
  position: relative;
  top: auto;
  left: auto;
  width: min(320px, calc(100vw - 44px));
  max-width: min(320px, calc(100vw - 44px));
  min-height: 38px;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10, 14, 24, .78);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.fullscreen-player #playerBack:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  background: rgba(16, 23, 36, .9);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06);
}

.fullscreen-player #playerTitle {
  display: inline-block;
  max-width: min(52vw, 240px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  text-align: center;
}
@media (max-width: 900px) {
  .fullscreen-player {
    padding: 82px 12px 20px;
  }
  .fullscreen-player.is-m3u8 {
    padding: 8px;
  }
  .player-stage {
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
    border-radius: 14px;
  }
  .fullscreen-player.is-m3u8 .player-stage {
    width: min(calc(100vw - 16px), calc((100dvh - 16px) * var(--player-stage-ratio, 1.77778)));
    height: min(calc(100dvh - 16px), calc((100vw - 16px) / var(--player-stage-ratio, 1.77778)));
    border-radius: 22px;
  }
  #playerBack {
    width: auto;
    max-width: calc(100vw - 24px);
  }
  .fullscreen-player #playerBack {
    width: min(280px, calc(100vw - 28px));
    max-width: min(280px, calc(100vw - 28px));
    padding: 10px 14px;
    border-radius: 14px;
  }
  .fullscreen-player #playerTitle {
    max-width: min(54vw, 180px);
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .fullscreen-player.is-m3u8 .player-stage {
    width: calc(100vw - 16px);
    height: min(calc(100dvh - 16px), max(246px, calc((100vw - 16px) / var(--player-stage-ratio, 1.77778))));
  }
}


#customHlsPlayer {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: default;
  overflow: hidden;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen) #playerVideo,
.fullscreen-player.is-m3u8:not(.native-fullscreen) #hdPlayerFrame,
.fullscreen-player.is-m3u8:not(.native-fullscreen) #hlsClickOverlay {
  inset: 0 0 82px 0;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen) .hls-controls {
  background: none;
  padding: 0 14px 12px;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen) .hls-bottom-row {
  max-width: calc(100% - 4px);
}
#playerVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #000;
}
#customHlsPlayer.fit-cover #playerVideo {
  object-fit: cover;
}
#customHlsPlayer.fit-contain #playerVideo,
#customHlsPlayer.fit-auto #playerVideo {
  object-fit: contain;
}
#hlsClickOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.hls-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 0 18px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.24) 34%, transparent 72%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
#customHlsPlayer:hover .hls-controls,
#customHlsPlayer.ctl-on .hls-controls {
  opacity: 1;
  pointer-events: auto;
}

.hls-progress-row {
  margin-bottom: 10px;
}
.hls-progress-bg {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  cursor: pointer;
  transition: height .15s;
}
.hls-progress-bg:hover {
  height: 8px;
  background: rgba(76,201,240,.2);
}
.hls-buffered {
  position: absolute;
  left:0; top:0; bottom:0;
  background: rgba(255,255,255,.22);
  border-radius: 3px;
  pointer-events: none;
}
.hls-progress {
  position: absolute;
  left:0; top:0; bottom:0;
  background: linear-gradient(90deg, #24c8ff, #63a4ff);
  border-radius: 3px;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(36,200,255,.28);
}
#hlsSeek {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  background: transparent;
}

#hlsSeek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0; height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
#hlsSeek::-moz-range-thumb {
  width: 0; height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hls-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  max-width: calc(100% - 6px);
  margin: 0 auto;
  padding: 9px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(11,16,28,.92), rgba(8,12,22,.8));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
}
.hls-left, .hls-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}
.hls-left { flex: 1 1 auto; }
.hls-right { flex: 0 0 auto; }
.hls-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.hls-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(125,211,252,.34); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,32,56,.24); }
.hls-btn svg {
  width: 22px; height: 22px;
  display: block;
  pointer-events: none;
}
.hls-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  outline: none;
  cursor: pointer;
  margin: 0 4px;
}
.hls-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.hls-time {
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-left: 2px;
  white-space: nowrap;
  min-width: 110px;
  font-variant-numeric: tabular-nums;
  opacity: .92;
}

.hls-lang-menu {
  position: absolute;
  bottom: 64px; right: 56px;
  background: rgba(12,14,22,.96);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  z-index: 20;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
}
.hls-lang-menu button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-family: 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.hls-lang-menu button:hover { background: rgba(0,180,255,.18); }
.hls-lang-menu button.active { color: #00b4ff; font-weight: 600; }


.hls-settings-menu {
  position: absolute;
  bottom: 66px; right: 56px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    rgba(10,12,20,.97);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  z-index: 25;
  min-width: 236px;
  box-shadow: 0 24px 54px rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
  padding: 12px;
}
.hls-settings-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 10px;
}
.hls-settings-tab {
  padding: 9px 10px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255,255,255,.72) !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
}
.hls-settings-tab.active {
  background: linear-gradient(135deg, rgba(125,211,252,.92), rgba(96,165,250,.86)) !important;
  color: #07111d !important;
  box-shadow: 0 6px 16px rgba(96,165,250,.18);
}
.hls-settings-panel {
  display: grid;
  gap: 8px;
}
.hls-settings-label {
  display: block;
  padding: 4px 4px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  font-family: 'Segoe UI', Arial, sans-serif;
  border-bottom: none;
}
.hls-settings-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-family: 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s, transform .15s;
  border-radius: 13px;
}
.hls-settings-menu button:hover { background: rgba(0,180,255,.14); border-color: rgba(125,211,252,.28); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14,27,47,.18); }
.hls-settings-menu button.active { color: #7dd3fc; font-weight: 700; border-color: rgba(125,211,252,.34); background: rgba(96,165,250,.14); box-shadow: inset 0 0 0 1px rgba(125,211,252,.08); }
.hls-settings-menu button.active::after {
  content: "Secili";
  float: right;
  font-size: 10px;
  font-weight: 800;
  color: rgba(214, 240, 255, .86);
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .hls-vol-slider { display: none; }
  .hls-controls { padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .hls-bottom-row { gap: 8px; padding: 7px 9px; border-radius: 16px; }
  .hls-left, .hls-right { gap: 4px; }
  .hls-btn { width: 34px; height: 34px; border-radius: 11px; }
  .hls-btn svg { width: 18px; height: 18px; }
  .hls-time { font-size: 11px; min-width: 72px; }
  .hls-settings-menu, .hls-lang-menu { right: 8px; bottom: 54px; }
  .hls-settings-menu { min-width: min(86vw, 250px); padding: 10px; }
  .hls-settings-tabs { gap: 4px; }
  .hls-settings-tab { font-size: 10px !important; padding: 8px 6px !important; }
}



:fullscreen .player-top,
:-webkit-full-screen .player-top,
:-moz-full-screen .player-top,
:-ms-fullscreen .player-top {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}
html {
  scrollbar-color: #db3214be #0e1014;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: var(--main-scrollbar-size);
  height: var(--main-scrollbar-size);
}

html::-webkit-scrollbar-track {
  background: #0e1014;
}

html::-webkit-scrollbar-thumb {
  background: #db3214be;
  border-radius: 999px;
}


#movyraLoadingOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
#movyraLoadingOverlay.mvl-visible {
  display: flex;
}
.mvl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mvl-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255,255,255,0.12);
  border-top-color: #00b4ff;
  border-radius: 50%;
  animation: mvl-spin 0.9s linear infinite;
}
@keyframes mvl-spin {
  to { transform: rotate(360deg); }
}
.mvl-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: 'Segoe UI', Arial, sans-serif;
  opacity: 0.85;
}


video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
video::-webkit-media-controls-panel {
  display: none !important;
}
video::-webkit-media-controls {
  display: none !important;
}
#playerVideo {
  -webkit-appearance: none;
}
#hlsProgressBg {
  position: relative;
}
.hls-seek-tooltip {
  position: absolute;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 12px;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding: 4px 8px;
  border-radius: 5px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
}
.hls-seek-tooltip.visible {
  opacity: 1;
}
.hls-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 5;
}
.hls-center-icon.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hls-center-icon svg {
  width: 32px;
  height: 32px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  background: none;
  border: none;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(11,17,29,0.98), rgba(8,12,22,0.98));
  z-index: 1001;
  padding: 80px 0 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.6);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-logo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  background: rgba(255,255,255,0.02);
}

.mobile-menu-logo-image {
  width: auto;
  height: 45px;
  object-fit: contain;
}

.mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.mobile-menu-close:hover {
  background: rgba(229,9,20,0.12);
  border-color: rgba(229,9,20,0.28);
  color: #fff;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(229,9,20,0.08);
  color: #fff;
  border-left-color: #e50914;
}
.mobile-menu a i { width: 20px; text-align: center; color: #e50914; }

@media (max-width: 768px) {
  .hamburger { display: flex !important; z-index: 1002; position: relative; margin-left: 10px; }
  .menu { display: none !important; }
  .nav-left { gap: 0; align-items: center; }
  .logo { font-size: 24px; }
  .logo-image { height: 32px; }
  .navbar { padding: 0 16px; height: 60px; }
  .nav-right { gap: 8px; font-size: 12px; }
  .nav-right > .fa-regular.fa-bell,
  .nav-right > .fa-solid.fa-bell,
  .nav-right > .fa-bell { width: 34px; height: 34px; font-size: 14px; }
  .avatar { width: 28px; height: 28px; font-size: 8px; }
  .about-link { font-size: 13px; padding: 9px 12px; }
  .hamburger.open { opacity: 0; pointer-events: none; }
}



@media (max-width: 600px) {
  .movie-card img, .new-card img {
    aspect-ratio: 2/3;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .movie-card, .new-card { border-radius: 8px; }
  .card-overlay {
    padding: 6px 5px 5px;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 8px 8px;
  }
  .movie-bottom-title {
    margin-bottom: 2px;
    gap: 4px;
  }
  .movie-bottom-title .movie-name {
    font-size: 10px;
    -webkit-line-clamp: 1;
    font-weight: 700;
  }
  .movie-bottom-title .movie-runtime { display: none; }
  .movie-lang { font-size: 9px; gap: 4px; }
  .movie-lang .tr-flag { width: 13px; height: 9px; }
  .movie-lang i.far.fa-closed-captioning { font-size: 11px; }
  .movie-top-badge {
    font-size: 9px !important;
    padding: 2px 5px !important;
    top: 6px !important;
    border-radius: 5px !important;
  }
  .movie-top-badge.left { left: 5px !important; }
  .movie-top-badge.right { right: 5px !important; }
}


@keyframes movyraRgbText {
  0%   { color: #ff0080; }
  16%  { color: #ff8c00; }
  33%  { color: #ffff00; }
  50%  { color: #40e0d0; }
  66%  { color: #0080ff; }
  83%  { color: #8b00ff; }
  100% { color: #ff0080; }
}
.rgb-text {
  animation: movyraRgbText 2s linear infinite !important;
  font-weight: inherit;
}

@media (max-width: 600px) {
  .movie-card:hover, .new-card:hover {
    transform: none;
    box-shadow: none;
  }
  .movie-card:hover img, .new-card:hover img {
    opacity: 1;
  }
  .movie-meta-stack {
    display: none; 
  }
  .movie-card:hover .movie-top-badge,
  .new-card:hover .movie-top-badge {
    opacity: 1;
  }
}


.new-card {
  flex-shrink: 0;
}


.search-card {
  overflow: hidden;
  border-radius: 12px;
  transform: translateZ(0);
  will-change: transform;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s ease;
}
.search-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  z-index: 2;
}
.search-card:hover img {
  opacity: .75;
  transform: none !important;
}
.search-card img {
  transition: opacity .3s ease;
}
.search-card:hover .movie-name {
  color: #fbbf24;
}
.search-card:hover .movie-meta-stack {
  opacity: 1;
  transform: translateY(-50%);
}
.search-card:hover .movie-top-badge {
  opacity: 0;
  transform: translateY(-4px);
}


.movie-card:hover .vizyon-badge,
.movie-card:hover .soon-badge,
.new-card:hover .vizyon-badge,
.new-card:hover .soon-badge,
.search-card:hover .vizyon-badge,
.search-card:hover .soon-badge {
  opacity: 1 !important;
  transform: none !important;
}


.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.season-tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.season-tab:hover { background: rgba(255,255,255,.14); color: #fff; }
.season-tab.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.episode-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  width: 100%;
}

.episode-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  white-space: nowrap;
}
.episode-btn:hover {
  background: rgba(229,9,20,.2);
  border-color: rgba(229,9,20,.5);
  color: #fff;
  transform: translateY(-2px);
}
.episode-btn.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.ep-scroll-wrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.ep-arrow { display: none; }



.season-episode-box {
  background: transparent;
  padding: 10px 0 18px;
  border-bottom: none;
  box-shadow: none;
}

.season-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.season-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: all .18s;
}
.season-tab:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.season-tab.active {
  background: #fff;
  color: #070b14;
  border-color: #fff;
}

.episode-list-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.episode-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.episode-btn:hover {
  background: rgba(229,9,20,.15);
  border-color: rgba(229,9,20,.35);
  color: #fff;
  transform: translateY(-1px);
}
.episode-btn.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.home-series-card .movie-meta-stack {
  opacity: 1;
  transform: none;
  position: static;
  display: block;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
}

.home-series-card .movie-lang i {
  font-size: 13px;
}

.home-series-modal__content {
  width: min(980px, 100%);
}

.home-series-modal .detail-modal__content,
.home-series-modal .season-tabs,
.home-series-modal .episode-list-wrap,
.home-series-modal .episode-list{
  scrollbar-width: thin;
  scrollbar-color: rgba(219,50,20,.72) rgba(14,16,20,.62);
}

.home-series-modal .detail-modal__content::-webkit-scrollbar,
.home-series-modal .season-tabs::-webkit-scrollbar,
.home-series-modal .episode-list-wrap::-webkit-scrollbar,
.home-series-modal .episode-list::-webkit-scrollbar{
  width: var(--main-scrollbar-size);
  height: var(--main-scrollbar-size);
}

.home-series-modal .detail-modal__content::-webkit-scrollbar-track,
.home-series-modal .season-tabs::-webkit-scrollbar-track,
.home-series-modal .episode-list-wrap::-webkit-scrollbar-track,
.home-series-modal .episode-list::-webkit-scrollbar-track{
  background: rgba(14,16,20,.62);
  border-radius: 999px;
}

.home-series-modal .detail-modal__content::-webkit-scrollbar-thumb,
.home-series-modal .season-tabs::-webkit-scrollbar-thumb,
.home-series-modal .episode-list-wrap::-webkit-scrollbar-thumb,
.home-series-modal .episode-list::-webkit-scrollbar-thumb{
  background: rgba(219,50,20,.72);
  border-radius: 999px;
}

.home-series-modal .detail-modal__logo {
  display: block !important;
}

.home-series-modal .detail-modal__description {
  max-height: none;
}

.home-series-picker {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.home-series-picker__group {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.home-series-picker__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.home-series-modal .episode-list-wrap {
  min-height: 0;
}

.episode-btn__number,
.episode-btn__meta {
  display: inline-block;
}

.episode-btn__meta {
  opacity: .92;
}

.home-series-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

@media (max-width: 768px) {
  .season-episode-box { padding: 8px 0 16px; }
  .home-series-modal {
    padding: 18px;
  }
  .home-series-modal__content {
    padding: 22px;
  }
  .home-series-picker {
    gap: 12px;
    margin-top: 16px;
  }
  .home-series-picker__group {
    padding: 14px;
    border-radius: 16px;
  }
}

.movie-card, .new-card, .search-card { overflow: hidden; }

.movie-corner-ribbon {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 63px; 
  height: 57px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
  transition: opacity .22s ease, transform .22s ease;
}

.movie-corner-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(135deg, #fff6b3 0%, #ffe14d 18%, #ffc400 55%, #f59e0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), inset 0 -8px 14px rgba(0,0,0,.15);
}

.movie-corner-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.08));
  opacity: .75;
}

.movie-corner-ribbon span {
  position: absolute;
  top: 5px;
  right: 5px;
  transform: rotate(45deg);
  color: #111;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}


.movie-card:hover .movie-corner-ribbon,
.new-card:hover .movie-corner-ribbon,
.search-card:hover .movie-corner-ribbon {
  opacity: 0;
  transform: translateY(-4px);
}


.movie-imdb-under-ribbon { 
  top: 52px !important; 
  right: 8px !important; 
}


@media (max-width: 600px) {
  .movie-corner-ribbon { width: 55px; height: 55px; }
  .movie-corner-ribbon span { top: 11px; right: 4px; font-size: 13px; }
  .movie-imdb-under-ribbon { top: 45px !important; right: 5px !important; }
 
  .movie-card:hover .movie-corner-ribbon,
  .new-card:hover .movie-corner-ribbon,
  .search-card:hover .movie-corner-ribbon { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .all-movies-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    align-items: start;
  }

  .movie-card {
    border-radius: 12px !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .movie-card img {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  .card-overlay {
    padding: 34px 8px 8px !important;
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.68) 42%,
      rgba(0, 0, 0, 0.08) 100%) !important;
    border-radius: 0 0 12px 12px !important;
  }

  .movie-bottom-title {
    margin-bottom: 4px !important;
    gap: 0 !important;
    display: block !important;
  }

  .movie-bottom-title .movie-name {
    font-size: 13px !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 32px;
  }

  .movie-bottom-title .movie-runtime {
    display: none !important;
  }

  .movie-lang {
    margin-top: 5px !important;
    gap: 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    opacity: 0.96 !important;
    flex-wrap: wrap;
  }

  .movie-lang .tr-flag {
    width: 14px !important;
    height: 10px !important;
  }

  .movie-lang i.far.fa-closed-captioning {
    font-size: 12px !important;
  }

  .movie-top-badge {
    top: 7px !important;
    padding: 3px 6px !important;
    font-size: 9px !important;
    border-radius: 7px !important;
  }

  .movie-top-badge.left {
    left: 7px !important;
  }

  .movie-top-badge.right {
    right: 7px !important;
  }

  .movie-corner-ribbon {
    width: 46px !important;
    height: 46px !important;
    top: -1px !important;
    right: -1px !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.22)) !important;
  }

  .movie-corner-ribbon span {
    top: 8px !important;
    right: 4px !important;
    font-size: 11px !important;
    letter-spacing: -.2px !important;
  }

  .movie-imdb-under-ribbon {
    top: 39px !important;
    right: 6px !important;
    transform: scale(0.88) !important;
    transform-origin: top right !important;
  }

  .movie-card:hover .movie-corner-ribbon,
  .new-card:hover .movie-corner-ribbon,
  .search-card:hover .movie-corner-ribbon {
    opacity: 1 !important;
    transform: none !important;
  }

  .movie-card:hover,
  .movie-card:hover img {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 380px) {
  .movies-grid {
    gap: 12px !important;
  }

  .movie-bottom-title .movie-name {
    font-size: 12px !important;
  }

  .card-overlay {
    padding: 30px 7px 7px !important;
  }
}


@media (max-width: 900px) {
  .all-movies-section,
  .search-hero,
  .all-header,
  .toolbar-group,
  .toolbar-group.compact,
  .search-bar-row,
  .filter-wrap,
  .category-dropdown {
    overflow: visible !important;
  }

  .toolbar-group,
  .toolbar-group.compact {
    position: relative !important;
    z-index: 60 !important;
  }

  .category-dropdown,
  .filter-wrap {
    position: relative !important;
  }

  .category-menu,
  .filter-panel {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
    width: min(280px, calc(100vw - 32px)) !important;
    min-width: min(280px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: min(52vh, 420px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 9999 !important;
  }

  .category-menu::-webkit-scrollbar,
  .filter-panel::-webkit-scrollbar {
    width: var(--main-scrollbar-size);
  }

  .category-menu::-webkit-scrollbar-thumb,
  .filter-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
  }
}

@media (max-width: 600px) {
  .all-header {
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .toolbar-group,
  .toolbar-group.compact {
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .category-dropdown {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .filter-wrap {
    flex: 0 0 52px !important;
  }


  .category-btn {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .category-menu,
  .filter-panel {
    left: 0 !important;
    right: auto !important;
    width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    border-radius: 16px !important;
    padding: 10px !important;
  }

  .filter-wrap .filter-panel {
    left: auto !important;
    right: 0 !important;
    width: min(280px, calc(100vw - 40px)) !important;
    min-width: min(280px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .cat-menu-btn,
  .filter-chip,
  .filter-panel button,
  .category-menu .filter-btn {
    padding: 12px 13px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 380px) {
  .category-menu,
  .filter-panel {
    width: calc(100vw - 24px) !important;
    min-width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .filter-wrap .filter-panel {
    width: min(260px, calc(100vw - 24px)) !important;
    min-width: min(260px, calc(100vw - 24px)) !important;
  }
}

.cat-menu-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(255,255,255,0.1);
}

.cat-special-btn {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cat-special-btn.cat-special--4k {
  border-color: rgba(120, 200, 255, 0.45);
  color: #9fd6ff;
}

.cat-special-btn.cat-special--4k.active {
  background: rgba(120, 200, 255, 0.18);
  border-color: rgba(160, 220, 255, 0.55);
}

.cat-special-btn.cat-special--dub {
  border-color: rgba(80, 220, 160, 0.45);
  color: #8cf0c8;
}

.cat-special-btn.cat-special--dub.active {
  background: rgba(80, 220, 160, 0.16);
  border-color: rgba(120, 240, 190, 0.55);
}

.cat-special-btn.cat-special--yerli {
  border-color: rgba(255, 120, 100, 0.45);
  color: #ffb8a8;
}

.cat-special-btn.cat-special--yerli.active {
  background: rgba(255, 120, 100, 0.16);
  border-color: rgba(255, 160, 140, 0.55);
}

.cat-special-btn.cat-special--dizi {
  border-color: rgba(200, 160, 255, 0.45);
  color: #d8c4ff;
}

.cat-special-btn.cat-special--dizi.active {
  background: rgba(200, 160, 255, 0.14);
  border-color: rgba(220, 190, 255, 0.55);
}

.search-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
}

.search-load-more-btn {
   background: rgba(43, 47, 58, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 45px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-load-more-btn:hover {
   border-color: #fff;
  background: rgba(229, 9, 20, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}



.movie-meta-stack {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 4;
}

.movie-card:hover .movie-meta-stack,
.new-card:hover .movie-meta-stack,
.search-card:hover .movie-meta-stack {
  opacity: 1;
  transform: translateY(-50%);
}

.movie-genre-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.movie-genre-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.movie-runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.95);
  font-size: 12px;
  font-weight: 700;
}
.movie-runtime-chip i { font-size: 11px; opacity: .85; }


.movie-card:hover .movie-name,
.new-card:hover .movie-name,
.search-card:hover .movie-name {
  color: #fbbf24;
}


.movie-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge),
.new-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge),
.search-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge) {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}




.movie-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge),
.new-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge),
.search-card:hover .movie-top-badge:not(.vizyon-badge):not(.soon-badge){
  opacity: 1 !important;
  transform: none !important;
}
.movie-card:hover .movie-corner-ribbon,
.new-card:hover .movie-corner-ribbon,
.search-card:hover .movie-corner-ribbon{
  opacity: 1 !important;
  transform: none !important;
}
.movie-meta-stack{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 5px 0 0 !important;
  opacity: 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.50s ease, max-height .50s ease, margin-top .50s ease;
  z-index: auto !important;
}
.movie-card:hover .movie-meta-stack,
.new-card:hover .movie-meta-stack,
.search-card:hover .movie-meta-stack{
  opacity: 1 !important;
  max-height: 36px;
}
.movie-meta-line{
  font-size: 14px;
  line-height: 1.25;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-overlay{
  display: flex;
  flex-direction: column;
}
.movie-bottom-title{ margin-bottom: 0 !important; }
.movie-lang{ margin-top: 4px !important; }
.vizyon-badge + .movie-corner-ribbon + .movie-top-badge + .card-overlay .movie-meta-stack,
.soon-badge + .movie-corner-ribbon + .movie-top-badge + .card-overlay .movie-meta-stack{
  display:none !important;
}
.movie-card .vizyon-badge ~ .card-overlay .movie-meta-stack,
.movie-card .soon-badge ~ .card-overlay .movie-meta-stack,
.new-card .vizyon-badge ~ .card-overlay .movie-meta-stack,
.new-card .soon-badge ~ .card-overlay .movie-meta-stack,
.search-card .vizyon-badge ~ .card-overlay .movie-meta-stack,
.search-card .soon-badge ~ .card-overlay .movie-meta-stack{
  display:none !important;
}
.hero-meta-box{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(55, 58, 66, 0.7);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
}
.detail-modal__logo{ display:none !important; }
#modalMeta{
  color: #ffffff;
  opacity: 0.6;
  line-height:1.5;
  margin-top: 4px;

}
.detail-modal__stats span,
.detail-modal__columns h4{
  color: #f4c542 !important;
}
.detail-modal__columns > div{
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}



.series-season-hover{
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  z-index: 4;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100% - 20px);
  white-space: nowrap;
}
.series-season-hover.has-imdb{
  top: 42px;
}
.movie-card:hover .series-season-hover,
.search-card:hover .series-season-hover,
.new-card:hover .series-season-hover{
  opacity: 1;
  transform: translateY(0);
}

.search-load-more-wrap{
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 0 8px;
}

.copyright-card .movie-meta-stack,
.copyright-card .series-season-hover {
  display: none !important;
}

.copyright-card .movie-lang {
  margin-top: 6px;
}

.copyright-hover-text {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.copyright-card img,
.copyright-card:hover img,
.new-card.copyright-card img,
.new-card.copyright-card:hover img,
.search-card.copyright-card img,
.search-card.copyright-card:hover img {
  transition: opacity .3s ease, filter .3s ease, transform .3s ease !important;
}

.copyright-card:hover img,
.new-card.copyright-card:hover img,
.search-card.copyright-card:hover img {
  opacity: 0.58 !important;
  filter: blur(3px) saturate(.72);
  transform: scale(1.04);
}

.copyright-card:hover .copyright-hover-text,
.new-card.copyright-card:hover .copyright-hover-text,
.search-card.copyright-card:hover .copyright-hover-text {
  opacity: 1;
  transform: translateY(-50%) scale(1.01);
}

.copyright-card:hover .movie-name,
.new-card.copyright-card:hover .movie-name,
.search-card.copyright-card:hover .movie-name {
  color: #fff !important;
  font-size: inherit !important;
}

.hero-buttons .is-hidden-by-policy {
  display: none !important;
}

.hero-policy-note{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.5), rgba(69, 10, 10, 0.32));
  color: #ffe4e6;
  box-shadow: 0 16px 30px rgba(20, 2, 2, 0.24);
  backdrop-filter: blur(10px);
}

.hero-policy-note i{
  color: #fda4af;
  font-size: 15px;
  line-height: 1.4;
  margin-top: 2px;
}

.hero-policy-note span{
  font-size: 13px;
  line-height: 1.55;
}
.search-load-more-btn{
  min-width: 255px;
  border-radius: 10px;
  padding: 16px 45px;
  font-size: 16px;
  font-weight: 600;
}
.search-load-more-btn i{
  margin-left: 8px;
  font-size: 14px;
}

@media (max-width: 768px){
  .series-season-hover{
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 7px;
  }
  .series-season-hover.has-imdb{
    top: 28px;
  }
  .search-load-more-wrap{
    padding: 22px 0 6px;
  }
  .search-load-more-btn{
    min-width: 0;
    width: auto;
    max-width: calc(100% - 24px);
    padding: 14px 26px;
    font-size: 15px;
  }
}

.player-choice-screen{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(56,189,248,.12), transparent 32%),
    linear-gradient(135deg, rgba(4,7,16,.94), rgba(4,7,16,.84));
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .18s ease;
  backdrop-filter: blur(14px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.player-choice-screen.is-open{
  opacity: 1;
}

.player-choice-shell{
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 28px));
  margin: auto;
  padding: 18px 18px 14px;
  border-radius: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(12,15,25,.92), rgba(8,11,19,.88));
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.player-choice-shell.choice-count-2{
  width: min(560px, calc(100vw - 28px));
}
.player-choice-shell.choice-count-3{
  width: min(760px, calc(100vw - 28px));
}
.player-choice-shell.choice-count-4{
  width: min(920px, calc(100vw - 28px));
}

.player-choice-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.player-choice-close:hover{
  transform: scale(1.04);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.24);
}

.player-choice-eyebrow{
  margin-bottom: 8px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.player-choice-title{
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  max-width: 460px;
}

.player-choice-subtitle{
  margin-top: 8px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
}

.player-choice-grid{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.player-choice-grid.is-compact-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}
.player-choice-grid.is-compact-4{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  gap: 8px;
}
.player-choice-grid.is-compact-2 .player-choice-card{
  flex: initial;
  min-width: 0;
  max-width: none;
  width: 100%;
}
.player-choice-grid.is-compact-4 .player-choice-card{
  flex: initial;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.player-choice-card{
  --choice-border: rgba(255,255,255,.12);
  --choice-border-hover: rgba(255,255,255,.28);
  --choice-glow: rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 11px;
  border-radius: 16px;
  box-sizing: border-box;
  flex: 0 0 182px;
  min-width: 182px;
  max-width: 198px;
  border: 1px solid var(--choice-border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 198px);
  justify-self: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
  animation: playerChoiceIn .26s ease both;
}

@media (min-width: 769px) {
  .player-choice-grid.is-compact-3{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 8px;
  }
  .player-choice-grid.is-compact-3 .player-choice-card{
    flex: initial;
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

.player-choice-card:hover{
  transform: translateY(-4px);
  border-color: var(--choice-border-hover);
  box-shadow: 0 22px 40px rgba(0,0,0,.28), 0 0 0 1px var(--choice-glow);
  filter: saturate(1.08);
}

.player-choice-card.tone-gold{
  --choice-border: rgba(250,204,21,.2);
  --choice-border-hover: rgba(252,211,77,.7);
  --choice-glow: rgba(250,204,21,.18);
  background: linear-gradient(180deg, rgba(250,204,21,.18), rgba(255,255,255,.04));
}

.player-choice-card.tone-sky{
  --choice-border: rgba(56,189,248,.22);
  --choice-border-hover: rgba(125,211,252,.72);
  --choice-glow: rgba(56,189,248,.18);
  background: linear-gradient(180deg, rgba(56,189,248,.18), rgba(255,255,255,.04));
}

.player-choice-card.tone-red{
  --choice-border: rgba(248,113,113,.22);
  --choice-border-hover: rgba(252,165,165,.72);
  --choice-glow: rgba(248,113,113,.18);
  background: linear-gradient(180deg, rgba(248,113,113,.18), rgba(255,255,255,.04));
}

.player-choice-order{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.player-choice-icon{
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.player-choice-icon i{
  font-size: 28px;
}

.player-choice-copy{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.player-choice-copy strong{
  font-size: 15px;
  line-height: 1.15;
}

.player-choice-copy small{
  color: rgba(255,255,255,.74);
  font-size: 10px;
  line-height: 1.45;
}

.player-choice-open{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 70px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.player-choice-card:hover .player-choice-open{
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.18);
}

.player-choice-open:hover{
  border-color: rgba(255,255,255,.7) !important;
  background: rgba(255,255,255,.24) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.player-choice-cancel{
  margin-top: 10px;
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.player-choice-cancel:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

@keyframes playerChoiceIn{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px){
  .player-choice-screen{
    align-items: flex-start;
    padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .player-choice-shell{
    width: calc(100vw - 20px);
    padding: 14px 12px 12px;
    border-radius: 16px;
    max-height: calc(100dvh - 28px);
  }

  .player-choice-close{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .player-choice-grid{
    gap: 8px;
    padding-bottom: 2px;
  }
  .player-choice-grid.is-compact-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-choice-grid.is-compact-4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .player-choice-card{
    min-height: 108px;
    border-radius: 14px;
    min-width: 154px;
    max-width: 164px;
  }
  .player-choice-grid.is-compact-2 .player-choice-card{
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .player-choice-copy strong{
    font-size: 16px;
  }

  .hero-policy-note{
    padding: 11px 12px;
    border-radius: 14px;
  }

  .hero-policy-note span{
    font-size: 12px;
  }
}

body.choice-overlay-open .sw-fab,
body.choice-overlay-open .sw-wrap{
  display:none !important;
}

.movie-card,
.new-card,
.search-card{
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: 280px 420px;
}

.season-episode-box{
  display: grid;
  gap: 8px;
  padding: 10px 0 18px;
}

.season-picker,
.episode-picker{
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.season-picker-title,
.episode-picker-title{
  display: none;
}

.season-picker .season-tabs,
.episode-picker .episode-list-wrap{
  margin-bottom: 0;
}

.episode-picker .episode-list-wrap{
  min-height: 0;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen) #playerVideo,
.fullscreen-player.is-m3u8:not(.native-fullscreen) #hdPlayerFrame,
.fullscreen-player.is-m3u8:not(.native-fullscreen) #hlsClickOverlay{
  inset: 0 0 96px 0;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen) .hls-controls{
  padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.hls-settings-menu,
.hls-lang-menu{
  max-width: min(320px, calc(100vw - 24px));
}

.hls-settings-menu{
  max-height: min(58dvh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}

@media (hover: none), (pointer: coarse){
  .movie-card,
  .new-card,
  .search-card{
    transition: none !important;
    will-change: auto !important;
  }

  .movie-card:hover,
  .new-card:hover,
  .search-card:hover{
    transform: none !important;
    box-shadow: none !important;
  }

  .movie-card:hover img,
  .new-card:hover img,
  .search-card:hover img{
    opacity: 1 !important;
    transform: none !important;
  }

  .movie-card:hover .movie-meta-stack,
  .new-card:hover .movie-meta-stack,
  .search-card:hover .movie-meta-stack,
  .movie-card:hover .movie-top-badge,
  .new-card:hover .movie-top-badge,
  .search-card:hover .movie-top-badge,
  .movie-card:hover .series-season-hover,
  .search-card:hover .series-season-hover{
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px){
  .season-episode-box { padding: 8px 0 16px; }
}

.detail-only-section{
  padding: 38px 60px 0;
}

.detail-section-head{
  width: 100%;
  margin: 0 0 18px;
  padding: 0 60px;
}

.detail-section-title{
  margin: 0;
  padding: 0;
}

body.movie-detail-mode .all-movies-section,
body.movie-detail-mode #moviesLoadMoreBtn{
  display: none !important;
}

body.movie-detail-mode .page-content{
  padding-bottom: 40px;
}

.detail-recommend-section{
  padding-top: 34px;
}

.detail-recommend-carousel{
  width: 100%;
  margin: 0;
  padding: 0 60px 30px;
}

.detail-recommend-slider{
  gap: 18px !important;
}

.detail-recommend-card{
  min-width: 190px;
  max-width: 190px;
}

.detail-recommend-card .movie-name{
  font-size: 14px;
  line-height: 1.28;
}

.detail-comments-section{
  padding-left: 28px;
  padding-right: 28px;
  padding-bottom: 20px;
}

.detail-comments-section .detail-section-head{
  padding: 0 0 0 4px;
}

.detail-comments-layout{
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.comment-form,
.comment-feed{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.95), rgba(10, 14, 24, 0.94));
  box-shadow: 0 20px 46px rgba(0,0,0,.22);
}

.comment-form{
  padding: 24px;
}

.comment-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comment-field{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.comment-field span{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.comment-field input,
.comment-field textarea{
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.comment-field textarea{
  resize: vertical;
  min-height: 138px;
}

.comment-field input:focus,
.comment-field textarea:focus{
  border-color: rgba(251, 191, 36, .6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .08);
}

.comment-spoiler-row{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.comment-rating-field{
  margin-bottom: 16px;
}

.comment-rating-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-rating-head span{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.comment-rating-clear{
  border: none;
  background: transparent;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.comment-rating-clear:hover{
  color: rgba(255,255,255,.9);
}

.comment-rating{
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
}

.rating-star{
  --fill: 0%;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.rating-star-base,
.rating-star-fill{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  pointer-events: none;
}

.rating-star-base{
  color: rgba(255,255,255,.18);
}

.rating-star-fill{
  width: var(--fill);
  overflow: hidden;
  color: #f6c453;
  text-shadow: 0 0 12px rgba(246,196,83,.18);
}

.comment-rating-value{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

.comment-spoiler-row input{
  width: 18px;
  height: 18px;
  accent-color: #fbbf24;
}

.comment-form-actions{
  margin-top: 18px;
}

.comment-submit-btn{
  min-width: 150px;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #ffffff, #e8edf7);
  color: #09101d;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.comment-submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255,255,255,.12);
}

.comment-submit-btn:disabled{
  opacity: .72;
  cursor: wait;
}

.comment-form-message{
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.comment-form-message[data-tone="success"]{
  color: #86efac;
}

.comment-form-message[data-tone="error"]{
  color: #fca5a5;
}

.comment-feed{
  padding: 24px;
}

.detail-comments-feed-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-comments-feed-head h3{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.comments-count{
  font-size: 13px;
  color: rgba(255,255,255,.66);
}

.comments-empty,
.detail-state-card{
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.72);
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.comments-list{
  display: grid;
  gap: 14px;
}

.comment-card{
  position: relative;
  padding: 18px 18px 56px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.96), rgba(11, 15, 23, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.comment-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.comment-identity{
  display: grid;
  gap: 5px;
}

.comment-author-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-avatar{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(148,163,184,.12));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.comment-name-meta{
  display: grid;
  gap: 4px;
}

.comment-author-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(163, 184, 214, .78);
}

.comment-name{
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.comment-email,
.comment-date{
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

.comment-meta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.comment-spoiler-badge{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .18);
  color: #f7c36b;
  font-size: 12px;
  font-weight: 800;
}

.comment-rating-badge{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #f3d07a;
  font-size: 12px;
  font-weight: 800;
}

.comment-body-wrap{
  margin-top: 2px;
  padding: 14px 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.016));
}

.comment-body-label{
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
}

.comment-inline-spoiler-note{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .18);
  background: rgba(245, 158, 11, .10);
  color: #f5c86c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.comment-inline-spoiler-note.reply{
  border-color: rgba(125, 211, 252, .16);
  background: rgba(125, 211, 252, .08);
  color: #d6ecff;
}

.comment-body{
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  transition: filter .25s ease, opacity .25s ease;
}

.comment-card.is-spoiler .comment-body{
  filter: blur(8px);
  opacity: .5;
  user-select: none;
}

.comment-card.is-spoiler.is-revealed .comment-body{
  filter: none;
  opacity: 1;
  user-select: text;
}

.comment-reveal-btn{
  position: absolute;
  left: 16px;
  bottom: 14px;
  min-width: 92px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.comment-reveal-btn:hover{
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}

.comment-reaction-bar{
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-reaction-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.comment-reaction-btn:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #fff;
  transform: translateY(-1px);
}

.comment-reaction-btn:disabled{
  opacity: .7;
  cursor: wait;
  transform: none;
}

.comment-reaction-btn i{
  font-size: 13px;
}

.comment-reaction-btn span{
  font-size: 12px;
  font-weight: 800;
}

.comment-reaction-btn.is-active{
  color: #fff;
  border-color: rgba(125,211,252,.18);
  background: rgba(125,211,252,.10);
}

.comment-reply{
  position: relative;
  margin-top: 16px;
  padding: 14px 16px 56px;
  border-radius: 18px;
  border: 1px solid rgba(124, 140, 168, .16);
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.95), rgba(10, 16, 26, 0.97));
}

.comment-reply-head{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.comment-mod-badge{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, .14);
  border: 1px solid rgba(125, 211, 252, .16);
  color: #d7f0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.comment-reply-spoiler-badge{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .18);
  color: #f7c36b;
  font-size: 12px;
  font-weight: 800;
}

.comment-reply-date{
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

.comment-reply-body-wrap{
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}

.comment-reply-label{
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(186, 224, 255, .76);
}

.comment-reply-body{
  color: rgba(232, 238, 252, .95);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  transition: filter .25s ease, opacity .25s ease;
}

.comment-reply.is-spoiler .comment-reply-body{
  filter: blur(8px);
  opacity: .5;
  user-select: none;
}

.comment-reply.is-spoiler.is-revealed .comment-reply-body{
  filter: none;
  opacity: 1;
  user-select: text;
}

.comment-reply-reveal-btn{
  bottom: 12px;
}

@media (max-width: 1100px){
  .detail-comments-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .detail-only-section{
    padding: 28px 18px 0;
  }

  .detail-section-head{
    padding: 0 18px;
  }

  .detail-recommend-carousel{
    padding: 0 18px 24px;
  }

  .detail-recommend-slider{
    gap: 12px !important;
  }

  .detail-recommend-card{
    min-width: 148px;
    max-width: 148px;
  }

  .comment-form,
  .comment-feed{
    border-radius: 20px;
  }

  .comment-form,
  .comment-feed{
    padding: 18px;
  }

  .detail-comments-section{
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-comments-section .detail-section-head{
    padding: 0;
  }

  .comment-form-grid{
    grid-template-columns: 1fr;
    gap: 0;
  }

  .detail-comments-feed-head{
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-card{
    padding: 16px 16px 52px;
  }

  .comment-card-head{
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-meta{
    justify-content: flex-start;
  }

  .comment-author-row{
    gap: 10px;
  }

  .comment-avatar{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }
}

@media (max-width: 640px){
  .fullscreen-player.is-m3u8:not(.native-fullscreen) #playerVideo,
  .fullscreen-player.is-m3u8:not(.native-fullscreen) #hdPlayerFrame,
  .fullscreen-player.is-m3u8:not(.native-fullscreen) #hlsClickOverlay{
    inset: 0 0 144px 0;
  }

  .fullscreen-player.is-m3u8:not(.native-fullscreen) #playerVideo,
  .fullscreen-player.is-m3u8:not(.native-fullscreen) #hdPlayerFrame{
    object-position: center top;
  }

  .hls-progress-row{
    margin-bottom: 8px;
    padding: 0 2px;
  }

  .hls-settings-menu,
  .hls-lang-menu{
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    transform: none;
  }

  .hls-settings-menu{
    width: auto;
    max-width: none;
    max-height: min(52dvh, 380px);
    overflow: hidden;
  }

  .hls-lang-menu{
    min-width: auto;
  }

  .hls-settings-panel{
    max-height: calc(min(52dvh, 380px) - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .hls-settings-panel::-webkit-scrollbar{
    width: var(--main-scrollbar-size);
  }

  .hls-settings-panel::-webkit-scrollbar-thumb{
    background: rgba(125,211,252,.32);
    border-radius: 999px;
  }
}

.fullscreen-player.force-landscape {
  padding: 0 !important;
  background: #000;
  align-items: center;
  justify-content: center;
}

.fullscreen-player.force-landscape .player-top {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fullscreen-player.force-landscape .player-stage {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100dvh !important;
  height: 100dvw !important;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

.fullscreen-player.force-landscape #customHlsPlayer,
.fullscreen-player.force-landscape #playerVideo,
.fullscreen-player.force-landscape #hdPlayerFrame,
.fullscreen-player.force-landscape #hlsClickOverlay {
  border-radius: 0 !important;
}

.fullscreen-player.force-landscape #playerVideo,
.fullscreen-player.force-landscape #hdPlayerFrame,
.fullscreen-player.force-landscape #hlsClickOverlay {
  inset: 0 0 110px 0 !important;
  object-position: center center !important;
}

.fullscreen-player.force-landscape .hls-controls {
  padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

.fullscreen-player.force-landscape .hls-settings-menu,
.fullscreen-player.force-landscape .hls-lang-menu {
  left: auto;
  right: 12px;
  top: 12px;
  bottom: auto;
  transform: none;
  max-width: min(320px, calc(100dvh - 24px));
}

.fullscreen-player.force-landscape .hls-settings-menu {
  max-height: min(70dvw, 360px);
}

.season-picker + .episode-picker {
  margin-top: 8px;
}

.season-tabs {
  gap: 10px;
  margin-bottom: 0;
}

.episode-list-wrap,
.episode-list {
  gap: 10px;
}

.season-tab {
  min-width: 64px;
  padding: 7px 18px;
}

.episode-btn {
  min-width: 84px;
  padding: 8px 16px;
}

@media (max-width: 430px){
  .movies-grid,
  .search-results{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .movie-card,
  .search-card{
    border-radius: 14px;
  }

  .movie-card img,
  .search-card img{
    border-radius: 14px;
  }

  .card-overlay,
  .search-card .card-overlay.small{
    padding: 34px 10px 10px;
  }

  .movie-bottom-title .movie-name,
  .search-card .card-overlay.small .movie-bottom-title .movie-name{
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .movie-lang,
  .search-card .card-overlay.small .movie-lang{
    font-size: 10px;
    gap: 6px;
  }

  .movie-top-badge{
    top: 8px;
    padding: 4px 7px;
    font-size: 10px;
  }
}


@media (max-width: 640px){
  .search-results{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 18px 14px 44px !important;
  }

  .movies-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .search-card,
  .movie-card{
    border-radius: 16px;
  }

  .search-card img,
  .movie-card img{
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
  }

  .search-card .card-overlay.small,
  .movie-card .card-overlay{
    padding: 38px 10px 10px;
  }

  .search-card .movie-bottom-title .movie-name,
  .movie-card .movie-bottom-title .movie-name{
    font-size: 12px;
    line-height: 1.14;
    -webkit-line-clamp: 2;
  }

  .search-card .movie-lang,
  .movie-card .movie-lang{
    font-size: 10px;
    gap: 6px;
    margin-top: 5px;
  }

  .search-card .movie-lang .tr-flag,
  .movie-card .movie-lang .tr-flag{
    width: 14px;
    height: 10px;
  }

  .search-card .movie-top-badge,
  .movie-card .movie-top-badge{
    top: 8px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 10px;
  }

  .hls-controls{
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(0,0,0,.84) 0%, rgba(0,0,0,.34) 38%, transparent 72%);
  }

  .hls-progress-row{
    margin-bottom: 6px;
    padding: 0 4px;
  }

  .hls-progress-bg{
    height: 4px;
    background: rgba(255,255,255,.18);
  }

  .hls-progress-bg:hover{
    height: 5px;
  }

  .hls-progress{
    background: #ff2a2a;
    box-shadow: 0 0 10px rgba(255,42,42,.28);
  }

  .hls-bottom-row{
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(9,12,18,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
  }

  .hls-left,
  .hls-right{
    gap: 5px;
  }

  .hls-btn{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
  }

  .hls-time{
    min-width: 82px;
    font-size: 11px;
  }

  .hls-settings-menu{
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: min(50dvh, 320px);
    border-radius: 16px;
    padding: 10px;
    overflow: hidden;
  }

  .hls-settings-tabs{
    margin-bottom: 8px;
  }

  .hls-settings-panel{
    max-height: calc(min(50dvh, 320px) - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .hls-settings-panel::-webkit-scrollbar{
    width: var(--main-scrollbar-size);
  }

  .hls-settings-panel::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.3);
    border-radius: 999px;
  }

  .hls-settings-menu button{
    position: relative;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .hls-settings-menu button.active{
    color: #d9efff;
    background: rgba(96,165,250,.14);
  }

  .hls-settings-menu button.active::after{
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
  }

  .hls-settings-menu button.active::before{
    content: none;
  }
}

/* Final player skin override */
.fullscreen-player.is-m3u8 {
  --player-controls-space: 108px;
}

.fullscreen-player.is-m3u8:not(.native-fullscreen):not(.force-landscape) #playerVideo,
.fullscreen-player.is-m3u8:not(.native-fullscreen):not(.force-landscape) #hdPlayerFrame,
.fullscreen-player.is-m3u8:not(.native-fullscreen):not(.force-landscape) #hlsClickOverlay {
  inset: 0 0 var(--player-controls-space) 0 !important;
}

.fullscreen-player.is-m3u8 .hls-controls {
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 38%, transparent 75%) !important;
}

.fullscreen-player.is-m3u8 .hls-progress-row {
  width: 100%;
  margin: 0 0 8px;
  padding: 0 2px;
}

.fullscreen-player.is-m3u8 .hls-progress-bg {
  height: 5px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
}

.fullscreen-player.is-m3u8 .hls-progress-bg:hover {
  height: 5px;
  background: rgba(255,255,255,.22);
}

.fullscreen-player.is-m3u8 .hls-buffered {
  background: rgba(255,255,255,.24);
}

.fullscreen-player.is-m3u8 .hls-progress {
  background: linear-gradient(90deg, #ff3333, #ff3d3d);
  box-shadow: 0 0 10px rgba(255,51,51,.22);
}

.fullscreen-player.is-m3u8 .hls-bottom-row {
  min-height: 52px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(13,18,29,.96), rgba(9,13,22,.94));
  box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.fullscreen-player.is-m3u8 .hls-left,
.fullscreen-player.is-m3u8 .hls-right {
  gap: 6px;
}

.fullscreen-player.is-m3u8 .hls-right {
  margin-left: auto;
}

.fullscreen-player.is-m3u8 .hls-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.fullscreen-player.is-m3u8 .hls-btn svg {
  width: 20px;
  height: 20px;
}

.fullscreen-player.is-m3u8 .hls-time {
  min-width: 112px;
  margin-left: 4px;
  font-size: 13px;
}

.fullscreen-player.is-m3u8 .hls-settings-menu,
.fullscreen-player.is-m3u8 .hls-lang-menu {
  top: 14px;
  bottom: auto;
  right: 14px;
  left: auto;
  transform: none;
  border-radius: 16px;
}

.fullscreen-player.is-m3u8 .hls-settings-menu {
  width: min(320px, calc(100% - 28px));
  max-width: min(320px, calc(100% - 28px));
  max-height: min(62vh, calc(100% - 28px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
}

.fullscreen-player.is-m3u8 .hls-settings-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(28,31,39,.96);
}

.fullscreen-player.is-m3u8 .hls-settings-tab {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 10px 8px !important;
  border-radius: 11px !important;
}

.fullscreen-player.is-m3u8 .hls-settings-panel {
  display: grid;
  gap: 8px;
  max-height: none !important;
  overflow: visible !important;
}

.fullscreen-player.is-m3u8 .hls-settings-menu button {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
}

.fullscreen-player.is-m3u8 .hls-settings-menu button.active {
  color: #d9efff;
  background: rgba(96,165,250,.16);
}

.fullscreen-player.is-m3u8 .hls-settings-menu button.active::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
}

.fullscreen-player.is-m3u8 .hls-settings-menu::-webkit-scrollbar {
  width: var(--main-scrollbar-size);
}

.fullscreen-player.is-m3u8 .hls-settings-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.26);
  border-radius: 999px;
}

.fullscreen-player.force-landscape {
  --player-controls-space: 102px;
}

.fullscreen-player.force-landscape .player-stage {
  overflow: hidden;
}

.fullscreen-player.force-landscape #playerVideo,
.fullscreen-player.force-landscape #hdPlayerFrame,
.fullscreen-player.force-landscape #hlsClickOverlay {
  inset: 0 0 var(--player-controls-space) 0 !important;
}

.fullscreen-player.force-landscape .hls-controls {
  padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

.fullscreen-player.force-landscape .hls-settings-menu {
  max-height: calc(100% - 28px);
  overflow-y: auto;
}

@media (max-width: 640px) {
  .fullscreen-player.is-m3u8 {
    --player-controls-space: 118px;
  }

  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row {
    margin-bottom: 7px;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    min-height: 50px;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .fullscreen-player.is-m3u8 .hls-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .fullscreen-player.is-m3u8 .hls-btn svg {
    width: 18px;
    height: 18px;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    min-width: 86px;
    font-size: 11px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu,
  .fullscreen-player.is-m3u8 .hls-lang-menu {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu {
    max-height: calc(100% - 20px);
    padding: 8px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu button {
    min-height: 42px;
    padding: 11px 12px;
  }
}

/* Player layout rebuild */
.fullscreen-player.is-m3u8 {
  --player-bar-height: 102px;
}

.fullscreen-player .player-top {
  z-index: 60 !important;
}

.fullscreen-player.is-m3u8 .player-stage {
  width: min(calc(100vw - 24px), calc((100dvh - 24px - var(--player-bar-height)) * var(--player-stage-ratio, 1.77778))) !important;
  height: min(calc(100dvh - 24px), calc((100vw - 24px) / var(--player-stage-ratio, 1.77778) + var(--player-bar-height))) !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.fullscreen-player.is-m3u8 #customHlsPlayer {
  position: absolute;
  inset: 0 !important;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: #000;
}

.fullscreen-player.is-m3u8 .hls-media-shell {
  position: relative;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.fullscreen-player.is-m3u8 #playerVideo,
.fullscreen-player.is-m3u8 #hdPlayerFrame,
.fullscreen-player.is-m3u8 #hlsClickOverlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-controls {
  position: relative !important;
  inset: auto !important;
  z-index: 12;
  display: block;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  background:
    linear-gradient(180deg, rgba(15,18,27,.96), rgba(9,12,20,.99)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,.05);
}

.fullscreen-player.is-m3u8 .hls-progress-row {
  width: 100%;
  margin: 0 0 10px !important;
  padding: 0 2px !important;
}

.fullscreen-player.is-m3u8 .hls-progress-bg {
  height: 4px !important;
  background: rgba(255,255,255,.18) !important;
  border-radius: 999px;
}

.fullscreen-player.is-m3u8 .hls-progress-bg:hover {
  height: 4px !important;
  background: rgba(255,255,255,.22) !important;
}

.fullscreen-player.is-m3u8 .hls-buffered {
  background: rgba(255,255,255,.18) !important;
}

.fullscreen-player.is-m3u8 .hls-progress {
  background: linear-gradient(90deg, #ff3131, #ff4747) !important;
  box-shadow: 0 0 12px rgba(255,49,49,.22);
}

.fullscreen-player.is-m3u8 .hls-bottom-row {
  min-height: 56px;
  width: 100%;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(17,21,32,.98), rgba(10,13,22,.98));
  box-shadow: 0 16px 38px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
}

.fullscreen-player.is-m3u8 .hls-left,
.fullscreen-player.is-m3u8 .hls-right {
  gap: 8px;
  align-items: center;
}

.fullscreen-player.is-m3u8 .hls-right {
  margin-left: auto;
}

.fullscreen-player.is-m3u8 .hls-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.fullscreen-player.is-m3u8 .hls-btn:hover,
.fullscreen-player.is-m3u8 .hls-btn:focus-visible,
.fullscreen-player.is-m3u8 .hls-settings-close:hover,
.fullscreen-player.is-m3u8 .hls-settings-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125,211,252,.34) !important;
  box-shadow: 0 10px 22px rgba(11,18,33,.28);
  outline: none;
}

.fullscreen-player.is-m3u8 .hls-btn svg {
  width: 20px !important;
  height: 20px !important;
}

.fullscreen-player.is-m3u8 .hls-vol-slider {
  display: none !important;
}

.fullscreen-player.is-m3u8 .hls-time {
  min-width: 120px;
  margin-left: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240,244,255,.92);
}

.fullscreen-player.is-m3u8 .hls-settings-menu,
.fullscreen-player.is-m3u8 .hls-lang-menu {
  position: absolute;
  z-index: 24;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    rgba(18,21,29,.98) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 50px rgba(0,0,0,.42);
}

.fullscreen-player.is-m3u8 .hls-settings-menu {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: calc(var(--player-bar-height) + 14px) !important;
  width: min(360px, calc(100% - 28px)) !important;
  max-width: min(360px, calc(100% - 28px)) !important;
  max-height: none !important;
  padding: 12px !important;
  overflow: hidden !important;
  flex-direction: column;
}

.fullscreen-player.is-m3u8 .hls-settings-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fullscreen-player.is-m3u8 .hls-settings-tabs {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 !important;
  padding: 4px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.04) !important;
}

.fullscreen-player.is-m3u8 .hls-settings-tab {
  min-height: 40px;
  padding: 10px 8px !important;
  border-radius: 11px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.fullscreen-player.is-m3u8 .hls-settings-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #f5f7ff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}

.fullscreen-player.is-m3u8 .hls-settings-close svg {
  width: 18px;
  height: 18px;
}

.fullscreen-player.is-m3u8 .hls-settings-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto !important;
  padding-right: 4px;
}

.fullscreen-player.is-m3u8 .hls-settings-panel::-webkit-scrollbar,
.fullscreen-player.is-m3u8 .hls-lang-menu::-webkit-scrollbar {
  width: var(--main-scrollbar-size);
}

.fullscreen-player.is-m3u8 .hls-settings-panel::-webkit-scrollbar-thumb,
.fullscreen-player.is-m3u8 .hls-lang-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 999px;
}

.fullscreen-player.is-m3u8 .hls-settings-label {
  margin: 2px 2px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(160,172,196,.88);
}

.fullscreen-player.is-m3u8 .hls-settings-menu button,
.fullscreen-player.is-m3u8 .hls-lang-menu button {
  position: relative;
  text-align: left;
  min-height: 46px;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.015) !important;
  color: #f4f7ff !important;
}

.fullscreen-player.is-m3u8 .hls-settings-option.active,
.fullscreen-player.is-m3u8 .hls-lang-menu button.active {
  color: #d8efff !important;
  background: rgba(96,165,250,.18) !important;
  border-color: rgba(125,211,252,.34) !important;
}

.fullscreen-player.is-m3u8 .hls-settings-option.active::after,
.fullscreen-player.is-m3u8 .hls-lang-menu button.active::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
}

.fullscreen-player.is-m3u8 .hls-lang-menu {
  top: auto !important;
  right: 14px !important;
  left: auto !important;
  bottom: calc(var(--player-bar-height) + 18px) !important;
  min-width: 180px;
  max-width: min(220px, calc(100% - 28px));
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
}

.fullscreen-player.force-landscape {
  --player-bar-height: 92px;
}

.fullscreen-player.force-landscape .player-top {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.fullscreen-player.force-landscape #playerBack {
  width: auto;
  max-width: calc(100vw - 24px);
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .fullscreen-player.is-m3u8 {
    --player-bar-height: 96px;
  }

  .fullscreen-player.is-m3u8 #hlsBtnPip {
    display: none !important;
  }

  .fullscreen-player.is-m3u8 .player-stage {
    width: calc(100vw - 14px) !important;
    height: min(calc(100dvh - 14px), calc((100vw - 14px) / var(--player-stage-ratio, 1.77778) + var(--player-bar-height))) !important;
    border-radius: 18px !important;
  }

  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row {
    margin-bottom: 8px !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    min-height: 52px;
    gap: 8px;
    padding: 8px 10px !important;
    border-radius: 16px !important;
  }

  .fullscreen-player.is-m3u8 .hls-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .fullscreen-player.is-m3u8 .hls-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    min-width: 86px;
    font-size: 11px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    bottom: calc(var(--player-bar-height) + 10px) !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px !important;
  }

  .fullscreen-player.is-m3u8 .hls-lang-menu {
    right: 10px !important;
    left: 10px !important;
    bottom: calc(var(--player-bar-height) + 10px) !important;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .fullscreen-player.is-m3u8 {
    --player-bar-height: 88px;
  }

  .fullscreen-player.is-m3u8 .player-stage {
    width: calc(100vw - 10px) !important;
    height: min(calc(100dvh - 10px), calc((100vw - 10px) / var(--player-stage-ratio, 1.77778) + var(--player-bar-height) + 8px)) !important;
  }

  .fullscreen-player #playerBack {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 13px;
  }

  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row {
    margin-bottom: 7px !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    gap: 6px;
    padding: 7px 8px !important;
    border-radius: 15px !important;
  }

  .fullscreen-player.is-m3u8 .hls-left,
  .fullscreen-player.is-m3u8 .hls-right {
    gap: 6px;
  }

  .fullscreen-player.is-m3u8 .hls-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    min-width: 74px;
    font-size: 10px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fullscreen-player.is-m3u8 .hls-settings-tab {
    min-height: 38px;
    font-size: 10px !important;
    padding: 9px 6px !important;
  }

  .fullscreen-player.is-m3u8 .hls-settings-close {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu button,
  .fullscreen-player.is-m3u8 .hls-lang-menu button {
    min-height: 42px;
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }
}

/* Overlay player override */
.fullscreen-player.is-m3u8 {
  --player-overlay-pad: 18px;
}

.fullscreen-player.is-m3u8 .player-stage {
  width: min(calc(100vw - 24px), calc((100dvh - 24px) * var(--player-stage-ratio, 1.77778))) !important;
  height: min(calc(100dvh - 24px), calc((100vw - 24px) / var(--player-stage-ratio, 1.77778))) !important;
  aspect-ratio: var(--player-stage-ratio, 16 / 9) !important;
  overflow: hidden !important;
}

.fullscreen-player.is-m3u8 #customHlsPlayer {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background: #000;
}

.fullscreen-player.is-m3u8 .hls-media-shell {
  position: absolute !important;
  inset: 0 !important;
}

.fullscreen-player.is-m3u8 #playerVideo,
.fullscreen-player.is-m3u8 #hdPlayerFrame,
.fullscreen-player.is-m3u8 #hlsClickOverlay {
  inset: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 14 !important;
  padding: 0 var(--player-overlay-pad) calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(to top, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 34%, transparent 70%) !important;
}

.fullscreen-player.is-m3u8 .hls-progress-row {
  margin: 0 0 14px !important;
  padding: 0 8px !important;
}

.fullscreen-player.is-m3u8 .hls-progress-bg {
  height: 5px !important;
  background: rgba(255,255,255,.18) !important;
}

.fullscreen-player.is-m3u8 .hls-progress-bg:hover {
  height: 5px !important;
}

.fullscreen-player.is-m3u8 .hls-progress {
  background: linear-gradient(90deg, #ff2424, #ff4747) !important;
  box-shadow: 0 0 10px rgba(255,36,36,.26);
}

.fullscreen-player.is-m3u8 .hls-bottom-row {
  min-height: 54px;
  padding: 10px 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(17,21,32,.96), rgba(10,13,22,.96)) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}

.fullscreen-player.is-m3u8 .hls-left,
.fullscreen-player.is-m3u8 .hls-right {
  gap: 8px;
}

.fullscreen-player.is-m3u8 .hls-right {
  margin-left: auto;
}

.fullscreen-player.is-m3u8 #hlsVolSlider {
  display: none !important;
}

.fullscreen-player.is-m3u8 .hls-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

.fullscreen-player.is-m3u8 .hls-time {
  min-width: 118px;
  margin-left: 2px;
}

.fullscreen-player.is-m3u8 .hls-settings-menu,
.fullscreen-player.is-m3u8 .hls-lang-menu {
  bottom: 92px !important;
}

.fullscreen-player.force-landscape .player-top {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  .fullscreen-player.is-m3u8 {
    --player-overlay-pad: 12px;
  }

  .fullscreen-player.is-m3u8 #hlsBtnPip {
    display: none !important;
  }

  .fullscreen-player.is-m3u8 .player-stage {
    width: calc(100vw - 14px) !important;
    height: min(calc(100dvh - 14px), calc((100vw - 14px) / var(--player-stage-ratio, 1.77778))) !important;
    border-radius: 18px !important;
  }

  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 0 var(--player-overlay-pad) calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row {
    margin-bottom: 10px !important;
    padding: 0 4px !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    min-height: 50px;
    padding: 8px 10px !important;
    border-radius: 16px !important;
  }

  .fullscreen-player.is-m3u8 .hls-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .fullscreen-player.is-m3u8 .hls-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    min-width: 82px;
    font-size: 11px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu,
  .fullscreen-player.is-m3u8 .hls-lang-menu {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    bottom: auto !important;
  }
}

@media (max-width: 640px) {
  .fullscreen-player.is-m3u8 .player-stage {
    width: calc(100vw - 10px) !important;
    height: min(calc(100dvh - 10px), calc((100vw - 10px) / var(--player-stage-ratio, 1.77778))) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row {
    margin-bottom: 8px !important;
    padding: 0 2px !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    gap: 6px;
    padding: 7px 8px !important;
    border-radius: 15px !important;
  }

  .fullscreen-player.is-m3u8 .hls-left,
  .fullscreen-player.is-m3u8 .hls-right {
    gap: 6px;
  }

  .fullscreen-player.is-m3u8 .hls-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    min-width: 72px;
    font-size: 10px;
  }
}

/* Fullscreen stability fixes */
.fullscreen-player.is-m3u8 .hls-settings-head {
  position: relative;
  z-index: 2;
}

.fullscreen-player.is-m3u8 .hls-settings-close {
  position: relative;
  z-index: 3;
}

.fullscreen-player.force-landscape {
  padding: 0 !important;
  background: #000 !important;
}

.fullscreen-player.force-landscape .player-stage {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.fullscreen-player.force-landscape #customHlsPlayer,
.fullscreen-player.force-landscape .hls-media-shell {
  position: absolute !important;
  inset: 0 !important;
}

.fullscreen-player.force-landscape .hls-controls {
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

.fullscreen-player.force-landscape .hls-settings-menu,
.fullscreen-player.force-landscape .hls-lang-menu {
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  bottom: auto !important;
}

/* Vidmax-style mobile alignment */
@media (max-width: 900px) and (orientation: portrait) {
  .fullscreen-player.is-m3u8 {
    padding: 72px 0 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .fullscreen-player.is-m3u8 .player-stage,
  .fullscreen-player.force-landscape .player-stage {
    width: 100vw !important;
    height: calc(100dvh - 72px) !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 72px) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) .hls-media-shell {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: min(100vw, calc((100dvh - 220px) * var(--player-stage-ratio, 1.77778))) !important;
    height: min(calc(100vw / var(--player-stage-ratio, 1.77778)), calc(100dvh - 220px)) !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 220px) !important;
    transform: translate(-50%, -50%) !important;
    background: #000 !important;
  }

  .fullscreen-player.is-m3u8:fullscreen .hls-media-shell,
  .fullscreen-player.is-m3u8:-webkit-full-screen .hls-media-shell,
  .fullscreen-player.is-m3u8.native-fullscreen .hls-media-shell,
  .fullscreen-player.force-landscape .hls-media-shell {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
  }

  .fullscreen-player.is-m3u8 #playerVideo,
  .fullscreen-player.is-m3u8 #hdPlayerFrame,
  .fullscreen-player.is-m3u8 #hlsClickOverlay,
  .fullscreen-player.force-landscape #playerVideo,
  .fullscreen-player.force-landscape #hdPlayerFrame,
  .fullscreen-player.force-landscape #hlsClickOverlay {
    object-position: center top !important;
  }

  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) #playerVideo,
  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) #hdPlayerFrame,
  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) #hlsClickOverlay {
    inset: 0 !important;
    object-fit: contain !important;
  }

  .fullscreen-player.is-m3u8:fullscreen #playerVideo,
  .fullscreen-player.is-m3u8:-webkit-full-screen #playerVideo,
  .fullscreen-player.is-m3u8.native-fullscreen #playerVideo,
  .fullscreen-player.force-landscape #playerVideo {
    object-fit: contain !important;
    object-position: center center !important;
  }

  .fullscreen-player.is-m3u8 .hls-controls,
  .fullscreen-player.force-landscape .hls-controls {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(to top, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 20%, transparent 52%) !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-row,
  .fullscreen-player.force-landscape .hls-progress-row {
    margin-bottom: 10px !important;
    padding: 0 10px !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row,
  .fullscreen-player.force-landscape .hls-bottom-row {
    min-height: 54px !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
      linear-gradient(180deg, rgba(18,22,33,.97), rgba(10,13,22,.97)) !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .fullscreen-player.is-m3u8:fullscreen .player-stage,
  .fullscreen-player.is-m3u8:-webkit-full-screen .player-stage,
  .fullscreen-player.is-m3u8.native-fullscreen .player-stage,
  .fullscreen-player.force-landscape .player-stage {
    width: 100dvw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .fullscreen-player.is-m3u8:fullscreen .hls-controls,
  .fullscreen-player.is-m3u8:-webkit-full-screen .hls-controls,
  .fullscreen-player.is-m3u8.native-fullscreen .hls-controls,
  .fullscreen-player.force-landscape .hls-controls {
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Final reference player skin */
.fullscreen-player.is-m3u8 .hls-controls {
  padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(to top, rgba(0,0,0,.36) 0%, rgba(0,0,0,.08) 38%, transparent 72%) !important;
}

.fullscreen-player.is-m3u8 .hls-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(15,15,25,.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.fullscreen-player.is-m3u8 .hls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.fullscreen-player.is-m3u8 .hls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.fullscreen-player.is-m3u8 .hls-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #eee !important;
  position: relative;
  z-index: 5;
  pointer-events: auto !important;
  box-shadow: none !important;
}

.fullscreen-player.is-m3u8 .hls-btn:hover,
.fullscreen-player.is-m3u8 .hls-btn:focus-visible {
  background: rgba(255,255,255,.12) !important;
  transform: scale(1.02);
  box-shadow: none !important;
}

.fullscreen-player.is-m3u8 .hls-volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
}

.fullscreen-player.is-m3u8 .hls-vol-slider {
  display: block !important;
  width: 80px;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
}

.fullscreen-player.is-m3u8 .hls-vol-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  background: #e50914;
  border-radius: 50%;
}

.fullscreen-player.is-m3u8 .hls-progress-area {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  margin: 0 !important;
  padding: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-progress-bg {
  flex: 1 1 auto;
  height: 5px !important;
  background: rgba(255,255,255,.3) !important;
  border-radius: 999px;
}

.fullscreen-player.is-m3u8 .hls-progress-bg:hover {
  height: 5px !important;
  background: rgba(255,255,255,.3) !important;
}

.fullscreen-player.is-m3u8 .hls-progress {
  background: linear-gradient(90deg, #e50914, #ff4d4d) !important;
  box-shadow: none !important;
}

.fullscreen-player.is-m3u8 .hls-buffered {
  background: rgba(255,255,255,.18) !important;
}

.fullscreen-player.is-m3u8 .hls-time {
  min-width: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  font-family: monospace;
  font-size: .85rem;
  color: #f0f0f0;
}

.fullscreen-player.is-m3u8 #hlsBtnLang {
  display: none !important;
}

.fullscreen-player.is-m3u8 #hlsBtnSettings {
  z-index: 20;
}

.fullscreen-player.is-m3u8 .hls-settings-menu {
  display: block !important;
  width: 260px !important;
  min-width: 260px !important;
  padding: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 65px !important;
  border-radius: 24px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  background: rgba(20,20,32,.96) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,.6);
}

.fullscreen-player.is-m3u8 .hls-settings-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.fullscreen-player.is-m3u8 .mv-settings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent !important;
}

.fullscreen-player.is-m3u8 .mv-settings-title {
  flex: 1 1 auto;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  background: transparent !important;
}

.fullscreen-player.is-m3u8 .mv-settings-spacer,
.fullscreen-player.is-m3u8 .mv-settings-back,
.fullscreen-player.is-m3u8 .mv-settings-close-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-player.is-m3u8 .mv-settings-back,
.fullscreen-player.is-m3u8 .mv-settings-close-btn {
  border: none;
  border-radius: 999px;
  background: none;
  color: #e50914;
  cursor: pointer;
}

.fullscreen-player.is-m3u8 .mv-settings-back:hover,
.fullscreen-player.is-m3u8 .mv-settings-close-btn:hover {
  background: rgba(255,255,255,.1);
}

.fullscreen-player.is-m3u8 .mv-settings-body {
  padding: 8px 0;
}

.fullscreen-player.is-m3u8 .mv-settings-item,
.fullscreen-player.is-m3u8 .mv-settings-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: #eee !important;
  text-align: left;
  cursor: pointer;
}

.fullscreen-player.is-m3u8 .mv-settings-item:hover,
.fullscreen-player.is-m3u8 .mv-settings-option:hover {
  background: rgba(255,255,255,.1) !important;
}

.fullscreen-player.is-m3u8 .mv-settings-item.is-disabled {
  opacity: .6;
  cursor: default;
}

.fullscreen-player.is-m3u8 .mv-settings-icon {
  width: 24px;
  color: #f0f0f0;
  text-align: center;
}

.fullscreen-player.is-m3u8 .mv-settings-icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  margin: 0 auto !important;
}

.fullscreen-player.is-m3u8 .mv-settings-label {
  flex: 1 1 auto;
}

.fullscreen-player.is-m3u8 .mv-settings-value,
.fullscreen-player.is-m3u8 .mv-settings-check {
  margin-left: auto;
  font-size: .82rem;
  color: #e50914;
}

.fullscreen-player.is-m3u8 .mv-settings-option.active {
  background: rgba(229,9,20,.18) !important;
  color: #ff8a8a !important;
}

.fullscreen-player.is-m3u8 .mv-settings-empty {
  padding: 12px 16px;
  color: rgba(255,255,255,.72);
}

@media (max-width: 680px) {
  .fullscreen-player.is-m3u8 .hls-bottom-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px !important;
  }

  .fullscreen-player.is-m3u8 .hls-left {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fullscreen-player.is-m3u8 .hls-progress-area {
    order: 10;
    flex: 1 1 100%;
    min-width: 0;
  }

  .fullscreen-player.is-m3u8 .hls-volume-box {
    max-width: 100px;
  }

  .fullscreen-player.is-m3u8 .hls-vol-slider {
    width: 60px;
  }

  .fullscreen-player.is-m3u8 .hls-time {
    font-size: .74rem;
    padding: 2px 7px;
  }

  .fullscreen-player.is-m3u8 .hls-settings-menu {
    width: 240px !important;
    min-width: 240px !important;
    bottom: 60px !important;
  }
}

/* Exact reference layout enforcement */
.fullscreen-player.is-m3u8 #customHlsPlayer {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
}

.fullscreen-player.is-m3u8 .hls-media-shell {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  background: #000 !important;
}

.fullscreen-player.is-m3u8 #playerVideo,
.fullscreen-player.is-m3u8 #hdPlayerFrame,
.fullscreen-player.is-m3u8 #hlsClickOverlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.fullscreen-player.is-m3u8 .hls-controls {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin-top: auto !important;
  flex: 0 0 auto !important;
}

.fullscreen-player.is-m3u8:fullscreen .player-stage,
.fullscreen-player.is-m3u8:-webkit-full-screen .player-stage,
.fullscreen-player.is-m3u8.native-fullscreen .player-stage {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.fullscreen-player.is-m3u8:fullscreen .hls-controls,
.fullscreen-player.is-m3u8:-webkit-full-screen .hls-controls,
.fullscreen-player.is-m3u8.native-fullscreen .hls-controls {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 900px) and (orientation: portrait) {
  .fullscreen-player.is-m3u8 {
    padding: 72px 0 0 !important;
  }

  .fullscreen-player.is-m3u8:fullscreen,
  .fullscreen-player.is-m3u8:-webkit-full-screen,
  .fullscreen-player.is-m3u8.native-fullscreen {
    padding: 0 !important;
  }

  .fullscreen-player.is-m3u8 .player-stage {
    width: 100vw !important;
    height: calc(100dvh - 72px) !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - 72px) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .fullscreen-player.is-m3u8:fullscreen .player-stage,
  .fullscreen-player.is-m3u8:-webkit-full-screen .player-stage,
  .fullscreen-player.is-m3u8.native-fullscreen .player-stage {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
  }

  .fullscreen-player.is-m3u8 .hls-media-shell {
    flex: 1 1 auto !important;
    display: block !important;
  }

  .fullscreen-player.is-m3u8:fullscreen .hls-media-shell,
  .fullscreen-player.is-m3u8:-webkit-full-screen .hls-media-shell,
  .fullscreen-player.is-m3u8.native-fullscreen .hls-media-shell {
    height: calc(100dvh - 86px - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 86px - env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fullscreen-player.is-m3u8 .hls-bottom-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .fullscreen-player.is-m3u8 .hls-left {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }

  .fullscreen-player.is-m3u8 .hls-progress-area {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    order: 10 !important;
  }
}

/* Final player interaction cleanup */
.fullscreen-player.is-m3u8 .hls-controls {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none !important;
  transition: opacity .24s ease, transform .24s ease !important;
}

.fullscreen-player.is-m3u8 #customHlsPlayer.ctl-on .hls-controls,
.fullscreen-player.is-m3u8 #customHlsPlayer.menu-open .hls-controls {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.fullscreen-player.is-m3u8 .hls-left {
  position: relative !important;
}

.fullscreen-player.is-m3u8 .hls-volume-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  --volume-level: 1;
}

.fullscreen-player.is-m3u8 .hls-volume-box {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 12px) !important;
  transform: translate(-50%, 10px) !important;
  width: 54px !important;
  height: 132px !important;
  padding: 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 24px !important;
  background: rgba(10, 14, 24, 0.96) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
  z-index: 70 !important;
}

.fullscreen-player.is-m3u8 .hls-volume-wrap.open .hls-volume-box {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider,
.fullscreen-player.is-m3u8 .hls-vol-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 24px !important;
  transform: rotate(-90deg) !important;
  transform-origin: center !important;
  opacity: 0 !important;
  background: transparent !important;
  cursor: default !important;
  z-index: 4 !important;
  pointer-events: none !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-webkit-slider-runnable-track,
.fullscreen-player.is-m3u8 .hls-vol-slider::-webkit-slider-runnable-track {
  background: transparent !important;
  height: 8px !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-webkit-slider-thumb,
.fullscreen-player.is-m3u8 .hls-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  background: transparent !important;
  border: none !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-moz-range-track,
.fullscreen-player.is-m3u8 .hls-vol-slider::-moz-range-track {
  background: transparent !important;
  height: 8px !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-moz-range-thumb,
.fullscreen-player.is-m3u8 .hls-vol-slider::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  background: transparent !important;
  border: none !important;
}

.fullscreen-player.is-m3u8 .hls-settings-menu {
  width: min(340px, calc(100vw - 28px)) !important;
  min-width: 300px !important;
  padding: 12px !important;
  background:
    linear-gradient(180deg, rgba(25, 27, 41, 0.98) 0%, rgba(18, 20, 33, 0.98) 100%) !important;
  border-color: rgba(124, 147, 255, 0.18) !important;
  box-shadow: 0 24px 44px rgba(0,0,0,.42) !important;
}

.fullscreen-player.is-m3u8 .mv-settings-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 10px 2px 4px !important;
  background: transparent !important;
}

.fullscreen-player.is-m3u8 .mv-settings-item,
.fullscreen-player.is-m3u8 .mv-settings-option {
  min-height: 54px !important;
  padding: 15px 18px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

@media (max-width: 680px) {
  .fullscreen-player.is-m3u8 .hls-settings-menu {
    width: min(92vw, 360px) !important;
    min-width: 0 !important;
  }

  .fullscreen-player.is-m3u8 .hls-volume-box {
    width: 50px !important;
    height: 124px !important;
    bottom: calc(100% + 10px) !important;
  }
}

/* Bottom dock and visible volume slider fixes */
.fullscreen-player.is-m3u8 #customHlsPlayer {
  position: absolute !important;
  inset: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-media-shell {
  position: absolute !important;
  inset: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 35 !important;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

.fullscreen-player.is-m3u8 .hls-bottom-row {
  width: 100% !important;
}

.fullscreen-player.is-m3u8 .hls-progress-area {
  min-width: 0 !important;
}

.fullscreen-player.is-m3u8 .hls-volume-box {
  overflow: visible !important;
}

.fullscreen-player.is-m3u8 .hls-volume-meter {
  position: relative !important;
  width: 8px !important;
  height: 96px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.1) !important;
}

.fullscreen-player.is-m3u8 .hls-volume-fill {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, #4cc8ff 0%, #18b1ff 100%) !important;
  transform-origin: bottom center !important;
  transform: scaleY(var(--volume-level)) !important;
  transition: transform .08s ease-out !important;
}

.fullscreen-player.is-m3u8 .hls-volume-knob {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% - 8px) !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  transform: translateX(-50%) !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.28) !important;
  transition: bottom .08s ease-out, box-shadow .18s ease !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider,
.fullscreen-player.is-m3u8 .hls-vol-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 24px !important;
  transform: rotate(-90deg) !important;
  transform-origin: center !important;
  background: transparent !important;
  opacity: 0 !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-webkit-slider-runnable-track,
.fullscreen-player.is-m3u8 .hls-vol-slider::-webkit-slider-runnable-track,
.fullscreen-player.is-m3u8 #hlsVolSlider::-moz-range-track,
.fullscreen-player.is-m3u8 .hls-vol-slider::-moz-range-track {
  background: transparent !important;
  height: 8px !important;
}

.fullscreen-player.is-m3u8 #hlsVolSlider::-moz-range-progress,
.fullscreen-player.is-m3u8 .hls-vol-slider::-moz-range-progress {
  background: transparent !important;
}

@media (max-width: 680px) {
  .fullscreen-player.is-m3u8 .hls-controls {
    padding: 0 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 681px) {
  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) {
    padding: 84px 12px 12px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) .player-stage {
    width: calc(100vw - 24px) !important;
    height: calc(100dvh - 96px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 96px) !important;
    aspect-ratio: auto !important;
    border-radius: 18px !important;
  }

  .fullscreen-player.is-m3u8:not(:fullscreen):not(.native-fullscreen):not(.force-landscape) .hls-media-shell {
    position: absolute !important;
    inset: 0 0 92px 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    display: block !important;
  }
}

/* Final mobile settings menu override */
@media (max-width: 900px) and (orientation: portrait) {
  .fullscreen-player.is-m3u8 .hls-settings-menu {
    width: min(90vw, 308px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(54vh, 388px) !important;
    right: 12px !important;
    left: auto !important;
    bottom: 76px !important;
    padding: 14px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(28, 31, 49, 0.985) 0%, rgba(18, 21, 35, 0.985) 100%) !important;
    border: 1px solid rgba(111, 122, 190, 0.24) !important;
    box-shadow: 0 24px 54px rgba(0, 0, 0, .42) !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-header {
    gap: 10px !important;
    padding: 4px 4px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    background: transparent !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-title {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    background: transparent !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px 0 2px !important;
    overflow-y: auto !important;
    background: transparent !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-item,
  .fullscreen-player.is-m3u8 .mv-settings-option {
    width: 100% !important;
    min-height: 56px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.032) !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-icon {
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255,255,255,.9) !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-icon i {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-icon svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    display: block !important;
    margin: 0 !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: .97rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-value,
  .fullscreen-player.is-m3u8 .mv-settings-check {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .fullscreen-player.is-m3u8 .mv-settings-empty {
    padding: 16px 14px !important;
    font-size: .95rem !important;
    line-height: 1.35 !important;
  }
}

/* Diziler sayfasi: sadece sezon ve bolum tasarimi */
.series-page .season-episode-box{
  padding: 8px 60px 18px;
  box-sizing: border-box;
}

.series-page .season-picker,
.series-page .episode-picker{
  display: block;
}

.series-page .episode-picker{
  margin-top: 16px;
}

.series-page .season-picker-title,
.series-page .episode-picker-title{
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

.series-page .season-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.series-page .season-tab{
  min-width: 94px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.series-page .season-tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

.series-page .season-tab.active{
  background: #ffffff;
  color: #07101d;
  border-color: #ffffff;
  box-shadow: 0 10px 24px rgba(255,255,255,.12);
}

.series-page .season-tab__eyebrow{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  opacity: .6;
}

.series-page .season-tab__label{
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.series-page .episode-list-wrap,
.series-page .episode-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.series-page .episode-btn{
  min-width: 112px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(9,14,24,.72);
  color: rgba(255,255,255,.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.series-page .episode-btn:hover{
  transform: translateY(-1px);
  background: rgba(18,25,38,.9);
  border-color: rgba(255,255,255,.2);
}

.series-page .episode-btn.active{
  background: linear-gradient(180deg, rgba(229,9,20,.94), rgba(162,15,23,.98));
  border-color: rgba(255,92,92,.32);
  color: #fff;
  box-shadow: 0 12px 24px rgba(111,7,16,.24);
}

.series-page .episode-btn__number{
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.series-page .episode-btn__meta{
  display: none;
}

@media (max-width: 900px){
  .series-page .season-episode-box{
    padding: 8px 30px 18px;
  }
}

@media (max-width: 600px){
  .series-page .season-episode-box{
    padding: 8px 20px 16px;
  }

  .series-page .season-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .series-page .season-tabs::-webkit-scrollbar{
    display: none;
  }

  .series-page .season-tab{
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 44px;
    padding: 9px 14px;
  }

  .series-page .episode-list-wrap,
  .series-page .episode-list{
    gap: 8px;
  }

.series-page .episode-btn{
  min-width: 98px;
  min-height: 40px;
  padding: 0 14px;
  }
}

.movies-page .hero-content{
  min-height: 620px;
}

@media (max-width: 900px){
  .movies-page .hero-content{
    min-height: 540px;
  }
}

@media (max-width: 600px){
  .movies-page .hero-content{
    min-height: 460px;
  }
}

@media (max-width: 700px){
  .nav-right{
    gap: 10px !important;
  }

  .nav-random-btn{
    display: none !important;
  }

  .about-link{
    display: none !important;
  }

  .nav-right > .fa-regular.fa-bell,
  .nav-right > .fa-solid.fa-bell,
  .nav-right > .fa-bell{
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .logo-image{
    height: 44px !important;
  }

  .category-showcase-section{
    padding-top: 4px !important;
  }

  .category-showcase-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 20px 22px !important;
  }

  .category-showcase-card{
    aspect-ratio: 1 / 0.74 !important;
    border-radius: 16px !important;
  }

  .category-showcase-video{
    object-fit: cover !important;
    object-position: center center !important;
  }

  .category-showcase-title{
    width: calc(100% - 18px) !important;
    font-size: 15px !important;
    letter-spacing: .05em !important;
  }

  .category-showcase-logo{
    width: min(78%, 140px) !important;
    max-height: 34px !important;
  }

  .category-showcase-card[data-brand="marvel"] .category-showcase-logo{
    width: min(56%, 116px) !important;
    max-height: 44px !important;
  }

  .category-showcase-card[data-brand="disney"] .category-showcase-logo{
    width: min(62%, 124px) !important;
    max-height: 42px !important;
  }

  .category-showcase-card[data-brand="pixar"] .category-showcase-logo{
    width: min(78%, 140px) !important;
    max-height: 34px !important;
  }

  .category-showcase-card[data-brand="star-wars"] .category-showcase-logo{
    width: min(76%, 132px) !important;
    max-height: 38px !important;
  }
}

/* Homepage continue watching */
#continueWatchSection .all-header{
  align-items: center;
}

#continueWatchSection .all-header > .section-title:first-child{
  display: none;
}

.continue-watch-section{
  display: block;
}

.continue-watch-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}

.continue-watch-card{
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 160px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(17,22,34,.96), rgba(8,12,20,.98));
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

.continue-watch-card:hover,
.continue-watch-card:focus-visible{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
}

.continue-watch-card:focus-visible{
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 2px;
}

.continue-watch-poster-wrap{
  position: relative;
  height: 100%;
  min-height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.continue-watch-poster{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.continue-watch-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(229, 9, 20, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(118, 5, 14, .28);
}

.continue-watch-body{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.continue-watch-topline{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.continue-watch-title{
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.continue-watch-time{
  flex: 0 0 auto;
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.continue-watch-desc{
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font-size: .93rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-watch-progress{
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: auto;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.continue-watch-progress span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e50914 0%, #ff4d5b 100%);
  box-shadow: 0 0 22px rgba(229, 9, 20, .32);
}

.continue-watch-action{
  align-self: flex-start;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.continue-watch-card:hover .continue-watch-action,
.continue-watch-card:focus-visible .continue-watch-action{
  background: rgba(255,255,255,.16);
}

.continue-watch-empty{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.68);
  font-size: .98rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px){
  .continue-watch-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .continue-watch-card{
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 150px;
    padding: 12px;
    border-radius: 18px;
  }
}

@media (max-width: 640px){
  .continue-watch-grid{
    grid-template-columns: 1fr;
  }

  .continue-watch-card{
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 144px;
    gap: 12px;
  }

  .continue-watch-title{
    font-size: .98rem;
  }

  .continue-watch-time{
    font-size: .75rem;
  }

  .continue-watch-desc{
    font-size: .88rem;
    -webkit-line-clamp: 2;
  }
}

/* Continue watching slider refresh */
.continue-watch-section{
  padding-top: 18px;
}

.continue-watch-carousel{
  position: relative;
  padding: 0 60px 26px;
}

.continue-watch-carousel .all-header{
  display: none !important;
}

.continue-watch-slider{
  display: flex !important;
  gap: 18px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}

.continue-watch-slider::-webkit-scrollbar{
  display: none;
}

.continue-watch-card{
  flex: 0 0 220px !important;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  min-height: 0 !important;
  display: block;
  padding: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.08);
  background: #0c111c !important;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
}

.continue-watch-card:hover,
.continue-watch-card:focus-visible{
  transform: translateY(-5px) scale(1.015);
}

.continue-watch-poster-wrap{
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 0 !important;
  border-radius: 0 !important;
  background: #111827;
}

.continue-watch-poster{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-watch-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,16,.04) 0%, rgba(4,8,16,.18) 48%, rgba(4,8,16,.82) 100%);
  pointer-events: none;
}

.continue-watch-body{
  padding: 14px 14px 15px;
  min-width: 0;
}

.continue-watch-kicker{
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.56);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.continue-watch-title{
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.28;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-watch-time{
  margin-bottom: 12px;
  color: rgba(255,255,255,.74);
  font-size: .83rem;
  font-weight: 700;
}

.continue-watch-progress{
  margin-top: 0;
  height: 5px;
}

.continue-watch-action{
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  background: rgba(255,255,255,.08);
}

.continue-watch-arrow{
  z-index: 4;
}

.continue-watch-arrow:disabled{
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.continue-watch-empty{
  margin: 0 60px 26px;
}

@media (max-width: 900px){
  .continue-watch-carousel{
    padding: 0 30px 22px;
  }

  .continue-watch-empty{
    margin: 0 30px 22px;
  }

  .continue-watch-card{
    flex-basis: 190px !important;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }
}

@media (max-width: 600px){
  .continue-watch-section{
    padding-top: 10px;
  }

  .continue-watch-carousel{
    padding: 0 20px 18px;
  }

  .continue-watch-card{
    flex-basis: 160px !important;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    border-radius: 16px !important;
  }

  .continue-watch-body{
    padding: 12px 12px 13px;
  }

  .continue-watch-title{
    font-size: .92rem;
  }

  .continue-watch-time{
    font-size: .76rem;
  }

  .continue-watch-action{
    min-height: 34px;
    font-size: .8rem;
  }

  .continue-watch-empty{
    margin: 0 20px 18px;
    min-height: 124px;
  }
}

/* Brand pages */
:root{
  --brand-accent: #e50914;
}

.brand-page .hero{
  display: block !important;
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.04), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.96), rgba(7, 11, 20, 1));
}

.brand-hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.brand-hero-backdrop-video{
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  display: block;
  filter: blur(28px) brightness(.34) saturate(.95);
  opacity: .95;
  transform: scale(1.08);
}

.brand-hero-video{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
}

.brand-hero-fade{
  position: absolute;
  inset: auto 0 0 0;
  height: 10%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 25%, rgba(7, 11, 20, .2) 50%, rgba(7, 11, 20, 1) 100%);
}


.brand-all-header{
  align-items: flex-end;
}

.brand-section-subtitle{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
}

.brand-empty-state{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 24px;
  padding: 28px;
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,.72);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
}

.brand-page .movie-card{
  background: rgba(255,255,255,.02);
}

@media (max-width: 900px){
  .brand-page .hero{
    max-height: 70vh;
  }
}

@media (max-width: 600px){
  .brand-page .hero{
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .brand-hero-backdrop-video{
    filter: blur(18px) brightness(.38) saturate(.96);
    transform: scale(1.04);
  }

  .brand-section-subtitle{
    font-size: 13px;
  }

  .brand-empty-state{
    min-height: 170px;
    padding: 22px 18px;
  }
}
