/* Kasetflix — film.megolo.com */
:root { --bg: #141414; --bg2: #1c1c1c; --line: #2c2c2c; --text: #e9e9e9; --muted: #9a9a9a; --red: #e50914; --red2: #b20710; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
.pad { padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Üst menü ---------- */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(#0b0b0b, rgba(11,11,11,.94)); backdrop-filter: blur(8px); border-bottom: 1px solid #1f1f1f; }
.top-in { display: flex; align-items: center; gap: 24px; padding: 10px clamp(16px, 4vw, 56px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo span { color: var(--red); font-weight: 900; letter-spacing: .14em; font-size: 22px; }
.menu { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.menu > a, .dd summary { color: #c9c9c9; text-decoration: none; cursor: pointer; }
.menu > a:hover, .dd summary:hover { color: #fff; }
.dd { position: relative; }
.dd summary { list-style: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: " ▾"; font-size: 12px; }
.dd-list { position: absolute; top: calc(100% + 14px); left: -12px; min-width: 210px; background: #161616; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.6); display: grid; }
.dd-list a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: #ccc; }
.dd-list a:hover { background: #262626; color: #fff; }
.search { margin-left: auto; flex: 0 1 300px; }
.search input { width: 100%; background: #0d0d0d; border: 1px solid #3a3a3a; color: #fff; border-radius: 6px; padding: 9px 12px; font: inherit; font-size: 14px; }
.search input:focus { outline: none; border-color: #fff; }
@media (max-width: 760px) {
  .menu { gap: 14px; font-size: 14px; }
  .menu > a[href="/"] { display: none; }
  .logo span { display: none; }
  .dd summary { white-space: nowrap; }
  .dd-list { position: fixed; top: 58px; left: 12px; right: 12px; min-width: 0; grid-template-columns: 1fr 1fr; }
  .top-in { gap: 12px; }
  .logo span { font-size: 18px; }
  .search { flex: 1 1 auto; }
}

/* ---------- Düğmeler ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: rgba(255,255,255,.28); }
.btn.red { background: var(--red); box-shadow: 0 0 18px rgba(229,9,20,.35); }
.btn.red:hover { background: var(--red2); }
.btn.ghost { background: transparent; border: 1px solid #555; }
.btn.on { background: #fff; color: #000; }

/* ---------- Vitrin ---------- */
.hero { position: relative; min-height: min(70vh, 620px); display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 30%; background: #141414 center 22% / cover no-repeat; background-image: var(--img); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 30%, rgba(20,20,20,.75) 50%, rgba(20,20,20,.1) 80%), linear-gradient(0deg, var(--bg), rgba(20,20,20,0) 35%); }
.hero-in { position: relative; z-index: 1; max-width: 640px; padding: 48px clamp(16px, 4vw, 56px); }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .2em; font-size: 12px; margin: 0 0 10px; }
.hero-title { font-size: clamp(32px, 5vw, 60px); margin: 0 0 10px; font-weight: 900; }
.meta { color: var(--muted); margin: 0; }
.meta b { color: #fff; }
.hero-sum { color: #d2d2d2; font-size: 17px; margin: 14px 0 0; }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero::before { inset: 0; opacity: .55; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 10%, rgba(20,20,20,.55)); }
  .hero-in { padding-top: 160px; }
  .hero-sum { font-size: 15px; }
}

/* ---------- Şeritler ---------- */
.rows { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 20px; }
.row { margin: 0 0 18px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 clamp(16px, 4vw, 56px); }
.row h2 { font-size: clamp(18px, 2vw, 23px); margin: 0; border-left: 4px solid var(--red); padding-left: 10px; }
.more { color: var(--muted); font-size: 14px; text-decoration: none; }
.more:hover { color: #fff; }
.row-wrap { position: relative; }
.track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 clamp(16px, 4vw, 56px);
  padding: 14px clamp(16px, 4vw, 56px) 16px; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.track .card { flex: none; width: clamp(128px, 14vw, 200px); scroll-snap-align: start; }
.arrow { position: absolute; top: 14px; bottom: 16px; z-index: 5; width: 46px; border: 0; cursor: pointer; color: #fff; font-size: 34px;
  background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; }
.arrow.prev { left: 0; border-radius: 0 6px 6px 0; }
.arrow.next { right: 0; border-radius: 6px 0 0 6px; }
.row-wrap:hover .arrow:not(:disabled) { opacity: 1; }
.arrow:disabled { display: none; }
@media (hover: none) { .arrow { display: none; } }

/* ---------- Kart ---------- */
.card { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #222; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
  color: #aaa; font-size: 14px; background: linear-gradient(160deg, #2b2b2b, #171717); }
.card-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,0));
  display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.card-cap b { font-size: 14px; line-height: 1.25; }
.card-cap small { color: #bbb; font-size: 12px; }
.card:hover, .card:focus-visible { transform: scale(1.05); z-index: 3; box-shadow: 0 0 0 2px #fff, 0 12px 28px rgba(0,0,0,.7); outline: none; }
.card:hover .card-cap, .card:focus-visible .card-cap { opacity: 1; }
@media (hover: none) { .card-cap { opacity: 1; } }
.card .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(90,90,90,.9); z-index: 2; }
.card .pbar i { display: block; height: 100%; background: var(--red); }
.card .seen { position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.75);
  color: #4ade80; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .card-cap b { font-size: 12px; } }

/* ---------- Arama ---------- */
.results { padding-top: 28px; padding-bottom: 40px; min-height: 60vh; }
.results h2 { color: var(--muted); font-weight: 600; }
body.is-searching .hero, body.is-searching #homeRows, body.is-searching .about { display: none; }

/* ---------- Film sayfası ---------- */
.film { position: relative; }
.film-bg { position: absolute; inset: 0 0 auto 0; height: 560px; overflow: hidden; z-index: 0; pointer-events: none; }
.film-bg::before { content: ""; position: absolute; inset: -40px; background: #141414 center 25% / cover no-repeat; background-image: var(--img); filter: blur(28px) brightness(.35); transform: scale(1.1); }
.film-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgba(20,20,20,.2)); }
.crumbs { position: relative; z-index: 1; padding-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: #bbb; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.film-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); padding-top: 22px; padding-bottom: 28px; }
.film-poster { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #222; box-shadow: 0 20px 50px rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; color: #aaa; text-align: center; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-info h1 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 12px; font-weight: 900; }
.film-info h1 .yr { color: var(--muted); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tag { font-size: 13px; padding: 4px 12px; border-radius: 99px; border: 1px solid #444; color: #ddd; text-decoration: none; }
.tag:hover { background: #fff; color: #000; }
.summary { font-size: 17px; color: #d6d6d6; max-width: 760px; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; max-width: 760px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { color: #fff; text-decoration: none; border-bottom: 1px dotted #777; }
.facts a:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 680px) {
  .film-main { grid-template-columns: 1fr; }
  .film-poster { width: 55%; max-width: 240px; margin: 0 auto; }
  .film-info h1 { text-align: center; }
  .tags { justify-content: center; }
}
.sec { font-size: 22px; margin: 26px 0 16px; border-left: 4px solid var(--red); padding-left: 10px; }

/* ---------- Liste ve sabit sayfalar ---------- */
.list-page, .page { padding-top: 18px; padding-bottom: 50px; min-height: 60vh; }
.list-page h1, .page h1 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 8px; }
.lead { color: #c4c4c4; max-width: 820px; margin: 0 0 26px; font-size: 17px; }
.prose { max-width: 760px; color: #cfcfcf; }
.kf-form { display: grid; gap: 8px; max-width: 620px; }
.kf-form label { color: #bbb; font-size: 14px; margin-top: 8px; }
.kf-form input, .kf-form select, .kf-form textarea { background: #0e0e0e; border: 1px solid #3a3a3a; color: #fff; border-radius: 6px; padding: 12px; font: inherit; }
.kf-form input:focus, .kf-form select:focus, .kf-form textarea:focus { outline: none; border-color: var(--red); }
.kf-form .btn { justify-self: start; margin-top: 12px; }
.kf-form .hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.5em; color: #4ade80; }
.form-msg.err { color: #f87171; }
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.az-nav a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: #202020; border-radius: 6px; text-decoration: none; font-weight: 700; }
.az-nav a:hover { background: var(--red); }
.az { columns: 3 260px; column-gap: 36px; }
.az section { break-inside: avoid; margin-bottom: 18px; scroll-margin-top: 90px; }
.az h2 { color: var(--red); margin: 0 0 6px; font-size: 22px; }
.az ul, .cloud { list-style: none; margin: 0; padding: 0; }
.az li { padding: 3px 0; }
.az a, .cloud a { text-decoration: none; }
.az a:hover, .cloud a:hover { color: var(--red); }
.az small, .cloud small { color: #777; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.my-sec { margin-bottom: 34px; }

/* ---------- Alt bilgi ---------- */
.about { color: #a9a9a9; max-width: 1100px; padding-top: 10px; padding-bottom: 20px; font-size: 15px; }
.about h2 { color: #ddd; font-size: 20px; }
.about a { color: #ccc; }
.foot { border-top: 1px solid #222; background: #0a0a0a; padding: 28px clamp(16px, 4vw, 56px); text-align: center; color: #777; font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-bottom: 14px; font-size: 14px; }
.foot nav a { color: #aaa; text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot p { max-width: 760px; margin: 0 auto; }
.foot p a { color: #3fa34d; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100; background: #262626; border: 1px solid #444;
  padding: 10px 18px; border-radius: 8px; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tam ekran oynatıcı ---------- */
.film-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.film-note a { color: #bbb; }
html.watching, html.watching body { overflow: hidden; }
.watch { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; align-items: center; justify-content: center; }
.watch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 46px; opacity: .55; transition: opacity .2s, background .2s; }
.watch-close:hover, .watch-close:focus-visible { opacity: 1; background: rgba(0,0,0,.85); outline: none; }
.watch-spin { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--red); animation: kfspin .9s linear infinite; }
@keyframes kfspin { to { transform: rotate(360deg); } }
