
:root {
  --bg: #090b12;
  --surface: #111522;
  --surface2: #171d2d;
  --text: #f5f6fb;
  --muted: #9ba3b7;
  --purple: #8258ff;
  --cyan: #21c8e8;
  --line: rgba(255,255,255,.09);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { width: min(1200px, 92%); margin-inline: auto; }

.site-header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,11,18,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1300px, 94%);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  white-space: nowrap;
}

.brand b { color: var(--cyan); }

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 23px;
  background: linear-gradient(135deg, var(--purple), #3e8cff);
  box-shadow: 0 5px 22px rgba(130,88,255,.3);
}

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav > a {
  color: #b8bfd0;
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}

.main-nav > a:hover, .main-nav > a.active { color: white; }

.nav-login {
  border: 1px solid rgba(130,88,255,.6);
  background: rgba(130,88,255,.12);
  color: white;
  padding: 10px 17px;
  border-radius: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.menu-toggle { display: none; }

.hero {
  min-height: 570px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111522;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: .72;
  transition: background-image .4s;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #090b12 2%, rgba(9,11,18,.91) 32%, rgba(9,11,18,.24) 100%),
    linear-gradient(0deg, #090b12 0%, transparent 40%, rgba(9,11,18,.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 85px;
}

.eyebrow, .section-overline {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }

.live-dot {
  width: 8px;
  height: 8px;
  background: #29df9b;
  border-radius: 50%;
  box-shadow: 0 0 12px #29df9b;
}

.hero-kicker { margin-top: 35px; color: #b9a7ff; font-size: 12px; font-weight: 800; letter-spacing: 2px; }

.hero h1 {
  max-width: 650px;
  margin-top: 12px;
  font: 800 clamp(42px, 6vw, 76px)/1.05 Manrope, sans-serif;
  letter-spacing: -3px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 20px;
  color: #d0d4df;
  font-size: 14px;
}

.hero-meta .rating { color: #ffc857; }

.quality {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.hero-description {
  max-width: 530px;
  margin-top: 20px;
  color: #c0c5d2;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }

.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  color: white;
  background: linear-gradient(115deg, #7650f4, #4c86ff);
  box-shadow: 0 8px 25px rgba(111,80,244,.25);
}

.btn-primary:hover { box-shadow: 0 10px 32px rgba(111,80,244,.4); }

.btn-ghost {
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
}

.hero-pagination {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  right: 5%;
  display: flex;
  gap: 9px;
}

.hero-pagination button {
  width: 24px;
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: #687080;
}

.hero-pagination button.active { width: 42px; background: var(--cyan); }

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-block: 29px;
  border-bottom: 1px solid var(--line);
}

.quick-stats > div { display: flex; align-items: center; gap: 14px; }

.quick-stats > div > i { color: var(--cyan); font-size: 27px; }

.quick-stats span { display: grid; gap: 4px; }
.quick-stats b { font-size: 13px; }
.quick-stats small { color: var(--muted); font-size: 11px; }

.search-section { padding-top: 34px; }

.search-box {
  max-width: 580px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.search-box > i { color: var(--cyan); font-size: 21px; }

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.search-box input::placeholder { color: #7d879c; }

.search-box button {
  border: 0;
  color: #aeb5c5;
  background: transparent;
  font-size: 22px;
}

.content-section { padding-top: 55px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.section-heading h2, .genre-banner h2 {
  margin-top: 7px;
  font: 800 clamp(22px, 3vw, 30px)/1.2 Manrope, sans-serif;
  letter-spacing: -.8px;
}

.text-link { color: #b6a5ff; font-size: 13px; font-weight: 700; }
.text-link:hover { color: white; }

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 185px;
  gap: 19px;
  overflow-x: auto;
  padding: 5px 3px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #424b63 transparent;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: var(--surface);
  transition: transform .28s, border-color .28s, box-shadow .28s;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(130,88,255,.7);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

.movie-card-link { display: block; }

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #242b42, #101522);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}

.movie-card:hover .movie-poster img { transform: scale(1.07); }

.movie-rating {
  position: absolute;
  top: 10px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(8,10,17,.85);
  color: #ffc857;
  font-size: 11px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  opacity: 0;
  transform: scale(.8);
  transition: .25s;
}

.movie-card:hover .movie-play { opacity: 1; transform: scale(1); }

.movie-info { padding: 12px 11px 14px; }

.movie-info h3 {
  overflow: hidden;
  color: #f3f4fa;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info p { margin-top: 6px; color: var(--muted); font-size: 10px; }

.genre-banner {
  margin-top: 65px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid rgba(130,88,255,.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 20%, rgba(33,200,232,.12), transparent 35%),
    linear-gradient(120deg, #17152d, #101b2b);
}

.genre-banner p:not(.section-overline) { margin-top: 10px; color: var(--muted); font-size: 13px; }

.genre-chips, .filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.genre-chips a, .filter-chip {
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: rgba(255,255,255,.06);
  color: #e4e6f0;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}

.genre-chips a:hover, .filter-chip:hover, .filter-chip.active {
  border-color: var(--purple);
  background: rgba(130,88,255,.2);
  color: white;
}

.filter-chips { margin-bottom: 22px; }
.filter-chip { cursor: pointer; }

.movie-grid, .suggestion-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.movie-grid .movie-card { width: 100%; }

.empty-state { padding: 35px 0; color: var(--muted); text-align: center; }

.plans-section {
  margin-top: 75px;
  padding: 65px 0 75px;
  background: linear-gradient(180deg, #0d101b, #101525);
  border-top: 1px solid var(--line);
}

.centered { justify-content: center; text-align: center; }
.muted { margin-top: 10px; color: var(--muted); font-size: 13px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.plan-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #141a29;
}

.featured-plan { border-color: rgba(130,88,255,.75); box-shadow: 0 0 35px rgba(130,88,255,.1); }

.popular-tag {
  position: absolute;
  top: 0;
  right: 20px;
  padding: 7px 10px;
  border-radius: 0 0 8px 8px;
  background: var(--purple);
  font-size: 9px;
  font-weight: 800;
}

.plan-label { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.plan-card h3 { margin-top: 13px; font: 800 25px Manrope, sans-serif; }

.plan-price { margin-top: 15px; font-size: 28px; font-weight: 800; }
.plan-price small { color: var(--muted); font-size: 11px; font-weight: 500; }

.plan-card ul { display: grid; gap: 13px; margin: 24px 0; list-style: none; color: #c2c8d6; font-size: 13px; }
.plan-card li::before { content: "✓"; margin-right: 9px; color: #38dca4; font-weight: 800; }
.full { width: 100%; }

.site-footer { border-top: 1px solid var(--line); background: #080a10; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  padding-block: 45px;
}

.footer-brand p { max-width: 270px; margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.footer-top h4 { margin-bottom: 15px; font-size: 13px; }
.footer-top > div:not(:first-child) > a { display: block; margin: 11px 0; color: var(--muted); font-size: 12px; }
.footer-top a:hover { color: white; }

.socials { display: flex; gap: 9px; }
.socials a { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: #171d2b; font-size: 18px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: #7f8799;
  font-size: 11px;
}

/* Movie detail page */

.detail-page { min-height: 70vh; padding-bottom: 65px; }

.detail-hero {
  position: relative;
  min-height: 490px;
  padding: 35px 0 55px;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090b12 2%, rgba(9,11,18,.92) 48%, rgba(9,11,18,.45)), linear-gradient(0deg, #090b12, transparent 50%);
}

.detail-inner { position: relative; z-index: 1; }

.back-link { display: inline-flex; margin-bottom: 28px; color: #c1b3ff; font-size: 13px; font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 38px; }

.detail-poster { overflow: hidden; border-radius: 14px; box-shadow: 0 20px 50px #0008; }
.detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }

.detail-info h1 { margin: 10px 0 15px; font: 800 clamp(32px,5vw,55px) Manrope,sans-serif; }
.detail-label { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 17px; color: #d4d7e2; font-size: 13px; }
.detail-meta span:first-child { color: #ffc857; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.detail-tags span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; color: #d6d9e4; font-size: 11px; }

.detail-description { max-width: 650px; color: #c2c8d6; font-size: 14px; line-height: 1.8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.detail-section { padding-top: 42px; }
.detail-section h2 { margin-bottom: 20px; font: 800 24px Manrope,sans-serif; }

.trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  background: #151a28;
}

.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.detail-suggestions { padding-top: 45px; }

.detail-suggestions .suggestion-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }

/* Modal and notifications */

.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }

.modal-content {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #141a29;
  box-shadow: 0 25px 80px #0009;
}

.modal-close { position: absolute; top: 15px; right: 15px; border: 0; background: transparent; color: white; font-size: 25px; }
.modal-content h2 { margin-top: 25px; font: 800 25px Manrope,sans-serif; }
.modal-content p { margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-content label { display: block; margin: 13px 0 7px; color: #dce0eb; font-size: 12px; }
.modal-content input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #0c101b; color: white; }
.modal-content input:focus { border-color: var(--purple); }
.modal-content .btn { margin-top: 20px; }
.modal-note { display: block; margin-top: 15px; color: var(--muted); text-align: center; font-size: 10px; }

.toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #20283a;
  color: white;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .movie-grid, .detail-suggestions .suggestion-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .footer-top > div:last-child { grid-column: 2; }
}

@media (max-width: 650px) {
  .site-header { height: 66px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: white; font-size: 25px; }

  .main-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 5%;
    border-bottom: 1px solid var(--line);
    background: #0d111d;
  }

  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav > a, .main-nav > button { padding: 14px 5px; }
  .nav-login { justify-content: center; margin-top: 8px; }

  .hero { min-height: 540px; }
  .hero-content { padding-block: 70px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-description { font-size: 14px; }
  .hero-shade { background: linear-gradient(90deg,rgba(9,11,18,.94),rgba(9,11,18,.55)),linear-gradient(0deg,#090b12,transparent 65%); }

  .quick-stats { grid-template-columns: 1fr; gap: 17px; }
  .quick-stats > div { padding-left: 8px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 22px; }
  .text-link { font-size: 11px; white-space: nowrap; }

  .movie-row { grid-auto-columns: 155px; gap: 13px; }
  .genre-banner { flex-direction: column; align-items: flex-start; padding: 25px 20px; }
  .movie-grid, .detail-suggestions .suggestion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }

  .plans { grid-template-columns: 1fr; }
  .plan-card { padding: 25px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-top > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }

  .detail-hero { min-height: auto; }
  .detail-layout { grid-template-columns: 115px 1fr; gap: 17px; align-items: start; }
  .detail-info h1 { font-size: 27px; }
  .detail-meta { gap: 9px; font-size: 11px; }
  .detail-description { font-size: 12px; }
  .detail-info .btn { min-height: 40px; padding-inline: 12px; font-size: 11px; }
  .detail-tags { margin: 12px 0; gap: 5px; }
  .detail-tags span { padding: 5px 8px; font-size: 9px; }
  .detail-inner.wrap { width: 92%; }
}

@media (max-width: 380px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { width: 145px; }
  .hero h1 { font-size: 39px; }
}

/* =====================================
   FILMAT E SUGJERUAR - SCROLL HORIZONTAL
===================================== */

.detail-suggestions .suggestion-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 185px !important;
  gap: 19px !important;

  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;

  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #596078 transparent;
}

.detail-suggestions .suggestion-grid .movie-card {
  width: 100% !important;
  min-width: 0;
  scroll-snap-align: start;
}

/* Telefoni */
@media (max-width: 650px) {
  .detail-suggestions .suggestion-grid {
    grid-auto-columns: 155px !important;
    gap: 13px !important;
  }
}
/* LOGIN I ÇAKTIVIZUAR PËR VERSIONIN PREVIEW */
#loginButton,
#loginModal {
  display: none !important;
}