/* ===== VİZYON+ — koyu sinematik tema ===== */
:root {
  --bg: #06070f;
  --surface: #0b0d1a;
  --card: #12142a;
  --line: #1e2140;
  --text: #f1f5f9;
  --dim: #8b93b0;
  --accent: #f5a623;
  --accent-dark: #d98b0f;
  --brand: #6366f1;
  --danger: #ef4444;
}

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

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  background: linear-gradient(to bottom, rgba(0,0,0,.8), transparent);
}
.nav.scrolled {
  background: rgba(6,7,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 64px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 26px; letter-spacing: -.02em; flex-shrink: 0;
}
.brand span { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  padding: 6px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--dim);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.search { margin-left: auto; flex: 1; position: relative; max-width: 260px; }
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--dim); pointer-events: none;
}
.search input {
  width: 100%; border: 1px solid var(--line); background: rgba(11,13,26,.8);
  border-radius: 999px; padding: 9px 16px 9px 34px;
  font-size: 14px; color: var(--text); outline: none; transition: border-color .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--accent); }
.nav-links-mobile {
  display: flex; gap: 6px; padding: 0 16px 8px;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links-mobile::-webkit-scrollbar { display: none; }
.nav-links-mobile a {
  white-space: nowrap; border-radius: 999px; background: rgba(255,255,255,.05);
  padding: 4px 12px; font-size: 12px; font-weight: 500; color: var(--dim);
}
@media (min-width: 768px) {
  .nav-inner { padding: 0 32px; }
  .nav-links { display: flex; }
  .search { flex: none; width: 260px; }
  .nav-links-mobile { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; height: 78vh; min-height: 480px;
  width: 100%; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 14s ease-out both;
}
.hero-slide.active .hero-bg { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-trailer { position: absolute; inset: 0; }
.trailer-cover {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 178vh); height: max(100%, 56.25vw);
  border: 0; pointer-events: none;
}
.hero-slide.playing .hero-trailer { animation: fade .8s ease both; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg), rgba(6,7,15,.55) 55%, transparent),
    linear-gradient(to top, var(--bg), transparent 55%);
}
.hero-content {
  position: absolute; inset: auto 0 0 0;
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px 80px; z-index: 2;
}
@media (min-width: 768px) { .hero-content { padding: 0 32px 80px; } }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14px; margin-bottom: 12px;
}
.hero-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(32px, 6vw, 60px); line-height: 1.05;
  max-width: 640px; text-shadow: 0 2px 24px rgba(0,0,0,.9);
}
.hero-overview {
  margin-top: 16px; max-width: 560px; color: var(--dim);
  font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.hero-dot {
  height: 6px; width: 16px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.25); cursor: pointer; transition: all .3s;
}
.hero-dot.active { width: 32px; background: var(--accent); }

/* Pills & badges */
.pill {
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  border-radius: 6px; padding: 2px 8px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.pill-rating { background: var(--accent); color: #000; border: 0; }
.pill-soon { background: var(--brand); color: #fff; border: 0; }
.dim { color: var(--dim); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .1s; border: 0;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: var(--text); backdrop-filter: blur(4px); font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ===== Rows ===== */
.rows { position: relative; z-index: 10; margin-top: -40px;
        display: flex; flex-direction: column; gap: 48px; }
.row { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 16px; }
@media (min-width: 768px) { .row { padding: 0 32px; } }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.row-head h2 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(20px, 3vw, 24px); display: flex; align-items: center;
}
.row-bar {
  display: inline-block; width: 4px; height: 24px; border-radius: 999px;
  background: var(--accent); margin-right: 12px;
}
.row-all { font-size: 14px; font-weight: 500; color: var(--dim); transition: color .2s; }
.row-all:hover { color: var(--accent); }
.row-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { scroll-snap-align: start; }

/* ===== Card ===== */
.card {
  display: block; width: 160px; flex-shrink: 0;
  transition: transform .25s;
}
@media (min-width: 768px) { .card { width: 184px; } }
.card:hover { transform: translateY(-4px) scale(1.02); }
.card-poster {
  position: relative; aspect-ratio: 2/3; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.card:hover .card-poster {
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.8), 0 0 0 1px rgba(245,166,35,.35);
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-poster img { transform: scale(1.05); }
.badge {
  position: absolute; border-radius: 6px; padding: 2px 6px;
  font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.badge-rating { left: 8px; top: 8px; background: rgba(0,0,0,.7); color: var(--accent); }
.badge-quality { right: 8px; top: 8px; background: var(--accent); color: #000; }
.badge-quality.is-trailer { background: var(--brand); color: #fff; }
.card-date {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.7); border-radius: 6px; padding: 4px 8px;
  text-align: center; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-play { opacity: 1; }
.card-play svg {
  width: 24px; height: 24px; color: #000;
  padding: 12px; box-sizing: content-box; border-radius: 999px;
  background: rgba(245,166,35,.9); box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.card-title {
  margin-top: 8px; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card:hover .card-title { color: var(--accent); }
.card-meta {
  font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Grid pages ===== */
.page { max-width: 1200px; margin: 0 auto; padding: 96px 16px 32px; }
@media (min-width: 768px) { .page { padding: 96px 32px 32px; } }
.page-title {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(24px, 4vw, 30px); margin-bottom: 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.page-title .row-bar { height: 28px; }
.page-count { font-size: 14px; font-weight: 400; color: var(--dim); margin-left: 12px; }
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.grid .card { width: 100%; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.empty {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 32px; text-align: center; color: var(--dim);
}
.empty a { color: var(--accent); }

/* ===== Detail ===== */
.detail-back { position: relative; height: 42vh; min-height: 280px; overflow: hidden; }
.detail-back img { width: 100%; height: 100%; object-fit: cover; }
.detail-back-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(6,7,15,.5) 50%, rgba(6,7,15,.2));
}
.detail {
  position: relative; z-index: 10; max-width: 1200px; margin: -160px auto 0;
  padding: 0 16px; display: grid; gap: 32px;
}
@media (min-width: 768px) {
  .detail { padding: 0 32px; grid-template-columns: 240px 1fr; }
}
.detail-poster { display: none; }
@media (min-width: 768px) {
  .detail-poster { display: block; }
  .detail-poster img {
    width: 100%; border-radius: 12px; border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
  }
}
.detail-main { display: flex; flex-direction: column; gap: 24px; }
.detail-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(28px, 5vw, 48px); text-shadow: 0 2px 24px rgba(0,0,0,.9);
}
.detail-orig { margin-top: 4px; font-size: 14px; color: var(--dim); }
.detail-meta { margin-top: 12px; }
.detail-genres { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.genre-chip {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500;
  color: var(--dim); transition: border-color .2s, color .2s;
}
.genre-chip:hover { border-color: var(--accent); color: var(--accent); }
.detail-overview { max-width: 720px; line-height: 1.7; color: var(--dim); }
.detail-similar { margin-top: 64px; }

/* ===== Player ===== */
.player { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.player-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.player-tab {
  border: 0; cursor: pointer; border-radius: 8px;
  padding: 6px 16px; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--dim); transition: all .2s;
}
.player-tab:hover { color: var(--text); }
.player-tab.active { background: var(--accent); color: #000; }
.player-note { margin-left: auto; font-size: 12px; color: var(--dim); padding: 0 8px; }
.player-stage { position: relative; aspect-ratio: 16/9; background: #000; }
.player-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; cursor: pointer; background: #000; padding: 0;
}
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s; }
.player-poster:hover img { opacity: .5; }
.player-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.player-play svg {
  width: 36px; height: 36px; color: #000;
  padding: 22px; box-sizing: content-box; border-radius: 999px;
  background: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  transition: transform .2s;
}
.player-poster:hover .player-play svg { transform: scale(1.1); }
.player-empty {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font-size: 14px; color: var(--dim);
}
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px 16px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) {
  .footer-inner { padding: 40px 32px; flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand { max-width: 380px; }
.footer-brand .brand { font-size: 20px; }
.footer-brand p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--dim); }
.footer-brand a { color: var(--accent); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; font-size: 14px; }
.footer-links a { color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.copyright {
  max-width: 1200px; margin: 0 auto; padding: 24px 16px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
@media (min-width: 768px) { .copyright { padding: 24px 32px; } }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-slide { animation: none !important; }
  html { scroll-behavior: auto; }
}
