/* Luma+ — Premium Cinematic Movie Discovery */
:root {
  --bg: #000000;
  --surface: #111111;
  --card: #1a1a1a;
  --silver: #c0c0c0;
  --metal: #d9d9d9;
  --text: #ffffff;
  --muted: #a5a5a5;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 30px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff 0%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 8px;
}
.logo .plus {
  background: linear-gradient(180deg, var(--metal), #8a8a8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 9px 16px 9px 38px;
  border-radius: 999px;
  font-size: 13.5px;
  width: 220px;
  outline: none;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
  backdrop-filter: blur(20px);
}
.search-wrap input::placeholder {
  color: var(--muted);
}
.search-wrap input:focus {
  width: 280px;
  background: rgba(255, 255, 255, 0.09);
}
.search-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a5a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-height: 460px;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
  display: none;
}
.search-results.show {
  display: block;
  animation: fadeIn 0.25s var(--ease);
}
.search-results .sr {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.search-results .sr:hover {
  background: rgba(255, 255, 255, 0.06);
}
.search-results .sr img {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
}
.search-results .sr .info {
  font-size: 13.5px;
}
.search-results .sr .info span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

@keyframes heroZoom {
  from {
    transform: translate(-50%, -50%) scale(1.15);
  }
  to {
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* Hero crossfade layers */
.hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  overflow: hidden;
  pointer-events: none;
}
.hero-layer.visible { opacity: 1; }
.hero-layer > iframe,
.hero-layer > div > iframe,
.hero-layer .hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.3);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  pointer-events: none;
  border: 0;
  display: block;
}
.hero-layer .hero-img {
  transform: translate(-50%, -50%) scale(1.1);
  object-fit: cover;
  animation: heroZoom 20s var(--ease) forwards;
}
/* Transparent shield that blocks all pointer/touch/context events from reaching the YouTube iframe */
.hero-click-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  pointer-events: auto;
}



/* Mute button */
.mute-btn {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.mute-btn:hover { transform: scale(1.08); background: rgba(255,255,255,0.13); }
.mute-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .mute-btn { right: 5%; bottom: auto; top: 90px; }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.75) 80%,
      #000 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
}


.hero-content {
  position: absolute;
  bottom: 9%;
  left: 6%;
  right: 6%;
  max-width: 560px;
  z-index: 2;
  animation: fadeUp 1.2s var(--ease);
}

.hero-logo {
  max-height: 88px;
  max-width: 260px;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}
.hero-title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, #d9d9d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hero-meta .rating {
  color: var(--metal);
  font-weight: 600;
}
.hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.hero-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 520px;
}
.hero .hero-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ---------- Buttons (Premium Glass System — unified with .pbtn) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-width: 150px;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.2px;
  color: #f5f5f7;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.02) 100%),
    rgba(20,20,20,0.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.05) 45%, rgba(192,192,192,0.35));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  z-index: 2;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn > * { position: relative; z-index: 3; }
.btn svg { width: 18px; height: 18px; }
.btn-primary svg { color: currentColor; }

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.04) 100%),
    rgba(28,28,28,0.45);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}
.btn:hover::after { left: 120%; }
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.55),
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn:active {
  transform: translateY(0) scale(0.94);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  color: #0a0a0a;
  background:
    linear-gradient(180deg, #ffffff 0%, #ededf0 50%, #c8c8cc 100%);
  border-color: rgba(255,255,255,0.6);
  box-shadow:
    0 12px 28px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f4f6 50%, #d4d4d8 100%);
  box-shadow:
    0 18px 40px rgba(255,255,255,0.28),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
.btn-glass { /* inherits premium glass look from .btn */ }

/* ---------- Rows ---------- */
main {
  position: relative;
  z-index: 2;
  padding-bottom: 100px;
  margin-top: -80px;
}

.row {
  padding: 32px 0 8px 6%;
  position: relative;
}
.row-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}
.row-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 6% 30px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 auto;
  width: 200px;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 3;
}
.card:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}
.card .card-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover .card-overlay {
  opacity: 1;
}
.card .card-overlay h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card .card-overlay .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--metal);
  letter-spacing: 0.4px;
}

/* skeleton */
.skel {
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #222 50%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Movie page ---------- */
.movie-page {
  padding-top: 100px;
}
.movie-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 6% 60px;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
}

.movie-hero .hero-bg,
.movie-hero .hero-overlay {
  position: absolute;
  inset: 0;
}
.movie-hero .hero-layer.hero-static {
  animation: fadeIn 1.2s var(--ease) both;
}
.movie-hero .hero-layer.hero-static .hero-img {
  filter: blur(2px) saturate(1.05);
  transform: scale(1.04);
}
.movie-hero .hero-layer.hero-video {
  animation: fadeIn 1.2s var(--ease) both;
}
.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.hero-video-el.is-ready { opacity: 1; }
.movie-hero .hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.movie-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  width: 100%;
  animation: fadeUp 1s var(--ease);
}
.movie-hero-inner .poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.movie-hero-inner .poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  font-size: 11px;
  color: var(--metal);
  margin-right: 6px;
  margin-bottom: 6px;
}

.section {
  padding: 40px 6%;
}
.section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.info-item .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.info-item .value {
  font-size: 14.5px;
  color: #fff;
}

.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
}
.cast {
  text-align: center;
}
.cast img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.cast .name {
  font-size: 13.5px;
  font-weight: 600;
}
.cast .role {
  font-size: 12px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}
.gallery img:hover {
  transform: scale(1.02);
}

/* ---------- Trailer modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal.show {
  display: flex;
  animation: fadeIn 0.4s var(--ease);
}
.modal-inner {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.modal-close:hover {
  transform: scale(1.1);
}

/* ---------- Bottom Nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  z-index: 100;
  box-shadow: var(--shadow-soft);
}
.bottom-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.bottom-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeUp 0.6s var(--ease) both;
}

/* ---------- Admin ---------- */
.admin-wrap {
  padding: 100px 6% 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.admin-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #d9d9d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-sub {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 14px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
}
.panel h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}
.panel p.hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.field label {
  min-width: 180px;
  color: var(--muted);
  font-size: 13.5px;
}
.field input[type="text"],
.field input[type="number"],
.field select {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}
.field input:focus,
.field select:focus {
  background: rgba(255, 255, 255, 0.09);
}
.field input[type="range"] {
  flex: 1;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #c0c0c0);
  transition: transform 0.3s var(--ease);
}
.toggle.on {
  background: rgba(255, 255, 255, 0.4);
}
.toggle.on::after {
  transform: translateX(20px);
}

.section-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.section-toggles .row-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: grab;
}
.section-toggles .row-toggle.dragging {
  opacity: 0.5;
}
.section-toggles .row-toggle .drag {
  color: var(--muted);
  font-size: 12px;
  margin-right: 8px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.lib-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  position: relative;
}
.lib-card:hover {
  transform: translateY(-4px);
}
.lib-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.lib-card .lib-body {
  padding: 12px;
}
.lib-card .lib-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lib-actions button {
  position: relative;
  flex: 1;
  min-width: 55px;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #f5f5f7;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.02) 100%),
    rgba(20,20,20,0.35);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.35);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.lib-actions button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.05) 45%, rgba(192,192,192,0.3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}
.lib-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.32);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 55%, rgba(255,255,255,0.04) 100%),
    rgba(28,28,28,0.45);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}
.lib-actions button:active { transform: translateY(0) scale(0.94); }
.lib-actions button.featured {
  color: #0a0a0a;
  background: linear-gradient(180deg, #ffffff 0%, #ededf0 50%, #c8c8cc 100%);
  border-color: rgba(255,255,255,0.6);
  box-shadow:
    0 8px 20px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}
.lib-actions button.danger:hover {
  border-color: rgba(255, 90, 90, 0.55);
  background:
    linear-gradient(180deg, rgba(255,90,90,0.28) 0%, rgba(255,60,60,0.12) 100%),
    rgba(40,10,10,0.45);
  box-shadow:
    0 10px 24px rgba(255,50,50,0.28),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 13.5px;
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Empty ---------- */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .movie-hero-inner {
    grid-template-columns: 1fr;
  }
  .movie-hero-inner .poster {
    max-width: 240px;
  }
}

@media (max-width: 720px) {
  .nav {
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    gap: 10px;
  }
  .nav-links {
    display: none;
  }
  .search-wrap input {
    width: 140px;
  }
  .search-wrap input:focus {
    width: 180px;
  }
  .bottom-nav {
    display: flex;
  }
  .hero-content {
    left: 5%;
    right: 5%;
    bottom: 15%;
  }
  .card {
    width: 150px;
    height: 225px;
  }
  main {
    padding-bottom: 110px;
  }
  .row {
    padding-left: 5%;
  }
  .row-scroller {
    padding-right: 5%;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero-actions-secondary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ripple effect */
.btn .ripple,
.lib-actions button .ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  animation: pbtnRipple 0.7s var(--ease) forwards;
  pointer-events: none;
  z-index: 1;
}
.btn.is-pressed,
.lib-actions button.is-pressed {
  transform: translateY(0) scale(0.94);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pbtnRipple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}


/* ---------------- Admin trailer uploader ---------------- */
.trailer-panel {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.14);
}
.trailer-panel.dragover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.trailer-panel .tp-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.trailer-panel .tp-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.trailer-panel .tp-progress {
  margin-top: 8px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  display: none;
}
.trailer-panel.uploading .tp-progress { display: block; }
.trailer-panel .tp-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7d8bff, #b57bff);
  transition: width 0.15s linear;
}
.trailer-panel .tp-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 14px;
}
.trailer-panel video {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  background: #000;
  max-height: 160px;
  object-fit: cover;
}

/* Disabled action buttons (no URL configured in Admin) */
.btn.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
