/* ============ QOSMOPOL — dark cinematic theme ============ */
:root {
  --bg: #06060a;
  --bg-2: #0b0b12;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #ff2d55;
  --accent-2: #ff6a3d;
  --grad: linear-gradient(135deg, #ff2d55, #ff6a3d);
  --radius: 18px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

::selection { background: rgba(255, 45, 85, .35); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #34343f; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 99px;
  font-weight: 600; font-size: .95rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 45, 85, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 45, 85, .5); }
.btn-gold {
  background: linear-gradient(135deg, #ffd34d, #ff9d2e);
  color: #000;
  box-shadow: 0 8px 30px rgba(255, 173, 51, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 173, 51, .5); }
.btn-ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .18); }
.btn-yt {
  background: rgba(255, 45, 85, .12);
  border-color: rgba(255, 45, 85, .35);
  color: #ff5c7a;
  padding: .55rem 1.1rem;
  font-size: .88rem;
}
.btn-yt:hover { background: rgba(255, 45, 85, .22); color: #ff8098; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 10, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1600px; margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255, 45, 85, .5);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .12em;
}
.brand-badge {
  font-size: .58rem; font-weight: 700; letter-spacing: .18em;
  padding: .22rem .5rem; border-radius: 99px;
  background: var(--grad); color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a:not(.btn) {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 7.5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
}
.hero-banner {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
  filter: blur(2px) saturate(1.1);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
}
.hero-glow {
  position: absolute; left: 50%; top: -220px;
  width: 900px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 45, 85, .22), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
/* Fare algısı dönmeyen sabit kapsayıcıda — dönüş gelgit yapmaz */
.avatar-wrap {
  display: block;
  width: 200px; /* avatar ile birebir — her tarayıcıda tam ortalanır */
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  perspective: 600px;
}
.hero-avatar {
  width: 200px; height: 200px; border-radius: 50%;
  margin: 0 auto; /* kapsayıcı olsa da olmasa da her tarayıcıda ortalanır */
  border: 3px solid rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 6px rgba(255, 45, 85, .15), 0 20px 60px rgba(0, 0, 0, .6);
  transform: rotateY(0deg);
  /* kuyruksuz akıcı eğri: turlar arasında bekleme hissi olmaz */
  transition: transform .5s cubic-bezier(.4, .1, .6, .9), box-shadow .5s ease;
}
/* Dönüş JS kontrolünde (yön + kilit); hover yalnız ışığı güçlendirir */
.avatar-wrap:hover .hero-avatar {
  box-shadow: 0 0 0 6px rgba(255, 173, 51, .28), 0 20px 60px rgba(0, 0, 0, .6),
              0 0 38px rgba(255, 211, 77, .35);
}
.hero-avatar.spinning { animation: mirrorShine .5s ease; } /* dönerken parıltı */
@keyframes mirrorShine {
  0%   { filter: brightness(1); }
  40%  { filter: brightness(2) saturate(1.25) drop-shadow(0 0 22px rgba(255, 223, 128, .8)); }
  60%  { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: .45rem 1rem;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  margin-bottom: 1.3rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2eff8a;
  box-shadow: 0 0 10px #2eff8a;
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 50% { opacity: .4; } }
.hero-title {
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: .16em;
  margin-left: .16em; /* letter-spacing dengesi */
  background: linear-gradient(180deg, #fff 30%, #b9b9c9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin: 1.1rem auto 2rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.hero-spaces {
  margin-top: 3.2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  text-align: left;
}
.space-card {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(255, 190, 80, .25); /* sarı-turuncu tonlu kenarlık */
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  /* neon sadece kenarlık hattından dışarı süzülür, zemin siyah kalır */
  box-shadow: 0 0 7px rgba(255, 157, 46, .2), 0 0 14px rgba(255, 211, 77, .09);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.space-card:hover {
  background: var(--panel-2);
  transform: translateY(-3px);
  border-color: rgba(255, 190, 80, .5);
  box-shadow: 0 0 10px rgba(255, 157, 46, .32), 0 0 20px rgba(255, 211, 77, .16);
}
.space-icon { font-size: 1.5rem; line-height: 1.3; }
.space-card h3 { font-size: .98rem; margin-bottom: .2rem; letter-spacing: .04em; }
.space-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ---------- sections ---------- */
.section { max-width: 1600px; margin: 0 auto; padding: 4.5rem 1.5rem 2rem; }
#featured { padding-top: 1.5rem; } /* hero ile Popular arası dar boşluk */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.8rem; gap: 1rem;
}
.section-head h2 {
  display: flex; align-items: center; gap: .7rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700;
}
.accent {
  width: 10px; height: 28px; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(255, 45, 85, .6);
}
.accent-shorts { background: linear-gradient(135deg, #7b5cff, #3dc8ff); box-shadow: 0 0 18px rgba(123, 92, 255, .6); }
.accent-gold { background: linear-gradient(135deg, #ffd34d, #ff9d2e); box-shadow: 0 0 18px rgba(255, 211, 77, .55); }

/* ---------- popular videos ---------- */
.grid-pop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .grid-pop { grid-template-columns: 1fr; } }
.rank {
  position: absolute; top: .6rem; left: .6rem; z-index: 4;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffd34d, #ff9d2e);
  color: #221a04;
  font-family: var(--font-head);
  font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.count { color: var(--muted); font-size: .88rem; }

/* ---------- long video grid ---------- */
.grid-long {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
/* Geniş masaüstünde sıra başına tam 4 video */
@media (min-width: 1260px) {
  .grid-long { grid-template-columns: repeat(4, 1fr); }
}
.card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  outline: none;
}
.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 85, .4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 45, 85, .15);
}
.card-featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .card-featured { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; }
  .card-featured .card-info { padding: 2rem; }
  .card-featured .card-info h3 { font-size: 1.45rem; -webkit-line-clamp: 4; }
}
.card-desc {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.card:not(.card-featured) .card-desc { display: none; }
.studio-sig {
  display: flex; align-items: center; gap: .65rem;
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700; letter-spacing: .26em;
  color: #cfcfdd;
}
.studio-sig::before {
  content: '';
  width: 28px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.card:not(.card-featured) .studio-sig { display: none; }

/* her kartın sağ alt köşesinde küçük stüdyo imzası */
.card-info { position: relative; }
.card-sig {
  position: absolute; right: 1.2rem; bottom: 1.3rem;
  font-family: var(--font-head);
  font-size: .58rem; font-weight: 700; letter-spacing: .2em;
  color: rgba(255, 255, 255, .32);
  pointer-events: none;
  transition: color .3s ease;
}
.card:hover .card-sig { color: rgba(255, 255, 255, .55); }
.card-featured .card-sig { display: none; } /* büyük kartta zaten büyük imza var */
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.thumb img, .thumb video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.05); }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(6, 6, 10, .65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  opacity: 0; transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.card:hover .play, .card:focus-visible .play,
.scard:hover .play, .scard:focus-visible .play { opacity: 1; transform: scale(1); }
/* oynat işareti kaldırıldı — hover'da YouTube'un kendi düğmesi görünüyor */
.play { display: none !important; }

/* kart içinde oynatma */
.inline-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; z-index: 2;
}
/* Fare kartin uzerindeyken oynatici arkada sessizce hazirlanir. Gorunmez
   kalir ki YouTube'un kirmizi oynat perdesi hic gorunmesin; kapak resmi ve
   baslik seridi oldugu gibi durur. pointer-events:none sart — yoksa tiklama
   gorunmez oynaticiya gider, kartin kendi tiklamasi calismaz. */
.primed .inline-frame { opacity: 0; pointer-events: none; }
/* "Ikinci tiklama durdurur" katmani — hem uzun video hem short (bkz. main.js
   addTapGuard). Alt 46px oynaticinin kendi kontrol cubugu icin serbest kalir.
   Katman YALNIZCA video oynarken tiklama alir: durdurulunca devre disi kalir,
   boylece YouTube'un kendi arayuzu (More videos paneli ve onun X dugmesi,
   ilgili video kucuk resimleri, ust baslik seridi) engellenmez. */
.tap-guard {
  position: absolute;
  /* Katman video yuzeyinin yalnizca ORTASINI kaplar, dort yani serbesttir.
     YouTube kendi dugmelerini hep kenarlara koyuyor: ustte baslik/ses/CC/
     ayarlar (~44px), altta sure + GENISLETME OKU + ilerleme + logo (~72px),
     yanlarda ise ileri/geri ve "More videos" gibi ogeler. Ortadan tiklama
     videoyu durdurur, kenarlar dogrudan oynaticiya gider — boylece hangi
     dugme nereye gelirse gelsin cakismaz. */
  inset: 44px 20% 72px 20%; z-index: 4;
  cursor: pointer; pointer-events: none;
}
[data-ytstate="1"] .tap-guard { pointer-events: auto; }
.card.playing .play, .scard.playing .play { display: none; }
.expand {
  position: absolute; top: .6rem; right: .6rem; z-index: 5;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(6, 6, 10, .65);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease, background .2s ease, transform .2s ease;
}
.expand svg { width: 19px; height: 19px; }
.expand:hover { background: rgba(255, 45, 85, .9); transform: scale(1.06); }
.card:hover .expand, .scard:hover .expand,
.card.playing .expand, .scard.playing .expand,
.expand:focus-visible { opacity: 1; }
@media (hover: none) { .expand { opacity: 1; } }
/* ⛶ düğmesi kaldırıldı — büyük oynatıcı başlığa tıklanarak açılır,
   video yüzeyi her zaman tamamen YouTube'un */
.expand { display: none !important; }
.card-info h3, .scard-info h3 { cursor: pointer; transition: color .2s ease; }
.card-info h3:hover, .scard-info h3:hover { color: #ffd34d; }
.card-info { padding: 1.1rem 1.2rem 1.25rem; }
.card-info h3 {
  font-size: 1.02rem; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-info time { display: block; margin-top: .45rem; font-size: .82rem; color: var(--muted); }

/* Kısa başlıklarda da meta satırı (views · tarih · imza) hep kartın en altında
   dursun — boşluk başlıkla meta arasında kalır, tüm kartlar aynı görünür */
.card:not(.card-featured) { display: flex; flex-direction: column; }
.card[hidden] { display: none; } /* display:flex, hidden'ı ezmesin — Load more düzgün çalışsın */
.card:not(.card-featured) .thumb { flex-shrink: 0; }
.card:not(.card-featured) .card-info { flex: 1; display: flex; flex-direction: column; }
.card:not(.card-featured) .card-info time {
  margin-top: auto; padding-top: .5rem;
  padding-right: 7.5rem; /* sağ alttaki imzayla üst üste binmesin */
}

/* ---------- load more ---------- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.load-count { color: var(--muted); font-weight: 500; }

/* ---------- shorts rail ---------- */
.rail-nav { display: flex; gap: .5rem; }
.rail-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: 1.3rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  display: grid; place-items: center; padding-bottom: 3px;
}
.rail-btn:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .2); }
.rail {
  display: flex; gap: 1rem;
  overflow-x: auto;
  /* Hover'da kart 5px yukari kalkiyor ve turuncu isik yayiyor (box-shadow
     0 0 20px). Ray overflow-x:auto oldugu icin dikeyde de kirpiyordu ve
     kartin ustu kesiliyordu. Padding yer acar; negatif margin ayni miktari
     geri alir, boylece hizalama ve 6'li satir genisligi bozulmaz. */
  padding: 1.4rem .8rem 1rem;
  margin: -1.4rem -.8rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.scard {
  position: relative;
  flex: 0 0 210px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  transition: transform .3s ease, border-color .3s ease;
  outline: none;
}
/* Masaustunde 6 short satirin TAM genisligine yayilsin (bosluk kalmasin):
   kart genisligi = (satir - 5 x 1rem bosluk) / 6. Ornek: 1360px ekranda
   ~204px, 1600px'te ~244px. 1200px alti mobil rayina yaklastigi icin orada
   eski sabit genislik + yatay kaydirma kalir. 6'dan fazla short olursa
   fazlasi yine kaydirarak gelir.
   NOT: bu kural .scard tanimindan SONRA gelmeli, yoksa ezilir. */
@media (min-width: 1200px) {
  .scard { flex: 0 0 calc((100% - 5rem) / 6); }
}
.scard:hover, .scard:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 85, .45);
}
.scard img, .scard video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.scard:hover img, .scard:hover video { transform: scale(1.06); }
.scard .play { background: rgba(6, 6, 10, .6); }
.scard-info {
  position: absolute; inset: auto 0 0;
  padding: 2.2rem .9rem .9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
}
.scard-info h3 {
  font-size: .85rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--font-body);
}

/* ---------- empty state ---------- */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--panel);
  font-size: 1.4rem; color: var(--accent);
}
.empty-icon.short-icon { color: #7b5cff; }

/* ---------- contact ---------- */
.section-contact { padding-bottom: 5rem; }
.contact-box {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem;
  padding: 2.8rem;
  background:
    radial-gradient(ellipse at top left, rgba(255, 45, 85, .1), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
}
.contact-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: .9rem; }
.contact-text p { color: var(--muted); font-size: .98rem; }
.contact-note { margin-top: 1rem; font-style: italic; opacity: .8; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: .45rem;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 45, 85, .6);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .15);
}
.contact-form ::placeholder { color: #55555f; }
.btn-send { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: .85rem; }
.footer .brand-avatar { width: 32px; height: 32px; }

/* ---------- player modal ---------- */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.player[hidden] { display: none; }
.player-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 3, 6, .88);
  backdrop-filter: blur(10px);
  animation: fadeIn .25s ease;
}
.player-box {
  position: relative; z-index: 1;
  width: min(1000px, 100%);
  animation: popIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
.player-box.vertical { width: min(420px, 100%); }
.player-frame {
  aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
}
.player-box.vertical .player-frame { aspect-ratio: 9 / 16; max-height: 84vh; margin: 0 auto; }
.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; display: block; }
.player-box h3 { margin-top: 1rem; font-size: 1.05rem; font-weight: 600; text-align: center; }
.player-close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line);
  color: #fff; font-size: 1rem; cursor: pointer;
  transition: background .2s ease;
}
.player-close:hover { background: rgba(255, 45, 85, .8); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(14px); } }

/* ---------- uçuşan notalar ---------- */
.notes-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.float-note {
  position: absolute; bottom: -40px;
  opacity: 0;
  animation: noteRise var(--dur, 12s) linear forwards;
  will-change: transform, opacity;
}
.float-note svg {
  display: block;
  animation: noteSway 3s ease-in-out infinite alternate;
  /* hafif bulanık + çevresinde altın neon ışıma */
  filter: blur(1px)
          drop-shadow(0 0 5px rgba(255, 195, 80, .85))
          drop-shadow(0 0 12px rgba(255, 150, 50, .45));
}
@keyframes noteRise {
  0%   { transform: translateY(0);      opacity: 0; }
  8%   { opacity: var(--op, .25); }
  85%  { opacity: var(--op, .25); }
  100% { transform: translateY(-115vh); opacity: 0; }
}
@keyframes noteSway {
  from { transform: translateX(-13px) rotate(-8deg); }
  to   { transform: translateX(13px)  rotate(8deg); }
}

/* ---------- çerez onayı ---------- */
.consent {
  position: fixed; left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 110;
  width: min(700px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.3rem;
  background: rgba(13, 13, 21, .72); /* yarı şeffaf */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 195, 85, .28);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(255, 173, 51, .18), 0 18px 50px rgba(0, 0, 0, .5);
  animation: toastIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.consent p a { color: #ffd34d; text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-actions { justify-content: center; }
}

/* ---------- kart üstü yumuşak sayı etiketleri (beğeni / izlenme) ----------
   Uzun videolarda sağ üstte beğeni; shorts'ta sağ üstte beğeni, sol üstte
   izlenme. pointer-events:none — tıklama her zaman kartın/oynatıcının.
   Video gerçekten oynarken gizlenir ki YouTube arayüzünün üstüne binmesin
   (hover'da önden yüklenen sessiz oynatıcıda görünmeye devam eder). */
.stat-badge {
  position: absolute; top: .55rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .25rem .5rem;
  font-size: .72rem; font-weight: 600; line-height: 1;
  color: rgba(255, 255, 255, .93);
  background: rgba(8, 8, 14, .46);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  pointer-events: none;
  transition: opacity .25s ease;
}
.stat-likes { right: .55rem; color: #ffd7dd; }
.stat-views { left: .55rem; }
.card.playing:not(.primed) .stat-badge,
.scard.playing:not(.primed) .stat-badge { opacity: 0; }
/* Popüler kartlarda sol üstte "★ #1" rozeti var; beğeni sağda durduğu için
   çakışmaz. Küçük ekranda etiketler biraz daralır. */
@media (max-width: 480px) {
  .stat-badge { font-size: .68rem; padding: .2rem .42rem; }
}

/* ---------- canlı yayın rozeti ---------- */
.accent-live { background: linear-gradient(180deg, #ff2d55, #ff6a3d); }
.live-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  color: #fff;
  background: rgba(8, 8, 14, .55);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  pointer-events: none;
}
/* yayın sürerken: kırmızı ve nabız gibi atan nokta */
.live-badge.on { background: var(--grad); border-color: transparent; }
.live-badge.on::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: livePulse 1.6s ease-in-out infinite;
}
.live-badge.on { text-indent: 0; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .live-badge.on::before { animation: none; }
}
.card.playing:not(.primed) .live-badge { opacity: 0; transition: opacity .25s ease; }

/* hero rozetindeki abone sayısı — "Subscribe on YouTube" butonuyla birebir
   aynı degrade (--grad: #ff2d55 → #ff6a3d), yazının içine uygulanmış hâli */
.badge-sep { opacity: .45; margin: 0 .15rem; }
.badge-subs {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700;
}
/* background-clip:text desteklemeyen tarayıcıda yazı görünmez kalmasın */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .badge-subs { -webkit-text-fill-color: #ff5c7a; color: #ff5c7a; background: none; }
}

/* ---------- ayrıntılı çerez tercihleri penceresi ---------- */
.cookie-modal {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(4, 4, 8, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-content {
  width: min(560px, 100%);
  max-height: min(86vh, 720px); overflow-y: auto;
  background: rgba(15, 15, 24, .96);
  border: 1px solid rgba(255, 195, 85, .28);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(255, 173, 51, .16), 0 24px 70px rgba(0, 0, 0, .6);
  animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.2);
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cookie-modal-header h3 { font-size: 1.12rem; font-weight: 700; margin: 0; }
.cookie-close {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.5rem; line-height: 1;
  padding: .1rem .4rem; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.cookie-close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.cookie-modal-body { padding: 1.1rem 1.4rem .4rem; }
.cookie-category {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.1rem; margin-bottom: .85rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
}
.cookie-category-info { flex: 1; }
.cookie-category-info h4 { font-size: .96rem; font-weight: 650; margin: 0 0 .3rem; }
.cookie-category-info p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.cookie-note { font-size: .78rem; color: var(--muted); margin: .2rem .2rem 1rem; }
/* açma/kapama anahtarı */
.cookie-toggle { position: relative; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  transition: background .25s ease;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .25s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #ff9d2e, #ffd34d);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { outline: 2px solid #ffd34d; outline-offset: 2px; }
.cookie-toggle.disabled { cursor: not-allowed; opacity: .55; }
.cookie-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .9rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.cookie-link { font-size: .82rem; color: #ffd34d; text-decoration: underline; }
.cookie-modal-actions { display: flex; gap: .5rem; margin-left: auto; }
@media (max-width: 560px) {
  .cookie-modal-footer { flex-direction: column; align-items: stretch; }
  .cookie-modal-actions { margin-left: 0; }
  .cookie-modal-actions .btn { flex: 1; }
}

/* ---------- footer bağlantıları ---------- */
.footer-links { display: flex; gap: 1.1rem; font-size: .82rem; }
.footer-links a { color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 120;
  padding: .9rem 1.6rem;
  border-radius: 99px;
  font-weight: 600; font-size: .92rem;
  animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.toast-ok { background: #0f2b1a; border: 1px solid #2eff8a55; color: #7dffb8; }
.toast-err { background: #2b0f16; border: 1px solid #ff2d5555; color: #ff8098; }
.toast.hide { transition: opacity .5s ease, transform .5s ease; opacity: 0; transform: translate(-50%, 12px); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------- neon ışıklandırma ---------- */

/* Işık yalnızca kenarlık DIŞINA süzülür (box-shadow içeri sızamaz),
   kartın kendisi/zemini ışıklanmaz */
.card, .scard {
  position: relative; overflow: visible;
  /* Silent Crowns (tanıtım kartı) ile birebir aynı: ince sarı-turuncu
     kenarlık + kenara yapışık dar ışık */
  border-color: rgba(255, 190, 80, .25);
  box-shadow: 0 0 7px rgba(255, 157, 46, .2), 0 0 14px rgba(255, 211, 77, .09);
}
/* Büyük ışık yalnızca fare üzerindeyken; çekilince ilk haline döner */
.card:hover, .card:focus-visible,
.scard:hover, .scard:focus-visible {
  border-color: rgba(255, 190, 80, .5);
  box-shadow: 0 0 10px rgba(255, 157, 46, .32), 0 0 20px rgba(255, 211, 77, .16);
}
/* kart artık overflow:visible — köşe taşmalarını içeriden yuvarla */
.thumb { border-radius: var(--radius) var(--radius) 0 0; }
/* iframe/görsel köşeleri her durumda kabın yuvarlaklığını alsın
   (iframe'ler bazı tarayıcılarda overflow kırpmasına uymaz) */
.thumb img, .thumb video, .thumb .inline-frame { border-radius: inherit; }
.player-frame iframe, .player-frame video { border-radius: inherit; }
.scard img, .scard video, .scard .inline-frame { border-radius: var(--radius); }
.scard-info { border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 760px) {
  .card-featured .thumb { border-radius: var(--radius) 0 0 var(--radius); }
}

/* ---------- reveal animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: .4rem;
  }
  .nav-toggle span {
    width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.4rem;
    background: rgba(6, 6, 10, .96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: .55rem 0; font-size: 1rem; }
  .btn-yt { justify-content: center; margin-top: .4rem; }
  .hero { padding-top: 6.5rem; }
  .hero-spaces { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.8rem; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .scard { flex-basis: 175px; min-width: 0; }
  .section { padding-top: 3.2rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 10.5vw, 3rem); letter-spacing: .1em; margin-left: .1em; }
  .hero-avatar { width: 150px; height: 150px; }
  .avatar-wrap { width: 150px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
