/*
 * Man Tema — ana stil dosyası.
 * Dark theme + sıcak/çekici kırmızı vurgu; kategori renkleri: Manga=mavi, Anime=kırmızı, Novel=mor.
 */

:root {
	/* Nötr, standart bir koyu tema zemin (belirgin kahverengi değil) —
	   "sıcaklık/çekicilik" vurgu rengiyle (aşağıdaki --accent) sağlanır,
	   arka plan koyu mod uygulamalarında alışılmış nötr griye yakın durur. */
	--bg: #131313;
	--bg-elevated: #1c1c1e;
	--bg-card: #212123;
	--border: #323234;
	--text: #f4f3f2;
	--text-muted: #a8a6a4;
	/* Vurgu rengi pembeden daha doygun, sıcak bir kırmızıya çekildi. */
	--accent: #ef1b3f;
	--accent-hover: #ff3355;
	--manga: #3b82f6;
	--anime: #ef4444;
	--novel: #a855f7;
	--radius: 10px;
	--container-width: 1200px;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Açık tema (sağdaki güneş/ay düğmesiyle elle değiştirilir — bkz. .theme-toggle). */
:root[data-theme="light"] {
	--bg: #f7f3f0;
	--bg-elevated: #ffffff;
	--bg-card: #ffffff;
	--border: #e7ddd6;
	--text: #211a16;
	--text-muted: #6f6259;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.5;
	transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4, .hero__title, .card__title, .section-heading__title, .video-card__title { font-family: var(--font-heading); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Badges ---------- */
.badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	background: var(--accent);
}
.badge--manga { background: var(--manga); }
.badge--anime { background: var(--anime); }
.badge--novel { background: var(--novel); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--outline {
	background: transparent;
	border: 2px solid var(--accent);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13px;
	border-radius: 4px;
	padding: 12px 28px;
}
.btn--outline:hover { background: var(--accent); }
.btn--disabled { opacity: .4; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 20px;
}
.site-header__logo-text { font-size: 22px; font-weight: 800; color: var(--accent); }
/* Özel logo (Görünüm → Özelleştir → Site Kimliği) yüklense bile header
   yüksekliğini bozmasın diye üst sınır konur — orijinal görsel ne boyutta
   olursa olsun oranı koruyarak küçültülür. */
.site-header__logo .custom-logo-link,
.site-header__logo .custom-logo-link img,
.site-header__logo img.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
}
.nav-menu { display: flex; gap: 24px; }
.nav-menu li a { font-weight: 600; font-size: 14px; }
.nav-menu li a:hover { color: var(--accent); }

/* Alt menü (dropdown) desteği — Görünüm → Menüler'de bir öğenin altına
   başka öğeler sürüklenirse (ör. "MAN'S" altına Manga/Anime/Novel),
   WordPress bunları otomatik <ul class="sub-menu"> olarak sarar; burada
   üzerine gelince (hover) açılan, yatay/flex bir kart halinde gösteriyoruz. */
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 60;
	flex-wrap: wrap;
	gap: 4px;
	min-width: 220px;
	padding: 10px;
	margin-top: 12px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	display: flex;
}
.nav-menu .sub-menu li { width: 100%; }
.nav-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
}
.nav-menu .sub-menu a:hover { background: var(--bg-card); }
/* Alt menüsü olan üst öğeye küçük bir ok işareti eklenir. */
.nav-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	vertical-align: 2px;
}
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: transparent; border: none; color: var(--text); cursor: pointer; font-size: 18px; }
.lang-switch select {
	background: var(--bg-card);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 8px;
}
.site-search { display: none; padding: 10px 20px; border-top: 1px solid var(--border); }
.site-search.is-open { display: block; }
.site-search input {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text);
}

/* ---------- Hero (otomatik + elle kontrol edilebilir slider) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__slides {
	position: relative;
	/* Referans tasarımdaki gibi ekranın büyük kısmını kaplayan, daha uzun bir
	   hero — sabit piksel yerine görünüm genişliğine göre esneyen yükseklik. */
	height: clamp(440px, 58vw, 680px);
	overflow: hidden;
}
.hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	opacity: 0;
	/* Not: "visibility: hidden" kasıtlı olarak KULLANILMIYOR — visibility
	   anlık (transition edilemeden) değiştiği için opacity geçişini yarıda
	   kesip slider'ın "takılıyormuş/zıplıyormuş" gibi görünmesine sebep
	   oluyordu. Bunun yerine pointer-events ile tıklanabilirlik engelleniyor,
	   gizleme tamamen opacity + z-index'e bırakılıyor — böylece geçiş her
	   zaman pürüzsüz bir crossfade oluyor. */
	pointer-events: none;
	transition: opacity .6s ease;
	z-index: 1;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
/* Referans tasarımdaki gibi: görsel her zaman hero'yu edge-to-edge, boşluksuz
   doldurur (object-fit:cover). Dikey poster görsellerinde üst/alt kenarlar
   kırpılır ama bu, ortada kocaman boş bir alan bırakmaktan daha iyi bir
   görünüm veriyor — gerçek yatay "banner" görseli olan içeriklerde (AniList
   bannerImage / admin'in elle girdiği banner) zaten kırpma neredeyse hiç
   fark edilmez. */
.hero__bg-fg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}
.hero__overlay {
	position: absolute; inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(19,19,19,.1) 0%, rgba(19,19,19,.5) 55%, rgba(19,19,19,.97) 92%),
		linear-gradient(90deg, rgba(19,19,19,.75) 0%, rgba(19,19,19,.25) 45%, rgba(19,19,19,0) 65%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: 32px; }
.hero__title { font-size: clamp(24px, 3.2vw, 40px); margin: 12px 0; max-width: 720px; }
.hero__title a { color: #fff; }

/* Sol/sağ ok butonları */
.hero__arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(19,19,19,.5);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero__arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

/* Slide gösterge noktaları */
.hero__dots {
	position: absolute;
	z-index: 5;
	top: 16px;
	right: 20px;
	display: flex;
	gap: 8px;
}
.hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.6);
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.hero__dot.is-active { background: var(--accent); border-color: var(--accent); }
.meta-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.hero .meta-row { color: #d9d5e3; }

/* Meta satırı ikonları — küçük, tek renk (accent) maskeli SVG ikonlar. */
.meta-row__item { display: inline-flex; align-items: center; gap: 6px; }
.meta-row__item::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: var(--accent);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}
.meta-row__item--date::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8H5v10h14V10z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8H5v10h14V10z'/%3E%3C/svg%3E");
}
.meta-row__item--author::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 12c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 12c-4.4 0-9 2.2-9 5v3h18v-3c0-2.8-4.6-5-9-5z'/%3E%3C/svg%3E");
}
.meta-row__item--comments::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3V4z'/%3E%3C/svg%3E");
}
.meta-row__item--time::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.5-4.2 2.5-.8-1.3 3.5-2.1V6h1.5v6.5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.5-4.2 2.5-.8-1.3 3.5-2.1V6h1.5v6.5z'/%3E%3C/svg%3E");
}

/* Referans tasarımdaki gibi: tek parça, yarı saydam, hero'nun alt kenarına
   bindirilmiş bir şerit (ayrı ayrı kutucuklar değil). */
.hero__strip {
	position: relative;
	z-index: 3;
	display: flex;
	overflow-x: auto;
	/* Referanstaki gibi hero görselinin alt kısmına biner ve arkasındaki
	   görsel belli belirsiz görünecek kadar şeffaf durur. */
	margin-top: -78px;
	background: rgba(19,19,19,.42);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-top: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--accent), rgba(239,27,63,0)) 1;
	padding: 0 20px;
}
.hero__strip-item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 0 240px;
	padding: 16px 20px;
	border-right: 1px solid rgba(255,255,255,.08);
}
.hero__strip-item:last-child { border-right: none; }
.hero__strip-thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.hero__strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Şerit her zaman koyu bir görselin üzerinde durduğu için metin rengi
   açık/koyu tema ayrımından bağımsız olarak sabit (beyaz) tutulur. */
.hero__strip-title { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.hero__strip-date { display: block; font-size: 11px; color: rgba(255,255,255,.65); }

/* ---------- Section heading ---------- */
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(90deg, var(--accent), rgba(255,59,110,0));
	padding: 10px 16px;
	border-radius: 8px;
	margin: 40px 0 20px;
}
.section-heading__title { margin: 0; font-size: 18px; color: #fff; }
.section-heading__more { font-size: 13px; font-weight: 600; color: #fff; }

/* ---------- Three column ---------- */
.three-column {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 40px auto;
}
.three-column__title { font-size: 16px; margin-bottom: 12px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.content-list__item a { display: flex; gap: 10px; padding: 8px 0; align-items: center; }
.content-list__thumb { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; flex: none; background: var(--bg-card); }
.content-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-list__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}
.content-list__date { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.content-list--vertical { display: flex; flex-direction: column; gap: 4px; }

/* "En Çok Görüntülenen" sütununda ilk öğe büyük öne çıkan kart olarak,
   geri kalanı normal küçük liste satırı olarak gösterilir. */
.most-viewed-featured { display: block; margin-bottom: 16px; }
.most-viewed-featured__thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-card); }
.most-viewed-featured__thumb img { width: 100%; height: 100%; object-fit: cover; }
.most-viewed-featured__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.most-viewed-featured:hover .most-viewed-featured__title { color: var(--accent); }

/* ---------- Grids / cards ---------- */
/* Grid yerine flex kullanılır: eksik satırlarda (ör. 4 sütunluk bölümde
   tek bir kart varsa) grid'in aksine boş, "hayalet" sütunlar bırakmaz —
   kartlar sadece kendi genişliklerini kaplar, kalan boşluk gereksiz yere
   eşit dağıtılmaz. */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.content-grid--4col > * { flex: 1 1 calc(25% - 15px); max-width: calc(25% - 15px); }
.content-grid--2x2 > * { flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); }
/* "MAN'S" bloğu: 4 eşit KARE görsel alanı (diğer kartlardaki 3:4 dikey
   orandan farklı olarak) — daha derli toplu bir taslak için. */
.content-grid--square .card__thumb { aspect-ratio: 1/1; }

/* "Tümünü Gör" arşiv sayfaları: Pinterest tarzı masonry (kesintisiz/
   basamaklı) grid. CSS çoklu-sütun (column-count) tekniği kullanılıyor —
   JS gerektirmez. Kartların görseli sabit bir orana zorlanmadığı için
   (aşağıdaki aspect-ratio:auto), her kart kendi doğal görsel oranında
   kalır ve satırlar birbirine hizalanmak zorunda kalmadan Pinterest'teki
   gibi organik/basamaklı bir dizilim oluşur. */
.content-grid--masonry {
	display: block;
	column-count: 4;
	column-gap: 20px;
}
.content-grid--masonry > * {
	display: inline-block;
	width: 100%;
	break-inside: avoid;
	margin-bottom: 20px;
	vertical-align: top;
}
.content-grid--masonry .card__thumb { aspect-ratio: auto; }
.content-grid--masonry .card__thumb img { height: auto; }
@media (max-width: 1100px) { .content-grid--masonry { column-count: 3; } }
@media (max-width: 780px)  { .content-grid--masonry { column-count: 2; } }
@media (max-width: 480px)  { .content-grid--masonry { column-count: 1; } }

.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: block;
	transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__thumb { position: relative; aspect-ratio: 3/4; background: var(--bg-elevated); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb--placeholder { width: 100%; height: 100%; }
.card__thumb .badge { position: absolute; top: 8px; left: 8px; }
.card__body { padding: 10px 12px; }
.card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 14px;
	margin: 0 0 4px;
	line-height: 1.3;
}
.card__date { font-size: 11px; color: var(--text-muted); }

.card--ad { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px 16px; border-style: dashed; border-color: var(--accent); overflow: hidden; }
.card--ad__ribbon {
	position: absolute; top: 14px; right: -32px;
	background: var(--accent); color: #fff;
	font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
	padding: 4px 36px; transform: rotate(45deg);
}
.card--ad__body h3 { margin: 0 0 6px; font-size: 15px; }
.card--ad__body p { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; }

/* ---------- Video section ---------- */
/* Bölümün arkasındaki bulanık "ambiyans" görseli — bkz. video-featured-card.php. */
.video-section__ambient-wrap { position: relative; border-radius: var(--radius); overflow: hidden; padding: 20px; }
.video-section__ambient-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--video-ambient-bg, none);
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(.4) saturate(1.15);
	transform: scale(1.15); /* Bulanıklığın kenarlarda görünmesini önler. */
	z-index: 0;
}
.video-section__ambient-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(19,19,19,.3);
	z-index: 0;
}
.video-section__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
/* Ambiyans arka planı her zaman koyu olduğu için, açık temada bile bu
   bölümün metinleri açık renkte kalır (aksi halde okunmaz). */
.video-section__ambient-wrap .content-list__title,
.video-section__ambient-wrap .content-list__date { color: #fff; }
.video-section__ambient-wrap .content-list__date { color: rgba(255,255,255,.65); }
.video-section__ambient-wrap .content-list__item a:hover .content-list__title { color: var(--accent); }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.video-card__media { position: relative; height: 420px; }
.video-card__bg { position: relative; display: block; width: 100%; height: 100%; }
.video-card__bg img { width: 100%; height: 100%; object-fit: cover; }
.video-card__media iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.video-card__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 72px; height: 72px; border-radius: 50%; background: var(--accent);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 24px; padding-left: 4px; /* üçgen ikonu optik olarak ortalar */
	border: 3px solid rgba(255,255,255,.85); z-index: 2;
	box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.45);
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.video-card__bg:hover .video-card__play {
	transform: translate(-50%, -50%) scale(1.08);
	background: var(--accent-hover);
	box-shadow: 0 0 0 10px rgba(255,255,255,.16), 0 10px 28px rgba(0,0,0,.5);
}
/* Aynı "display:flex kuralı hidden'ı eziyor" hatası burada da var — hover
   önizlemesinde video olmayan bir öğeye geçince play ikonu (hidden) yine
   de görünür kalıyordu. */
.video-card__play[hidden] { display: none; }
/* Görselin altına koyulan koyu gradyan + üzerine bindirilmiş rozet/tarih/başlık. */
.video-card__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(19,19,19,0) 40%, rgba(19,19,19,.95) 100%);
	pointer-events: none;
}
.video-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.video-card__overlay .meta-row__item { color: #d9d5e3; margin: 8px 0; }
.video-card__title { margin: 0; font-size: 22px; }
.video-card__title a { color: #fff; }
.video-card.js-video-playing .video-card__overlay,
.video-card.js-video-playing .video-card__media::after { display: none; }

/* ---------- Ad slots ---------- */
.ad-slot { text-align: center; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-card); margin: 20px 0; }
.ad-slot__label { display: inline-block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.ad-slot--placeholder p { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; }

/* Reklam alanı boyut sınırları — admin'in yüklediği görsel ne kadar büyük
   olursa olsun, her alan kendi amacına uygun bir yükseklikte kalır. */
.ad-zone--ad-header {
	max-width: var(--container-width);
	margin: 12px auto;
	padding: 0 20px;
	overflow: hidden;
}
.ad-zone--ad-header .ad-slot { margin: 0; }
/* Standart bir "leaderboard/banner" reklam oranı: geniş ama ince —
   hero slider'ın genişliğiyle uyumlu, dikeyde sayfayı şişirmez. */
.ad-zone--ad-header img,
.ad-zone--ad-header a {
	display: block;
	width: 100%;
	max-height: 140px;
	object-fit: cover;
	border-radius: var(--radius);
}
@media (max-width: 640px) {
	.ad-zone--ad-header img, .ad-zone--ad-header a { max-height: 100px; }
}
/* Sidebar sticky: tekil/arşiv sayfalarında zaten dar bir sütun (300px)
   içinde olduğu için normal boyutta görünüyordu — ama front-page.php
   anasayfada get_sidebar()'ı bu dar sütunun DIŞINDA, tam genişlikte
   çağırıyor, bu yüzden aynı görsel orada devasa görünüyordu. Artık
   bağlamdan bağımsız olarak sabit/dar bir genişlikte tutuluyor. */
.ad-zone--ad-sidebar-sticky {
	max-width: 300px;
	margin: 20px auto;
}
.ad-zone--ad-sidebar-sticky img,
.ad-zone--ad-sidebar-sticky a {
	display: block;
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: var(--radius);
}

/* ---------- Layout ---------- */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px 20px; }
.main-layout--reader { grid-template-columns: 1fr; }
.site-sidebar__sticky { position: sticky; top: 90px; }
.page-title { font-size: 26px; margin: 0 0 20px; }

/* ---------- Sayfalama (WP the_posts_pagination() çıktısı) ---------- */
.pagination { margin: 40px 0 20px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 600;
	font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { background: transparent; border: none; }

/* ---------- Sidebar widget kutuları ---------- */
/* WordPress'in varsayılan widget'ları (Arama/Son Yazılar/Arşivler/Kategoriler vb.)
   dahil, sidebar'daki her widget koyu temaya uygun bir kart görünümü alır. */
.site-sidebar .widget {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	margin-bottom: 20px;
}
.site-sidebar .widget-title {
	font-size: 15px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
}
.site-sidebar .widget ul { display: flex; flex-direction: column; gap: 8px; }
.site-sidebar .widget li { font-size: 13px; color: var(--text-muted); }
.site-sidebar .widget a { color: var(--text); }
.site-sidebar .widget a:hover { color: var(--accent); }
/* WordPress'in çekirdek arama widget'ı (search-form). */
.site-sidebar .widget .search-form { display: flex; gap: 8px; }
.site-sidebar .widget .search-form label { flex: 1; margin: 0; }
.site-sidebar .widget .search-field {
	width: 100%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
}
.site-sidebar .widget .search-submit {
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0 16px;
	cursor: pointer;
}

/* ---------- İçerik açıklaması içi galeri slider + video ---------- */
.content-gallery-slider {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 24px 0;
	padding-bottom: 4px;
}
.content-gallery-slider__item {
	flex: 0 0 auto;
	width: min(280px, 80%);
	scroll-snap-align: start;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16/10;
}
.content-gallery-slider__item img { width: 100%; height: 100%; object-fit: cover; }

.content-video-embed { margin: 24px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.content-video-embed iframe { width: 100%; height: 100%; border: 0; }

.content-recommendation {
	margin: 32px 0;
	padding: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
}
.content-recommendation h2 { margin: 0 0 8px; font-size: 17px; }
.content-recommendation p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.content-source-link { font-size: 13px; color: var(--text-muted); }
.content-source-link a { color: var(--accent); }
.content-source-link a:hover { text-decoration: underline; }

/* İzleme sırası / sezonlar listesi — gerçek API verisinden, Claude'a
   yazdırılmıyor (bkz. content-generator.php yorumu). */
.content-recommendation__seasons-title { margin: 20px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.content-seasons { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; }
.content-seasons__item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.content-seasons__item a { color: var(--text); }
.content-seasons__item a:hover { color: var(--accent); }
.content-seasons__item--current { list-style: none; margin-left: -20px; padding: 6px 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 6px; }
.content-seasons__status { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted); }
.content-seasons__status--releasing { background: color-mix(in srgb, var(--accent) 25%, transparent); color: #fff; }

/* ---------- İletişim sayfa şablonu ---------- */
.contact-info-card { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin: 24px 0; }
.contact-info-card__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
a.contact-info-card__item:hover { border-color: var(--accent); }
.contact-info-card__item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-info-card__item strong { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.contact-info-card__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	display: flex;
	align-items: center;
	justify-content: center;
}
.contact-info-card__icon svg { width: 20px; height: 20px; fill: var(--accent); }
.contact-info-card__social { margin-top: 32px; }
.contact-info-card__social h2 { font-size: 16px; margin-bottom: 12px; }

/* ---------- Statik sayfa (Hakkımızda/İletişim/Gizlilik Politikası vb.) ---------- */
.single-page__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.single-page__body { max-width: 760px; line-height: 1.8; font-size: 16px; }
.single-page__body p { margin: 0 0 1.2em; }
.single-page__body img { border-radius: 8px; margin: 12px 0; }
.single-page__body h2, .single-page__body h3 { margin: 1.5em 0 .6em; }

/* ---------- Single content item ---------- */
.single-content-item__title { font-size: 30px; margin: 10px 0; }
.single-content-item__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.terms-line { font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.chapter-list { margin-top: 30px; border-top: 1px solid var(--border); padding-top: 16px; }
.chapter-list ul { display: flex; flex-direction: column; gap: 6px; }
.chapter-list li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg-card); border-radius: 6px; }
.chapter-list__date { color: var(--text-muted); font-size: 12px; }

/* ---------- Reader ---------- */
.reader__parent { font-size: 13px; color: var(--text-muted); }
.reader__title { font-size: 24px; margin: 4px 0 16px; }
.reader-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.reader-controls__select select { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.reader__body { line-height: 1.8; font-size: 16px; }
.reader__body img { border-radius: 8px; margin: 12px 0; }

/* Novel: okunabilir genişlikte, serif hissi veren düz metin akışı. */
.reader__body--text .reader__prose { max-width: 720px; margin: 0 auto; font-size: 17px; }
.reader__body--text .reader__prose p { margin: 0 0 1.2em; }

/* Manga/anime: görseller boşluksuz, tam genişlik, ortalanmış akış. */
.reader__body--gallery { max-width: 860px; margin: 0 auto; }
.reader__body--gallery img,
.reader__body--gallery figure { margin: 0; border-radius: 0; }
.reader__body--gallery p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); margin-top: 60px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; padding: 48px 20px; }
.site-footer__col h3 { font-size: 15px; margin-bottom: 14px; }
.footer-menu li { margin-bottom: 8px; font-size: 13px; }
.site-footer__col--brand p { color: var(--text-muted); font-size: 13px; max-width: 320px; line-height: 1.7; }
/* Footer'daki özel logo da header'daki ile aynı boyutta görünür. */
.site-footer__col--brand .custom-logo-link,
.site-footer__col--brand .custom-logo-link img,
.site-footer__col--brand img.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
	height: auto;
	margin-bottom: 12px;
}
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; max-width: 320px; }
.newsletter-form input { flex: 1; padding: 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); }
.newsletter-form button { background: var(--accent); border: none; color: #fff; border-radius: 6px; padding: 0 16px; cursor: pointer; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; max-width: 220px; }
.social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-radius: 50%; font-size: 12px; font-weight: 700; }
.site-footer__bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ---------- Açık/Koyu tema geçiş düğmesi (sağda sabit) ---------- */
.theme-toggle {
	position: fixed;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: 999px 0 0 999px;
	padding: 14px 10px;
	cursor: pointer;
}
.theme-toggle__icon { width: 18px; height: 18px; color: var(--text-muted); transition: color .2s ease; }
.theme-toggle__icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.theme-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
/* Açık temadayken güneş, koyu temadayken ay ikonu vurgulanır. */
:root:not([data-theme="light"]) .theme-toggle__icon--sun,
:root[data-theme="light"] .theme-toggle__icon--moon { color: var(--text-muted); }
:root:not([data-theme="light"]) .theme-toggle__icon--moon,
:root[data-theme="light"] .theme-toggle__icon--sun { color: var(--accent); }

/* ---------- Video pop-up (lightbox) ---------- */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
/* ÖNEMLİ: "display: flex" kuralı, HTML'in "hidden" özelliğinin varsayılan
   "display: none" davranışını CSS katman önceliği yüzünden eziyor — bu
   yüzden modal kapatılamıyor/sayfa açılır açılmaz görünüyordu. Bu kural
   olmadan tarayıcı [hidden] öğesini author CSS'i (aynı önceliğe sahip
   .video-modal kuralı) karşısında gizli tutamıyor. */
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10,9,9,.88);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.video-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.video-modal__body { width: 100%; height: 100%; }
.video-modal__body iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
.video-modal__close:hover { background: var(--accent); border-color: var(--accent); }
body.has-video-modal-open { overflow: hidden; }
@media (max-width: 640px) {
	.video-modal__close { top: -40px; right: 4px; }
}

/* ---------- Yukarı çık düğmesi ---------- */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 80;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	border: none;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); }
@media (max-width: 640px) {
	.back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.three-column, .video-section__grid { grid-template-columns: 1fr; }
	.content-grid--4col > * { flex-basis: calc(50% - 10px); max-width: calc(50% - 10px); }
	.main-layout { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.nav-menu { display: none; }
	/* GERÇEK HATA: ☰ butonuna basınca main.js .nav-menu'ye "is-open" class'ı
	   ekliyordu ama bu class için hiçbir CSS kuralı tanımlanmamıştı — menü
	   hep gizli kalıyordu, buton hiçbir şey yapmıyormuş gibi görünüyordu.
	   Artık "is-open" eklenince menü, header'ın altında açılır bir panel
	   olarak (dikey liste) görünüyor. */
	.nav-menu.is-open {
		display: flex;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-elevated);
		border-top: 1px solid var(--border);
		border-bottom: 1px solid var(--border);
		padding: 8px 20px;
		z-index: 60;
	}
	.nav-menu.is-open li { width: 100%; }
	.nav-menu.is-open > li > a {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--border);
	}
	.nav-menu.is-open li:last-child > a { border-bottom: none; }
	/* Mobilde alt menüler (varsa) hover değil, her zaman açık/basit liste. */
	.nav-menu.is-open .sub-menu {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: transparent;
		border: none;
		padding: 0 0 0 16px;
		margin: 0;
		min-width: 0;
	}
	.site-header { position: relative; }
}
@media (max-width: 560px) {
	.content-grid--4col > *, .content-grid--2x2 > * { flex-basis: 100%; max-width: 100%; }
	.hero__title { font-size: 28px; }
}
