/* EPG Planet — javni TV vodič (epgplanet.com) */
:root {
  --bg: #060c1d; --bg-2: #0a1430; --surface: #0e1a38; --surface-2: #142449; --line: #1e3160; --line-2: #2a4280;
  --fg: #eaf0ff; --fg-2: #b8c6e8; --muted: #8296c4; --accent: #2f8cf0; --accent-2: #5fd0ff; --on-accent: #ffffff;
  --film: #ff5470; --serija: #ff9a1f; --sport: #49c75f; --vesti: #4cc9f0; --dok: #b08cff; --deca: #ffd23f; --zabava: #ff7ad9; --muzika: #2ee6c4; --ostalo: #7f93c5;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65); --star: #ffc53d;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;  /* ranije JetBrains Mono; brojevi iste širine preko tabular-nums */
  --r: 14px; --r-sm: 9px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f2f5fc; --bg-2: #e7edfa; --surface: #ffffff; --surface-2: #eef2fb; --line: #d7e0f3; --line-2: #b9c8ea;
  --fg: #0a1838; --fg-2: #2c3f69; --muted: #5d6f98; --accent: #1565e0; --accent-2: #0b7fc4; --on-accent: #ffffff;
  --film: #e0234a; --serija: #d97300; --sport: #1f9a3a; --vesti: #0a8fbd; --dok: #7a4fe0; --deca: #b98a00; --zabava: #c43aa3; --muzika: #0c9c84; --ostalo: #5d6f98;
  --shadow: 0 18px 40px -22px rgba(10, 30, 80, .35); --star: #c98a00; color-scheme: light; } }
:root[data-theme="light"] {
  --bg: #f2f5fc; --bg-2: #e7edfa; --surface: #ffffff; --surface-2: #eef2fb; --line: #d7e0f3; --line-2: #b9c8ea;
  --fg: #0a1838; --fg-2: #2c3f69; --muted: #5d6f98; --accent: #1565e0; --accent-2: #0b7fc4; --on-accent: #ffffff;
  --film: #e0234a; --serija: #d97300; --sport: #1f9a3a; --vesti: #0a8fbd; --dok: #7a4fe0; --deca: #b98a00; --zabava: #c43aa3; --muzika: #0c9c84; --ostalo: #5d6f98;
  --shadow: 0 18px 40px -22px rgba(10, 30, 80, .35); --star: #c98a00; color-scheme: light; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--f-body); }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* ---- zaglavlje ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.wm { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.wm i { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.main { display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--fg-2); }
nav.main a:hover { background: var(--surface-2); color: var(--fg); }
nav.main a.on { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.search { position: relative; }
.search input { width: 220px; max-width: 46vw; background: var(--surface); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 9px 14px 9px 36px; font: inherit; font-size: 14px; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--muted); }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }

/* ---- sekcije ---- */
section.view { padding-block: 28px 56px; }
.eyebrow { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 16px; }
.sec-h h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.sec-h p { margin: 4px 0 0; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--fg-2); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[disabled] { opacity: .45; cursor: not-allowed; }

/* ---- hero: klizač vremena ---- */
.hero { display: grid; gap: 22px; padding-top: 10px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); font-weight: 800; line-height: 1.02; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.clock { text-align: right; }
.clock .t { font-family: var(--f-display); font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.clock .d { color: var(--muted); font-size: 14px; margin-top: 6px; }
.scrub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 10px; }
.scrub-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.scrub input[type=range] { width: 100%; accent-color: var(--accent); margin: 12px 0 2px; }
.ticks { display: grid; grid-template-columns: repeat(13, 1fr); font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted); }
.ticks span:last-child { text-align: right; }

/* ---- kartice „sada“ ---- */
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; display: grid; grid-template-rows: auto 1fr; transition: transform .18s ease, border-color .18s; text-align: left; padding: 0; }
.pc:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pc .media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); overflow: hidden; max-width: 100%; }
.pc .media img.ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc .media .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.pc .media .fallback img { max-width: 48%; max-height: 46%; object-fit: contain; opacity: .9; }
.badge-logo { position: absolute; left: 10px; top: 10px; height: 30px; min-width: 46px; padding: 4px 6px; border-radius: 7px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.badge-logo img { max-height: 22px; max-width: 64px; object-fit: contain; display: block; }
.lg-light { background: #ffffff; } .lg-dark { background: #0c1630; }
.ini { color: #cfe0ff; font: 700 13px var(--f-display); letter-spacing: .04em; }
.live { position: absolute; right: 10px; top: 10px; font: 600 11px var(--f-mono); letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: #e5294f; color: #fff; }
.pc .body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.pc .title { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.genre { --g: var(--ostalo); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-2); }
.genre::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--g); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.next { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next b { color: var(--fg-2); font-weight: 600; }

/* ---- udarni termin ---- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.strip .pc { scroll-snap-align: start; }
.strip .media { aspect-ratio: 4 / 3; }

/* ---- TV vodič mreža ---- */
.guide-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.guide-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gscroll { overflow-x: auto; position: relative; }
.grid { position: relative; min-width: calc(190px + var(--hours) * 220px); }
.ghead, .grow { display: grid; grid-template-columns: 190px 1fr; }
.ghead { position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ghead .hrs { display: grid; grid-template-columns: repeat(var(--hours), 1fr); font: 500 12px var(--f-mono); color: var(--muted); }
.ghead .hrs span { padding: 8px 8px; border-left: 1px solid var(--line); }
.gch { position: sticky; left: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.gch .lgbox { width: 52px; height: 34px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.gch .lgbox img { max-width: 44px; max-height: 26px; object-fit: contain; }
.gch b { font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glane { position: relative; height: 66px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--hours) - 1px), var(--line) calc(100% / var(--hours) - 1px) calc(100% / var(--hours))); }
.gp { --g: var(--ostalo); position: absolute; top: 6px; bottom: 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--g); padding: 5px 8px 5px 10px; overflow: hidden; cursor: pointer; text-align: left; }
.gp:hover { border-color: var(--line-2); z-index: 1; }
.gthumb { float: left; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; margin-right: 8px; background: var(--bg-2); }
.tip { position: fixed; z-index: 70; pointer-events: none; width: 280px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.tip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tip .tb { padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.tip b { font-family: var(--f-display); font-size: 15px; }
.tip p { margin: 0; color: var(--fg-2); }
.gp b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp span { font: 500 11px var(--f-mono); color: var(--muted); }
.gp.now { background: color-mix(in oklab, var(--accent) 22%, var(--surface-2)); border-color: var(--accent); }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: #e5294f; z-index: 2; pointer-events: none; }
.nowline::before { content: attr(data-t); position: absolute; top: 4px; left: 4px; font: 600 10px var(--f-mono); background: #e5294f; color: #fff; padding: 1px 5px; border-radius: 4px; }

/* ---- liste (filmovi, sport, kanal) ---- */
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 74px 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px 10px 10px; cursor: pointer; text-align: left; width: 100%; }
.row:hover { border-color: var(--line-2); }
.row .time { font: 600 18px var(--f-mono); text-align: center; }
.row .time small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.row .thumb { aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; max-width: 100%; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb img.lg { width: 60%; height: 60%; object-fit: contain; }
.row h3 { font-size: 17px; font-weight: 700; }
.row p { margin: 4px 0 0; color: var(--fg-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .side { display: grid; justify-items: end; gap: 6px; }
.row.now { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.row.past { opacity: .55; }

/* ---- kanali ---- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.logo-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; display: grid; gap: 8px; justify-items: center; cursor: pointer; text-align: center; }
.logo-tile:hover { border-color: var(--accent); }
.logo-tile .lgbox { width: 100%; height: 64px; border-radius: 8px; display: grid; place-items: center; }
.logo-tile .lgbox img { max-width: 78%; max-height: 46px; object-fit: contain; }
.logo-tile b { font-size: 13px; font-weight: 600; }
.logo-tile small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ch-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ch-head .lgbox { width: 120px; height: 76px; border-radius: 12px; display: grid; place-items: center; }
.ch-head .lgbox img { max-width: 88px; max-height: 52px; object-fit: contain; }
.back { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.form input, .form select, .form textarea { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--fg); font: inherit; }
.cta { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; justify-self: start; }
.ok-msg { background: color-mix(in oklab, var(--sport) 18%, var(--surface)); border: 1px solid var(--sport); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* ---- modal ---- */
.scrim { position: fixed; inset: 0; background: rgba(2, 6, 18, .62); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); }
.modal .hero-img { position: relative; aspect-ratio: 16 / 8; background: var(--surface-2); max-width: 100%; }
.modal .hero-img img.ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal .x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(4, 10, 26, .7); color: #fff; cursor: pointer; font-size: 20px; }
.modal .mb { padding: 18px 22px 22px; display: grid; gap: 12px; }
.modal h2 { font-size: 28px; font-weight: 800; }
.modal p { margin: 0; color: var(--fg-2); max-width: 65ch; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.upnext { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.upnext button { background: none; border: 0; text-align: left; padding: 4px 0; cursor: pointer; display: flex; gap: 12px; font-size: 14px; }
.upnext .mono { color: var(--muted); }

/* ---- reklamni prostori (IAB veličine) ---- */
.ad { position: relative; display: grid; place-items: center; text-align: center; border-radius: 10px; max-width: 100%; margin-inline: auto; text-decoration: none; overflow: hidden;
  border: 1px dashed var(--line-2); color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--bg-2) 14px 28px); }
.ad::before { content: "REKLAMA"; position: absolute; top: 6px; left: 8px; font: 600 10px var(--f-mono); letter-spacing: .12em; color: var(--muted); }
.ad .sz { font: 600 15px var(--f-mono); color: var(--fg-2); }
.ad .m-sz { display: none; }
@media (max-width: 760px) { .ad .m-sz { display: inline; } }
.ad .buy { font-size: 12px; color: var(--accent-2); text-decoration: underline; margin-top: 2px; }
.ad .in { display: grid; gap: 2px; padding: 10px; }
.ad-lb { width: 728px; aspect-ratio: 728 / 90; margin-block: 18px 6px; }
.ad-bb { width: 970px; aspect-ratio: 970 / 250; margin-block: 34px 6px; }
.ad-sl { width: 970px; aspect-ratio: 970 / 90; margin-block: 18px 0; }
.ad-mr { width: 300px; aspect-ratio: 300 / 250; }
.ad-hp { width: 300px; aspect-ratio: 300 / 600; }
.m-only { display: none; }
.ad-card { aspect-ratio: auto; min-height: 100%; margin: 0; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.side-ads { position: sticky; top: 84px; display: grid; gap: 16px; }
.anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in oklab, var(--bg) 92%, transparent); border-top: 1px solid var(--line); }
.anchor .ad { width: 320px; aspect-ratio: 320 / 50; margin: 0; }
.anchor .ad::before { top: 2px; left: 6px; font-size: 9px; }
.anchor .close { position: absolute; right: 8px; top: -14px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pos > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; }
.pos b { font-family: var(--f-display); font-size: 18px; }
.pos .mono { color: var(--accent-2); }
.pos p { margin: 0; color: var(--fg-2); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.empty { color: var(--muted); padding: 20px; text-align: center; }

@media (max-width: 1000px) { .with-side { grid-template-columns: 1fr; } .side-ads { display: none; } .m-only { display: grid; } }
@media (max-width: 760px) {
  .ad-lb { width: 320px; aspect-ratio: 320 / 100; }
  .ad-bb { width: 300px; aspect-ratio: 300 / 250; }
  .ad-sl { width: 320px; aspect-ratio: 320 / 100; }
  .ad .d-sz { display: none; }
  .anchor { display: flex; }
  body.anchor-on footer { padding-bottom: 90px; }
  .hero-row { grid-template-columns: 1fr; }
  .clock { text-align: left; }
  .row { grid-template-columns: 62px minmax(0, 1fr); }
  .row .thumb, .row .side { display: none; }
  .ticks span:nth-child(even) { visibility: hidden; }
  .search input { width: 150px; }
  .grid { min-width: calc(130px + var(--hours) * 170px); }
  .ghead, .grow { grid-template-columns: 130px 1fr; }
  .gch b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pc { transition: none; } .pc:hover { transform: none; } }

/* ---- pravi sajt: dopune ---- */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a.chip { text-decoration: none; display: inline-block; }
.brand { color: var(--fg); }
.ssr { color: var(--fg-2); padding: 24px 20px; max-width: 1240px; margin: 0 auto; }
.js .ssr, .js #app > h1 { display: none; }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: var(--r); }
@keyframes skel { to { background-position: -200% 0; } }
.loading { padding-block: 28px 56px; display: grid; gap: 16px; }
.loading .skel.h { height: 120px; } .loading .skel.r { height: 260px; }
.err { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 28px; text-align: center; color: var(--fg-2); margin-top: 28px; }
.gch { text-decoration: none; color: inherit; }
.logo-tile { text-decoration: none; color: inherit; }
.row .time small.d { font-size: 10px; }
.ch-head h1 { font-size: 34px; font-weight: 800; }
.day-chips { margin-bottom: 4px; }
.pc .media img.broken, .row .thumb img.broken, .gthumb.broken, .modal .hero-img img.broken { display: none; }
.form textarea { min-height: 96px; resize: vertical; }
.form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .err-msg { background: color-mix(in oklab, var(--film) 16%, var(--surface)); border: 1px solid var(--film); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* reklame: popunjena mesta */
.ad.filled { border: 0; background: var(--surface-2); color: inherit; }
.ad.filled::before { z-index: 1; background: rgba(4, 10, 26, .55); color: #dfe8ff; padding: 1px 5px; border-radius: 4px; top: 4px; left: 4px; font-size: 9px; }
.ad.filled > a, .ad.filled > picture, .ad.filled > .ad-code { display: block; width: 100%; height: 100%; }
.ad.filled picture, .ad.filled img { display: block; width: 100%; height: 100%; }
.ad.filled img { object-fit: cover; }
.ad-card.filled img { object-fit: contain; }
.ad.filled iframe { display: block; width: 100%; height: 100%; border: 0; }
.ad.filled .ad-code { overflow: hidden; display: grid; place-items: center; }
.ad.ad-none, .anchor.ad-none { display: none !important; }
.ad.ad-skip { visibility: hidden; }
.anchor .ad.filled { aspect-ratio: 320 / 50; }
/* slika emisije preko loga kanala: ako slike nema ili se ne učita, ostaje logo */
.pc .media img.ph, .modal .hero-img img.ph { position: absolute; inset: 0; }
.modal .hero-img .badge-logo { z-index: 1; }
/* telefon: zaglavlje u dva reda, meni klizi vodoravno */
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .top .wrap { gap: 8px 10px; min-height: 0; padding-block: 8px; }
  .brand img { width: 32px; height: 32px; }
  .wm { font-size: 20px; }
  .tools { gap: 6px; }
  .search input { width: 128px; padding-block: 8px; }
  .iconbtn { width: 36px; height: 36px; }
  nav.main { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 12px; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .modal .hero-img { aspect-ratio: 16 / 9; }
}
/* reklame: kod fiksne veličine (iframe) centriran i po potrebi smanjen */
.ad.filled .ad-code { width: 100%; height: 100%; }
.ad-fit { flex: none; }
.ad-fit iframe { display: block; border: 0; }
.ad-card.filled { display: grid; place-items: center; }
.rail > .ad-card { justify-self: center; }

/* ---- SEO stranice: linkovi u naslovima, utakmice, emisije ---- */
article.pc, article.row { font: inherit; color: inherit; }
.pc .title a, .row h3 a { text-decoration: none; color: inherit; }
.pc .title a:hover, .row h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 2px; }
.crumbs a { color: var(--accent-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.day-h { font-size: 18px; margin: 26px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.day-h span { font: 500 13px var(--f-mono); color: var(--muted); }
.comp-chips { margin: 4px 0 6px; }
.mlist, .alist { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 220px) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px 10px 10px; text-decoration: none; color: inherit; }
.mrow:hover { border-color: var(--line-2); }
.mrow.now { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.mrow.past { opacity: .6; }
.mrow .time { font: 600 17px var(--f-mono); text-align: center; }
.mrow .time small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mrow .teams { display: grid; gap: 2px; min-width: 0; }
.mrow .teams b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mmeta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); min-width: 0; }
.mrow .mmeta span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mch { display: flex; gap: 4px; }
.mlogo { width: 44px; height: 28px; border-radius: 6px; display: grid; place-items: center; }
.mlogo img { max-width: 36px; max-height: 20px; object-fit: contain; }
.mlogo.ini { font-size: 10px; }
.match-head { margin: 10px 0 6px; }
.match-head h1 { font-size: clamp(28px, 4.4vw, 50px); font-weight: 800; line-height: 1.05; }
.match-head h1 span { color: var(--muted); }
.match-when { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; color: var(--fg-2); }
.match-when .mono { font-size: 26px; font-weight: 600; color: var(--fg); }
.tag { font: 600 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 14px 8px 8px; text-decoration: none; color: inherit; }
.arow:hover { border-color: var(--line-2); }
.arow.now { border-color: var(--accent); }
.arow.past { opacity: .6; }
.arow .lgbox { width: 64px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.arow .lgbox img { max-width: 52px; max-height: 28px; object-fit: contain; }
.arow b { display: block; font-size: 15px; }
.arow span { font-size: 13px; color: var(--muted); }
.show-head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px; align-items: start; margin: 12px 0 8px; }
.show-img { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.show-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-ph { font: 800 42px var(--f-display); color: var(--muted); }
.show-info h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.05; margin: 4px 0 10px; }
.show-info p { color: var(--fg-2); max-width: 70ch; }
.show-next { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; color: var(--fg-2); }
.show-next a { color: var(--accent-2); }
.sim { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sim-c { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.sim-i { aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--surface-2); display: block; }
.sim-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim-c b { font-size: 14px; line-height: 1.25; }
.sim-c small { color: var(--muted); font-size: 12px; }
.modal .more { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.modal .more:hover { text-decoration: underline; }
.note-past { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.sport-sec h2 a { text-decoration: none; color: inherit; }
.sport-sec h2 a:hover { text-decoration: underline; }
/* traka za pristanak na kolačiće */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 65; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ck p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--fg-2); }
.ck-b { display: flex; gap: 8px; align-items: center; }
.ck .cta { padding: 9px 18px; }
@media (max-width: 760px) {
  .mrow { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .mrow .mmeta { display: none; }
  .show-head { grid-template-columns: 1fr; }
  .ck { bottom: 80px; }
}

/* ---- magazin ---- */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.acard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s; }
.acard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.acard-i { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.acard-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-b { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.acard-b b { font-family: var(--f-display); font-size: 18px; line-height: 1.22; }
.acard-l { color: var(--fg-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-b small { color: var(--muted); font-size: 12px; }
.pager { justify-content: center; align-items: center; margin-top: 22px; gap: 14px; }
.art { max-width: 760px; }
.art h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.08; margin: 6px 0 10px; }
.art-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.art-lead { font-size: 19px; line-height: 1.5; color: var(--fg); margin: 16px 0; font-weight: 500; }
.art-img { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.art-img img { width: 100%; height: auto; display: block; }
.prose { font-size: 17px; line-height: 1.7; color: var(--fg); }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 23px; margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose a { color: var(--accent-2); }
.abox { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; margin: 22px 0; }
.abox-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.abox-h h2 { font-size: 18px; }
.abox-h a { color: var(--accent-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.art-tags { margin-top: 18px; }
@media (max-width: 760px) { .prose { font-size: 16.5px; } .art-lead { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .acard { transition: none; } .acard:hover { transform: none; } }

/* originalni naziv i slike u člancima */
.orig { color: var(--muted); font-style: italic; }
.prose figure { margin: 1.5em 0; }
.prose figure img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); background: var(--surface-2); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose figcaption a { color: var(--muted); }
.row .orig, .pc .orig { font-size: 13px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip .orig { font-size: 12px; }
/* zaglavlje filma: ORIGINALNI NAZIV, godina, zemlja, trajanje + žanrovi */
.show-sub { font-size: 15px; color: var(--fg-2); margin: -2px 0 10px; letter-spacing: .01em; }
.show-sub b { color: var(--fg); font-weight: 800; letter-spacing: .02em; }
.gchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.gchip { background: color-mix(in oklab, var(--film) 82%, #000); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.age { border: 1.5px solid var(--fg-2); color: var(--fg); font: 700 12px var(--f-mono); padding: 2px 7px; border-radius: 6px; }
.tag.pr { background: color-mix(in oklab, var(--serija) 22%, var(--surface)); color: var(--serija); border-color: var(--serija); }
/* TMDB: trejler, glumci, fotografije, striming, ocena */
.tagline { font-style: italic; color: var(--fg-2); margin: 0 0 10px; }
.tmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.rate { font: 700 15px var(--f-display); color: #f5c518; }
.rate small { font: 500 12px var(--f-body); color: var(--muted); }
.imdb { background: #f5c518; color: #000; font: 800 12px var(--f-body); padding: 3px 8px; border-radius: 5px; text-decoration: none; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; translate: -50% -50%; background: #e5294f; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 16px; border-left: 20px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt-t { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.yt.on iframe { width: 100%; height: 100%; border: 0; display: block; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cast-c { display: grid; gap: 4px; align-content: start; }
.cast-i { aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font: 700 18px var(--f-display); color: var(--muted); }
.cast-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-c b { font-size: 13.5px; line-height: 1.25; }
.cast-c small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { font-size: 12px; color: var(--muted); margin-top: 6px; }
.prov { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prov-i { width: 48px; height: 48px; border-radius: 11px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; text-align: center; }
.prov-i img { width: 100%; height: 100%; object-fit: cover; }
.prov-l { font-size: 13px; color: var(--muted); margin-left: 6px; }

/* Moji kanali (zvezdica) */
.fav { border: 0; background: none; cursor: pointer; font: 600 20px/1 var(--f-body); color: var(--muted); padding: 4px 6px; border-radius: 8px; }
.fav:hover { color: var(--star); background: var(--surface-2); }
.fav.on { color: var(--star); }
.fav.big { font-size: 14px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; color: var(--fg-2); margin-left: auto; align-self: center; white-space: nowrap; }
.fav.big.on { border-color: var(--star); color: var(--fg); }
.lt { position: relative; display: grid; }
.fav.corner { position: absolute; top: 4px; right: 4px; font-size: 18px; }
.chip.fav-chip { color: var(--star); }
.chip.fav-chip.on { background: var(--star); border-color: var(--star); color: #1b1300; }
.nav-fav .fav-n:empty { display: none; }
.nav-fav .fav-n { font-size: 11px; background: var(--star); color: #1b1300; border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.mine-ch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.mine-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mine-h a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.mine-h .lgbox { width: 64px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.mine-h .lgbox img { max-width: 80%; max-height: 28px; object-fit: contain; }
.mine-ch .more { font-size: 13px; font-weight: 600; }

/* Nalog: prijava, podsetnici, praćenje */
.acct { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.acct:hover, .acct.on { border-color: var(--accent); color: var(--fg); }
.bell, .follow { border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--f-body); padding: 7px 10px; white-space: nowrap; }
.bell { padding: 6px 8px; font-size: 15px; filter: grayscale(1); opacity: .75; }
.bell.big { font-size: 14px; padding: 8px 14px; }
.bell.on { filter: none; opacity: 1; border-color: var(--star); color: var(--fg); }
.bell:hover { filter: none; opacity: 1; }
.follow.on { border-color: var(--star); color: var(--fg); }
.follow.small-b { font-size: 12px; padding: 5px 9px; }
.arow-w { display: flex; align-items: center; gap: 8px; } .arow-w > .arow { flex: 1; min-width: 0; }
.login-m { width: min(460px, 100%); position: relative; } .login-m .mb { padding: 26px 22px 22px; }
.login-f { display: flex; gap: 8px; flex-wrap: wrap; } .login-f input { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: 15px var(--f-body); }
.login-f .fav.big { margin: 0; }
.sent { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.err-msg { color: var(--film); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.acct-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.acct-card h2 { font-size: 19px; } .acct-card .cnt { color: var(--muted); font: 500 14px var(--f-body); }
.acct-why { display: grid; gap: 10px; padding-left: 1.1em; color: var(--fg-2); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 8px; }
.acct-list { display: grid; gap: 6px; }
.acct-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.acct-row .small { grid-column: 2; } .acct-row a { color: var(--fg); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.acct-row:has(> a:first-child) { grid-template-columns: minmax(0, 1fr) auto; }
.row-b { display: flex; gap: 8px; flex-wrap: wrap; } .row-b .fav.big { margin: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); cursor: pointer; } .chk input { margin-top: 3px; accent-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.static-page { max-width: 760px; padding-top: 18px; } .static-page h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
@media (max-width: 760px) { .acct-wrap { grid-template-columns: 1fr; } .acct { padding: 6px 10px; } }
/* računar: pretraga je ikonica i širi se na klik (meni ostaje u jednom redu) */
@media (min-width: 761px) {
  .search { width: 38px; height: 38px; }
  .search input { position: absolute; right: 0; top: 0; height: 38px; width: 38px; max-width: none; padding: 0 36px 0 0; cursor: pointer; z-index: 2; transition: width .2s ease, padding .2s ease; }
  .search input::placeholder { color: transparent; }
  .search input::-webkit-search-cancel-button { display: none; }
  .search:focus-within input, .search input:not(:placeholder-shown) { width: 280px; padding-left: 16px; cursor: text; box-shadow: var(--shadow); }
  .search:focus-within input::placeholder { color: var(--muted); }
  .search svg { left: auto; right: 11px; z-index: 3; pointer-events: none; }
}

/* Moji kanali: dugme desno, pored teme */
.tools .nav-fav { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tools .nav-fav:hover, .tools .nav-fav.on { border-color: var(--star); color: var(--fg); }
.tools .nav-fav .nf-s { color: var(--star); }
@media (max-width: 760px) { .tools .nav-fav { height: 36px; padding: 0 11px; } .tools .nav-fav .nf-t { display: none; } }
/* EPG za IPTV: dugme u zaglavlju (na telefonu samo „EPG“), koraci i forma zahteva */
.tools .nav-epg { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); color: var(--fg); }
.tools .nav-epg:hover, .tools .nav-epg.on { border-color: var(--accent); }
.nav-epg .ne-s { display: none; }
@media (max-width: 760px) { .nav-epg .ne-l { display: none; } .nav-epg .ne-s { display: inline; } }
.epg-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 8px; color: var(--fg-2); font-size: 15px; }
.form fieldset.epg-pk { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.form fieldset.epg-pk legend { font-size: 13px; font-weight: 600; color: var(--fg-2); padding: 0 4px; }
.form label.chk { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--fg); }
.form label.chk input { margin-top: 3px; padding: 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.form label.chk small { margin-left: auto; color: var(--muted); font-weight: 400; white-space: nowrap; padding-left: 8px; }
.form label.consent { font-size: 13px; color: var(--fg-2); }
.form .epg-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.form input[type=file] { padding: 8px; min-width: 0; max-width: 100%; }

/* izbor zemlje i jezika (vidi se kad je javno više zemalja) */
.mk { position: relative; }
.mk-btn { height: 38px; width: 46px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; }
.mk-btn:hover, .mk.open .mk-btn { border-color: var(--line-2); }
.mk .flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .15); flex: none; }
.mk-menu { display: none; position: absolute; right: 0; top: 44px; z-index: 80; min-width: 170px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.mk.open .mk-menu { display: block; }
.mk-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mk-menu a:hover, .mk-menu a:focus-visible { background: var(--surface-2); }
.mk-menu a[aria-current] { color: var(--accent); }
.mk-offer { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 70; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); }
.mk-offer a { color: var(--fg); text-decoration: none; }
.mk-offer .x { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 6px; }
@media (max-width: 760px) { .mk-btn { width: 40px; } }
html[lang^="pt"] .ad::before { content: "PUBLICIDADE"; }
html[lang="it"] .ad::before { content: "PUBBLICITÀ"; }
html[lang^="es"] .ad::before { content: "PUBLICIDAD"; }
html[lang^="de"] .ad::before { content: "ANZEIGE"; }
