/* Turknama Hub — صفحه اصلی و صفحه سریال. همه چیز زیر .tnh تا با قالب Kayleen تداخل نداشته باشد */
.tnh {
    --tnh-paper: #f8f6f7;
    --tnh-surface: #ffffff;
    --tnh-ink: #1f1724;
    --tnh-muted: #6d6372;
    --tnh-line: #e9e3ea;
    --tnh-rose: #c2185b;
    --tnh-rose-soft: #fbe6ee;
    --tnh-plum: #2a1630;
    --tnh-on-plum: #f6eef7;
    --tnh-on-plum-muted: #bfaec4;
    --tnh-rank: #ff9cc2;
    background: var(--tnh-paper);
    color: var(--tnh-ink);
    font-family: inherit;
}
.tnh *, .tnh *::before, .tnh *::after { box-sizing: border-box; }
.tnh a { color: inherit; text-decoration: none; }
.tnh img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: 100%; }
.tnh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnh-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.tnh h2 { font-weight: 900; font-size: 22px; line-height: 1.5; margin: 0; text-wrap: balance; color: inherit; }
.tnh-sec { padding-block: 34px; }
.tnh-band { background: var(--tnh-surface); border-block: 1px solid var(--tnh-line); }
.tnh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.tnh-head a { color: var(--tnh-rose); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tnh-head-gap { margin-top: 26px; }
.tnh-sub { display: block; font-size: 13px; color: var(--tnh-on-plum-muted); }
.tnh-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--tnh-muted); }
.tnh-kicker { color: var(--tnh-rose); font-weight: 700; }
.tnh a:focus-visible { outline: 2px solid var(--tnh-rose); outline-offset: 3px; }

/* داغ ترین سریال ها */
.tnh-rail { background: var(--tnh-plum); color: var(--tnh-on-plum); padding-block: 26px 30px; }
.tnh-rail h2 { color: #fff; }
.tnh-posters { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.tnh-poster { display: grid; grid-template-columns: 62px 1fr; align-items: end; }
.tnh-rank { grid-row: 1; grid-column: 1; font-weight: 900; font-size: 96px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--tnh-rank); text-align: center; margin-left: -14px; }
.tnh-cover { grid-row: 1; grid-column: 2; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #3a2440; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); position: relative; z-index: 1; max-width: 100%; display: block; }
.tnh-cover img { transition: transform .4s; }
.tnh-poster:hover .tnh-cover img { transform: scale(1.05); }
.tnh-pname { grid-column: 2; margin-top: 10px; font-weight: 900; font-size: 14px; line-height: 1.5; color: #fff; }
.tnh-ptr { grid-column: 2; font-size: 11px; color: var(--tnh-on-plum-muted); direction: ltr; text-align: right; }

/* خبر ویژه */
.tnh-lead { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.tnh-big { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 440px; background: var(--tnh-plum); }
.tnh-big img { position: absolute; inset: 0; }
.tnh-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(20, 8, 22, .94)); }
.tnh-txt { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; z-index: 1; color: #fff; display: grid; gap: 8px; }
.tnh-big .tnh-meta { color: #e8dcec; }
.tnh-big .tnh-kicker { background: var(--tnh-rose); color: #fff; padding: 2px 10px; border-radius: 4px; }
.tnh-big .tnh-ttl { font-weight: 900; font-size: 28px; line-height: 1.5; text-wrap: balance; }
.tnh-stack { display: grid; gap: 16px; align-content: start; }
.tnh-mini { display: grid; grid-template-columns: 120px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.tnh-mini .tnh-thumb { grid-row: span 2; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: block; }
.tnh-mini .tnh-ttl, .tnh-card .tnh-ttl { font-weight: 700; font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tnh-most { background: var(--tnh-surface); border: 1px solid var(--tnh-line); border-radius: 14px; padding: 18px 22px; }
.tnh-most h3 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.tnh-most ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: tnh; }
.tnh-most li { counter-increment: tnh; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding-block: 10px; border-top: 1px solid var(--tnh-line); font-weight: 500; font-size: 14px; line-height: 1.7; }
.tnh-most li::before { content: counter(tnh, persian); font-weight: 900; font-size: 24px; line-height: 1.2; color: var(--tnh-rose); }

/* شبکه کارت ها */
.tnh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tnh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tnh-card { display: grid; gap: 8px; align-content: start; }
.tnh-card .tnh-thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: block; background: var(--tnh-line); }
.tnh-split { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.tnh-split > * { min-width: 0; }
.tnh-list { background: var(--tnh-surface); border: 1px solid var(--tnh-line); border-radius: 14px; padding: 4px 20px; }
.tnh-row { display: grid; gap: 2px; padding-block: 13px; border-top: 1px solid var(--tnh-line); }
.tnh-row:first-child { border-top: 0; }
.tnh-row .tnh-ttl { font-weight: 500; font-size: 14px; line-height: 1.7; }
.tnh-row time { font-size: 12px; color: var(--tnh-muted); }
.tnh-bio { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; text-align: center; }
.tnh-bio a { display: grid; gap: 10px; justify-items: center; font-weight: 700; font-size: 13px; line-height: 1.6; }
.tnh-face { width: 112px; height: 112px; max-width: 100%; border-radius: 50%; overflow: hidden; outline: 3px solid var(--tnh-rose-soft); outline-offset: 3px; display: block; }

/* صفحه سریال */
.tnh-hero { background: var(--tnh-plum); color: var(--tnh-on-plum); padding-block: 36px; }
.tnh-hero-in { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.tnh-hero-poster { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); max-width: 100%; }
.tnh-hero-txt { min-width: 0; }
.tnh-eyebrow { margin: 0 0 6px; color: var(--tnh-rank); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.tnh-hero h1 { margin: 0 0 12px; font-size: 32px; font-weight: 900; line-height: 1.4; color: #fff; text-wrap: balance; }
.tnh-hero h1 span { font-size: 18px; font-weight: 500; color: var(--tnh-on-plum-muted); }
.tnh-synopsis { margin: 0 0 18px; max-width: 68ch; line-height: 2; color: var(--tnh-on-plum); }
.tnh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.tnh-facts div { background: rgba(255, 255, 255, .07); border-radius: 8px; padding: 10px 14px; }
.tnh-facts dt { font-size: 12px; color: var(--tnh-on-plum-muted); }
.tnh-facts dd { margin: 0; font-weight: 700; color: #fff; }
.tnh-qa h2 { font-size: 20px; margin-top: 8px; }
.tnh-qa p { line-height: 2; margin: 6px 0 22px; max-width: 70ch; }
.tnh-cast { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tnh-cast li { background: var(--tnh-surface); border: 1px solid var(--tnh-line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; font-size: 14px; }
.tnh-cast a strong { color: var(--tnh-rose); }
.tnh-cast span { font-size: 12px; color: var(--tnh-muted); text-align: right; }
.tnh-cast em { font-style: normal; font-size: 12px; color: var(--tnh-muted); }
.tnh-related h3 { margin: 8px 0 14px; font-size: 16px; font-weight: 900; }
.tnh-mini-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tnh-mini-posters a { display: grid; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.tnh-mini-posters .tnh-cover { box-shadow: none; }
.tnh-pages { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tnh-pages .page-numbers { padding: 4px 12px; border: 1px solid var(--tnh-line); border-radius: 6px; }
.tnh-pages .current { background: var(--tnh-rose); color: #fff; border-color: var(--tnh-rose); }

@media (max-width: 900px) {
    .tnh-lead, .tnh-split { grid-template-columns: 1fr; }
    .tnh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tnh-bio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tnh-big { min-height: 340px; }
    .tnh-big .tnh-ttl { font-size: 21px; }
    .tnh-hero-in { grid-template-columns: 140px 1fr; gap: 18px; }
    .tnh-hero h1 { font-size: 24px; }
}
@media (max-width: 520px) {
    .tnh-grid, .tnh-grid-2 { grid-template-columns: 1fr; }
    .tnh-posters { grid-auto-columns: 160px; }
    .tnh-rank { font-size: 72px; }
    .tnh-hero-in { grid-template-columns: 1fr; }
    .tnh-hero-poster { width: 160px; }
    .tnh-wrap { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tnh * { transition: none !important; } }
.tnh-mini-posters .tnh-cover { grid-row: auto; grid-column: auto; width: 100%; }
.tnh-mini-posters span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* صفحه دسته بندی */
.tnh-arch-hero { background: var(--tnh-plum); color: var(--tnh-on-plum); padding-block: 30px 26px; }
.tnh-arch-hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 900; line-height: 1.4; color: #fff; }
.tnh-arch-hero .tnh-synopsis { margin-bottom: 14px; }
.tnh-rail-compact { padding-block: 4px 22px; }
.tnh-rail-compact .tnh-posters { grid-auto-columns: 150px; }
.tnh-rail-compact .tnh-rank { font-size: 72px; }
.tnh-arch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.tnh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tnh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tnh-chips a { border: 1px solid var(--tnh-line); border-radius: 999px; padding: 2px 14px; font-size: 13px; font-weight: 500; background: var(--tnh-surface); }
.tnh-chips a:hover { border-color: var(--tnh-rose); color: var(--tnh-rose); }
.tnh-chips-dark a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--tnh-on-plum); }
.tnh-chips-dark a[aria-current="page"] { background: var(--tnh-rose); border-color: var(--tnh-rose); color: #fff; }

/* سایدبار */
.tnh-side { background: transparent; display: grid; gap: 18px; }
.tnh-side-box { background: var(--tnh-surface); border: 1px solid var(--tnh-line); border-radius: 14px; padding: 18px 20px; }
.tnh-side-title { margin: 0 0 12px; font-size: 16px; font-weight: 900; }
.tnh-side-title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--tnh-rose); margin-top: 6px; }
.tnh-side-series { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: var(--tnh-plum); border-color: var(--tnh-plum); color: var(--tnh-on-plum); }
.tnh-side-poster { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; display: block; }
.tnh-side-eyebrow { margin: 0; font-size: 12px; color: var(--tnh-rank); font-weight: 700; }
.tnh-side-series h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #fff; }
.tnh-side-facts { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; line-height: 1.9; color: var(--tnh-on-plum-muted); }
.tnh-side-facts b { color: #fff; }
.tnh-side-more { font-size: 13px; font-weight: 700; color: var(--tnh-rank) !important; }
.tnh-side-hot, .tnh-side-most { list-style: none; margin: 0; padding: 0; }
.tnh-side-hot a { display: grid; grid-template-columns: 24px 44px 1fr; gap: 10px; align-items: center; padding-block: 7px; }
.tnh-side-rank { font-weight: 900; font-size: 18px; color: var(--tnh-rose); text-align: center; }
.tnh-side-thumb { width: 44px; height: 60px; border-radius: 6px; overflow: hidden; display: block; background: var(--tnh-line); }
.tnh-side-name { font-weight: 700; font-size: 14px; line-height: 1.5; display: grid; }
.tnh-side-name small { font-weight: 400; font-size: 11px; color: var(--tnh-muted); direction: ltr; text-align: right; }
.tnh-side-most { counter-reset: tnhs; }
.tnh-side-most li { counter-increment: tnhs; display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding-block: 9px; border-top: 1px solid var(--tnh-line); font-size: 13px; font-weight: 500; line-height: 1.8; }
.tnh-side-most li:first-child { border-top: 0; }
.tnh-side-most li::before { content: counter(tnhs, persian); font-weight: 900; font-size: 18px; color: var(--tnh-rose); }
.sidebar-container .tnh-side { position: static; }

@media (max-width: 1000px) {
    .tnh-arch { grid-template-columns: 1fr; }
    .tnh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .tnh-grid-3 { grid-template-columns: 1fr; }
    .tnh-arch-hero h1 { font-size: 24px; }
}

/* لینک سازی داخلی داخل نوشته */
.tnh-autolink { color: #c2185b; text-decoration: none; border-bottom: 1px dashed rgba(194, 24, 91, .45); }
.tnh-autolink:hover { border-bottom-style: solid; }
.tnh-also { margin: 26px 0; padding: 14px 18px; border-radius: 12px; background: var(--tnh-rose-soft); border-inline-start: 4px solid var(--tnh-rose); display: grid; gap: 8px; }
.tnh-also-label { font-size: 12px; font-weight: 900; color: var(--tnh-rose); }
.tnh-also a { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; color: var(--tnh-ink) !important; text-decoration: none !important; }
.tnh-also-thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: block; }
.tnh-also-ttl { font-weight: 700; font-size: 15px; line-height: 1.8; }
.tnh-also a:hover .tnh-also-ttl { color: var(--tnh-rose); }
.tnh-related-end { margin-top: 36px; padding: 22px; border-radius: 14px; border: 1px solid var(--tnh-line); }
.tnh-related-end h2 { font-size: 19px; }
.tnh-related-end a { text-decoration: none !important; }
.tnh-related-end .tnh-card .tnh-ttl { font-size: 14px; }
@media (max-width: 520px) { .tnh-related-end { padding: 16px; } .tnh-also a { grid-template-columns: 72px 1fr; } }
