*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080b12;
  --surface: #0f1420;
  --card: #141927;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #e8a020;
  --accent2: #ff4e4e;
  --text: #e8eaf0;
  --muted: #6b7280;
  --gold: #f5c518;
  --radius: 10px;
  --nav-h: 62px;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 3px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 4vw, 48px);
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  letter-spacing: 2px;
  color: #fff;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: 18px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  width: clamp(140px, 22vw, 280px);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-bar svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  width: 100%;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 8px;
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 11, 18, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 30px clamp(16px, 5vw, 40px);
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-search {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.mobile-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.hero {
  margin-top: var(--nav-h);
  position: relative;
  height: clamp(360px, 62vw, 640px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1.2s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.96) 0%,
      rgba(8, 11, 18, 0.7) 50%,
      rgba(8, 11, 18, 0.1) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 80px);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 160, 32, 0.15);
  border: 1px solid rgba(232, 160, 32, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-meta .rating {
  color: var(--gold);
  font-weight: 700;
}

.hero-overview {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: rgba(232, 234, 240, 0.7);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-hero.play {
  background: #e50914;
  color: #fff;
}

.btn-hero.dl {
  background: var(--accent);
  color: #000;
}

.btn-hero.info {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition:
    width 0.3s,
    background 0.3s;
  cursor: pointer;
}

.hero-dot.active {
  width: 24px;
  background: var(--accent);
}

main {
  padding: 0 clamp(12px, 4vw, 48px) 60px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.section {
  margin-top: 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

.see-all {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 160, 32, 0.3);
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.see-all:hover {
  background: rgba(232, 160, 32, 0.1);
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tab.active,
.tab:hover {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(clamp(120px, 23vw, 160px), 1fr)
  );
  gap: clamp(10px, 2vw, 18px);
}

.movie-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(232, 160, 32, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--surface);
  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.movie-card:hover .card-poster img {
  transform: scale(1.05);
}

.card-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.card-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.card-actions {
  display: flex;
  gap: 5px;
  width: 100%;
}

.card-play-btn {
  flex: 1;
  background: #e50914;
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  font-family: inherit;
  padding: 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.card-dl-btn {
  flex: 1;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.68rem;
  font-family: inherit;
  padding: 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.card-play-btn:hover,
.card-dl-btn:hover {
  opacity: 0.85;
}

.card-info {
  padding: 10px 10px 12px;
}

.card-title {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  margin-bottom: 5px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
}

.card-rating {
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* genre pills */
.genres-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.genre-pill {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.genre-pill.active,
.genre-pill:hover {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--surface) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.stream-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}

.stream-modal-backdrop.open {
  display: flex;
}

.stream-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.stream-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stream-title-bar h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.stream-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.stream-back-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.stream-player-wrap {
  width: 100%;
  max-width: 900px;
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stream-player-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.stream-sources {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.source-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.source-btn.active,
.source-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.stream-ep-selector {
  width: 100%;
  max-width: 900px;
}

.stream-ep-selector h4 {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ep-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ep-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.ep-btn.active,
.ep-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.season-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.season-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.season-btn.active,
.season-btn:hover {
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent);
  border-color: rgba(232, 160, 32, 0.3);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-backdrop-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.modal-body {
  padding: clamp(16px, 4vw, 28px);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-rating {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-overview {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(232, 234, 240, 0.75);
  margin-bottom: 22px;
}

.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.modal-genre-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.modal-action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.modal-play-btn {
  flex: 1;
  min-width: 140px;
  background: #e50914;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.modal-play-btn:hover {
  opacity: 0.88;
}

.modal-trailer-btn {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.modal-trailer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.download-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-section h3 span {
  color: var(--accent);
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  gap: 10px;
}

.dl-option:hover {
  border-color: rgba(232, 160, 32, 0.4);
}

.dl-option-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-option-icon {
  width: 36px;
  height: 36px;
  background: rgba(232, 160, 32, 0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dl-quality {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.dl-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.dl-format {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--card);
  padding: 2px 8px;
  border-radius: 4px;
}

.dl-btn {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: opacity 0.2s;
  font-family: inherit;
}

.dl-btn:hover {
  opacity: 0.85;
}

.trailer-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trailer-modal-backdrop.open {
  display: flex;
}

.trailer-wrap {
  width: 100%;
  max-width: 900px;
  position: relative;
}

.trailer-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.trailer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.trailer-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 500;
  white-space: nowrap;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 40px clamp(12px, 4vw, 48px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(232, 234, 240, 0.6);
  transition: color 0.2s;
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom span {
  color: var(--accent);
}

#scrollTop {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #000;
  border-radius: 10px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.2s;
  box-shadow: 0 6px 20px rgba(232, 160, 32, 0.3);
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  transform: translateY(-3px);
}

.no-poster {
  width: 100%;
  height: 100%;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}

/* .trending-num {
  position: absolute;
  bottom: 8px;
  left: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: #f5c51896;
  text-shadow: -2px 0 0 rgba(0, 0, 0, 0.13);
  pointer-events: none;
  user-select: none;
} */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

@media (max-width: 768px) {
  .nav-links,
  .search-bar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .movies-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(clamp(100px, 28vw, 140px), 1fr)
    );
    gap: 10px;
  }

  .hero-content {
    padding: 22px 16px;
  }

  .hero-overview {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .stream-modal-backdrop {
    padding: 8px;
    gap: 10px;
  }

  .stream-sources {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  :root {
    --nav-h: 56px;
  }

  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card-title {
    font-size: 0.7rem;
  }
}

@media (min-width: 1200px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 1600px) {
  main {
    max-width: 1500px;
    margin: 0 auto;
  }
}
