/* Colours and type follow asrisaadetyazarimetinsaruhanvakfi.com, which these pages live under. */
:root {
  --bg: #f8f5f4;
  --surface: #ffffff;
  --surface-2: #f2edeb;
  --ink: #1e1810;
  --ink-2: #575250;
  --muted: #8b827e;
  --line: #e8e1de;
  --accent: #862c20;
  --accent-2: #6d2318;
  --accent-ring: rgba(134, 44, 32, .18);
  --brand: #281810;
  --gold-soft: #e8c478;
  --cream: #e1d7c8;
  --live: #d6372a;
  --focus: #862c20;
  --shadow: 0 1px 2px rgba(30, 24, 16, .05), 0 6px 20px rgba(30, 24, 16, .06);
  --radius: 12px;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --ui: "Poppins", system-ui, sans-serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, .nav, .live-tabs, .b-count { -webkit-user-select: none; user-select: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* The foundation's own header, measured from its site: 140px bar, 106px logo, 70px menu rows. */
.vakif-bar { background: #fff; border-bottom: 1px solid #fde6f1; }
.vakif-wrap { display: flex; align-items: center; max-width: 1240px; margin: 0 auto; padding: 17px 20px; }
.vakif-logo { display: block; flex-shrink: 0; }
.vakif-logo img { display: block; width: 106px; height: 105px; }
.vakif-menu { margin-left: auto; display: flex; }
.vakif-menu a, .vakif-mobile a { font-family: "Poppins", var(--ui); font-size: 14px; font-weight: 400; color: #575250; }
.vakif-menu a { padding: 0 14px; line-height: 70px; }
.vakif-menu a:hover, .vakif-mobile a:hover { color: #862c20; }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 13px; border: 0; border-radius: 2px;
  background: #4f1b17; color: #fff; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.vakif-mobile { padding-top: 6px; background: #f9f9f9; }
.vakif-mobile a { display: block; padding: 4px 20px; line-height: 42px; border-bottom: 1px solid #eaeaea; }
/* As on the foundation's site, the bar loses its bottom padding while the menu is open. */
.vakif-header.menu-open .vakif-wrap { padding-bottom: 0; }
@media (min-width: 922px) { .vakif-mobile { display: none !important; } }
@media (max-width: 921px) {
  .vakif-menu { display: none; }
  .menu-btn { display: grid; place-items: center; }
}
/* Phones only, as set on the foundation's site (its theme's phone width is 544px). */
@media (max-width: 544px) {
  .vakif-logo img { width: 64px; height: 64px; }
}

/* At least a screen tall, so a page that is still loading can open with the foundation's header scrolled away. */
main { min-height: 100vh; }

/* The TV's own bar, kept on screen */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 58px; }
.tv-brand { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .02em; color: var(--ink); }
.tv-brand b { color: var(--accent); }

.nav { display: flex; gap: 22px; align-self: stretch; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .live-dot { margin-left: -4px; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 rgba(214, 55, 42, .6);
  animation: pulse 1.8s infinite;
}
.live-dot.off { background: #b9b0ab; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 55, 42, .6); }
  70% { box-shadow: 0 0 0 8px rgba(214, 55, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 55, 42, 0); }
}

.header-search { margin-left: auto; position: relative; width: min(320px, 100%); }
.header-search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
}
.header-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.header-search svg { position: absolute; left: 13px; top: 10px; width: 18px; height: 18px; color: var(--muted); }

@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 0; gap: 6px 16px; }
  .header-search { order: 3; width: 100%; margin-bottom: 8px; }
  .nav { order: 4; width: 100%; overflow-x: auto; scrollbar-width: none; height: 42px; }
  .site-header .wrap > .header-search + .nav { margin-top: -2px; }
}
/* On the home page the bar's search waits until the page's own one has scrolled away. */
.hero-search-on .header-search { display: none; }

/* Generic */
main { padding-bottom: 64px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.section-head h2::after, .page-head h1::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--accent); }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.more-link { font-family: var(--ui); font-weight: 500; font-size: 14px; color: var(--accent); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
/* Phones: heading and description one line each; the link sits up beside the heading. */
@media (max-width: 700px) {
  .section-head { position: relative; }
  .section-head .row-title { flex: 1; }
  .row-title > div { min-width: 0; flex: 1; }
  .section-head h2, .section-head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section-head h2 { font-size: 24px; }
  .section-head:has(.more-link) h2 { padding-right: 64px; }
  .section-head .more-link { position: absolute; top: 4px; right: 0; padding: 4px 0 4px 8px; }
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--ui); font-weight: 500; font-size: 15px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost-dark { background: rgba(255, 255, 255, .08); border-color: var(--accent-ring); color: #f5ecdf; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip .n { font-weight: 500; color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .75; }

/* Video card */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Swiped sideways on touch screens; the next card peeking in shows there is more, so no scrollbar. */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
@media (max-width: 560px) { .row-scroll { grid-auto-columns: 78%; } }
/* A mouse cannot swipe a row sideways, so there the rows are grids of whole rows only. */
@media (hover: hover) and (pointer: fine) {
  .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 1099px) {
  .row-scroll { grid-template-columns: repeat(3, 1fr); }
  .row-scroll > :nth-child(n + 4) { display: none; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 699px) {
  .row-scroll { grid-template-columns: repeat(2, 1fr); }
  .row-scroll > :nth-child(n + 4) { display: flex; }
}

.vcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--brand); box-shadow: var(--shadow); container-type: inline-size;
}
.thumb img { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vcard:hover .thumb img, .litem:hover .thumb img { transform: scale(1.04); }
.thumb-default::after {
  content: ""; position: absolute; inset: 0;
  /* The face reaches 47% across; the veil starts past it and darkens fast behind the text. */
  background: linear-gradient(90deg, transparent 47%, rgba(40, 24, 16, .78) 56%, rgba(40, 24, 16, .92) 72%, rgba(40, 24, 16, .95) 100%);
}
.thumb-speaker img { width: 61%; object-position: 45% 25%; transform-origin: 100% 50%; }
.thumb-speaker::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 43%; width: 18%;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.thumb-lines {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 5%; width: 44%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  text-align: right; color: #fff;
}
.thumb-speaker .thumb-lines { right: 4.7%; width: 36%; }
/* Surah names run long; a wider column and a steadier size keep them whole and alike. */
.thumb-tefsir .thumb-lines { width: 46%; }
.thumb-tefsir .tl-primary { --fs: 7.2cqw; }
.tl { display: block; max-width: 100%; padding-bottom: 1.2cqw; font-family: "Roboto", var(--sans); font-size: calc(var(--fs) * var(--fit, 1)); font-weight: 900; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-topic { --fs: 5cqw; color: var(--gold-soft); letter-spacing: .08em; }
.tl-primary { --fs: 8.5cqw; }
.tl-accent { --fs: 8.5cqw; color: var(--gold-soft); }
.tl-secondary { --fs: 4.4cqw; font-weight: 700; color: var(--cream); }
.tl-headline, .tl-body { white-space: normal; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow-wrap: normal; hyphens: none; }
.tl-headline { --fs: 6.8cqw; }
.tl-body { --fs: 3.4cqw; font-weight: 700; }
.thumb .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); z-index: 2; }
.thumb .progress i { display: block; height: 100%; background: var(--accent); }
.thumb .watched {
  position: absolute; z-index: 2; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(20, 12, 8, .72); color: var(--cream); font-size: 11px; font-weight: 700;
}
.vcard h3 {
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard:hover h3 { color: var(--accent); }
.vcard .sub { font-size: 13px; color: var(--muted); margin-top: -4px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.vcard .sub span + span::before { content: "·"; margin-right: 6px; }

.skeleton .thumb { background: var(--surface-2); box-shadow: none; }
.skeleton .thumb::after { display: none; }
.skeleton .bar { height: 14px; border-radius: 6px; background: var(--surface-2); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #f5ecdf;
  background: var(--brand);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/vakif-hero.webp") center / cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 10, 8, .86) 25%, rgba(14, 10, 8, .62) 100%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); color: #fff; }
.hero h1::after { content: ""; display: block; width: 60px; height: 4px; margin-top: 16px; background: var(--accent); }
.hero h1 { white-space: nowrap; }
@media (max-width: 760px) { .hero-title { display: none; } }
.hero .lead { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 560px; margin: 14px 0 26px; }
.hero-search { position: relative; max-width: 560px; }
.hero-search input {
  width: 100%; height: 56px; padding: 0 130px 0 50px; border-radius: 16px;
  border: 0; background: #fff; color: var(--ink); font-size: 16px;
}
.hero-search svg { position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; color: #8a7664; }
.hero-search button { position: absolute; right: 6px; top: 6px; height: 44px; border-radius: 12px; }
@media (max-width: 560px) { .hero-search input { padding-right: 76px; } .hero-search button { padding: 0 16px; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero .lead { font-size: 16px; }
}

/* TV card */
.tv-card {
  display: block; border-radius: 18px; overflow: hidden;
  background: rgba(14, 10, 8, .6); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.tv-card .screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tv-card .screen::before { content: ""; position: absolute; inset: 0; background: url("img/video-thumbnail.webp") center / cover; transition: transform .35s ease; }
.tv-card:hover .screen::before { transform: scale(1.04); }
.tv-card .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-countdown {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  padding: 5px 10px; border-radius: 6px; background: rgba(14, 10, 8, .78);
  font-family: var(--ui); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); white-space: nowrap;
}
.tv-countdown:not([hidden]) { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.tv-countdown b { color: #fff; font-weight: 700; }
.tv-countdown small { margin-left: 2px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.digit { display: inline-block; width: .68em; text-align: center; font-style: normal; }
.tv-card .body { padding: 16px 18px 18px; }
.tv-card .label { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.tv-card .now { margin-top: 6px; font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; transition: color .2s ease; }
/* The site red, lightened to stay readable on the dark card. */
.tv-card:hover .now { color: #e0806f; }
.tv-card .next { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }

.badge-live {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 6px;
  background: var(--live); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.badge-live .live-dot { background: #fff; }
.badge-tv { background: rgba(14, 10, 8, .78); color: #fff; }

/* Category rows on the home page: an icon beside the heading */
.row-title { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.row-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.row-ico svg { width: 22px; height: 22px; }
a.row-title { color: inherit; }
a.row-title:hover h2 { color: var(--accent); }

.stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 30px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.stats b { display: block; font-family: var(--display); font-size: 30px; color: #fff; font-weight: 700; }
.stats a { color: inherit; transition: color .2s ease; }
.stats b { transition: color .2s ease; }
/* The foundation's red, lightened to read on the dark picture (as the TV card title). */
.stats a:hover, .stats a:hover b { color: #e0806f; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* App CTA */
.app-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.app-cta > img { width: 84px; height: 84px; border-radius: 20px; }
.app-cta h2 { font-size: 24px; }
.app-cta p { margin: 6px 0 0; color: var(--ink-2); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.stores img { height: 46px; width: auto; }
@media (max-width: 760px) { .app-cta { grid-template-columns: 1fr; text-align: left; } .app-cta > img { width: 64px; height: 64px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
/* Phone browsers (Brave, Samsung) bring their bottom toolbar back over the page's end; the footer stays clear of it. */
@media (max-width: 700px) { .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.socials img { width: 20px; height: 20px; object-fit: contain; }

/* Page head */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-head p { margin: 6px 0 0; color: var(--muted); }
/* Watch history */
.history-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.history-day { margin-top: 28px; }
.history-day h2 { margin-bottom: 14px; font-size: 20px; }
.history-empty { margin-top: 28px; color: var(--muted); }
/* Rows rather than cards, as a history is read down a list. */
.history-list { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.hrow { display: flex; align-items: center; gap: 4px; }
.hrow .litem { flex: 1; min-width: 0; }
.hrow-del { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.hrow-del:hover { background: var(--surface-2); color: var(--accent); }
@media (max-width: 700px) { .hrow .litem { grid-template-columns: 124px 1fr; gap: 10px; } }

/* Archive */
.toolbar {
  position: sticky; top: 58px; z-index: 20; background: var(--bg);
  padding: 14px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
@media (max-width: 900px) { .toolbar { position: static; } }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar-row + .toolbar-row { margin-top: 10px; }
.field { position: relative; flex: 1 1 320px; }
.field input {
  width: 100%; height: 46px; padding: 0 42px 0 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.field > svg { position: absolute; left: 15px; top: 14px; width: 18px; height: 18px; color: var(--muted); }
.field .clear { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: none; }
.field.has-value .clear { display: grid; place-items: center; }
.select {
  height: 46px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7664' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; font-weight: 600; font-size: 14px; max-width: 100%; cursor: pointer;
}
.toolbar .select { width: 230px; min-width: 0; text-overflow: ellipsis; }
.toolbar .select:disabled { opacity: .55; cursor: default; }
@media (max-width: 760px) {
  .toolbar-row:first-child { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-row:first-child .field { grid-column: 1 / -1; }
  .toolbar .select { width: 100%; }
}
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.result-info { min-height: 1.6em; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.result-info b { color: var(--ink); }
.search-note { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; }
.empty { text-align: center; padding: 70px 16px; color: var(--muted); }
.empty h3 { font-family: var(--display); color: var(--ink); font-size: 22px; margin-bottom: 6px; }
mark { background: rgba(232, 196, 120, .5); color: inherit; border-radius: 3px; padding: 0 1px; }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* Player pages */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 24px; }
@media (max-width: 1100px) { .player-layout { grid-template-columns: 1fr; } }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.player video { width: 100%; height: 100%; display: block; background: #000; }
@media (max-width: 640px) { .player-layout { padding-top: 0; } .player { border-radius: 0; margin: 0 -16px; } }
.player-error { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; text-align: center; color: var(--cream); padding: 20px; background: rgba(0, 0, 0, .7); }
.player-error.show { display: grid; }

/* Player controls, as in the app */
.pc { position: absolute; inset: 0; z-index: 1; color: #fff; font-family: var(--ui); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pc-tap { position: absolute; inset: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pc-hold {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); color: #fff; font: 700 13px var(--ui); pointer-events: none;
}
.pc-hold[hidden] { display: none; }
.pc-note {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); color: #fff; font: 700 13px var(--ui); white-space: nowrap; pointer-events: none;
}
.pc-note[hidden] { display: none; }
/* The autoplay switch: the knob shows play when it is on, pause when it is off. */
.pc-auto { width: 48px; }
.pc-auto-track { position: relative; display: block; width: 32px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .45); }
.pc-auto-knob {
  position: absolute; top: -3px; left: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: left .15s ease;
}
.pc-auto .pc-auto-knob svg { grid-area: 1 / 1; width: 12px; height: 12px; }
.pc-auto[aria-checked="true"] .pc-auto-knob svg:last-child, .pc-auto[aria-checked="false"] .pc-auto-knob svg:first-child { display: none; }
.pc-auto[aria-checked="false"] .pc-auto-knob { left: -2px; background: #cfcfcf; }
.pc-auto[aria-checked="false"] .pc-auto-track { background: rgba(255, 255, 255, .25); }
.pc-hold span { margin-left: 2px; font-size: 10px; letter-spacing: -2px; }
.pc-hidden.pc:not(.pc-paused) .pc-tap, .player.pc-hidden:not(.pc-paused) { cursor: none; }
.pc-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6));
}
.pc-btn svg { width: 26px; height: 26px; }
.pc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Fingers need at least 44px. */
@media (pointer: coarse) { .pc-btn { width: 44px; height: 44px; } }
.pc-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: clamp(20px, 9vw, 64px);
  transition: opacity .25s ease;
}
.pc-round { width: 56px; height: 56px; background: rgba(0, 0, 0, .54); filter: none; }
.pc-round svg { width: 32px; height: 32px; }
.pc-main { width: 68px; height: 68px; }
.pc-main svg { width: 38px; height: 38px; }
/* Only the bar and the buttons take taps; the rest of the strip lets them through to the picture. */
.pc-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding-top: 36px; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62)); transition: background .25s ease;
}
.pc-row { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 16px; transition: opacity .25s ease; }
.pc-bottom > * { pointer-events: auto; }
.pc-time { margin-right: 6px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .7); white-space: nowrap; }
.pc-d { display: inline-block; width: .62em; text-align: center; font-style: normal; }
.pc-gap { flex: 1; }
.pc-speed { width: auto; min-width: 40px; padding: 0 10px; border-radius: 20px; font: 700 13px var(--ui); }
.pc-speed-wrap, .pc-cc-wrap { position: relative; }
.pc-cc { width: auto; min-width: 40px; padding: 0 8px; margin-right: 8px; border-radius: 6px; font: 800 13px var(--ui); letter-spacing: .04em; }
.pc-cc[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--live); }
.pc-unmute {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #fff;
  font: 700 13px var(--ui); cursor: pointer;
}
.pc-unmute[hidden] { display: none; }
/* On the live page the corner holds the CANLI/TEKRAR badge. */
.pc-live .pc-unmute { top: 50px; }
/* Autoplay and picture-in-picture sit up in the right corner, as on YouTube; they come and go with the rest. */
.pc-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: flex-end; align-items: center; gap: 2px;
  padding: 4px 6px 20px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; transition: opacity .25s ease;
}
.pc-top > * { pointer-events: auto; }
.pc-top:not(:has(> :not([hidden]))) { display: none; }
.pc-hidden .pc-top { opacity: 0; }
.pc-hidden .pc-top > * { pointer-events: none; }
.pc-unmute svg { width: 20px; height: 20px; }
.pc-captions { position: absolute; left: 6%; right: 6%; bottom: 30px; display: flex; justify-content: center; pointer-events: none; transition: bottom .25s ease; }
.pc-captions span {
  padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .74); color: #fff; text-align: center; white-space: pre-line;
  font: 500 clamp(14px, 2.6vw, 26px) / 1.35 "Roboto", var(--sans); box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.player:not(.pc-hidden) .pc-captions { bottom: 70px; }
@media (max-width: 640px) {
  .pc-captions { left: 3%; right: 3%; bottom: 20px; }
  .pc-captions span { font-size: 13px; padding: 2px 8px; }
  .player:not(.pc-hidden) .pc-captions { bottom: 60px; }
}
.pc-full .pc-captions span { font-size: clamp(18px, 3vw, 34px); }
.pc-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; min-width: 120px; padding: 6px; border-radius: 10px;
  background: rgba(20, 16, 14, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.pc-menu[hidden] { display: none; }
.pc-menu button { padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: #fff; font: 700 14px var(--ui); text-align: left; cursor: pointer; }
.pc-menu button:hover, .pc-menu button:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.pc-menu button[aria-checked="true"] { color: var(--gold-soft); }
.pc-cc-menu { max-width: 260px; }
.pc-short { display: none; }
.pc-cc-note { grid-column: 1 / -1; padding: 6px 12px 2px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 4px; color: rgba(255, 255, 255, .7); font: 12px/1.4 var(--ui); }
.pc-menu .pc-cc-report { grid-column: 1 / -1; color: var(--gold-soft); }
/* A short player has no room for six rows: the speeds sit in one row, inside the picture. */
@media (max-width: 640px), (max-height: 480px) {
  .pc-speed-wrap, .pc-cc-wrap { position: static; }
  .pc-menu { right: 8px; bottom: 64px; grid-template-columns: repeat(6, auto); gap: 2px; min-width: 0; }
  .pc-menu button { padding: 8px 10px; text-align: center; font-size: 13px; }
  .pc-cc-menu { grid-template-columns: repeat(4, auto); max-width: calc(100% - 16px); }
  .pc-cc-menu .pc-long { display: none; }
  .pc-cc-menu .pc-short { display: inline; }
  .pc-cc-note { padding: 4px 10px 0; font-size: 11px; }
  .pc-menu .pc-cc-report { padding: 6px 10px; }
  .pc:has(.pc-menu:not([hidden])) .pc-center { opacity: 0; pointer-events: none; }
}
/* A phone's player is 16:9 of the screen's width; the list scrolls rather than run above it. */
@media (max-width: 640px) { .pc-cc-menu { max-height: calc(56.25vw - 72px); overflow-y: auto; } }
.pc-volume { display: none; align-items: center; }
/* Drawn by hand: the browser's own track is dark and gets lost on the picture. */
.pc-vol {
  --vol: 100%; width: 0; height: 18px; margin: 0; opacity: 0; transition: width .2s ease, opacity .2s ease;
  -webkit-appearance: none; appearance: none; background: none; cursor: pointer;
}
.pc-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--vol), rgba(255, 255, 255, .35) var(--vol)); }
.pc-vol::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--vol), rgba(255, 255, 255, .35) var(--vol)); }
.pc-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pc-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pc-volume:hover .pc-vol, .pc-vol-drag .pc-vol, .pc-vol:focus-visible { width: 76px; opacity: 1; margin-right: 6px; }
@media (hover: hover) and (pointer: fine) { .pc-volume { display: inline-flex; } }
.pc-bar { position: relative; height: 18px; margin: 0 12px; cursor: pointer; touch-action: none; }
.pc-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; transition: height .15s ease, top .15s ease; }
.pc-bar:hover .pc-track, .pc-dragging .pc-track { top: 6px; height: 6px; }
.pc-buffers i { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .4); }
.pc-played { position: absolute; left: 0; top: 0; bottom: 0; background: var(--live); }
.pc-thumb {
  position: absolute; top: 9px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition: transform .15s ease;
}
.pc-ripple {
  position: absolute; top: 0; bottom: 0; width: 40%; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .08);
}
.pc-ripple-back { left: 0; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
.pc-ripple-forward { right: 0; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
.pc-ripple span { font-weight: 700; font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.pc-ripple.show { animation: pc-ripple .8s ease-out; }
@keyframes pc-ripple { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.pc-spin {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: pc-spin .8s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc-next {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(86%, 420px); display: grid; gap: 6px;
  padding: 16px 18px; border-radius: 12px; background: rgba(20, 16, 14, .9); text-align: left;
}
.pc-next[hidden] { display: none; }
.pc-next small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.pc-next b { font-family: var(--display); font-size: 20px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-next-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pc-next-row button { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; font: 700 14px/1.15 var(--ui); white-space: nowrap; cursor: pointer; }
.pc-next-row .pc-next-go { background: #fff; border-color: #fff; color: var(--ink); }
.pc-next-row .pc-next-again { display: inline-flex; align-items: center; gap: 6px; }
.pc-next-again svg { width: 16px; height: 16px; }
/* On a phone the box sits low in the picture, under the corner switches, and the button row below steps aside. */
@media (max-width: 640px) {
  .pc-next { top: 56%; gap: 2px; padding: 10px 12px; }
  .pc-next b { font-size: 17px; -webkit-line-clamp: 1; }
  .pc-next-row { gap: 6px; }
  .pc-next-row button { height: 34px; padding: 0 10px; font-size: 13px; }
  .pc-next-again svg { width: 14px; height: 14px; }
  .pc:has(.pc-next:not([hidden])) .pc-row { opacity: 0; pointer-events: none; }
}
/* The box takes the picture's middle; the play button under it would only catch taps meant for the box. */
.pc:has(.pc-next:not([hidden])) .pc-center { opacity: 0; pointer-events: none; }
.pc-next:not([hidden]) ~ .pc-center, .pc-loading .pc-center { opacity: 0; pointer-events: none; }
.pc-loading.pc-paused .pc-row { opacity: 0; pointer-events: none; }

/* Hidden: only a thin progress line stays, as in the app. */
.pc-hidden .pc-center, .pc-hidden .pc-row { opacity: 0; pointer-events: none; }
.pc-hidden .pc-bottom { background: none; pointer-events: none; }
.pc-hidden .pc-bar { margin: 0; height: 4px; pointer-events: none; }
.pc-hidden .pc-track { top: 1px; height: 3px; border-radius: 0; }
.pc-hidden .pc-thumb { transform: scale(0); }

/* Live: nothing to wind, so only play, sound, small window and full screen. */
.pc-live [data-act="back"], .pc-live [data-act="forward"], .pc-live .pc-time, .pc-live .pc-speed-wrap, .pc-live .pc-bar, .pc-live .pc-ripple { display: none; }
.pc-live .pc-bottom { padding-bottom: 8px; }
.player.pc-full { border-radius: 0; box-shadow: none; aspect-ratio: auto; width: 100%; height: 100%; }
.player.pc-full video { object-fit: contain; }
@media (max-width: 640px) {
  .pc-round { width: 48px; height: 48px; }
  .pc-round svg { width: 28px; height: 28px; }
  .pc-main { width: 60px; height: 60px; }
  .pc-time { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pc *, .pc-spin { transition: none !important; animation-duration: 0s !important; } .pc-spin { animation: pc-spin 2s linear infinite !important; } }

.watch-title { margin-top: 18px; font-size: clamp(22px, 2.6vw, 30px); }
.verse {
  margin: 12px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
  font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink-2);
}
.watch-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14px; }
.watch-meta .speaker { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.watch-meta .speaker img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 30% 20%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.panel { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 18px; margin-bottom: 8px; }
.explanation { white-space: pre-line; color: var(--ink-2); line-height: 1.7; }
.resume {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px;
}
.resume.show { display: flex; }
.resume .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pager a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px;
}
.pager a:hover { border-color: var(--accent); }
.pager a.next { text-align: right; }
.pager small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pager span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side h2 { font-size: 20px; margin-bottom: 4px; }
.side .side-sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 4px; max-height: 760px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.litem { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding: 6px; border-radius: 12px; align-items: center; }
.litem:hover { background: var(--surface); }
.litem[aria-current="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.litem .thumb { border-radius: 9px; box-shadow: none; }
.litem b { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.litem small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* Live */
.live-layout {
  display: grid; gap: 0 28px; padding-top: 24px;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "main board" "info board";
  align-items: start;
}
.live-main { grid-area: main; }
.live-info { grid-area: info; }
.board { grid-area: board; position: sticky; top: 76px; height: calc(100vh - 96px); min-height: 520px; }
.live-tabs { display: none; }
/* One column (phones, tablets), as in a live stream app: the picture on top, then two tabs,
   and the chosen tab fills the rest of the screen as the page's only scrolling part. */
@media (max-width: 1100px) {
  body[data-page="canli"] main.wrap { padding-left: 0; padding-right: 0; min-height: 0; }
  body[data-page="canli"] .site-footer { display: none; }
  .live-layout { display: flex; flex-direction: column; align-items: stretch; padding-top: 0; min-height: calc(100dvh - var(--tvbar, 94px)); }
  .live-main { flex: none; }
  .live-main .player { margin: 0; border-radius: 0; }
  .live-tabs { display: flex; flex: none; background: var(--surface); border-bottom: 1px solid var(--line); }
  .live-tabs button {
    flex: 1; height: 46px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
    font: 700 14px var(--ui); color: var(--muted);
  }
  .live-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
  .live-layout .board { position: static; flex: none; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .live-info { flex: none; padding: 0 16px 24px; }
  .live-layout[data-tab="board"] .live-info, .live-layout[data-tab="info"] .board { display: none; }
  /* One scroll on the page: the questions are part of it, the box to write in stays at the bottom. */
  .live-layout .board-body { flex: none; }
  .live-layout .board-list { height: auto; overflow: visible; }
  .live-layout .board-compose { position: sticky; bottom: 0; z-index: 5; background: var(--surface); }
  .live-layout .b-new { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 6; }
  /* The page's own anchoring would move it a second time after the board puts the reader back. */
  :root:has(body[data-page="canli"]) { overflow-anchor: none; }
  /* Full screen the board is a screen of its own again, with its own scroll. */
  .live-layout .board.is-full { overflow: hidden; }
  .live-layout .board.is-full .board-body { flex: 1; min-height: 0; }
  .live-layout .board.is-full .board-list { height: 100%; overflow-y: auto; }
  .live-layout .board.is-full .board-compose { position: static; }
  .live-layout .board.is-full .b-new { position: absolute; bottom: 12px; }
}
/* Phones: the TV bar scrolls away with the page and is back only at the top; the picture and
   the tabs stay on top while the questions scroll under them. */
@media (max-width: 700px) {
  body[data-page="canli"] .site-header { position: relative; }
  .live-layout { min-height: 100dvh; }
  .live-main { position: sticky; top: 0; z-index: 20; background: #000; }
  .live-tabs { position: sticky; top: 56.25vw; z-index: 19; }
  /* Scrolled down into the questions, the picture goes down to half its height, step by step with
     the scroll (--shrink runs from 0 to 1, set by live.js), to leave them the room. */
  .live-main .player { aspect-ratio: auto; height: calc(56.25vw - var(--shrink, 0) * 28.125vw); }
  .live-tabs { top: calc(56.25vw - var(--shrink, 0) * 28.125vw); }
  .live-main .pc-center { transform: translate(-50%, -50%) scale(calc(1 - var(--shrink, 0) * .3)); }
}

.board {
  --board-fs: 15px;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.board.is-full { position: fixed; inset: 0; z-index: 200; height: auto; min-height: 0; margin: 0; border-radius: 0; border: 0; }
.board.is-full .board-list { padding: 16px max(16px, calc((100vw - 1100px) / 2)); }
.board.is-full .board-compose { padding-left: max(10px, calc((100vw - 1100px) / 2)); padding-right: max(10px, calc((100vw - 1100px) / 2)); }
.board-full-open, .board-full-open body { overflow: hidden; }
.board-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--accent); color: #fff; }
.board-head h2 { font-size: 21px; color: #fff; white-space: nowrap; }
.board-head small { display: block; font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.board-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.b-tool {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--ui); font-size: 12px; font-weight: 600;
}
.b-tool svg { width: 14px; height: 14px; }
.b-tool span { display: none; }
.b-tool[aria-pressed="true"] { background: #fff; color: var(--accent); border-color: #fff; }
.b-tool[aria-pressed="true"] span { display: inline; }
.b-count { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-size: 13px; color: #fff; white-space: nowrap; }
/* Too narrow for one line: the title on its own, the tools in a full row under it. */
@media (max-width: 560px) {
  .board-tools { width: 100%; margin-left: 0; gap: 6px; }
  .board-tools .b-tool { height: 34px; padding: 0 10px; }
  #b-full { position: absolute; top: 12px; right: 14px; }
}
@media (max-width: 400px) {
  .board-tools { gap: 4px; }
  .board-tools .b-tool { padding: 0 7px; }
}
.b-count svg { width: 16px; height: 16px; }
.board-body { position: relative; flex: 1; min-height: 0; }
.board-list { position: relative; overflow-anchor: none; list-style: none; margin: 0; padding: 10px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.b-empty { position: absolute; top: 30px; left: 0; right: 0; color: var(--muted); text-align: center; font-size: 14px; }
.msg { padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); font-size: var(--board-fs); }
.msg.answered { border-left-color: #2e8b57; background: rgba(46, 139, 87, .1); opacity: .85; }
.msg.mine { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; font-size: .8em; }
.msg-name { color: #54765f; font-weight: 800; }
.msg-head time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg-text { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.msg-text a { color: var(--accent); text-decoration: underline; }
.msg-actions { display: flex; gap: 6px; margin-top: 6px; }
.b-act { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.b-act:hover { border-color: var(--accent); }
.b-act.danger { color: var(--live); }
.b-new {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-family: var(--ui); font-weight: 500; font-size: 13px; box-shadow: var(--shadow);
}
.board-compose { padding: 10px; border-top: 1px solid var(--line); }
.board-compose textarea {
  width: 100%; resize: none; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); font-size: 15px; line-height: 1.4;
}
.board-compose textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.board-compose textarea:disabled { cursor: not-allowed; opacity: .75; }
.b-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.b-row .btn { height: 36px; padding: 0 14px; font-size: 14px; }
.b-row .btn-primary { margin-left: 0; }
.b-user { margin-right: auto; font-size: 13px; color: var(--muted); }
.b-left { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-left.full { color: var(--live); font-weight: 700; }
/* Signed in, "Çıkış" is a small link under the name, well away from "Gönder". */
.board.signed-in .b-row { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; }
.board.signed-in .b-user { grid-area: 1 / 1; margin: 0; }
.board.signed-in .b-left { grid-area: 2 / 1; justify-self: end; }
.board.signed-in #b-login { grid-area: 2 / 1; justify-self: start; height: auto; padding: 2px 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 700; }
.board.signed-in #b-send { grid-area: 1 / 2 / 3 / 3; }
.btn-danger { background: var(--live); border-color: var(--live); color: #fff; }
/* In the phone layout the questions get the room: the tab already says "Sorular", so the head is one row of
   tools, and the box below is one line (a sign-in button for viewers, a one-line field for members). */
@media (max-width: 1100px) {
  .board-head { padding: 8px 12px; }
  .board-head > div:first-child { display: none; }
  .board-tools { width: 100%; margin-left: 0; gap: 6px; }
  .board-tools .b-tool { height: 34px; padding: 0 10px; }
  #b-full { position: static; margin-left: auto; }
  /* Clear of the phone's gesture bar at the bottom edge. */
  .board-compose { padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); }
  .board:not(.signed-in) .board-compose textarea, .board:not(.signed-in) .b-user { display: none; }
  .board:not(.signed-in) .b-row { margin-top: 0; }
  .board:not(.signed-in) #b-login { width: 100%; height: 42px; font-weight: 700; }
  .board.signed-in .board-compose textarea { height: 42px; padding-block: 10px; }
  .board-compose.writing {
    position: fixed; left: 0; right: 0; top: var(--write-top, 0px); height: var(--write-h, 100dvh); z-index: 40;
    display: flex; flex-direction: column; padding-top: 12px; border-top: 0; background: var(--surface);
  }
  .board.signed-in .board-compose.writing textarea { flex: 1; height: auto; min-height: 0; }
  .board.signed-in .b-row { margin-top: 6px; }
}

.dlg {
  width: min(440px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.dlg::backdrop { background: rgba(20, 12, 8, .55); }
.dlg.over-keyboard { overflow-y: auto; }
.dlg h3 { font-family: var(--display); font-size: 21px; margin-bottom: 12px; }
.dlg p { color: var(--ink-2); }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; }
.dlg-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.dlg-form { display: flex; flex-direction: column; gap: 12px; }
.dlg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dlg-form input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 400; color: var(--ink); }
.dlg-form textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: 400 16px/1.4 inherit; color: var(--ink); resize: vertical; }
.report-line { font-size: 14px; }
.report-line b { color: var(--accent); font-variant-numeric: tabular-nums; }
.dlg-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.dlg-form p { margin: 0; font-size: 14px; }
.link-btn { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.live-head h1 { font-size: clamp(24px, 2.8vw, 32px); }
.live-share { margin-left: auto; height: 40px; font-size: 14px; flex-shrink: 0; }
@media (max-width: 560px) {
  .live-head { flex-wrap: nowrap; gap: 8px; }
  .live-head h1 { font-size: 23px; white-space: nowrap; }
  .live-share { width: 40px; padding: 0; }
  .live-share span { display: none; }
}
.now-card { display: flex; gap: 14px; align-items: center; }
.now-card .ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.now-card .ico svg { width: 22px; height: 22px; }
.now-card small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.now-card a { display: block; font-weight: 700; font-size: 16px; }
.now-card a:hover { color: var(--accent); }
.live-info .panel { margin-top: 18px; }
.next-lesson {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.time-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 12px; }
.countdown { display: flex; gap: 6px; }
.countdown div { display: flex; align-items: baseline; gap: 3px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); }
.countdown b { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); }
.schedule { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.more-items { display: none; }
/* One column (phones, tablets): no box scrolling inside the page; a short list joins the page and opens on request. */
@media (max-width: 1100px) {
  .list, .schedule { max-height: none; overflow: visible; padding-right: 0; }
  .list:not(.open) > .later, .schedule:not(.open) > .later, .schedule:not(.open) > .past:not(.last-past) { display: none; }
  .more-items:not([hidden]) { display: flex; width: 100%; justify-content: center; margin-top: 10px; height: 44px; font-weight: 700; }
  .open + .more-items { display: none; }
}
.sitem { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 8px; border-radius: 10px; align-items: baseline; }
.sitem:hover { background: var(--surface-2); }
.sitem time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.sitem span { font-size: 14px; font-weight: 600; }
.sitem.past { opacity: .5; }
.sitem.current { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
.sitem.current time { color: var(--live); }
.sitem.current span::after { content: "ŞİMDİ"; margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; vertical-align: 2px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--ui); font-weight: 500; font-size: 14px;
  transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Subtitle editor (duzenle.html): the talk on one side, its lines on the other. On a phone only the
   picture and its two buttons stay on top; the TV bar and everything else scroll away. */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.editor-side { position: sticky; top: 76px; align-self: start; }
.editor-bar { display: flex; gap: 8px; margin-top: 12px; }
.editor-head .select { width: 100%; min-width: 0; margin-top: 12px; text-overflow: ellipsis; }
.editor-state { margin: 12px 0 4px; font-size: 14px; }
.ed-unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ed-unlock > span { flex-basis: 100%; }
.ed-unlock input { flex: 1 1 160px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; color: var(--ink); }
.ed-unlock input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.editor-help { margin: 0; font-size: 13px; color: var(--muted); }
.editor-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.editor-filters .b-tool { color: var(--ink); border-color: var(--line); background: var(--surface); }
.editor-filters .b-tool span { display: inline; }
.editor-filters .b-tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.editor-follow { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.editor-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.editor-lines[data-filter="flag"] .eline:not(.flag), .editor-lines[data-filter="changed"] .eline:not(.changed) { display: none; }
.eline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.eline.flag { background: #fff1c9; border-color: #e3ad3c; }
.eunsure { padding: 0 1px; border-radius: 3px; background: #ffd79a; color: inherit; text-decoration: underline 2px #d9822b; text-underline-offset: 3px; }
.eline.ok { background: #eef7ec; border-color: #cbe6c5; }
.eline.now { box-shadow: inset 4px 0 0 var(--accent); }
.et { border: 0; background: none; padding: 2px 0; font: 700 13px var(--ui); color: var(--accent); font-variant-numeric: tabular-nums; cursor: pointer; }
.etext { font-size: 15px; line-height: 1.45; cursor: text; }
.enote { margin-top: 4px; font-size: 13px; font-weight: 500; color: #7a4c00; }
.emodel { margin-top: 2px; font-size: 12px; color: var(--muted); }
.eedit { display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 2px; outline: 2px solid var(--accent); outline-offset: 3px; font: 15px/1.45 var(--sans); resize: none; overflow: hidden; background: transparent; color: var(--ink); }
.edeleted { color: var(--muted); font-style: italic; }
.edeleted s { font-style: normal; }
.edel { margin-top: 8px; padding: 4px 10px; border: 1px solid #e3b4ad; border-radius: 999px; background: #fff; color: #a3352a; font: 700 13px var(--ui); cursor: pointer; }
.eok { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 800; cursor: pointer; }
.eok[aria-pressed="true"] { background: #2f8a3c; border-color: #2f8a3c; color: #fff; }
@media (max-width: 900px) {
  body:has(main.editor) .site-header { position: relative; }
  .editor { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .editor-side { display: contents; }
  .editor-media { position: sticky; top: 0; z-index: 10; margin: 0 -16px; padding-bottom: 8px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .editor-media .player { margin: 0; border-radius: 0; box-shadow: none; max-height: 45vh; max-height: 45dvh; aspect-ratio: auto; height: min(56.25vw, 45dvh); }
  .editor-media .player video { object-fit: contain; }
  .editor-bar { margin: 8px 16px 0; }
  .editor-bar .btn { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .editor-head { padding-bottom: 12px; }
  .editor-help { display: none; }
  .eline { padding: 8px; gap: 8px; }
  .eok { width: 40px; height: 40px; }
}
@media (max-width: 400px) { .ed-long { display: none; } }

/* Talks' tables of contents (watch page). */
.chapters { list-style: none; margin: 0 -8px; padding: 0; max-height: 420px; overflow-y: auto; }
.chapter {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; width: 100%;
  padding: 8px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.chapter:hover { background: var(--surface-2); }
.chapters li[aria-current="true"] .chapter { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.chapter-t { font: 700 13px var(--ui); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.chapter b { display: block; font-weight: 700; line-height: 1.4; }
.chapter small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted);
}
.chapter-tag { margin-right: 6px; padding: 1px 7px; border-radius: 20px; background: var(--accent); color: #fff; font: 700 11px var(--ui); font-style: normal; vertical-align: 2px; }

/* Search in subtitles */
.spoken {
  margin: 4px 0 18px; padding: 18px 20px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.spoken-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.spoken-head h2 { font-size: 22px; }
.spoken-n { color: var(--muted); font-size: 14px; }
.spoken-list, .spoken-chapters {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 32px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.spoken-video { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.spoken-title.litem { grid-template-columns: 120px 1fr; margin: 0 -6px; }
.spoken-title b { font-size: 15px; font-weight: 700; }
.spoken-title small { font-size: 13px; }
.spoken-hits { list-style: none; margin: 6px -8px 0; padding: 0; }
.spoken-hit { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; padding: 6px 8px; border-radius: 10px; }
.spoken-hit:hover { background: var(--surface-2); }
.spoken-t { font: 700 13px var(--ui); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.spoken-hit > span {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.spoken-hit mark { color: var(--ink); }
.spoken-rest { margin: 2px 0 0 66px; font-size: 13px; color: var(--muted); }
.spoken-next { display: flex; margin: 14px auto 2px; font-weight: 700; }
.spoken-chapters { gap: 2px 32px; margin: 0 -8px 12px; }
.spoken-chapter > span { display: block; overflow: visible; color: var(--ink); }
.spoken-chapter b { display: block; font-weight: 700; line-height: 1.4; }
.spoken-chapter small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.spoken-chapter .spoken-from { -webkit-line-clamp: 1; color: var(--muted); }
.spoken-all {
  display: block; margin: -8px 0 12px 66px; padding: 4px 0; border: 0; background: none;
  font: 700 13px var(--ui); color: var(--accent); cursor: pointer;
}
@media (max-width: 560px) {
  .spoken { margin: 0 -16px; padding: 16px 16px 10px; border-radius: 0; border-left: 0; border-right: 0; }
  .spoken-hit { grid-template-columns: 50px 1fr; gap: 8px; }
  .spoken-rest, .spoken-all { margin-left: 58px; }
}

/* Account dialog of the new API (board.js). */
.dlg-note { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.dlg-danger { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.dlg-danger summary { cursor: pointer; font-weight: 700; color: var(--live, #b3261e); }
.dlg-danger[open] summary { margin-bottom: 8px; }
