@import "bar.css";

/* 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: 17px/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; } }


.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-account {
  display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font: 500 14px var(--ui); color: var(--ink-2); white-space: nowrap;
}
.nav-account:hover { color: var(--accent); }
.nav-account svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 420px) { .nav-account span { display: none; } .nav-account svg { width: 22px; height: 22px; } }
.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); }
}

/* The language picker is bar.css's, shared with the foundation's site. */
.draft-note { margin: 6px 0 10px; font: italic 400 13px var(--ui); color: var(--muted); }
.lang-suggest {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); font: 400 14px var(--ui); color: var(--ink-2);
}
.lang-suggest a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lang-suggest button { border: 0; background: none; padding: 4px 6px; cursor: pointer; font-size: 14px; color: var(--muted); }

/* The search, behind its button next to the menu's; it opens under the button as the menu does. */
.tv-search-btn {
  flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; padding: 10px;
  border: 0; border-radius: 4px; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.tv-search-btn svg { width: 20px; height: 20px; }
.tv-search-btn[aria-expanded="true"] { background: var(--line); }
.tv-search-btn + .asr-menu-btn { margin-left: -12px; }
.header-search {
  position: absolute; right: 16px; z-index: 20; width: min(380px, calc(100% - 32px)); padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
@media (min-width: 768px) { .header-search { right: 28px; } }
.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: 23px; top: 20px; width: 18px; height: 18px; color: var(--muted); }

/* On a wide screen the language dropdown sits in the bar, left of the search; on a narrow one, in the menu. */
.lang-bar { display: none; }
@media (min-width: 901px) {
  .lang-bar { display: block; margin-left: auto; }
  .lang-bar .lang-select, .lang-bar .lang-btn { width: auto; height: 40px; }
  .lang-bar + .tv-search-btn { margin-left: -12px; }
  .asr-menu .lang-menu { display: none; }
}

/* The bar itself is bar.css; here only what the TV adds to it: its tabs and the search button. */
@media (max-width: 900px) {
  .site-header .asr-bar-inner { padding-bottom: 0; }
  .tv-search-btn { order: 2; }
  .tv-search-btn + .asr-menu-btn { margin-left: -8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; height: 42px; }
}

/* Generic */
main { padding-bottom: 64px; }
main[tabindex="-1"]:focus { outline: none; }
.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: 15px; }
.more-link { font-family: var(--ui); font-weight: 500; font-size: 15px; 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: 13px; 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: 16px; 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: 14px; 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: 13px; }
.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. */
/* At most a quarter of the row, so a row of two is not wider than the rows of many. */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 54px) / 4)); 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: 12px; font-weight: 700;
}
.vcard h3 {
  font-family: var(--sans); font-size: 16px; 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: 14px; 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: 40px; padding-bottom: 44px; }
/* The search and the live card are what the panel is for; the title and the card stay modest so the rows show early. */
.hero .tv-card { width: 100%; max-width: 400px; justify-self: end; }
.hero .tv-card .body { padding: 12px 16px 14px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); 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: 17px;
}
.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: 17px; }
}

/* 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; }
/* Bottom right, clear of the broadcast badge top left, which is long in English and German. */
.tv-countdown {
  position: absolute; z-index: 2; bottom: 12px; right: 12px;
  padding: 5px 10px; border-radius: 6px; background: rgba(14, 10, 8, .78);
  font-family: var(--ui); font-size: 13px; 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: 12px; 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: 13px; 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: 15px; 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: 13px; 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: 24px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.stats b { display: block; font-family: var(--display); font-size: 26px; 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 */
/* The app on every page's end, above the footer. */
/* The whole row opens the store page, which picks Google Play or the App Store; the badges go to their own. */
.app-strip {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 1280px; margin: -14px auto 16px; padding: 0 16px 14px;
  box-sizing: border-box; border-bottom: 1px solid var(--line);
}
.app-strip > img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.app-strip-link { flex: 1; min-width: 0; line-height: 1.3; color: inherit; text-decoration: none; }
.app-strip-link::after { content: ""; position: absolute; inset: 0; }
.app-strip .stores { position: relative; z-index: 1; }
.app-strip b { display: block; color: var(--ink); font-size: 14px; }
.app-strip span { font-size: 13px; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.stores img { height: 32px; width: auto; }
@media (min-width: 768px) { .app-strip { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 560px) {
  .app-strip { flex-wrap: wrap; gap: 8px 10px; }
  .app-strip .stores { width: 100%; justify-content: center; }
}


/* 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); }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin: 0 0 16px; }
.result-row .result-info { margin: 0; }
.clear-all { flex: none; height: 34px; padding: 0 12px; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.clear-all svg { width: 16px; height: 16px; }
.clear-all:hover { border-color: var(--accent); color: var(--accent); }
/* 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: 16px; 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: 10px;
}
@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: 17px;
}
.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: 15px; max-width: 100%; cursor: pointer;
}
.toolbar .select { width: 210px; min-width: 0; text-overflow: ellipsis; }
.toolbar .select:disabled { opacity: .55; cursor: default; }
/* The archive's selects: a box, and under it a list with, where it helps, a field to narrow it. */
.combo { position: relative; width: 210px; }
.toolbar .combo .select { width: 100%; cursor: pointer; text-overflow: ellipsis; color: var(--ink); caret-color: transparent; }
.combo .select::placeholder { color: var(--ink); opacity: 1; }
.combo .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.combo-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, min(340px, 92vw)); padding: 4px;
  box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.combo:last-child .combo-pop { left: auto; right: 0; }
.combo-filter {
  width: 100%; height: 40px; margin-bottom: 4px; padding: 0 10px 0 34px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a7664' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center;
  font: 400 15px var(--ui); color: var(--ink);
}
.combo-filter:focus { outline: none; border-color: var(--accent); }
.combo-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; margin: 0; padding: 0; list-style: none; scrollbar-width: thin; scrollbar-color: #cdc4c0 transparent; }
.combo-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; box-sizing: border-box; border-radius: 8px; font-size: 14px; line-height: 1.35; cursor: pointer; }
.combo-list li.active, .combo-list li[role="option"]:hover { background: var(--surface-2); }
.combo-list li[aria-selected="true"] { font-weight: 700; color: var(--accent); }
.combo-list small { flex: none; color: var(--muted); font-size: 13px; }
.combo-list .combo-label { flex: 1; min-width: 0; }
.combo-img { flex: none; width: 30px; height: 30px; margin: -4px 0; border-radius: 50%; object-fit: cover; }
.combo-all { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.combo-all svg { width: 16px; height: 16px; }
.combo-list .combo-empty { color: var(--muted); cursor: default; }
/* Fingers need more than a pointer: 48px rows (Android's guide) and a 44px search field (Apple's). */
@media (pointer: coarse) {
  .combo-list li { min-height: 48px; }
  .combo-filter { height: 44px; }
}
.tabs .chip svg { width: 16px; height: 16px; flex: none; }
/* Each filter says what it is by an icon before its value. */
.toolbar #kat, .toolbar #konusmaci, .toolbar #sira { padding-left: 40px; background-repeat: no-repeat; background-position: left 14px center, right 14px center; }
.toolbar #kat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a7664' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"), 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"); }
.toolbar #konusmaci { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a7664' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"), 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"); }
.toolbar #sira { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a7664' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E"), 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"); }
@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, .toolbar .combo { width: 100%; }
  .toolbar .combo:has(#kat) { grid-column: 1 / -1; }
  /* Narrow boxes: icon and arrow closer to the edges, so "Konuşmacılar" fits. */
  .toolbar #konusmaci, .toolbar #sira { padding-left: 34px; padding-right: 28px; background-position: left 10px center, right 10px center; }
}
.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: 15px; }
.result-info b { color: var(--ink); }
.search-note { display: block; margin-top: 4px; color: var(--accent); font-size: 14px; }
.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: 24px 0 40px; }
@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); }
/* A video that cannot play shows only why: no controls or a full bar behind the message. */
.player:has(.player-error.show) .pc { display: none; }
.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: 11px; 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: 15px; 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; }
/* The picture at half height: the note would sit on the play button, so it goes to the bottom corner as an icon. */
.live-layout.shrunk .pc-live .pc-unmute { top: auto; bottom: 8px; padding: 6px; }
.live-layout.shrunk .pc-unmute span { display: none; }
/* 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: 14px; 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: 14px; }
  .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: 12px; }
  .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: 16px; 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: 13px; 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: 14px; }
  .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: 14px; }
}
@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: 15px; }
.watch-meta .speaker { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.watch-meta .views { color: var(--accent); font-weight: 700; }
.watch-meta .speaker img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.title-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.title-row .watch-title { flex: 1; min-width: 0; margin-top: 0; }
.title-share { display: inline-flex; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.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; }
/* Pages written before the "Devamını oku" texts, until the rebuild reaches them; remove after the next deploy. */
.transcript-panel summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.transcript-panel summary::-webkit-details-marker { display: none; }
.transcript-panel summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.transcript-panel[open] summary::after { transform: rotate(180deg); }
.transcript-panel summary h2 { margin: 0; }
.explanation { white-space: pre-line; color: var(--ink-2); line-height: 1.7; }
/* "Where you left off" sits on the picture's top-left, clear of the subtitles; showing it never moves the page. */
.resume {
  position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 13px var(--ui);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.resume.show { opacity: 1; visibility: visible; }
/* "Sesi açmak için dokunun" goes under it while it shows, a little apart. */
.player:has(.resume.show) .pc-unmute { top: 54px; left: 10px; }
.resume button { border: 0; border-radius: 999px; padding: 5px 10px; background: #fff; color: var(--ink); font: 700 13px var(--ui); cursor: pointer; white-space: nowrap; }
/* Under the list's heading on wide screens; where the list falls below the page, two buttons float at the bottom.
   A missing side leaves an empty placeholder. */
.pager { display: flex; gap: 8px; margin-bottom: 12px; }
.pager > span, .pager a span { display: none; }
.pager a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; height: 38px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.pager a:hover { border-color: var(--accent); }
.pager a.next { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager a.next:hover { background: var(--accent-2); border-color: var(--accent-2); }
.pager small { font: 700 14px var(--ui); white-space: nowrap; }
@media (max-width: 1100px) {
  .pager {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15;
    justify-content: space-between; margin: 0; pointer-events: none;
  }
  .pager a { flex: none; height: 44px; padding: 0 18px; pointer-events: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
  .pager a.next { margin-left: auto; }
  body:has(.pager a) .asr-footer { padding-bottom: 68px; }
}

.side h2 { font-size: 20px; margin-bottom: 4px; }
.side .side-sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.side-head h2 { margin: 0; }
/* Scrolling boxes keep the browser's thin bar, in the site's warm grey on no track. */
.list, .chapters, .schedule, .board-list { scrollbar-color: #cdc4c0 transparent; }
.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: 15px; 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: 13px; margin-top: 3px; }

/* Live */
.live-layout {
  display: grid; gap: 0 28px; padding: 24px 0 32px;
  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; }
  .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; }
  /* Room to scroll until the picture is at half height on either tab, so switching tabs never moves it. */
  .live-layout { min-height: calc(100dvh + 28.125vw); }
  .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); }
  /* The buttons shrink less than the picture: still a finger wide (over 48 px) at half height. */
  .live-main .pc-center { transform: translate(-50%, -50%) scale(calc(1 - var(--shrink, 0) * .15)); }
}

.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: 13px; 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: 13px; 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: 14px; 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: 15px; }
.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: 13px; 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: 14px; box-shadow: var(--shadow);
}
.board-compose { position: relative; padding: 10px; border-top: 1px solid var(--line); }
.b-close {
  display: none; position: absolute; top: 20px; right: 20px; z-index: 1; width: 36px; height: 36px; padding: 8px;
  align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.b-close svg { width: 18px; height: 18px; }
.b-mode { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; font-weight: 700; }
.b-mode.closed { color: var(--live); background: rgba(214, 55, 42, .12); }
.board-compose textarea {
  width: 100%; resize: none; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); font-size: 16px; 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: 15px; }
.b-row .btn-primary { margin-left: 0; }
.b-user { margin-right: auto; font-size: 14px; color: var(--muted); }
.b-left { font-size: 13px; 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: 14px; 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: 60;
    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; padding-right: 48px; }
  .board-compose.writing .b-close { display: flex; }
  .board.signed-in .b-row { margin-top: 6px; }
}

.dlg {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
/* The title and the close button stay put; only the rest scrolls, and never the page behind it. */
.dlg[open] { display: flex; flex-direction: column; }
.dlg-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px 10px 22px; }
.dlg .dlg-head h3 { margin: 0; }
.dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 22px; }
html:has(dialog.dlg[open]) { overflow: hidden; }
.dlg-form[data-form="rename"] { margin-bottom: 18px; }
.dlg-split > * { flex: 1; }
.dlg::backdrop { background: rgba(20, 12, 8, .55); }
.dlg h3 { font-family: var(--display); font-size: 21px; margin-bottom: 12px; }
.dlg p { color: var(--ink-2); }
.dlg-close { flex: none; 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: 14px; 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: 17px; font-weight: 400; color: var(--ink); }
.dlg-form textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--ink); resize: vertical; }
.watch-meta a.speaker { text-decoration: none; }
.watch-meta a.speaker:hover { color: var(--accent); }
.report-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.report-line p { flex: 1; margin: 0; }
.report-nav { display: flex; gap: 6px; flex: none; }
.report-nav .btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; }
.report-nav .btn:disabled { opacity: .35; cursor: default; }
.report-nav svg { width: 20px; height: 20px; }
.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: 15px; }
.dlg-email { overflow-wrap: anywhere; }
.dlg-form input.dlg-code { height: 52px; font-size: 26px; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.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: 15px; 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: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.now-card a { display: block; font-weight: 700; font-size: 17px; }
.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: 14px; 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: 13px; }
.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: 12px; 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; }
  .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: 10px 0 24px; 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: 15px; }
.sitem span { font-size: 15px; 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: 11px; font-weight: 800; letter-spacing: .06em; vertical-align: 2px; }

.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -24px); opacity: 0; z-index: 100;
  /* Centred from the middle, so as wide as its text, up to the screen's edges, rather than half the screen. */
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  padding: 14px 22px; border-radius: 14px; background: var(--accent); color: #fff; font-family: var(--ui); font-weight: 700; font-size: 16px;
  border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 12px 36px rgba(0, 0, 0, .4); transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.say, .dlg p.say, .dlg-form p.say { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(214, 55, 42, .12); color: var(--live); font-weight: 700; font-size: 15px; line-height: 1.4; }
.say.ok, .dlg p.say.ok { background: rgba(31, 122, 69, .12); color: #1f7a45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Talks' tables of contents (watch page). */
/* The scroll bar sits in the middle of the panel's right margin, apart from the rows. */
.chapters { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0 -14px 0 -8px; padding: 0 6px 0 0; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.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: 14px; 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: 15px; }
.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: 16px; font-weight: 700; }
.spoken-title small { font-size: 14px; }
.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: 15px; line-height: 1.5; color: var(--ink-2);
}
.spoken-hit mark { color: var(--ink); }
.spoken-rest { margin: 2px 0 0 66px; font-size: 14px; 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: 14px; 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: 15px; }
.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; }

/* app/: a link the app shared, opened without the app. */
.app-link { max-width: 520px; margin: 40px auto 64px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.app-link > img { border-radius: 20px; }
.app-link h1 { font-size: 1.4rem; margin: 0; text-wrap: balance; }
.app-link p { margin: 0; color: var(--muted); }
.app-link .stores { justify-content: center; }
.app-link .stores img { height: 44px; }

/* The emailed links' pages (sifre.html, dogrula.html). */
.account-page { max-width: 440px; margin: 32px auto 56px; padding: 24px 22px; border-radius: 16px; background: var(--surface); box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.account-page h1 { font-family: var(--display); font-size: 26px; margin: 0 0 16px; }
.account-page .dlg-email { color: var(--ink-2); }
.account-hint { color: var(--ink-2); }
.account-actions { margin: 16px 0 0; }

/* A verse's meal and tafsir, a wrong translation and the right one, a hadith: the app's texts on the video's page. */
.text-panel h2 + .meal, .text-panel p { line-height: 1.7; }
/* The reading size (A− / A+) is the soru tahtası's too: one choice for every long text. */
.text-panel, .transcript-panel, #explanation-panel { font-size: var(--read-fs, 16px); }
.text-panel .meal { margin: 0 0 4px; font-size: calc(var(--read-fs, 16px) + 1px); }
.panel:has(> .read-size) { position: relative; }
.read-size { position: absolute; z-index: 2; top: 13px; right: 12px; display: flex; gap: 6px; }
.read-size button { width: 34px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 13px var(--ui); cursor: pointer; }
.read-size button:hover { border-color: var(--accent); }
.read-size + h2, .read-size ~ .more-text > h2:first-of-type { padding-right: 84px; }
.panel.text-panel .read-size + h2 { margin-top: 0; }
/* As in the app (its light theme's tones): a red bar beside the wrong translation, a green one beside the right one,
   centred in the panel's margin so the text lines up with the headings. */
.text-panel .meal-wrong, .text-panel .meal-right { margin-left: -12px; padding: 2px 0 2px 8px; border-left: 4px solid; border-radius: 2px; }
.text-panel .meal-wrong { border-color: #b3261e; }
.text-panel .meal-right { border-color: #2e7d32; }
.text-panel h2:not(:first-child) { margin-top: 14px; }
.text-panel > p { margin: 0 0 10px; }
.h-r { color: #b3261e; font-weight: 500; }
.h-g { color: #2e7d32; font-weight: 500; }
.h-b { color: #1565c0; font-weight: 500; }

/* A long text by its first four lines; "Devamını oku" opens the rest (a checkbox, so it works without script). */
.more-text { position: relative; }
.more-text + .more-text, .text-panel .more-text { margin-top: 14px; }
.more-toggle { position: absolute; opacity: 0; pointer-events: none; }
.more-body { max-height: calc(1.7em * 4); overflow: hidden; position: relative; line-height: 1.7; color: var(--ink-2); }
.more-body p { margin: 0 0 12px; }
.more-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(255, 255, 255, 0), var(--surface)); }
.more-toggle:checked ~ .more-body { max-height: none; }
.more-toggle:checked ~ .more-body::after, .more-text.short .more-body::after { display: none; }
.more-text.short .more-body { max-height: none; }
.more-link { display: inline-block; margin-top: 4px; font-weight: 700; cursor: pointer; }
.more-text.short .more-link, .more-close, .more-toggle:checked ~ .more-link .more-open { display: none; }
.more-toggle:checked ~ .more-link .more-close { display: inline; }
.more-toggle:focus-visible ~ .more-link { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
