@font-face {
  font-family: 'Bosfor Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/font-1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bosfor Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/font-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bosfor Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bosfor Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bosfor Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bosfor Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #101317;
  --panel: #191d23;
  --line: #292d34;
  --text: #f5f2ec;
  --muted: #aaaeb6;
  --accent: #f3b977;
  --accent-dark: #23170b;
  --serif: "Bosfor Serif", Georgia, serif;
  --sans: "Bosfor Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 9; background: var(--accent); color: var(--accent-dark); padding: 10px 16px; border-radius: 6px; }
.shell { width: min(1340px, calc(100% - 100px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; background: #101317f7; border-bottom: 1px solid #ffffff12; backdrop-filter: blur(16px); }
.header-inner { height: 68px; display: flex; align-items: center; gap: clamp(28px, 5vw, 74px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); font: 700 22px/1 var(--serif); letter-spacing: .035em; }
.main-nav { display: flex; gap: clamp(18px, 3vw, 37px); height: 100%; }
.main-nav a { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; padding-top: 2px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current] { border-bottom-color: var(--accent); }
.list-count { color: var(--accent); font-size: 11px; }
.search-trigger { color: var(--text); background: #ffffff08; border: 1px solid #ffffff21; border-radius: 8px; display: flex; gap: 9px; align-items: center; margin-left: auto; min-height: 40px; padding: 0 10px 0 12px; }
.search-trigger:hover, .icon-button:hover { background: #ffffff1d; }
.search-trigger kbd { font: 12px/1.7 var(--sans); border: 1px solid #fff2; border-radius: 4px; padding-inline: 5px; color: var(--muted); margin-left: 12px; }

.hero { position: relative; isolation: isolate; background: #182538; min-height: 515px; overflow: hidden; display: grid; align-items: center; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("assets/hero-illustration.webp") center 43% / cover no-repeat; }
.hero::after { background: linear-gradient(0deg, var(--background), transparent 26%), linear-gradient(90deg, #101317 2%, #101317ed 22%, #10131778 53%, #10131708 79%); }
.hero-inner { padding-block: 70px 74px; }
.hero-content { max-width: 610px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .19em; display: flex; align-items: center; gap: 10px; }
.eyebrow span { height: 1px; width: 24px; background: currentColor; }
.hero h1 { font: 500 clamp(50px, 6.2vw, 96px)/.99 var(--serif); margin: 18px 0; letter-spacing: -.058em; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.hero-description { margin: 0 0 25px; max-width: 380px; font-size: 17px; color: #d2d1d1; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1.3; text-align: center; }
.primary { background: var(--accent); color: var(--accent-dark); }
.primary:hover { background: #ffd09a; }
.secondary { background: #ffffff0b; border-color: #ffffff2e; color: var(--text); }
.secondary:hover { background: #ffffff1a; }
.play-icon { display: inline-block; width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.content-shell { padding-top: 18px; padding-bottom: 74px; min-height: 440px; }
.catalog-section, #acasa { scroll-margin-top: 92px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font: 500 clamp(32px, 3vw, 46px)/1.1 var(--serif); letter-spacing: -.035em; }
.catalog-copy { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.filters { display: inline-flex; background: #ffffff05; padding: 4px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; }
.filters button { background: none; border: 0; padding: 8px 13px; border-radius: 5px; color: var(--muted); font-size: 13px; font-weight: 650; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: var(--accent); background: #f3b9771f; }
.search-panel { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.search-panel input { flex: 1; min-width: 0; color: var(--text); border: 1px solid #ffffff2e; background: var(--panel); padding: 11px 14px; border-radius: 8px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.series-grid { display: grid; min-width: 0; gap: 24px; }
.letter-section { min-width: 0; }
.letter-heading { display: flex; align-items: center; gap: 13px; margin: 0 0 7px; color: var(--accent); font: 600 25px/1.25 var(--serif); scroll-margin-top: 86px; }
.letter-heading::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.letter-row { --card-gap: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--card-gap)) / 4); gap: var(--card-gap); overflow-x: auto; padding: 5px 5px 9px; scroll-padding-inline: 5px; scrollbar-width: none; }
.letter-row::-webkit-scrollbar { display: none; }
.row-scrollbar { appearance: none; -webkit-appearance: none; display: block; width: calc(100% - 10px); height: 16px; margin: 2px 5px 0; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: grab; }
.row-scrollbar:active { cursor: grabbing; }
.row-scrollbar::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: var(--scroll-thumb-width, 56px); height: 10px; border: 0; border-radius: 6px; background: var(--accent); }
.row-scrollbar::-moz-range-thumb { width: var(--scroll-thumb-width, 56px); height: 10px; border: 0; border-radius: 6px; background: var(--accent); }
.alphabet-index { position: sticky; top: 80px; display: flex; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; scrollbar-width: thin; }
.alphabet-letter { flex: 0 0 auto; width: 29px; min-height: 23px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1; }
.alphabet-letter:disabled { color: #80848d; cursor: default; }
.alphabet-letter:not(:disabled):hover { background: #f3b97724; }
.alphabet-letter:focus-visible { outline-offset: -2px; }
.card { position: relative; min-width: 0; }
.card-open { width: 100%; display: block; background: transparent; text-align: left; color: inherit; border: 0; padding: 0; border-radius: 9px; }
.card-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; background: linear-gradient(140deg, #292b3a, #161e27 55%, #302725); overflow: hidden; border: 1px solid #ffffff17; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--art-focus, 43%); transition: transform .23s ease; }
.card-open:hover img { transform: scale(1.04); }
.card-art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0009); pointer-events: none; }
.card-art .langs { position: absolute; z-index: 1; bottom: 10px; left: 10px; }
.langs { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.lang { display: inline-block; border: 1px solid #ffffff33; border-radius: 4px; background: #101317dc; color: #f6e4ce; padding: 3px 6px 2px; font-size: 10px; font-weight: 750; letter-spacing: .065em; line-height: 1.25; }
.card-name { display: block; margin-top: 9px; font-weight: 750; font-size: 16px; line-height: 1.35; }
.card-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.card-release { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 7px; }
.release-badge { border-radius: 5px; padding: 3px 6px; background: #ffffff12; color: #d3d5da; font-size: 11px; font-weight: 650; line-height: 1.3; }
.release-badge.running { background: #8ddb9c21; color: #bcebc5; }
.card-episode { color: var(--accent); font-size: 12px; font-weight: 650; }
.save-card { position: absolute; top: 9px; right: 9px; }
.icon-button { border: 1px solid #ffffff35; background: #101317d9; color: var(--text); width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border-radius: 8px; font: 24px/1 var(--sans); }
.icon-button[aria-pressed="true"] { color: var(--accent); border-color: #f3b9777f; }
.empty-state { border: 1px dashed var(--line); padding: 34px 18px; text-align: center; border-radius: 10px; }
.empty-state h3 { margin: 0 0 4px; font-size: 19px; }
.empty-state p { margin: 0 0 14px; color: var(--muted); }
.history { margin-bottom: 37px; }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.history-item { text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: var(--panel); display: grid; gap: 6px; }
.history-item:hover { border-color: #f3b97778; }
.history-item small { color: var(--muted); }
progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: #ffffff19; }
progress::-webkit-progress-bar { background: #ffffff19; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.tv-mode-link { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; }
.tv-mode-link:hover { color: var(--text); border-color: var(--accent); }
.schedule-source { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.schedule-source a { text-decoration: underline; }
.footer-inner .brand { font-size: 15px; }

.series-dialog { border: 1px solid #ffffff30; padding: 0; border-radius: 15px; background: #181c22; color: var(--text); width: min(850px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; position: fixed; }
.series-dialog::backdrop { background: #07090dd9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; right: 11px; top: 11px; }
.dialog-banner { height: clamp(135px, 25vw, 240px); position: relative; isolation: isolate; background: #242733; overflow: hidden; }
.dialog-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--art-focus, 35%); }
.card-art img.portrait-cover, .dialog-banner img.portrait-cover { object-fit: contain; object-position: center; }
.dialog-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #181c22, #181c2205 65%); }
.dialog-body { position: relative; margin-top: -42px; padding: 0 clamp(16px, 4vw, 35px) 27px; }
.dialog-body h2 { margin: 0 0 6px; font: 500 clamp(31px, 5vw, 56px)/1.04 var(--serif); letter-spacing: -.045em; }
.dialog-original, .dialog-meta, .provider-note, .player-status { color: var(--muted); }
.dialog-original { margin: 0 0 8px; }
.dialog-meta { margin: 0 0 8px; }
.dialog-description { margin: 12px 0 17px; max-width: 640px; }
.dialog-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 15px; }
.provider-note { margin: 12px 0 0; font-size: 13px; }
.episode-panel { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.episode-panel h3 { margin: 0 0 12px; font-size: 17px; }
.schedule-times { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 16px; margin: 0; font-size: 14px; }
.schedule-times dt { color: var(--muted); }
.schedule-times dd { margin: 0; font-weight: 650; }
.source-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.source-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.source-details { display: grid; gap: 2px; }
.source-details small { color: var(--muted); }
.source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.source-actions .button { min-height: 38px; padding: 7px 10px; font-size: 13px; }
.episode-directory-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.episode-directory-heading h3 { margin: 0 auto 0 0; }
.episode-edition, .episode-jump input { background: #101317; border: 1px solid var(--line); border-radius: 6px; color: var(--text); min-height: 37px; padding: 5px 7px; font: inherit; font-size: 13px; }
.episode-edition { max-width: 100%; }
.episode-jump { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.episode-jump input { width: 64px; }
.episode-seasons { display: grid; gap: 12px; }
.episode-season h4 { margin: 0 0 6px; font-size: 15px; }
.episode-season .episode-numbers { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.episode-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 155px; overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #101317; }
.episode-number { border: 1px solid transparent; border-radius: 5px; min-height: 37px; color: var(--text); background: #ffffff10; font-size: 13px; font-weight: 650; }
.episode-number:hover { background: #ffffff24; }
.episode-number:focus-visible { outline-offset: 0; }
.episode-number[aria-pressed="true"] { background: var(--accent); color: var(--accent-dark); }
.episode-actions { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.episode-actions h4 { margin: 0 0 7px; font-size: 15px; }
.episode-source-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.episode-links { display: flex; flex-wrap: wrap; gap: 7px; }
.episode-links .button { min-height: 37px; padding: 6px 9px; font-size: 13px; }
.trailer-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; color: var(--muted); }
.trailer-clip > span { font-weight: 650; }
.trailer-player:not(:empty) { margin-top: 12px; }
.player-section { margin: 16px 0; }
.player-frame { width: 100%; aspect-ratio: 16 / 9; background: #08090b; border: 1px solid #ffffff29; border-radius: 8px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-status { margin: 9px 0; font-size: 13px; }
.player-links { display: flex; flex-wrap: wrap; gap: 9px; }
.player-links .button { font-size: 13px; min-height: 38px; }

.tv-mode { scroll-behavior: auto; }
.tv-mode .hero { display: none; }
.tv-mode .series-dialog { width: min(1000px, calc(100% - 32px)); }
.tv-mode .alphabet-letter { min-width: 36px; min-height: 32px; font-size: 14px; }
.tv-mode .card-name, .tv-mode .main-nav a { font-size: 17px; }
.tv-mode .episode-number, .tv-mode .episode-links .button { min-height: 44px; font-size: 15px; }
.tv-mode :focus { outline: 3px solid #ffd09a; outline-offset: 3px; }
.tv-mode .episode-number:focus, .tv-mode .alphabet-letter:focus { outline-offset: -2px; outline-color: #fff; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .letter-row { grid-auto-columns: calc((100% - 2 * var(--card-gap)) / 3); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .hero { min-height: 455px; }
  .hero::before { background-position: 83% center; }
  .hero::after { background: linear-gradient(0deg, #101317, #1013178e 16%, #1013171f 80%), linear-gradient(90deg, #101317f5, #10131768 85%); }
  .hero-inner { padding-block: 52px 68px; }
  .hero h1 { font-size: clamp(48px, 10.5vw, 72px); }
  .hero-description { font-size: 15px; max-width: 310px; }
  .header-inner { height: 59px; gap: 20px; }
  .brand { gap: 6px; font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 13px; }
  .search-trigger { min-width: 38px; min-height: 38px; justify-content: center; padding: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .section-heading { align-items: start; flex-wrap: wrap; margin-bottom: 16px; }
  .catalog-layout { gap: 9px; }
  .series-grid { gap: 17px; }
  .letter-heading { scroll-margin-top: 71px; }
  .letter-row { --card-gap: 12px; grid-auto-columns: calc((100% - var(--card-gap)) / 2); }
  .alphabet-index { top: 67px; max-height: calc(100vh - 75px); max-height: calc(100dvh - 75px); padding: 2px; }
  .alphabet-letter { width: 26px; min-height: 24px; }
  .card-name { font-size: 14px; }
  .card-meta { font-size: 12px; }
  .history-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { gap: 12px; }
  .main-nav { gap: 11px; }
  .brand img { width: 24px; height: 24px; }
  .brand { font-size: 15px; }
}
@media (max-width: 520px) {
  .episode-season .episode-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .episode-season .episode-number { min-height: 44px; }
  .header-inner { height: auto; flex-wrap: wrap; gap: 0 10px; padding-top: 6px; }
  .main-nav { order: 1; flex-basis: 100%; height: 38px; justify-content: space-between; gap: 9px; overflow-x: auto; scrollbar-width: none; }
  .main-nav a, .tv-mode .main-nav a { font-size: 12px; }
  .main-nav a:focus-visible { outline-offset: -2px; }
  .letter-heading { scroll-margin-top: 93px; }
  .alphabet-index { top: 89px; max-height: calc(100vh - 97px); max-height: calc(100dvh - 97px); }
}
@media (max-width: 720px) {
  .tv-mode .main-nav a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { transition-duration: 0s !important; }
}
