/* Zenou Unblocked, movie and TV discovery.
 *
 * Page-scoped to movies.html. Design tokens, top bar, buttons and footer all
 * come from style.css; this file adds the hero, the rails, the live search and
 * the browse grid.
 *
 * The one loud element on this page is the backdrop hero. Everything under it
 * is deliberately quiet: hairline rails, no shadows on the cards, one accent
 * colour used only for state.
 */

.dc-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 90px;
}

/* ---------------- hero ---------------- */

.dc-hero {
  position: relative;
  min-height: 460px;
  max-height: 620px;
  display: flex;
  align-items: flex-end;
  margin: 0 0 8px;
  overflow: hidden;
  background: #06070c;
}

.dc-hero-media {
  position: absolute;
  inset: 0;
}

.dc-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity .6s var(--ease);
}

.dc-hero.is-ready .dc-hero-media img { opacity: .78; }

.dc-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07080e 4%, rgba(7, 8, 14, .86) 34%, rgba(7, 8, 14, .28) 66%, rgba(7, 8, 14, .1)),
    linear-gradient(0deg, #07080e 2%, rgba(7, 8, 14, .55) 22%, transparent 60%);
}

.dc-hero-accent {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb)) 55%, transparent);
  opacity: .85;
}

.dc-hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 30px;
  display: grid;
  gap: 14px;
}

.dc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.dc-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgb(var(--accent-rgb));
}

.dc-hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.03em;
  font-stretch: 108%;
  text-wrap: balance;
}

.dc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dc-meta .dc-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
}

.dc-meta .dc-score::before {
  content: "★";
  color: rgb(var(--accent-rgb));
  font-size: 12px;
}

.dc-meta .dc-cert {
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: .04em;
}

.dc-hero p.dc-lede {
  margin: 0;
  max-width: 60ch;
  color: #c9cedd;
  font-size: 14.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.dc-btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); }
.dc-btn:active { transform: translateY(1px); }

.dc-btn-solid {
  background: linear-gradient(120deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb)));
  border-color: transparent;
  color: var(--accent-ink);
}

.dc-btn-solid:hover { background: linear-gradient(120deg, rgb(var(--accent-rgb)), rgb(var(--accent-2-rgb))); filter: brightness(1.06); }

/* ---------------- search ---------------- */

.dc-searchwrap {
  position: relative;
  z-index: 20;
  max-width: var(--maxw);
  margin: -26px auto 0;
  padding: 0 var(--gutter);
}

.dc-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(13, 15, 24, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .95);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.dc-search:focus-within {
  border-color: rgb(var(--accent-rgb) / .65);
  box-shadow: 0 24px 60px -30px rgb(var(--accent-rgb) / .7);
}

.dc-search svg { width: 18px; height: 18px; color: var(--muted-2); flex: 0 0 auto; }

.dc-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.dc-search input::placeholder { color: var(--muted-2); }

.dc-search-hint {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: .04em;
}

.dc-live {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(11, 13, 20, .98);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
  padding: 6px;
}

.dc-live[hidden] { display: none; }

.dc-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dc-hit[aria-selected="true"], .dc-hit:hover { background: rgba(255, 255, 255, .07); }

.dc-hit img, .dc-hit .dc-hit-ph {
  width: 40px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, .06);
}

.dc-hit-body { display: grid; gap: 2px; min-width: 0; }
.dc-hit-body b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-hit-body span { font-size: 12px; color: var(--muted-2); }
.dc-hit-kind { margin-left: auto; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

.dc-live-foot {
  padding: 8px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------------- rails ---------------- */

.dc-rails {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--gutter) 0;
}

.dc-rail { margin-bottom: 34px; }

.dc-rail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.dc-rail-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #dfe4f0;
}

.dc-rail-head .dc-rail-sub {
  font-size: 12.5px;
  color: var(--muted-2);
}

.dc-rail-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.dc-rail-nav button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
}

.dc-rail-nav button:hover:not(:disabled) { color: #fff; border-color: var(--line-strong); }
.dc-rail-nav button:disabled { opacity: .32; cursor: default; }

.dc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.dc-track::-webkit-scrollbar { display: none; }

/* ---------------- poster cards ---------------- */

.dc-card {
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.dc-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
    #10131f;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.dc-card:hover .dc-poster {
  transform: translateY(-3px);
  border-color: rgb(var(--accent-rgb) / .55);
}

.dc-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.dc-poster img.is-loaded { opacity: 1; }

.dc-poster-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted-2);
  background:
    radial-gradient(90% 70% at 50% 0%, rgb(var(--accent-rgb) / .18), transparent 70%),
    #0d1018;
}

.dc-score-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(6, 7, 12, .82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.dc-score-chip::before { content: "★ "; color: rgb(var(--accent-rgb)); }

.dc-kind-chip {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 7, 12, .82);
  color: #cfd6e6;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dc-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #e6eaf4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-card-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: -3px;
}

/* ---------------- browse ---------------- */

.dc-browse {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
}

.dc-browse-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dc-browse-head h2 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -.015em;
}

.dc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.dc-filters button,
.dc-filters select {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.dc-filters select { border-radius: 8px; background: #0d1018; }
.dc-filters button:hover { color: #fff; border-color: var(--line-strong); }
.dc-filters button[aria-pressed="true"] {
  color: #fff;
  border-color: rgb(var(--accent-rgb) / .6);
  background: rgb(var(--accent-rgb) / .15);
}

.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 16px;
}

.dc-sentinel {
  height: 1px;
  margin-top: 26px;
}

.dc-more {
  display: grid;
  place-items: center;
  margin-top: 26px;
}

.dc-empty, .dc-notice {
  padding: 34px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dc-notice b { color: var(--text); }

/* loading skeleton */
.dc-skel {
  border-radius: 10px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(100deg, rgba(255, 255, 255, .04) 20%, rgba(255, 255, 255, .09) 40%, rgba(255, 255, 255, .04) 60%);
  background-size: 220% 100%;
  animation: dc-shimmer 1.4s linear infinite;
}

@keyframes dc-shimmer { to { background-position: -120% 0; } }

/* ---------------- setup / error ---------------- */

.dc-setup {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 30px var(--gutter);
}

.dc-setup-card {
  padding: 26px 28px;
  border: 1px solid rgb(var(--accent-rgb) / .28);
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgb(var(--accent-rgb) / .10), transparent 60%),
    var(--surface-solid);
}

.dc-setup-card h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.dc-setup-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 74ch; }
.dc-setup-card code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.dc-setup-card pre {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .38);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
  color: #d7dbe6;
}

/* ---------------- source shelf link ---------------- */

.dc-shelf {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 0 var(--gutter);
}

.dc-shelf-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}

.dc-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.dc-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.dc-pick:hover, .dc-pick:focus-visible {
  border-color: rgb(var(--accent-rgb) / .5);
  background: rgba(255, 255, 255, .06);
}

.dc-pick-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, #ff4fb0, #8b5cf6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

.dc-pick-body { display: block; min-width: 0; }
.dc-pick-body b { display: block; font-size: 14px; }
.dc-pick-body small { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.dc-pick-go { margin-left: auto; color: rgb(var(--accent-rgb)); font-weight: 700; }

.dc-shelf-card:hover { border-color: var(--line-strong); }
.dc-shelf-card b { display: block; font-size: 15px; margin-bottom: 3px; }
.dc-shelf-card span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.dc-shelf-card .dc-shelf-cta { margin-left: auto; color: rgb(var(--accent-rgb)); font-weight: 600; font-size: 13.5px; white-space: nowrap; }

/* ---------------- TMDB credit ---------------- */

/* The required attribution mark, laid out beside its wording. Without this the
   img is squeezed by the text column on mobile and the wordmark becomes unreadable. */
#tmdbCredit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#tmdbCredit img {
  flex: 0 0 auto;
  /* The official mark is the stacked square lockup, so it needs real width to
     stay legible; at 68px the letterform collapses. */
  width: 92px;
  height: auto;
  opacity: .92;
}

#tmdbCredit span {
  flex: 1 1 160px;
  min-width: 0;
  line-height: 1.5;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .dc-track { grid-auto-columns: calc((100% - 48px) / 4); }
}

@media (max-width: 900px) {
  .dc-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .dc-hero { min-height: 400px; }
  .dc-hero-media img { object-position: center 18%; }
}

@media (max-width: 640px) {
  .dc-main { padding-bottom: 60px; }
  .dc-hero { min-height: 360px; max-height: 460px; }
  .dc-hero-body { padding: 40px 18px 24px; gap: 10px; }
  .dc-hero h1 { font-size: clamp(30px, 10vw, 42px); }
  .dc-hero p.dc-lede { -webkit-line-clamp: 2; font-size: 13.5px; }
  .dc-searchwrap { padding: 0 16px; margin-top: -18px; }
  .dc-search { height: 52px; padding: 0 13px; }
  .dc-search-hint { display: none; }
  .dc-rails, .dc-browse, .dc-shelf { padding-left: 16px; padding-right: 16px; }
  .dc-track { grid-auto-columns: 42%; gap: 12px; }
  .dc-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 12px; }
  .dc-rail-nav { display: none; }
  .dc-filters { margin-left: 0; width: 100%; }
  .dc-browse-head { gap: 10px; }
}

[data-motion="calm"] .dc-card:hover .dc-poster { transform: none; }
[data-motion="calm"] .dc-track { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  .dc-track { scroll-behavior: auto; }
  .dc-card:hover .dc-poster { transform: none; }
  .dc-skel { animation: none; }
}
