/*
 * ============================================================================
 *  SEZFILM — ANA TASARIM SİSTEMİ (Design System)
 *  Yol: /assets/core/css/sz-core.css
 * ----------------------------------------------------------------------------
 *  Tüm sitenin ortak görünümü: renkler, yazı tipleri, butonlar, kartlar,
 *  header, footer, mobil alt menü, formlar, modal, bildirim (toast) vb.
 *
 *  RENKLERİ DEĞİŞTİRMEK İÇİN: sadece aşağıdaki :root bölümündeki
 *  değişkenleri düzenleyin; tüm site otomatik güncellenir.
 *
 *  Sınıf önekleri:  .sz-*  (çekirdek)  — modüller kendi önekini kullanır
 *  (örn. .szh-* anasayfa, .szp-* player) → hiçbir çakışma olmaz.
 * ============================================================================
 */

/* ------------------------------------------------------------ 1. DEĞİŞKENLER */
:root {
  --sz-bg: #06060a;
  --sz-bg-2: #0b0b12;
  --sz-surface: #111119;
  --sz-surface-2: #181822;
  --sz-surface-3: #22222e;
  --sz-line: rgba(255, 255, 255, .07);
  --sz-line-2: rgba(255, 255, 255, .13);
  --sz-text: #f4f4f8;
  --sz-text-2: #c9c9d6;
  --sz-muted: #8d8da3;

  --sz-primary: #7b5cff;
  --sz-primary-2: #5b7bff;
  --sz-primary-soft: rgba(123, 92, 255, .16);
  --sz-grad: linear-gradient(135deg, #8b5cff 0%, #6366f1 50%, #4f7cff 100%);
  --sz-accent: #ff2d55;
  --sz-gold: #f5c518;
  --sz-green: #22c55e;
  --sz-orange: #ff9f1a;

  --sz-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sz-font-display: 'Bebas Neue', 'Outfit', Impact, sans-serif;

  --sz-r-sm: 8px;
  --sz-r: 12px;
  --sz-r-lg: 18px;
  --sz-r-xl: 26px;
  --sz-shadow: 0 10px 40px -10px rgba(0, 0, 0, .7);
  --sz-shadow-glow: 0 10px 40px -12px rgba(123, 92, 255, .55);

  --sz-header-h: 74px;
  --sz-bottom-h: 0px;
  --sz-gutter: clamp(16px, 4vw, 56px);
  --sz-max: 1520px;
  --sz-ease: cubic-bezier(.22, .61, .36, 1);
  --sz-safe-b: env(safe-area-inset-bottom, 0px);
  --sz-safe-t: env(safe-area-inset-top, 0px);
}
@media (max-width: 860px) {
  :root { --sz-header-h: 58px; --sz-bottom-h: 64px; }
}

/* ------------------------------------------------------------ 2. TEMEL */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--sz-bg); }
body {
  margin: 0; min-height: 100vh; font-family: var(--sz-font); font-size: 15px; line-height: 1.55;
  color: var(--sz-text); background: var(--sz-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--sz-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--sz-primary); outline-offset: 3px; border-radius: 6px; }
.sz-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sz-skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--sz-primary); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.sz-skip:focus { top: 12px; }

/* İnce kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: #2a2a38 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262633; border-radius: 10px; border: 2px solid var(--sz-bg); }
::-webkit-scrollbar-track { background: transparent; }

.sz-container { width: 100%; max-width: var(--sz-max); margin: 0 auto; padding-left: var(--sz-gutter); padding-right: var(--sz-gutter); }
.sz-main { min-height: 60vh; padding-bottom: calc(var(--sz-bottom-h) + var(--sz-safe-b)); }
.sz-main--offset { padding-top: calc(var(--sz-header-h) + 24px); }

/* ------------------------------------------------------------ 3. BUTONLAR */
.sz-btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px;
  border-radius: var(--sz-r); font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .18s var(--sz-ease), background .2s, box-shadow .25s, border-color .2s, color .2s; user-select: none;
  border: 1px solid transparent; position: relative; isolation: isolate;
}
.sz-btn:active { transform: scale(.97); }
.sz-btn .sz-ico { width: 20px; height: 20px; }
.sz-btn--sm { --h: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.sz-btn--lg { --h: 56px; padding: 0 30px; font-size: 16.5px; }
.sz-btn--block { width: 100%; }
.sz-btn--icon { width: var(--h); padding: 0; }
.sz-btn--white { background: #fff; color: #0a0a10; box-shadow: 0 8px 30px -10px rgba(255,255,255,.4); }
.sz-btn--white:hover { background: #e9e9f1; }
.sz-btn--primary { background: var(--sz-grad); color: #fff; box-shadow: var(--sz-shadow-glow); }
.sz-btn--primary:hover { box-shadow: 0 14px 44px -10px rgba(123, 92, 255, .8); filter: brightness(1.08); }
.sz-btn--glass { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sz-btn--glass:hover { background: rgba(255, 255, 255, .16); }
.sz-btn--ghost { color: var(--sz-text-2); }
.sz-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.sz-btn--line { border-color: var(--sz-line-2); color: var(--sz-text); background: transparent; }
.sz-btn--line:hover { border-color: var(--sz-primary); color: #fff; background: var(--sz-primary-soft); }
.sz-btn--danger { background: rgba(255, 45, 85, .14); color: #ff6b88; border-color: rgba(255, 45, 85, .25); }
.sz-btn.is-active { background: var(--sz-primary-soft); border-color: rgba(123,92,255,.5); color: #fff; }
.sz-btn[disabled], .sz-btn.is-loading { opacity: .6; pointer-events: none; }
.sz-btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sz-spin .7s linear infinite; }

.sz-iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--sz-text-2); transition: background .2s, color .2s; position: relative; }
.sz-iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sz-iconbtn--ring { border: 1px solid var(--sz-line-2); }

/* ------------------------------------------------------------ 4. ETİKETLER / ÇİPLER */
.sz-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--sz-surface-2); border: 1px solid var(--sz-line); color: var(--sz-text-2); font-size: 14px; font-weight: 500;
  transition: all .2s var(--sz-ease); white-space: nowrap;
}
.sz-chip:hover { border-color: var(--sz-line-2); color: #fff; background: var(--sz-surface-3); }
.sz-chip.is-active { background: var(--sz-primary-soft); border-color: rgba(123,92,255,.55); color: #fff; }
.sz-chip small { color: var(--sz-muted); font-weight: 400; }

.sz-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.sz-badge--imdb { background: rgba(245, 197, 24, .14); color: var(--sz-gold); border: 1px solid rgba(245,197,24,.35); }
.sz-badge--imdb .sz-ico { width: 14px; height: 14px; }
.sz-badge--hd { background: transparent; color: #9aa8ff; border: 1px solid rgba(110, 130, 255, .45); }
.sz-badge--age { background: transparent; color: #fcd34d; border: 1px solid rgba(252, 211, 77, .5); font-weight: 800; }
.sz-badge--new { background: var(--sz-accent); color: #fff; }
.sz-badge--prem { background: linear-gradient(135deg, #ffd36b, #ff9f1a); color: #2a1600; }
.sz-badge--soft { background: rgba(255,255,255,.08); color: var(--sz-text-2); }
.sz-badge--licensed { background: rgba(34,197,94,.12); color: #5ee38f; border: 1px solid rgba(34,197,94,.3); }

.sz-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sz-muted); display: inline-block; }

/* ------------------------------------------------------------ 5. HEADER */
.sz-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: calc(var(--sz-header-h) + var(--sz-safe-t)); padding-top: var(--sz-safe-t);
  transition: background .35s var(--sz-ease), box-shadow .35s, backdrop-filter .35s;
  background: linear-gradient(to bottom, rgba(6,6,10,.85) 0%, rgba(6,6,10,.35) 65%, transparent 100%);
}
.sz-header.is-solid, .sz-header.is-scrolled {
  background: rgba(8, 8, 13, .78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--sz-line);
}
.sz-header__in { height: var(--sz-header-h); display: flex; align-items: center; gap: 28px; }
.sz-logo { display: inline-flex; align-items: center; font-weight: 900; font-size: 30px; letter-spacing: -.045em; line-height: 1; flex: none; }
.sz-logo span { background: var(--sz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sz-logo b { color: #fff; font-weight: 900; }
.sz-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto; flex: 1 1 auto; min-width: 0; }
.sz-nav > a { flex: none; }
.sz-nav a {
  position: relative; white-space: nowrap; padding: 10px 14px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.72); border-radius: 10px;
  transition: color .2s;
}
.sz-nav a:hover { color: #fff; }
.sz-nav a.is-active { color: #fff; }
.sz-nav a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--sz-grad);
}
.sz-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sz-nav + .sz-header__actions { margin-left: 0; flex: none; }
/* Sığmayan menü öğeleri → "Daha fazla" (sz-core.js navFit) */
.sz-nav__more { flex: none; }
.sz-nav__more[hidden] { display: none; }
.sz-nav__morebtn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.72); border-radius: 10px; white-space: nowrap; }
.sz-nav__morebtn:hover, .sz-nav__more.is-open .sz-nav__morebtn, .sz-nav__more.has-active .sz-nav__morebtn { color: #fff; }
.sz-nav__morebtn .sz-ico { width: 16px; height: 16px; transition: transform .2s; }
.sz-nav__more.is-open .sz-nav__morebtn .sz-ico { transform: rotate(180deg); }
.sz-nav__more .sz-dd__menu { right: auto; left: 0; transform-origin: top left; min-width: 200px; }
.sz-nav__more .sz-dd__menu a.is-active::after { display: none; }
.sz-nav > a[hidden], .sz-nav__more .sz-dd__menu a[hidden] { display: none; }
.sz-search-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--sz-line); color: #fff; transition: all .2s; }
.sz-search-btn:hover { background: rgba(255,255,255,.1); border-color: var(--sz-line-2); }
.sz-avatar { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--sz-grad); color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.sz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sz-avatar--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }

/* Açılır menüler */
.sz-dd { position: relative; }
.sz-dd__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px;
  background: rgba(20, 20, 29, .96); border: 1px solid var(--sz-line-2); box-shadow: var(--sz-shadow); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: all .2s var(--sz-ease); z-index: 120;
}
.sz-dd.is-open .sz-dd__menu { opacity: 1; visibility: visible; transform: none; }
.sz-dd__menu a, .sz-dd__menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--sz-text-2); text-align: left;
}
.sz-dd__menu a:hover, .sz-dd__menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.sz-dd__menu a.is-active { color: #fff; background: var(--sz-primary-soft); }
.sz-dd__menu .sz-ico { width: 18px; height: 18px; opacity: .8; }
.sz-dd__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--sz-line); margin-bottom: 6px; display: flex; gap: 12px; align-items: center; }
.sz-dd__head b { display: block; font-size: 15px; }
.sz-dd__head small { color: var(--sz-muted); font-size: 12.5px; }
.sz-dd__sep { height: 1px; background: var(--sz-line); margin: 6px 4px; }
/* Kullanıcı menüsü: ekran yüksekliğine sığar — başlık üstte, Admin/Çıkış altta sabit, aradaki liste kayar.
   Geniş ekranda (≥ 900px) liste 2 sütun olur, böylece çoğu ekranda hiç kaydırma gerekmez. */
.sz-dd__menu--user { display: flex; flex-direction: column; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - var(--sz-header-h) - var(--sz-safe-t) - 24px); max-height: calc(100dvh - var(--sz-header-h) - var(--sz-safe-t) - 24px); overflow: hidden; }
.sz-dd__menu--user .sz-dd__head { flex: none; }
.sz-dd__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; margin: 0 -4px; padding: 0 4px; }
.sz-dd__list::-webkit-scrollbar { width: 6px; } .sz-dd__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.sz-dd__menu--user a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-dd__foot { flex: none; border-top: 1px solid var(--sz-line); margin-top: 6px; padding-top: 6px; display: flex; gap: 4px; }
.sz-dd__foot a { flex: 1; }
.sz-dd__menu a.sz-dd__out { color: #ff6b81; } .sz-dd__menu a.sz-dd__out:hover { background: rgba(255,77,109,.1); color: #ff8fa0; }
@media (min-width: 900px) {
  .sz-dd__menu--user { width: 500px; }
  .sz-dd__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; align-content: start; }
  .sz-dd__menu--user a { padding: 10px 12px; font-size: 14px; }
}
@media (max-height: 560px) { .sz-dd__menu--user a { padding: 8px 12px; } }
.sz-lang-btn { height: 40px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--sz-text-2); text-transform: uppercase; }
.sz-lang-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.sz-lang-btn .sz-ico { width: 16px; height: 16px; }

@media (max-width: 1100px) { .sz-nav > a, .sz-nav__morebtn { padding: 10px 10px; font-size: 15px; } .sz-header__in { gap: 16px; } }
@media (max-width: 860px) {
  .sz-nav, .sz-header .sz-hide-m { display: none !important; }
  .sz-header__actions, .sz-nav + .sz-header__actions { margin-left: auto; }  /* mobilde arama + profil SAĞDA */
  .sz-logo { font-size: 24px; }
  .sz-search-btn { width: 40px; height: 40px; background: transparent; border: 0; }
  .sz-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .sz-header .sz-btn--primary { --h: 36px; padding: 0 14px; font-size: 13.5px; }
}

/* ------------------------------------------------------------ 6. MOBİL ALT MENÜ (uygulama hissi) */
.sz-tabbar { display: none; }
@media (max-width: 860px) {
  .sz-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    height: calc(var(--sz-bottom-h) + var(--sz-safe-b)); padding-bottom: var(--sz-safe-b);
    background: rgba(10, 10, 16, .88); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-top: 1px solid var(--sz-line);
  }
  .sz-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600;
    color: var(--sz-muted); transition: color .2s; position: relative;
  }
  .sz-tabbar a .sz-ico { width: 23px; height: 23px; transition: transform .25s var(--sz-ease); }
  .sz-tabbar a.is-active { color: #fff; }
  .sz-tabbar a.is-active .sz-ico { color: var(--sz-primary); transform: translateY(-1px) scale(1.06); }
  .sz-tabbar a.is-active::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--sz-grad); }
  .sz-tabbar .sz-avatar { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
}

/* ------------------------------------------------------------ 7. BÖLÜM BAŞLIKLARI */
.sz-section { margin: 0 0 clamp(30px, 4vw, 52px); }
.sz-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sz-title {
  position: relative; padding-left: 16px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em;
}
.sz-title::before { content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 4px; border-radius: 4px; background: var(--sz-grad); }
.sz-title small { display: block; font-size: 14px; font-weight: 400; color: var(--sz-muted); margin-top: 4px; letter-spacing: 0; }
.sz-link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--sz-muted); transition: color .2s, gap .2s; white-space: nowrap; }
.sz-link-more:hover { color: #fff; gap: 8px; }
.sz-link-more .sz-ico { width: 16px; height: 16px; }

/* Liste sayfası üst alanı */
.sz-pagehead { position: relative; padding: calc(var(--sz-header-h) + clamp(28px, 5vw, 60px)) 0 clamp(20px, 3vw, 34px); overflow: hidden; }
.sz-pagehead::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background: radial-gradient(600px 300px at 20% 30%, rgba(123,92,255,.22), transparent 70%), radial-gradient(500px 260px at 85% 0%, rgba(79,124,255,.14), transparent 70%);
}
.sz-pagehead h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.sz-pagehead p { color: var(--sz-text-2); font-size: clamp(14px, 1.4vw, 17px); margin: 10px 0 0; max-width: 700px; }
.sz-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--sz-muted); margin-bottom: 14px; }
.sz-crumbs a:hover { color: #fff; }
.sz-crumbs .sz-ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------ 8. FİLM KARTI */
.sz-card { position: relative; display: block; min-width: 0; }
.sz-card__media {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--sz-r); overflow: hidden; background: var(--sz-surface-2);
  transform: translateZ(0); transition: transform .35s var(--sz-ease), box-shadow .35s;
  box-shadow: 0 0 0 1px var(--sz-line);
}
.sz-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s, transform .6s var(--sz-ease); }
.sz-card__media img.is-loaded, .sz-card__media img[data-loaded] { opacity: 1; }
.sz-card__media::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.05) 45%, transparent 70%);
  opacity: .9; transition: opacity .3s;
}
.sz-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.95); color: #0b0b12; opacity: 0; transform: scale(.7);
  transition: all .3s var(--sz-ease); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.sz-card__play .sz-ico { width: 22px; height: 22px; margin-left: 3px; }
.sz-card__tl { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 6px; }
.sz-card__rate {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 800;
  background: rgba(0,0,0,.65); color: var(--sz-gold); backdrop-filter: blur(8px);
}
.sz-card__rate .sz-ico { width: 12px; height: 12px; }
.sz-card__bl { position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; align-items: center; font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; }
.sz-card__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); z-index: 3; }
.sz-card__progress i { display: block; height: 100%; background: var(--sz-accent); }
.sz-card__body { padding: 12px 2px 0; }
.sz-card__title { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; }
.sz-card__meta { margin-top: 5px; font-size: 13px; color: var(--sz-muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
@media (hover: hover) {
  .sz-card:hover .sz-card__media { transform: translateY(-6px) scale(1.025); box-shadow: 0 0 0 1px rgba(123,92,255,.55), 0 22px 50px -18px rgba(123,92,255,.55); }
  .sz-card:hover .sz-card__media img { transform: scale(1.06); }
  .sz-card:hover .sz-card__play { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .sz-card__title { font-size: 13px; }
  .sz-card__meta { font-size: 11.5px; gap: 5px; }
  .sz-card__body { padding-top: 8px; }
  .sz-card__tl { top: 6px; left: 6px; right: 6px; }
  .sz-card__rate { height: 20px; font-size: 10.5px; padding: 0 6px; }
  .sz-card .sz-badge { height: 20px; font-size: 10px; padding: 0 6px; }
}

/* Kart ızgarası */
.sz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 18px; }
@media (max-width: 1100px) { .sz-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; } }
@media (max-width: 600px) { .sz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } }
@media (max-width: 340px) { .sz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Yatay kaydırmalı raf */
.sz-row { position: relative; }
.sz-row__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 13.2vw, 210px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sz-gutter);
  padding: 10px var(--sz-gutter) 14px; margin: -10px calc(var(--sz-gutter) * -1) -14px; scrollbar-width: none;
}
.sz-row__track::-webkit-scrollbar { display: none; }
.sz-row__track > * { scroll-snap-align: start; }
.sz-row__arrow {
  position: absolute; top: calc(50% - 40px); z-index: 5; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16,16,24,.88); border: 1px solid var(--sz-line-2); color: #fff; box-shadow: var(--sz-shadow);
  opacity: 0; transition: opacity .25s, transform .2s; backdrop-filter: blur(10px);
}
.sz-row__arrow:hover { transform: scale(1.08); background: var(--sz-primary); }
.sz-row__arrow--l { left: calc(var(--sz-gutter) * -0.5 - 8px); }
.sz-row__arrow--r { right: calc(var(--sz-gutter) * -0.5 - 8px); }
.sz-row:hover .sz-row__arrow:not([hidden]) { opacity: 1; }
@media (max-width: 860px) {
  .sz-row__arrow { display: none; }
  .sz-row__track { grid-auto-columns: clamp(108px, 30vw, 150px); gap: 10px; }
}

/* ------------------------------------------------------------ 9. FORMLAR */
.sz-field { display: block; margin-bottom: 16px; }
.sz-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--sz-text-2); margin-bottom: 7px; }
.sz-input, .sz-select, .sz-textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--sz-r); background: var(--sz-surface-2);
  border: 1px solid var(--sz-line-2); color: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.sz-textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.sz-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a0a0b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.sz-select option { background: #15151e; }
.sz-input::placeholder, .sz-textarea::placeholder { color: #6c6c82; }
.sz-input:focus, .sz-select:focus, .sz-textarea:focus { border-color: var(--sz-primary); box-shadow: 0 0 0 4px rgba(123,92,255,.18); background: #1b1b26; }
.sz-input-wrap { position: relative; }
.sz-input-wrap .sz-input { padding-right: 48px; }
.sz-input-wrap > button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--sz-muted); }
.sz-input-wrap > button:hover { color: #fff; }
.sz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sz-text-2); cursor: pointer; line-height: 1.45; }
.sz-check input { width: 20px; height: 20px; accent-color: var(--sz-primary); flex: none; margin: 1px 0 0; }
.sz-check a { color: #b8a8ff; text-decoration: underline; text-underline-offset: 2px; }
.sz-hint { font-size: 12.5px; color: var(--sz-muted); margin-top: 6px; }
.sz-alert { padding: 14px 16px; border-radius: var(--sz-r); font-size: 14.5px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.sz-alert .sz-ico { margin-top: 1px; }
.sz-alert--err { background: rgba(255,45,85,.09); border-color: rgba(255,45,85,.3); color: #ff9db1; }
.sz-alert--ok { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); color: #8ef0b2; }
.sz-alert--info { background: var(--sz-primary-soft); border-color: rgba(123,92,255,.35); color: #cfc4ff; }
.sz-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }

/* ------------------------------------------------------------ 10. KUTU / PANEL */
.sz-panel { background: var(--sz-surface); border: 1px solid var(--sz-line); border-radius: var(--sz-r-lg); padding: clamp(18px, 3vw, 30px); }
.sz-glass { background: rgba(255,255,255,.04); border: 1px solid var(--sz-line); border-radius: var(--sz-r-lg); backdrop-filter: blur(12px); }

/* ------------------------------------------------------------ 11. SAYFALAMA */
.sz-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0 10px; flex-wrap: wrap; }
.sz-pager__num, .sz-pager__btn { min-width: 44px; height: 44px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 14.5px; background: var(--sz-surface); border: 1px solid var(--sz-line); color: var(--sz-text-2); transition: all .2s; }
.sz-pager__num:hover, .sz-pager__btn:hover { border-color: var(--sz-line-2); color: #fff; background: var(--sz-surface-2); }
.sz-pager__num.is-active { background: var(--sz-grad); color: #fff; border-color: transparent; box-shadow: var(--sz-shadow-glow); }
.sz-pager__gap { color: var(--sz-muted); padding: 0 4px; }
@media (max-width: 600px) { .sz-pager__num, .sz-pager__btn { min-width: 38px; height: 38px; border-radius: 10px; font-size: 13.5px; } }

/* ------------------------------------------------------------ 12. MODAL */
.sz-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.sz-modal.is-open { visibility: visible; opacity: 1; }
.sz-modal__bg { position: absolute; inset: 0; background: rgba(3,3,6,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sz-modal__box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--sz-r-xl);
  background: #12121a; border: 1px solid var(--sz-line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); padding: clamp(22px, 4vw, 32px);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--sz-ease);
}
.sz-modal.is-open .sz-modal__box { transform: none; }
.sz-modal__box--wide { max-width: 1000px; padding: 0; background: #000; overflow: hidden; }
.sz-modal__x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.sz-modal__x:hover { background: rgba(255,255,255,.16); }
.sz-modal h3 { font-size: 22px; margin-bottom: 6px; padding-right: 40px; }
.sz-modal__sub { color: var(--sz-muted); font-size: 14px; margin-bottom: 20px; }
@media (max-width: 600px) {
  .sz-modal { place-items: end center; padding: 0; }
  .sz-modal__box:not(.sz-modal__box--wide) { border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: calc(24px + var(--sz-safe-b)); transform: translateY(100%); }
  .sz-modal__box--wide { border-radius: 0; }
  .sz-modal--video { place-items: center; }
}

/* ------------------------------------------------------------ 13. TOAST BİLDİRİM */
.sz-toasts { position: fixed; left: 50%; bottom: calc(24px + var(--sz-bottom-h) + var(--sz-safe-b)); transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.sz-toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  background: rgba(28,28,40,.96); border: 1px solid var(--sz-line-2); box-shadow: var(--sz-shadow); backdrop-filter: blur(16px);
  animation: sz-toast-in .35s var(--sz-ease); pointer-events: auto;
}
.sz-toast .sz-ico { width: 18px; height: 18px; }
.sz-toast--ok .sz-ico { color: var(--sz-green); }
.sz-toast--err .sz-ico { color: var(--sz-accent); }
.sz-toast.is-out { animation: sz-toast-out .3s forwards; }
@keyframes sz-toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes sz-toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ------------------------------------------------------------ 14. İSKELET (yükleniyor) */
.sz-skel { background: linear-gradient(90deg, #15151e 0%, #1f1f2b 50%, #15151e 100%); background-size: 200% 100%; animation: sz-shimmer 1.4s infinite; border-radius: var(--sz-r); }
@keyframes sz-shimmer { to { background-position: -200% 0; } }
@keyframes sz-spin { to { transform: rotate(360deg); } }
.sz-spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--sz-primary); border-radius: 50%; animation: sz-spin .8s linear infinite; }

/* Boş durum */
.sz-empty { text-align: center; padding: clamp(40px, 8vw, 90px) 20px; color: var(--sz-muted); }
.sz-empty__ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; background: var(--sz-primary-soft); color: var(--sz-primary); }
.sz-empty__ico .sz-ico { width: 38px; height: 38px; }
.sz-empty h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }

/* ------------------------------------------------------------ 15. FOOTER */
.sz-footer { position: relative; margin-top: clamp(40px, 7vw, 90px); border-top: 1px solid var(--sz-line); background: linear-gradient(to bottom, #09090f, #050508); padding: clamp(40px, 6vw, 70px) 0 calc(28px + var(--sz-bottom-h) + var(--sz-safe-b)); }
.sz-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(123,92,255,.6), transparent); }
.sz-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.sz-footer__brand p { color: var(--sz-muted); font-size: 14px; margin: 16px 0 18px; max-width: 360px; }
.sz-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.sz-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sz-footer ul a { color: var(--sz-muted); font-size: 14.5px; transition: color .2s, padding .2s; }
.sz-footer ul a:hover { color: #fff; padding-left: 4px; }
.sz-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--sz-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--sz-muted); font-size: 13.5px; }
.sz-footer__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.sz-footer__langs a { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--sz-line); font-weight: 600; font-size: 13px; }
.sz-footer__langs a.is-active, .sz-footer__langs a:hover { border-color: var(--sz-primary); color: #fff; background: var(--sz-primary-soft); }
.sz-footer__trust { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) { .sz-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .sz-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .sz-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .sz-footer ul { gap: 9px; }
  .sz-footer ul a { font-size: 13.5px; }
  .sz-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ 16. ÇEREZ BANDI */
.sz-cookie {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--sz-bottom-h) + var(--sz-safe-b)); z-index: 250; max-width: 560px; margin-left: auto;
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(20,20,30,.97); border: 1px solid var(--sz-line-2);
  box-shadow: var(--sz-shadow); backdrop-filter: blur(16px); animation: sz-toast-in .4s var(--sz-ease);
}
.sz-cookie p { margin: 0; font-size: 13.5px; color: var(--sz-text-2); flex: 1; }
.sz-cookie p a { color: #b8a8ff; text-decoration: underline; }
.sz-cookie__btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 600px) { .sz-cookie { flex-direction: column; align-items: stretch; left: 10px; right: 10px; } .sz-cookie__btns .sz-btn { flex: 1; } }

/* ------------------------------------------------------------ 17. METİN İÇERİĞİ (yasal sayfalar vb.) */
.sz-prose { color: var(--sz-text-2); font-size: 16px; line-height: 1.75; }
.sz-prose h2 { color: #fff; font-size: 22px; margin: 36px 0 12px; scroll-margin-top: calc(var(--sz-header-h) + 20px); }
.sz-prose h3 { color: #fff; font-size: 18px; margin: 26px 0 10px; }
.sz-prose ul, .sz-prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.sz-prose li { margin-bottom: 6px; }
.sz-prose a { color: #b8a8ff; text-decoration: underline; text-underline-offset: 3px; }
.sz-prose strong { color: #fff; }
.sz-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14.5px; }
.sz-prose th, .sz-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sz-line); }
.sz-prose th { color: #fff; background: var(--sz-surface); }

/* Daha fazla oku */
.sz-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sz-clamp.is-open { -webkit-line-clamp: unset; display: block; }

/* ------------------------------------------------------------ 18. HATA SAYFALARI */
.sz-error { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--sz-header-h) + 40px) 20px 60px; }
.sz-error__code { font-family: var(--sz-font-display); font-size: clamp(120px, 22vw, 230px); line-height: .9; background: var(--sz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .02em; }
.sz-error h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 12px; }
.sz-error p { color: var(--sz-muted); max-width: 480px; margin: 0 auto 26px; }

/* ------------------------------------------------------------ 19. YARDIMCILAR */
.sz-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sz-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sz-muted { color: var(--sz-muted); }
.sz-mt { margin-top: 24px; } .sz-mb { margin-bottom: 24px; }
.sz-center { text-align: center; }
.sz-hide { display: none !important; }
@media (max-width: 860px) { .sz-hide-m { display: none !important; } }
@media (min-width: 861px) { .sz-hide-d { display: none !important; } }
.sz-fade-in { animation: sz-fade .5s var(--sz-ease) both; }
@keyframes sz-fade { from { opacity: 0; transform: translateY(10px); } }

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

/* WebView / uygulama içinde (?app=1 veya data-app) metin seçimi ve uzun basma menüsü kapalı */
html[data-app="1"] body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html[data-app="1"] input, html[data-app="1"] textarea { -webkit-user-select: text; user-select: text; }

/* ------------------------------------------------------------ 20. FİLTRE ÇUBUĞU (liste sayfaları) */
.sz-filters { display: grid; gap: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--sz-line); }
.sz-filters__sort { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--sz-gutter) * -1); padding: 2px var(--sz-gutter); }
.sz-filters__sort::-webkit-scrollbar { display: none; }
.sz-filters__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sz-filters__form .sz-select { width: auto; min-width: 150px; height: 42px; font-size: 14px; border-radius: 11px; }
.sz-filters__info { display: flex; justify-content: space-between; align-items: center; color: var(--sz-muted); font-size: 14px; }
.sz-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sz-text-2); cursor: pointer; user-select: none; height: 42px; padding: 0 6px; }
.sz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sz-switch span { width: 40px; height: 23px; border-radius: 99px; background: var(--sz-surface-3); position: relative; transition: background .2s; flex: none; }
.sz-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s var(--sz-ease); }
.sz-switch input:checked + span { background: var(--sz-primary); }
.sz-switch input:checked + span::after { transform: translateX(17px); }
.sz-switch input:focus-visible + span { outline: 2px solid var(--sz-primary); outline-offset: 2px; }
/* Mobil: hiçbir filtre sağa taşmaz → sıralama + filtreler 2 sütunlu düzgün ızgara */
.sz-filters__msort { display: none; }
@media (max-width: 700px) {
  .sz-filters__sort { display: none; }
  .sz-filters__msort { display: block; }
  .sz-filters__form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sz-filters__form .sz-select { width: 100%; min-width: 0; height: 42px; font-size: 13.5px; padding-left: 12px; padding-right: 32px; background-position: right 10px center; text-overflow: ellipsis; }
  .sz-switch { grid-column: 1 / -1; height: 40px; font-size: 13.5px; padding: 0 2px; }
}

/* ------------------------------------------------------------ 21. LİSTE / BEĞEN butonu durumları (listem modülü kullanır) */
[data-szl-toggle] .szl-i-add, [data-szl-toggle] .szl-i-in { display: inline-flex; }
[data-szl-toggle] .szl-i-in, [data-szl-toggle].is-active .szl-i-add { display: none; }
[data-szl-toggle].is-active .szl-i-in { display: inline-flex; }
[data-szl-like].is-active { color: #ff5c7c; }
[data-szl-like].is-active .szl-heart { fill: currentColor; }

/* ---------------------------------------------------------------------------
   ONAY PENCERESİ (SZ.confirm) — tarayıcının eski confirm()/alert() yerine
   --------------------------------------------------------------------------- */
.sz-cf { z-index: 1000; }
.sz-cf__box { max-width: 420px; text-align: center; padding: 30px 26px 24px; }
.sz-cf__ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: rgba(245,197,24,.14); color: #fcd34d; }
.sz-cf__ico svg { width: 30px; height: 30px; }
.sz-cf--danger .sz-cf__ico { background: rgba(255,45,85,.14); color: #ff7a93; }
.sz-cf--ok .sz-cf__ico { background: rgba(34,197,94,.14); color: #4ade80; }
.sz-cf__t { font-size: 19px !important; padding: 0 !important; margin-bottom: 8px; line-height: 1.35; }
.sz-cf__p { color: var(--sz-text-2); font-size: 14.5px; margin: 0 0 4px; line-height: 1.55; }
.sz-cf__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.sz-cf__danger { background: var(--sz-accent); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,45,85,.7); }
.sz-cf__danger:hover { filter: brightness(1.1); }
@media (max-width: 600px) { .sz-cf__box { max-width: none; width: 100%; } }
.sz-ico--gold { color: var(--sz-gold); }
.sz-ico--sm { width: 14px; height: 14px; vertical-align: -2px; }
