/*! VidNoir Pro – Dizi görünümü ve dizi sayfaları (afiş, vitrin, raflar, bölüm listesi). */

/* ------------------------------------------------------------------ Afiş */
.vnd-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: hsl(var(--h, 0) 30% 16%); container-type: inline-size; isolation: isolate; }
.vnd-poster__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vnd-poster--type { display: flex; padding: 12% 10%; color: #fff; }
.vnd-poster__name { position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
/* Kalıp 1: koyu zemin, üstte açık renkli yuvarlak amblem, altta ortalı serif ad. */
.vnd-poster--serif { align-items: flex-end; justify-content: center; text-align: center; background: radial-gradient(130% 90% at 50% 10%, hsl(var(--h) 55% 30%), hsl(var(--h) 60% 11%) 72%); }
.vnd-poster--serif::before { content: ""; position: absolute; left: 50%; top: 13%; width: 48%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: hsl(var(--h) 60% 76%); box-shadow: inset 0 0 0 6cqi hsl(var(--h) 55% 64%); }
.vnd-poster--serif .vnd-poster__name { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 700; font-size: 20px; font-size: 13cqi; line-height: 1.02; color: hsl(var(--h) 70% 93%); text-wrap: balance; }
/* Kalıp 2: üstte dar, büyük harfli ad; altta eğik renk bandı. */
.vnd-poster--block { align-items: flex-start; background: linear-gradient(170deg, hsl(var(--h) 18% 15%), hsl(var(--h) 22% 7%)); }
.vnd-poster--block::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -10%; height: 44%; background: hsl(var(--h) 72% 46%); transform: skewY(-16deg); transform-origin: right; }
.vnd-poster--block .vnd-poster__name { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 22px; font-size: 16cqi; line-height: .94; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ Yayın durumu rozeti (Yakında / Yayında / Tamamlandı) */
.vnd-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnd-badge--soon { background: var(--vn-gold); color: var(--vn-gold-fg); }
.vnd-badge--airing { background: var(--vn-accent); color: var(--vn-accent-fg); }
.vnd-badge--ended { background: rgba(12, 12, 14, .82); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.vnd-badge__dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: vnd-live 1.8s ease-in-out infinite; }
@keyframes vnd-live { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vnd-badge__dot { animation: none; } }

/* ------------------------------------------------------------------ Kart */
.vnd-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--vn-text); }
.vnd-card__badge { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
/* Üstte yazılı tipografik afişte ad rozetin altından başlar. */
.vnd-card.has-badge .vnd-poster--block { padding-top: 40px; }
.vnd-card:hover { color: var(--vn-text); }
.vnd-card:hover .vnd-poster { filter: brightness(1.1); }
.vnd-card:focus-visible { outline: 2px solid var(--vn-focus, var(--vn-accent)); outline-offset: 4px; border-radius: 12px; }
.vnd-card .vnd-poster { margin-bottom: 6px; }
.vnd-card__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnd-card__meta { font-size: 12px; line-height: 1.3; color: var(--vn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnd-card__bar { display: block; height: 3px; margin: -2px 0 6px; border-radius: 3px; background: var(--vn-border); overflow: hidden; }
.vnd-card__bar span { display: block; height: 100%; border-radius: 3px; background: var(--vn-accent); }

/* ------------------------------------------------------------------ Raflar ve ızgara */
.vnd-shelf { margin: 0 0 44px; }
.vnd-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.vnd-shelf__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--vn-heading); }
.vnd-shelf__more { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; font-size: 13px; font-weight: 600; color: var(--vn-muted); }
.vnd-shelf__more:hover { color: var(--vn-text); text-decoration: underline; }
.vnd-shelf__note { font-size: 13px; color: var(--vn-muted); }
.vnd-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.vnd-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6.4); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vnd-row::-webkit-scrollbar { display: none; }
.vnd-row > * { scroll-snap-align: start; }
.vnd-empty { padding: 48px 0; color: var(--vn-muted); }

/* ------------------------------------------------------------------ Vitrin */
.vnd-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; min-height: 300px; margin: 4px 0 40px; padding: 40px 48px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, hsl(var(--h) 62% 24%), hsl(var(--h) 58% 10%) 72%); }
.vnd-hero__bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4) brightness(.55); }
.vnd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12) 75%); }
.vnd-hero__text { min-width: 0; max-width: 620px; }
.vnd-hero__title { margin: 0 0 12px; font-size: clamp(28px, 3.1vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.vnd-hero__desc { margin: 0 0 12px; max-width: 54ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.vnd-hero__facts { margin: 0 0 24px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .74); }
.vnd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.vnd-hero .vn-btn { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 700; gap: 8px; }
.vnd-hero .vn-btn .vn-ico { width: 18px; height: 18px; }
.vnd-hero__fav.vn-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.vnd-hero__fav.vn-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; }
.vnd-hero__fav.is-on .vn-ico { transform: rotate(45deg); }
.vnd-hero__status { margin: 0 0 12px; }
.vnd-hero__badge { height: 26px; padding: 0 10px; font-size: 12.5px; }
.vnd-hero__follow.vn-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.vnd-hero__follow.vn-btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; }
.vnp-follow.is-on .vn-ico { --vn-bell-fill: currentColor; }
.vnd-hero__poster { display: block; width: clamp(150px, 15vw, 220px); border-radius: 14px; box-shadow: 0 28px 56px rgba(0, 0, 0, .5); }
.vnd-hero__poster .vnd-poster { border-radius: 14px; }
.vnd-hero__poster:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ------------------------------------------------------------------ Bölüm numaraları */
.vnd-eps__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.vnd-ep { position: relative; display: grid; place-items: center; height: 44px; border-radius: 10px; background: var(--vn-surface); border: 1px solid var(--vn-border); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--vn-text); }
.vnd-ep:hover { border-color: var(--vn-muted); color: var(--vn-text); }
.vnd-ep.is-watched { color: var(--vn-muted); }
.vnd-ep.is-locked { color: var(--vn-muted); }
.vnd-ep.is-current { background: var(--vn-accent); border-color: var(--vn-accent); color: var(--vn-accent-fg); }
.vnd-ep__lock { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; color: var(--vn-gold-text, var(--vn-gold)); }
.vnd-ep.is-current .vnd-ep__lock { color: var(--vn-accent-fg); }

/* İzleme sayfası yan sütunu */
.vnd-eps { margin-bottom: 24px; padding: 16px; border-radius: 14px; background: var(--vn-panel); border: 1px solid var(--vn-border); }
.vnd-eps__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vnd-eps__poster { flex-shrink: 0; width: 52px; }
.vnd-eps__poster .vnd-poster { border-radius: 6px; }
.vnd-eps__info { min-width: 0; }
.vnd-eps__title { margin: 0 0 2px; font-size: 16px; line-height: 1.3; }
.vnd-eps__title a { color: var(--vn-heading); }
.vnd-eps__title a:hover { text-decoration: underline; }
.vnd-eps__facts { margin: 0; font-size: 13px; color: var(--vn-muted); }
.vnd-eps__nav { display: flex; gap: 8px; margin-bottom: 14px; }
.vnd-eps__step { flex: 1; min-width: 0; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
/* Dar ekranda (320–380 px) "Önceki / Sonraki bölüm" iki satıra iner; buton taşmaz. */
@media (max-width: 380px) { .vnd-eps__step { height: auto; min-height: 38px; padding: 6px 10px; white-space: normal; line-height: 1.2; text-align: center; } }
.vnd-eps__step .vn-ico { width: 16px; height: 16px; }
/* Yayındaki dizinin son bölümü: yeni bölüm günü ve "Haber ver". */
.vnd-eps__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--vn-surface); border: 1px solid var(--vn-border); }
.vnd-eps__more-text { margin: 0; font-size: 13px; font-weight: 600; color: var(--vn-text); }
.vnd-eps__follow.vn-btn { gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.vnd-eps__follow .vn-ico { width: 16px; height: 16px; }
.vnd-eps .vnd-eps__grid { max-height: 248px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); scrollbar-width: thin; }
.vnd-eps .vnd-ep { height: 38px; }
.vnd-eps .vnd-ep:not(.is-current) { background: var(--vn-surface); }

/* ------------------------------------------------------------------ Keşfet / tür sayfası / dizi sayfası */
.vnd-explore__head { margin: 6px 0 18px; }
.vnd-explore__title { margin: 0; font-size: 28px; line-height: 1.2; }
.vnd-explore__desc { margin: 8px 0 0; max-width: 70ch; color: var(--vn-muted); }
.vnd-explore__sub { margin-bottom: 14px; }
.vnd-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.vnd-genre { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 34px; background: var(--vn-surface); border: 1px solid var(--vn-border); font-size: 13.5px; font-weight: 600; color: var(--vn-text); }
.vnd-genre:hover { border-color: var(--vn-muted); color: var(--vn-text); }
.vnd-genre.is-active { background: var(--vn-text); border-color: var(--vn-text); color: var(--vn-bg); }
.vnd-series .vnd-hero { margin-top: 0; }
.vnd-series__eps .vnd-eps__grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }

/* ------------------------------------------------------------------ Dizi görünümü: iskelet */
.vn-layout-youtube.vn-layout-drama { --vn-side-w: 232px; --vn-header-h: 64px; }
/* Shorts akışı kenardan kenara kalır (kendi boşluğunu extras.css verir). */
.vn-layout-youtube.vn-layout-drama:not(.vn-shorts-page) .vn-main { padding-left: 32px; padding-right: 32px; }
.vn-layout-youtube.vn-layout-drama .vnd-home, .vn-layout-youtube.vn-layout-drama .vnd-explore, .vn-layout-youtube.vn-layout-drama .vnd-series { max-width: 1480px; margin-left: auto; margin-right: auto; }
.vn-layout-youtube.vn-layout-drama .vn-header__search { justify-content: flex-start; }
.vn-layout-youtube.vn-layout-drama .vn-search-form { max-width: 380px; }
.vn-layout-youtube.vn-layout-drama .vn-search-form__input { border-radius: 10px 0 0 10px; background: var(--vn-surface); }
.vn-layout-youtube.vn-layout-drama .vn-search-form .vn-search-form__submit { width: 46px; border-radius: 0 10px 10px 0; }
.vn-layout-youtube.vn-layout-drama .vn-btn { border-radius: 10px; }
.vn-layout-youtube.vn-layout-drama .vn-btn--login { color: var(--vn-text); }
.vn-layout-youtube.vn-layout-drama .vn-ft { border-top-color: var(--vn-border); }

/* Yan menü */
.vn-layout-youtube.vn-layout-drama .vn-sb { display: flex; flex-direction: column; padding: 18px 14px 16px; background: var(--vn-surface); border-right: 1px solid var(--vn-border); }
.vn-layout-youtube.vn-layout-drama .vn-sb__sec { border-bottom: 0; padding: 0 0 18px; }
.vn-layout-youtube.vn-layout-drama .vn-sb__foot, .vn-layout-youtube.vn-layout-drama .vn-sb__premium { display: none; }
.vn-layout-youtube.vn-layout-drama .vn-sb .vn-sb__menu a { flex-direction: row; justify-content: flex-start; gap: 14px; height: 40px; padding: 0 12px; font-size: 14px; }
.vn-layout-youtube.vn-layout-drama .vn-sb__menu .current-menu-item > a, .vn-layout-youtube.vn-layout-drama .vn-sb__menu a[aria-current] { background: var(--vn-panel); }
.vn-layout-youtube.vn-layout-drama .vn-sb__ico { width: 20px; height: 20px; }
.vnd-sb-logo { padding: 2px 10px 22px; }
.vnd-sb-logo .vn-logo__text { font-size: 20px; }
.vnd-sb-logo img { max-height: 36px; width: auto; }
.vn-layout-youtube.vn-layout-drama .vnd-sb-genres .vn-sb__title { padding: 4px 12px 6px; font-size: 12px; font-weight: 600; color: var(--vn-muted); }
.vn-layout-youtube.vn-layout-drama .vnd-sb-genres .vn-sb__menu a { height: 34px; font-size: 13.5px; color: var(--vn-text); }
.vnd-sb-vip { order: 99; margin-top: auto; padding-top: 16px; }
.vnd-btn-vip.vn-btn { display: flex; width: 100%; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; border: 0; background: var(--vn-gold); color: var(--vn-gold-fg); font-weight: 700; }
.vnd-btn-vip.vn-btn:hover { background: var(--vn-gold); color: var(--vn-gold-fg); filter: brightness(1.08); }
.vnd-btn-vip .vn-ico { width: 18px; height: 18px; }

/* Masaüstü: tam boy yan menü, logo yan menüde, header içerik sütununda. */
@media (min-width: 1101px) {
	.vn-layout-youtube.vn-layout-drama .vn-sb { top: 0; width: var(--vn-side-w); z-index: 170; }
	.admin-bar.vn-layout-youtube.vn-layout-drama .vn-sb { top: 32px; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-header { left: var(--vn-side-w); background: color-mix(in srgb, var(--vn-bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-header__yt { padding: 0 32px; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-header__left { display: none; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-actions .vn-btn--premium { display: none; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-main, .vn-sb-mini body.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-main { margin-left: var(--vn-side-w); }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-scrim { display: none; }
	.vn-sb-mini .vn-layout-youtube.vn-layout-drama .vn-sb { width: var(--vn-side-w); padding: 18px 14px 16px; }
	.vn-sb-mini .vn-layout-youtube.vn-layout-drama .vn-sb .vn-sb__sec:not(:first-child) { display: block; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-sb .vn-sb__sec:not(:first-child):not(.vn-sb__sec--buttons) { display: block; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-sb .vn-sb__sec.vn-sb__sec--buttons { display: none; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-sb { width: var(--vn-side-w); padding: 18px 14px 16px; }
	.vn-layout-youtube.vn-layout-drama.vn-has-sb .vn-header__menu { display: none; }
}

/* Tablet ve telefon: yan menü çekmece. */
@media (max-width: 1100px) {
	.vn-layout-youtube.vn-layout-drama .vn-sb { width: var(--vn-side-w); padding: 18px 14px 16px; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; z-index: 161; }
	.vn-layout-youtube.vn-layout-drama.vn-drawer-open .vn-sb { transform: none; visibility: visible; box-shadow: var(--vn-shadow); }
	.vn-layout-youtube.vn-layout-drama .vn-sb .vn-sb__sec:not(:first-child) { display: block; }
	.vn-layout-youtube.vn-layout-drama .vn-sb .vn-sb__sec--buttons { display: grid; }
	.vn-layout-youtube.vn-layout-drama .vn-main { margin-left: 0; }
	.vn-layout-youtube.vn-layout-drama .vn-header__menu { display: grid; }
	.vnd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.vnd-row { grid-auto-columns: calc((100% - 3 * 16px) / 4.4); }
}
@media (max-width: 1280px) and (min-width: 1101px) {
	.vnd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.vnd-row { grid-auto-columns: calc((100% - 4 * 16px) / 5.4); }
}
@media (prefers-reduced-motion: reduce) {
	.vn-layout-youtube.vn-layout-drama .vn-sb { transition: none; }
}

/* ------------------------------------------------------------------ Telefon */
@media (max-width: 640px) {
	.vn-layout-youtube.vn-layout-drama { --vn-header-h: 52px; }
	.vn-layout-youtube.vn-layout-drama:not(.vn-shorts-page) .vn-main { padding-left: 12px; padding-right: 12px; }
	.vnd-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; margin: 0 0 32px; padding: 22px 18px 20px; border-radius: 16px; }
	.vnd-hero__poster { order: -1; width: 112px; border-radius: 10px; }
	.vnd-hero__poster .vnd-poster { border-radius: 10px; }
	.vnd-hero__title { font-size: 26px; }
	.vnd-hero__desc { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
	.vnd-hero__facts { margin-bottom: 18px; }
	.vnd-hero__actions { display: flex; flex-wrap: nowrap; gap: 10px; }
	.vnd-hero .vn-btn { justify-content: center; min-width: 0; padding: 0 14px; font-size: 14px; }
	/* Ana düğme kalan genişliği alır; dar ekranda yazısı iki satıra iner (simge düğmeleri aynı satırda kalır). */
	.vnd-hero .vnd-hero__play, .vnd-hero .vnd-hero__cta { flex: 1 1 0; height: auto; min-height: 46px; padding-top: 6px; padding-bottom: 6px; white-space: normal; line-height: 1.2; text-align: center; }
	/* Telefonda "Listeme ekle" ve "Haber ver" yalnız simge; metin ekran okuyucuda kalır. */
	.vnd-hero .vnd-hero__fav, .vnd-hero .vnd-hero__follow:not(.vnd-hero__cta) { flex: none; width: 46px; padding: 0; }
	.vnd-hero__fav [data-vnp-fav-label], .vnd-hero__follow:not(.vnd-hero__cta) [data-vnp-follow-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.vnd-card__badge { top: 6px; left: 6px; max-width: calc(100% - 12px); height: 20px; padding: 0 6px; gap: 4px; font-size: 10.5px; }
	.vnd-card.has-badge .vnd-poster--block { padding-top: 32px; }
	.vnd-shelf { margin-bottom: 32px; }
	.vnd-shelf__title { font-size: 17px; }
	.vnd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
	.vnd-row { grid-auto-columns: 34%; gap: 10px; margin: 0 -12px; padding: 0 12px; scroll-padding: 0 12px; }
	.vnd-card__title { font-size: 13px; }
	.vnd-explore__title { font-size: 24px; }
	.vnd-genres { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 22px; padding: 0 12px; scrollbar-width: none; }
	.vnd-genre { flex-shrink: 0; }
}
