@import url('/assets/fonts/fonts.css');
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--text); background: var(--outside); font: 16px/1.75 Inter, Arial, sans-serif; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(var(--wall-shade), var(--wall-shade)), var(--wallpaper) center top / cover no-repeat; opacity: .25; pointer-events: none; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.04em; margin-bottom: 16px; overflow-wrap: break-word; }
h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 18px; overflow-wrap: break-word; }
h3 { font-size: 19px; line-height: 1.4; margin: 24px 0 12px; }
p { margin-bottom: 18px; }
.serif h1, .serif h2 { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -.025em; }
.serif h1 { font-size: clamp(31px, 3.5vw, 44px); }
.serif h2 { font-size: 29px; }
.shell { width: min(1080px, calc(100% - 64px)); margin: 35px auto; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 22px 85px #0003; overflow: hidden; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 32px; border-bottom: 1px solid var(--line); }
.brand { font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand::before { content: ''; display: inline-block; width: 9px; height: 23px; margin-right: 12px; background: var(--accent); transform: skew(-18deg); vertical-align: -2px; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.favorite { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.favorite[aria-pressed='true'] { color: var(--accent); background: var(--soft); }
.reading-intro { padding: 28px 38px 22px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.meta span + span::before { content: '·'; margin-right: 12px; }
.lead { margin-bottom: 0; max-width: 78ch; color: var(--muted); font-size: 15px; line-height: 1.7; }
.reactions { display: flex; align-items: center; gap: 9px; }
.vote { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 78px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); line-height: 1.5; }
.vote[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }
.vote-status { font-size: 11px; color: var(--muted); max-width: 180px; margin: 7px 0 0; }
.page-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 18px; font-size: 13px; color: var(--muted); }
.page-nav a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.page-nav a:hover { color: var(--text); }
.layout-2 .reading-intro { border-left: 4px solid var(--accent); }
.layout-3 .reading-intro { background: var(--soft); }
.layout-4 .reading-intro { text-align: center; }
.layout-4 .intro-grid { grid-template-columns: 1fr; gap: 16px; }
.layout-4 .meta, .layout-4 .page-nav, .layout-4 .reactions { justify-content: center; }
.layout-4 .lead, .layout-4 .vote-status { margin-left: auto; margin-right: auto; }
.layout-5 .reading-intro { border-bottom: 3px solid var(--accent); }
.content { padding: 0 38px; }
.watch, .article, .cast, .guide, .comments { padding: 27px 0; border-top: 1px solid var(--line); min-width: 0; }
.watch-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.watch-heading h2 { margin-bottom: 0; font-size: 23px; }
.season { flex: 0 0 auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 10px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: #080b10; overflow: hidden; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-help { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.player-help p { margin-bottom: 0; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.article p { max-width: 80ch; line-height: 1.85; }
.article p:last-child { margin-bottom: 0; }
.facts { margin: 0 0 24px; font-size: 14px; }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 3px 0 0; }
.cast h3 { margin-top: 12px; font-size: 16px; }
.cast-list { margin: 0; padding-left: 20px; font-size: 14px; }
.cast-list li { margin-bottom: 7px; }
.layout-2 .details-grid, .layout-4 .details-grid { grid-template-columns: 1fr; gap: 0; }
.layout-2 .facts, .layout-4 .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.layout-2 .cast-list, .layout-4 .cast-list { columns: 2; }
.guide p { margin-bottom: 0; max-width: 85ch; }
.section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.section-line > span { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.comment-form { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 20px; }
.comment-form input, .comment-form textarea { width: 100%; min-height: 49px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; color: var(--text); background: var(--soft); }
.comment-form textarea { height: 49px; max-height: 200px; resize: vertical; }
.comment-form ::placeholder { color: var(--muted); opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--button-text); font-size: 14px; font-weight: 650; min-height: 49px; padding: 12px 22px; }
.button:hover { filter: brightness(1.07); }
.comment-status { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; }
.comment { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding: 21px 0; }
.avatar { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--button-text); font-weight: 600; }
.comment-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; }
.comment time { font-size: 11px; color: var(--muted); }
.comment p { font-size: 14px; color: var(--text); margin: 5px 0 8px; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 17px; align-items: center; font-size: 12px; color: var(--muted); }
.comment-actions svg { width: 14px; height: 14px; }
.reply { padding: 0; border: 0; font-size: 12px; color: var(--muted); background: transparent; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer .brand { font-size: 19px; color: var(--text); }
.site-footer .brand::before { height: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.notice { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.honeypot { position: absolute; width: 1px !important; min-height: 1px !important; height: 1px; padding: 0 !important; border: 0 !important; clip-path: inset(50%); overflow: hidden; opacity: 0; pointer-events: none; }
@media (max-width: 850px) {
 .intro-grid { grid-template-columns: 1fr; gap: 16px; }
 .details-grid { grid-template-columns: 1fr; gap: 0; }
 .site-header nav { gap: 14px; }
 .comment-form { grid-template-columns: 150px minmax(0, 1fr); }
 .comment-form .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
 .shell { width: calc(100% - 20px); margin: 10px auto; }
 .site-header { padding: 18px 20px; gap: 12px; }
 .brand { font-size: 20px; }
 .brand::before { margin-right: 9px; height: 20px; width: 7px; }
 .site-header nav { gap: 12px; font-size: 12px; }
 .site-header nav a:not([href='#smotret']) { display: none; }
 .favorite { width: 34px; height: 34px; }
 .reading-intro { padding: 22px 20px 20px; }
 h1 { font-size: 28px; line-height: 1.2; }
 .serif h1 { font-size: 32px; }
 h2, .watch-heading h2 { font-size: 23px; }
 .serif h2 { font-size: 26px; }
 .content { padding: 0 20px; }
 .meta { font-size: 12px; gap: 5px 9px; }
 .meta span + span::before { margin-right: 9px; }
 .lead { font-size: 14px; }
 .page-nav { gap: 9px 16px; font-size: 12px; }
 .watch-heading { display: block; }
 .watch-heading h2 { margin-bottom: 10px; }
 .season { display: inline-block; }
 .player { min-height: 205px; }
 .player-help { display: block; }
 .player-help p + p { margin-top: 5px; }
 .article p { font-size: 15px; }
 .layout-2 .facts, .layout-4 .facts { grid-template-columns: 1fr; gap: 0; }
 .layout-2 .cast-list, .layout-4 .cast-list { columns: 1; }
 .section-line { display: block; margin-bottom: 18px; }
 .section-line h2 { margin-bottom: 8px; }
 .comment-form { grid-template-columns: 1fr; }
 .comment-form .button { grid-column: 1; justify-self: stretch; }
 .comment-form textarea { height: 110px; }
 .comment-header { flex-wrap: wrap; gap: 3px 12px; }
 .site-footer { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
