
/* =====================================================
   MOVIX — CINELAND CINEMATIC THEME
   Dark Red + Neon Green
   Desktop / Tablet / Mobile Responsive
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050505;
  --surface: #100707;
  --surface2: #190909;
  --red: #d90012;
  --red-light: #ff182c;
  --green: #16ed32;
  --green-dark: #079d1c;
  --text: #f8f8f8;
  --muted: #aaa;
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
}

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 'DM Sans', sans-serif;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--green);
  color: #000;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 20px;
}

/* =====================================================
   HEADER
===================================================== */

.topbar.movix-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 12px 5%;
  background: rgba(5,5,5,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.brand-logo,
.movix-header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font: 900 34px/1 'Outfit', sans-serif;
  letter-spacing: -2px;
}

.brand-logo span {
  color: var(--green);
}

.movix-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px,4vw,55px);
}

.movix-main-nav a {
  position: relative;
  padding: 12px 0;
  color: #c3c3c3;
  font-size: 12px;
  font-weight: 600;
  transition: .2s;
}

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

.movix-main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 5px;
  background: var(--green);
}

.movix-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-search {
  width: 290px;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  background: #151515;
}

.topbar-search > span {
  color: #aaa;
  font-size: 19px;
}

.topbar-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  outline: none;
  border: none;
  background: transparent;
  color: white;
  font-size: 11px;
}

.topbar-search input::placeholder {
  color: #777;
}

#clearSearch {
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 18px;
}

.topbar-icon,
.icon-button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 20px;
}

.topbar-icon:hover,
.icon-button:hover {
  background: var(--green);
  color: #000;
}

.movix-menu-button {
  display: none;
}

.movix-mobile-search {
  display: none;
}

/* =====================================================
   MOBILE SIDEBAR
===================================================== */

.app-sidebar {
  position: fixed;
  z-index: 200;
  inset: 0 auto 0 0;
  width: 270px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #0c0808;
  border-right: 1px solid var(--border);
  transform: translateX(-105%);
  transition: transform .3s ease;
}

.app-sidebar.open,
.app-sidebar.active {
  transform: translateX(0);
}

.movix-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.movix-drawer-header .brand-logo {
  font-size: 27px;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #171010;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 900;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
}

.sidebar-profile strong {
  font-size: 12px;
}

.sidebar-profile small {
  color: var(--muted);
  font-size: 10px;
}

.nav-group {
  margin-bottom: 24px;
}

.nav-label {
  display: block;
  margin-bottom: 10px;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 8px;
  color: #aaa;
  font-size: 12px;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(22,237,50,.10);
  color: var(--green);
}

.nav-icon {
  width: 20px;
  text-align: center;
}

.sidebar-genres,
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.genre-list button {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #191111;
  color: #aaa;
  font-size: 10px;
}

.genre-list button:hover,
.genre-list button.active {
  border-color: var(--green);
  background: var(--green);
  color: #000;
}

.sidebar-bottom {
  margin-top: auto;
}

.sidebar-promo {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid rgba(22,237,50,.2);
  border-radius: 10px;
  background: rgba(22,237,50,.06);
}

.promo-icon {
  color: var(--green);
  font-size: 20px;
}

.sidebar-promo strong {
  display: block;
  font-size: 12px;
}

.sidebar-promo p {
  color: #aaa;
  font-size: 11px;
}

.sidebar-bottom small {
  color: #777;
  font-size: 10px;
}

.sidebar-overlay {
  position: fixed;
  z-index: 190;
  inset: 0;
  background: rgba(0,0,0,.75);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   MAIN CONTENT
===================================================== */

.app-main {
  min-height: 100vh;
  min-width: 0;
  margin-left: 0;
}

.page-content,
.details-page {
  width: 100%;
  max-width: 1800px;
  padding: 25px 5% 55px;
  margin: auto;
}

.content-section {
  margin-bottom: 55px;
  scroll-margin-top: 100px;
}

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

.section-header h2 {
  font: 800 clamp(20px,2vw,26px)/1.25 'Outfit',sans-serif;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-description {
  color: #888;
  font-size: 11px;
}

/* =====================================================
   CINELAND HERO BANNER
===================================================== */

.hero-section.movix-cinematic-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(250px,390px);
  align-items: center;
  gap: 30px;
  padding: 48px 45px 105px;
  margin-bottom: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background:
    radial-gradient(ellipse at 75% 45%,rgba(210,0,20,.4),transparent 45%),
    linear-gradient(110deg,#190202,#350303 55%,#100202);
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: .85;
  transition: background-image .4s ease;
}

.movix-hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(20,0,0,.96) 0%,
      rgba(30,0,0,.78) 38%,
      rgba(35,0,0,.25) 75%,
      rgba(0,0,0,.15) 100%),
    linear-gradient(0deg,rgba(10,0,0,.8),transparent 55%);
}

.hero-section.movix-cinematic-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 75% 50%,transparent 0,rgba(0,0,0,.08) 60%),
    linear-gradient(0deg,rgba(0,0,0,.3),transparent 30%);
  pointer-events: none;
}

.movix-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 23px;
  border: 1px solid rgba(22,237,50,.25);
  border-radius: 30px;
  background: rgba(0,0,0,.35);
  color: #eee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.movix-content-label {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.movix-hero-content h1,
#heroTitle {
  max-width: 690px;
  margin: 8px 0 13px;
  color: #fff;
  font: 900 clamp(34px,4.5vw,62px)/1.08 'Outfit',sans-serif;
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 22px rgba(0,0,0,.3);
}

.movix-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 13px 0 7px;
  color: #ddd;
  font-size: 11px;
  font-weight: 600;
}

.meta-separator {
  color: var(--green);
}

.movix-hero-rating {
  display: flex;
  gap: 4px;
  margin: 8px 0 12px;
  color: #ffd72e;
  font-size: 19px;
  letter-spacing: 1px;
}

#heroDescription {
  max-width: 480px;
  margin: 12px 0 20px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  transition: .2s;
}

.btn-primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #001600;
}

.btn-primary:hover {
  background: #52ff65;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(22,237,50,.25);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(0,0,0,.25);
  color: white;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}

.hero-dot {
  width: 20px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.45);
}

.hero-dot.active {
  width: 34px;
  background: var(--green);
}

/* Featured poster */

.hero-poster-wrap.movix-featured-poster {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(100%,285px);
  max-height: 390px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.7));
}

.movix-featured-poster img {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  box-shadow: 0 10px 45px rgba(0,0,0,.5);
}

.movix-poster-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: #200707;
  color: var(--green);
  font: 900 30px 'Outfit',sans-serif;
}

.hero-bottom-label {
  position: absolute;
  z-index: 5;
  right: 25px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.hero-line {
  width: 38px;
  height: 2px;
  background: var(--green);
}

/* =====================================================
   POSTER THUMBNAIL CAROUSEL
===================================================== */

.movix-hero-carousel {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: -18px auto 55px;
  padding: 0 12px;
}

.movix-carousel-track,
.movix-hero-thumbnails {
  display: flex;
  align-items: center;
  gap: 13px;
  overflow-x: auto;
  padding: 8px 5px 13px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movix-carousel-track::-webkit-scrollbar,
.movix-hero-thumbnails::-webkit-scrollbar {
  display: none;
}

.movix-hero-thumb,
.movix-carousel-item {
  position: relative;
  flex: 0 0 105px;
  height: 145px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #170707;
  cursor: pointer;
  transition: .25s ease;
}

.movix-hero-thumb img,
.movix-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movix-hero-thumb.active,
.movix-carousel-item.active {
  border-color: var(--green);
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(22,237,50,.2);
}

.movix-hero-thumb:hover,
.movix-carousel-item:hover {
  border-color: var(--green);
}

.movix-carousel-arrow {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,237,50,.5);
  border-radius: 50%;
  background: rgba(0,0,0,.85);
  color: var(--green);
  transform: translateY(-50%);
}

.movix-carousel-arrow:hover {
  background: var(--green);
  color: #000;
}

.movix-carousel-arrow.prev {
  left: -4px;
}

.movix-carousel-arrow.next {
  right: -4px;
}

/* =====================================================
   FILTERS
===================================================== */

.filter-toolbar {
  margin-bottom: 20px;
}

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

.filters button {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #171010;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
}

.filters button:hover,
.filters button.active {
  border-color: var(--green);
  background: var(--green);
  color: #000;
}

/* =====================================================
   MOVIE GRIDS
===================================================== */

.movie-grid,
#featuredMovies,
#trendingGrid,
#popularGrid,
#movieGrid,
#latestGrid,
#seriesGrid,
#animeGrid,
#watchlistGrid,
#similarMoviesGrid,
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 20px 15px;
  min-width: 0;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

/* =====================================================
   MOVIE CARDS
===================================================== */

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: linear-gradient(180deg,#190d0d,#0d0909);
  cursor: pointer;
  transition: transform .25s,border-color .25s,box-shadow .25s;
}

.movie-card:hover {
  z-index: 3;
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #211010;
}

.movie-poster img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.movie-poster-shade {
  position: absolute;
  z-index: 1;
  inset: 35% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent,rgba(0,0,0,.9));
}

.movie-rating {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(0,0,0,.8);
  color: #ffd72e;
  font-size: 10px;
}

.movie-type {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.7);
  color: white;
  font-size: 9px;
}

.movie-card .watchlist-btn {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  color: white;
}

.movie-card .watchlist-btn:hover,
.movie-card .watchlist-btn.saved {
  border-color: var(--green);
  background: var(--green);
  color: #000;
}

.movie-open-btn {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}

.movie-card:hover .movie-open-btn {
  opacity: 1;
  transform: none;
}

.movie-info {
  padding: 10px;
}

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

.movie-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #999;
  font-size: 10px;
}

.movie-meta-dot {
  color: var(--green);
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #190707;
  color: var(--green);
  font: 900 22px 'Outfit',sans-serif;
}

/* =====================================================
   EMPTY STATES
===================================================== */

.empty-message,
.empty-state,
.no-results,
.loading {
  grid-column: 1/-1;
  padding: 35px 15px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: #aaa;
  text-align: center;
}

/* =====================================================
   SEARCH RESULTS
===================================================== */

.search-results {
  display: none;
  position: relative;
  z-index: 30;
  width: 92%;
  max-width: 1700px;
  padding: 22px;
  margin: 18px auto 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #120909;
}

.search-results.active {
  display: block;
}

.search-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-results-heading h2 {
  font: 800 22px 'Outfit',sans-serif;
}

.search-results-count {
  margin-bottom: 16px;
  color: #aaa;
  font-size: 11px;
}

.search-close-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #211010;
  color: white;
}

.search-close-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.search-no-results {
  grid-column: 1/-1;
  padding: 35px;
  color: #aaa;
  text-align: center;
}

/* =====================================================
   MOVIE DETAILS PAGE
===================================================== */

.details-page {
  padding-top: 25px;
  padding-bottom: 60px;
}

.details-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  color: #999;
  font-size: 11px;
}

.details-breadcrumb a {
  color: var(--green);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 25px;
}

.details-main {
  min-width: 0;
}

.movie-details-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: center;
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #190707;
}

.details-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.details-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.65));
}

.details-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  align-items: center;
  gap: 28px;
}

.details-poster-wrap {
  max-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.details-poster-wrap img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

#detailTitle {
  margin-bottom: 12px;
  font: 900 clamp(25px,3.5vw,43px)/1.15 'Outfit',sans-serif;
  overflow-wrap: anywhere;
}

#detailDescription,
#detailSynopsis {
  color: #ccc;
  font-size: 13px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.detail-meta span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(0,0,0,.4);
  color: #ddd;
  font-size: 10px;
}

.details-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.details-tabs {
  position: sticky;
  z-index: 20;
  top: 82px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(15,8,8,.95);
  backdrop-filter: blur(12px);
}

.details-tabs a {
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
}

.details-tabs a:hover,
.details-tabs a.active {
  color: var(--green);
}

.details-section {
  padding: 22px;
  margin-bottom: 23px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: linear-gradient(140deg,#170b0b,#0d0808);
  scroll-margin-top: 100px;
}

.details-section-heading {
  margin-bottom: 18px;
}

.details-section-heading h2 {
  font: 800 23px 'Outfit',sans-serif;
}

.movie-info-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.movie-info-row {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.movie-info-row span,
.movie-info-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.movie-info-row span {
  margin-bottom: 4px;
  color: #888;
  font-size: 10px;
}

.movie-info-row strong {
  font-size: 12px;
}

.synopsis-text {
  color: #ccc;
  font-size: 13px;
  line-height: 1.9;
}

/* Details sidebar */

.details-sidebar {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
}

.sidebar-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #160b0b;
}

.sidebar-card h3 {
  margin-bottom: 12px;
  font: 800 17px 'Outfit',sans-serif;
}

.sidebar-search {
  display: flex;
  gap: 6px;
}

.sidebar-search input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #090606;
  color: white;
}

.sidebar-search button {
  width: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #000;
}

.about-text {
  color: #aaa;
  font-size: 11px;
}

.details-sidebar .genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =====================================================
   DOWNLOADS
===================================================== */

.download-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.download-filters select {
  min-width: 145px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #180c0c;
  color: white;
}

.download-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.download-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #100909;
  font-size: 11px;
}

.download-table th {
  padding: 14px 11px;
  background: #251010;
  color: white;
  text-align: left;
}

.download-table td {
  padding: 13px 11px;
  border-top: 1px solid var(--border);
  color: #ccc;
}

.download-table a,
.download-table button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 900;
}

.download-table a:hover,
.download-table button:hover {
  background: #6aff78;
}

.download-note {
  margin-top: 10px;
  color: #888;
  font-size: 10px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
  padding: 30px 5%;
  border-top: 1px solid var(--border);
  background: #080505;
  text-align: center;
}

.footer .brand-logo {
  margin: 0 auto 10px;
  font-size: 27px;
}

.footer p {
  margin-bottom: 6px;
  color: #aaa;
  font-size: 11px;
}

.footer small {
  color: #777;
  font-size: 10px;
}

/* =====================================================
   TABLET
===================================================== */

@media(max-width:1100px) {
  .movie-grid,
  #featuredMovies,
  #trendingGrid,
  #popularGrid,
  #movieGrid,
  #latestGrid,
  #seriesGrid,
  #animeGrid,
  #watchlistGrid,
  #similarMoviesGrid,
  .search-results-grid,
  .horizontal-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .featured-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .hero-section.movix-cinematic-hero {
    min-height: 430px;
    grid-template-columns: minmax(0,1fr) 260px;
    padding: 35px;
  }

  .hero-poster-wrap.movix-featured-poster {
    width: 230px;
  }

  .movix-hero-content h1,
  #heroTitle {
    font-size: clamp(32px,4vw,48px);
  }
}

/* =====================================================
   MOBILE / TABLET HEADER
===================================================== */

@media(max-width:850px) {
  .topbar.movix-topbar {
    min-height: 68px;
    padding: 10px 4%;
    gap: 12px;
  }

  .movix-header-logo {
    font-size: 29px;
  }

  .movix-main-nav {
    gap: 17px;
  }

  .movix-main-nav a {
    font-size: 10px;
  }

  .topbar-search {
    width: 210px;
  }

  .movix-menu-button {
    display: grid;
  }

  .movix-hero-carousel {
    margin-top: -10px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:650px) {
  html {
    scroll-padding-top: 70px;
  }

  .topbar.movix-topbar {
    min-height: 65px;
    padding: 9px 17px;
  }

  .movix-header-logo {
    font-size: 27px;
  }

  .movix-main-nav {
    display: none;
  }

  .movix-header-actions {
    gap: 7px;
  }

  .topbar-search {
    width: min(190px,45vw);
    min-height: 37px;
    padding: 0 9px;
  }

  .topbar-search input {
    height: 35px;
    font-size: 9px;
  }

  .topbar-icon,
  .movix-menu-button {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .page-content,
  .details-page {
    padding: 15px 13px 35px;
  }

  /* Hero mobile layout */

  .hero-section.movix-cinematic-hero {
    min-height: 370px;
    grid-template-columns: minmax(0,1fr) 105px;
    gap: 10px;
    padding: 22px 15px 48px;
    margin-bottom: 23px;
    border-radius: 0;
  }

  .movix-hero-content {
    min-width: 0;
  }

  .hero-tag {
    padding: 5px 7px;
    margin-bottom: 13px;
    font-size: 7px;
  }

  .movix-content-label {
    font-size: 7px;
  }

  .movix-hero-content h1,
  #heroTitle {
    margin: 7px 0;
    font-size: clamp(23px,6.6vw,34px);
    line-height: 1.13;
    letter-spacing: -.7px;
  }

  .movix-hero-meta {
    gap: 5px;
    margin: 7px 0;
    font-size: 8px;
  }

  .movix-hero-rating {
    gap: 2px;
    margin: 5px 0;
    font-size: 15px;
  }

  #heroDescription {
    margin: 8px 0 12px;
    font-size: 9px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 6px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .hero-dots {
    gap: 5px;
    margin-top: 13px;
  }

  .hero-dot {
    width: 13px;
    height: 3px;
  }

  .hero-dot.active {
    width: 24px;
  }

  .hero-poster-wrap.movix-featured-poster {
    width: 105px;
    justify-self: center;
  }

  .movix-featured-poster img {
    border-radius: 6px;
  }

  .hero-bottom-label {
    right: 12px;
    bottom: 12px;
    gap: 6px;
    font-size: 7px;
  }

  .hero-line {
    width: 22px;
  }

  /* Poster carousel */

  .movix-hero-carousel {
    margin: -10px auto 38px;
    padding: 0 8px;
  }

  .movix-carousel-track,
  .movix-hero-thumbnails {
    gap: 9px;
    padding: 6px 3px 11px;
  }

  .movix-hero-thumb,
  .movix-carousel-item {
    flex-basis: 83px;
    height: 117px;
    border-radius: 7px;
  }

  .movix-carousel-arrow {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }

  /* Content sections */

  .content-section {
    margin-bottom: 38px;
  }

  .section-header {
    align-items: flex-end;
    margin-bottom: 14px;
  }

  .section-header h2 {
    font-size: 19px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .section-description {
    max-width: 100px;
    font-size: 8px;
    text-align: right;
  }

  /* Movie cards */

  .movie-grid,
  #featuredMovies,
  #trendingGrid,
  #popularGrid,
  #movieGrid,
  #latestGrid,
  #seriesGrid,
  #animeGrid,
  #watchlistGrid,
  #similarMoviesGrid,
  .horizontal-grid,
  .search-results-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px 9px;
  }

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

  .movie-card {
    border-radius: 7px;
  }

  .movie-info {
    padding: 7px;
  }

  .movie-info h3 {
    font-size: 10px;
  }

  .movie-info p {
    font-size: 8px;
  }

  .movie-rating {
    top: 5px;
    left: 5px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .movie-card .watchlist-btn {
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
  }

  .movie-open-btn {
    min-height: 28px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    font-size: 8px;
    opacity: 1;
    transform: none;
  }

  .movie-type {
    font-size: 7px;
  }

  /* Details */

  .movie-details-header {
    min-height: 0;
    padding: 15px;
  }

  .details-header-inner {
    grid-template-columns: 95px minmax(0,1fr);
    gap: 12px;
  }

  .details-poster-wrap {
    max-width: 95px;
  }

  #detailTitle {
    font-size: 20px;
  }

  #detailDescription {
    font-size: 9px;
    line-height: 1.55;
  }

  .detail-meta {
    gap: 4px;
    margin: 7px 0;
  }

  .detail-meta span {
    padding: 3px 5px;
    font-size: 8px;
  }

  .details-action-row {
    gap: 5px;
    margin-top: 9px;
  }

  .details-action-row .btn-primary,
  .details-action-row .btn-secondary {
    min-height: 31px;
    padding: 6px 7px;
    font-size: 8px;
  }

  .details-tabs {
    top: 65px;
    gap: 15px;
    padding: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .details-tabs a {
    font-size: 9px;
  }

  .details-section {
    padding: 14px;
    margin-bottom: 14px;
  }

  .details-section-heading h2 {
    font-size: 19px;
  }

  .movie-info-grid {
    gap: 7px;
  }

  .movie-info-row {
    padding: 9px;
  }

  .movie-info-row strong {
    font-size: 10px;
  }

  .synopsis-text {
    font-size: 11px;
  }

  .details-sidebar {
    grid-template-columns: 1fr;
  }

  .download-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-filters select {
    width: 100%;
  }

  .download-table {
    min-width: 620px;
  }

  /* Search */

  .search-results {
    width: 94%;
    padding: 12px;
    margin: 10px auto 20px;
  }

  .search-results-grid {
    gap: 10px 8px;
  }

  .search-results-heading h2 {
    font-size: 17px;
  }

  .search-results-count {
    font-size: 9px;
  }

  .footer {
    padding: 22px 12px;
  }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:390px) {
  .topbar.movix-topbar {
    padding: 8px 11px;
  }

  .movix-header-logo {
    font-size: 24px;
  }

  .topbar-search {
    width: 43vw;
  }

  .hero-section.movix-cinematic-hero {
    grid-template-columns: minmax(0,1fr) 85px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .hero-poster-wrap.movix-featured-poster {
    width: 85px;
  }

  .movix-hero-content h1,
  #heroTitle {
    font-size: 23px;
  }

  .movie-grid,
  #featuredMovies,
  #trendingGrid,
  #popularGrid,
  #movieGrid,
  #latestGrid,
  #seriesGrid,
  #animeGrid,
  #watchlistGrid,
  #similarMoviesGrid,
  .horizontal-grid,
  .search-results-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .movix-hero-thumb,
  .movix-carousel-item {
    flex-basis: 75px;
    height: 106px;
  }

  .details-header-inner {
    grid-template-columns: 80px minmax(0,1fr);
    gap: 9px;
  }

  .details-poster-wrap {
    max-width: 80px;
  }

  #detailTitle {
    font-size: 17px;
  }
}

/* =====================================================
   TOUCH DEVICES
===================================================== */

@media(hover:none) {
  .movie-open-btn {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   ACCESSIBILITY / MOTION
===================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
