/* ottiptv.software — technical spec-sheet: cool light surface, navy header, mono labels, dense tables */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-latin-wght-normal.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 {
  --bg: #eef2f5; --surface: #fff; --surface2: #e6ebf0; --line: #cfd8e1; --navy: #0d1b2a;
  --text: #0d1b2a; --muted: #55657a; --accent: #0a7d5a; --link: #086b4d; --on-accent: #fff; --mint: #10b981;
  --ok: #0a7d5a; --warn: #a15c00; --bad: #c62828; --star: #e08a00; --star-off: #cfd8e1;
  --radius: 4px; --radius-sm: 3px; --wrap: 1240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-head: var(--font-mono);
  color-scheme: light;
}
body { font-size: 15.5px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h2 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

/* header: navy toolbar */
.site-header { background: var(--navy); border-bottom: 3px solid var(--mint); position: sticky; top: 0; z-index: 50; }
.bar { min-height: 54px; gap: 22px; }
.logo { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.logo-mark { border-radius: 5px; }
.logo-text b { color: var(--mint); font-weight: 700; }
.nav { gap: 0; }
.nav a { font-family: var(--font-mono); font-size: .84rem; font-weight: 500; color: #9fb2c6; padding: 6px 12px; border-radius: var(--radius-sm); }
.nav a::before { content: "/"; color: #4a627c; }
.nav a:hover { color: #fff; } .nav a.active { color: var(--navy); background: var(--mint); } .nav a.active::before { color: var(--navy); }
.lang { border-color: #34495f; color: #cfe0ee; font-family: var(--font-mono); border-radius: var(--radius-sm); }
.site-header .btn.ghost { color: #cfe0ee; border-color: #34495f; } .me { color: #cfe0ee; }

/* buttons, chips */
.btn { font-family: var(--font-mono); font-size: .86rem; font-weight: 600; padding: 9px 16px; box-shadow: 0 2px 0 #06543c; }
.btn.ghost { background: var(--surface); border-color: var(--line); box-shadow: 0 2px 0 var(--line); }
.btn.danger { box-shadow: none; }
.btn.sm { font-size: .76rem; padding: 5px 10px; } .btn.lg { font-size: .95rem; padding: 12px 20px; }
.chip { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; border-radius: var(--radius-sm); background: var(--surface2); border-color: var(--line); color: var(--text); padding: 1px 6px; }
.chip.accent { background: #dff5ec; border-color: #a9dfc9; color: var(--link); }

/* blocks */
section { margin-top: 36px; }
.sec-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-head h2::before { content: "## "; color: var(--mint); }
.sec-head a, .more { font-family: var(--font-mono); font-size: .8rem; }
.card { box-shadow: 0 1px 0 rgba(13, 27, 42, .04); }
.meta, .crumbs ol { font-family: var(--font-mono); font-size: .74rem; }
.crumbs li + li::before { content: "/"; }
.lead { font-size: 1rem; }

/* hero: console panel on a blueprint grid */
.hero { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); align-items: center; gap: 32px; padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); background-image: linear-gradient(var(--surface2) 1px, transparent 1px), linear-gradient(90deg, var(--surface2) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.eyebrow { font-family: var(--font-mono); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: "$ "; color: var(--muted); }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); line-height: 1.12; }
.hero-sub { font-size: 1.02rem; background: var(--surface); }
.hero-kinds { grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-kinds a { padding: 14px; border-radius: var(--radius); border-left: 3px solid var(--mint); box-shadow: 0 2px 0 var(--line); }
.hero-kinds b { font-size: 2.1rem; font-weight: 700; }
.hero-kinds span { font-size: .92rem; } .hero-kinds small { font-family: var(--font-mono); font-size: .7rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 22px 16px; } }

/* cards */
.news h3, .post h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.post { border-top: 3px solid var(--navy); }
.g3 { gap: 14px; }

/* top lists as mini tables */
.top { padding: 0; }
.top h3 { margin: 0; padding: 10px 14px; background: var(--navy); font-size: .88rem; } .top h3 a { color: #fff; }
.top ol { margin: 0; counter-reset: n; }
.top li { counter-increment: n; padding: 8px 14px; } .top li:nth-child(even) { background: #f6f8fa; }
.top li a::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.top li b { font-family: var(--font-mono); font-size: .8rem; color: var(--text); }
.top .more { display: block; padding: 10px 14px; }

/* tabs: segmented control */
.tabs { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); width: fit-content; max-width: 100%; }
.tabs a { border: 0; border-right: 1px solid var(--line); border-radius: 0; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; padding: 9px 16px; background: none; }
.tabs a:last-child { border-right: 0; }
.tabs a.active { background: var(--navy); color: #fff; } .tabs a.active:hover { color: #fff; }

/* ranking: one bordered data table */
.rank { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rank-row { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0; padding: 14px 16px; align-items: flex-start; box-shadow: none; background: none; }
.rank-row:last-child { border-bottom: 0 !important; } .rank-row:nth-child(even) { background: #f6f8fa; }
.rank-row.is-pick { box-shadow: inset 3px 0 0 var(--mint); }
.pos { font-size: .86rem; font-weight: 600; width: 2.6em; text-align: left; padding-top: 4px; }
.pos::before { content: "#"; color: var(--line); }
.top1 .pos, .top2 .pos, .top3 .pos { color: var(--link); }
.rank-main h2 { font-family: var(--font); font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.rank-main p { font-size: .92rem; }
.features { font-size: .84rem; gap: 1px 16px; } .features li::before { content: "+"; font-family: var(--font-mono); }
.pick { border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .66rem; font-weight: 600; text-transform: uppercase; background: var(--navy); color: var(--mint); padding: 2px 7px; }
.score b { font-family: var(--font-mono); font-size: 1.05rem; }
.score small, .score.none { font-family: var(--font-mono); font-size: .72rem; }
.avatar { background: hsl(var(--h) 35% 30%); font-family: var(--font-mono); }

/* item page */
.item-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.item-head h1 { font-family: var(--font); font-weight: 800; }
.facts { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); grid-template-columns: 1fr; }
.facts > div { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 12px; padding: 10px 14px; } .facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: 0; } .facts dd { margin: 0; }
.h-sub { font-size: .95rem; } .h-sub::before { content: "## "; color: var(--mint); }
.review header b { font-family: var(--font-mono); font-size: .86rem; }
.rate legend, label { font-size: .86rem; }
input, textarea, select { background: var(--surface); }

/* article */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); max-width: 860px; }
.article h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
.prose h2, .prose h3 { font-family: var(--font); font-weight: 800; letter-spacing: -.01em; }
.prose h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.prose pre { background: var(--navy); color: #d7e6f3; border: 0; } .prose pre code { color: inherit; }
.prose code { color: var(--link); }
.pager { font-family: var(--font-mono); font-size: .84rem; }

/* footer */
.site-footer { background: var(--navy); border-top: 3px solid var(--mint); margin-top: 20px; }
.site-footer .logo { color: #fff; }
.foot p, .copy { color: #8fa3b8; } .foot nav a { color: #cfe0ee; font-family: var(--font-mono); font-size: .82rem; font-weight: 500; }
.copy { font-family: var(--font-mono); }
.sec-news .grid, main > .grid { align-items: start; }
