/* eurobasket.lt v2 — "02 / Editorial" design */
:root {
  --orange: #c8641c;
  --orange-d: #a95112;
  --ink: #1a1a1a;
  --text: #333;
  --muted: #777;
  --line: #dcdcdc;
  --dark: #3a3a3a;
  --blue: #4a2fd1;
  --red: #d92c1c;
  --bg: #fff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- header (dark bar, white logo) ---------- */
.site-header { background: var(--dark); padding: 0; }
.header-in { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.logo { flex: 0 0 auto; display: flex; align-items: center; padding: 0; }
.logo img { height: 44px; width: auto; display: block; }
.main-nav { flex: 1; display: flex; align-items: stretch; align-self: stretch; }
.main-nav ul { display: flex; width: 100%; align-items: stretch; justify-content: center; }
.main-nav li { display: flex; }
.main-nav a { display: flex; align-items: center; padding: 0 9px; min-height: 60px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { background: #4b4b4b; color: #fff; }
.main-nav a.on { background: var(--orange); color: #fff; }
.nav-toggle { display: none; }
.hd-user { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.login-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; padding: 0 16px; height: 40px; border-radius: 3px; }
.login-btn:hover { background: var(--orange-d); color: #fff; }
.login-btn svg { flex: 0 0 auto; }
.out-d { margin: 0; }
.out-d button { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #ddd; border: 1px solid #666; border-radius: 3px; width: 40px; height: 40px; padding: 0; cursor: pointer; }
.out-d button:hover { color: #fff; border-color: #aaa; }

/* ---------- layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 14px; padding-bottom: 46px; align-items: start; }
.page-title { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 8px 0 22px; padding-bottom: 12px; position: relative; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100px; height: 3px; background: var(--orange); }

/* ---------- cards ---------- */
.kicker { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--orange); }
.kicker a:hover { text-decoration: underline; }
.thumb { position: relative; display: block; overflow: hidden; background: #eee; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: block; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, #e9e5e0, #d8d2cb); }
.play { position: absolute; left: 10px; bottom: 10px; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.45); }
.play::after { content: ""; position: absolute; left: 9px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.meta { margin: 8px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.meta .sep { color: #bbb; }
.cm { display: inline-flex; align-items: center; gap: 5px; }
.ico-cm { width: 13px; height: 11px; border: 1.5px solid var(--muted); border-radius: 3px; position: relative; display: inline-block; }
.ico-cm::after { content: ""; position: absolute; left: 2px; bottom: -5px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-block; background: #d27a2a; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 12px; border-radius: 14px; }
.pill:hover { color: #fff; filter: brightness(1.08); }
.pill-red { background: var(--red); }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.card-hero { padding-bottom: 18px; border-bottom: 2px solid var(--orange); }
.card-hero .thumb { aspect-ratio: 1.55; }
.card-hero h2 { font-size: 24px; font-weight: 800; letter-spacing: -.2px; }

.card-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-row .thumb { aspect-ratio: 1.75; align-self: start; }
.card-row .kicker { margin-top: 0; font-size: 11px; }
.card-row h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.card-row .lead { margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: #444; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.section-video { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.section-title { font-size: 30px; font-weight: 800; text-transform: uppercase; margin: 6px 0 18px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-bottom: 26px; }
.card-small { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.card-small .thumb { aspect-ratio: 1.8; }
.card-small h3 { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-small .pills { margin-top: 8px; gap: 6px; }
.card-small .pill { font-size: 11px; padding: 5px 9px; }

.more { display: flex; justify-content: center; margin: 20px 0 0; }
.btn { display: inline-block; font: 600 14px/1 var(--font); padding: 12px 20px; border-radius: 3px; border: 0; cursor: pointer; text-align: center; }
.btn-dark { background: #2b2b2b; color: #fff; }
.btn-dark:hover { background: var(--orange); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); color: #fff; }
.btn-light { background: #f0f0f0; color: #333; border: 1px solid #ddd; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-danger { background: #b3261e; color: #fff; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 0; font-size: 14px; }
.pager a, .pager .cur, .pager .gap { min-width: 36px; padding: 8px 10px; text-align: center; border: 1px solid var(--line); border-radius: 3px; }
.pager .cur { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.pager .gap { border: 0; }
.pager a:hover { border-color: var(--orange); }

/* ---------- sidebar ---------- */
.side-col { display: grid; gap: 24px; }
.banner-statymai { display: block; }
.banner-statymai img { width: 100%; height: auto; }
.banner-statymai span { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.5; }
.banner-statymai b { color: #f29b3c; }
.banner-statymai:hover { color: #fff; filter: brightness(1.08); }
.box-h { background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 9px 14px; }
.box-b { border: 1px solid #e6e6e6; border-top: 0; padding: 14px; font-size: 13px; }
.box-links { display: flex; gap: 14px; align-items: center; }
.box-links span { color: #aaa; }
.tabs { display: flex; margin-bottom: 12px; }
.tab { padding: 9px 16px; font-size: 13px; font-weight: 600; border-radius: 3px 3px 0 0; }
.tab.on { background: #f1f1f1; }
.form-stack label, .form label { display: block; font-size: 13px; margin: 10px 0 4px; color: #333; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 9px 10px; border: 1px solid #d5d5d5; border-radius: 3px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form-stack .btn { margin-top: 14px; }
.small-link { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.hello { margin: 0 0 8px; }
.plain li { margin: 5px 0; }
.plain a { color: var(--orange); font-weight: 600; }
.inline-form { margin-top: 12px; }
.fb-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fb-av { width: 48px; height: 48px; border: 1px solid #ccc; background: #eee; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #555; }
.fb-name { color: #1a5bd8; font-size: 16px; font-weight: 600; }
.fb .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 22px 0; }
.footer-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fnav { display: flex; flex-wrap: wrap; gap: 8px 30px; flex: 1; font-size: 13px; font-weight: 600; }
.fnav a:hover { color: #f29b3c; }
.copy { margin: 0; font-size: 12px; color: #ddd; line-height: 1.5; }

/* ---------- article ---------- */
.crumbs { font-size: 12px; color: var(--muted); margin: 6px 0 14px; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; }
.article .meta { margin: 12px 0 16px; font-size: 13px; }
.media-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 0 0 18px; }
.media-row:empty { display: none; }
.article .hero-img { margin: 0; width: 410px; max-width: 100%; }
.article .hero-img img { width: 410px; max-width: 100%; height: auto; }
.article .video-wrap { width: 410px; max-width: 100%; aspect-ratio: 16 / 9; }
.article .video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose iframe, .prose .video-embed { max-width: 410px; }
.article figcaption, .credit { font-size: 12px; color: var(--muted); margin-top: 6px; }
.prose { font-size: 17px; line-height: 1.65; color: #222; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose a { color: var(--orange-d); text-decoration: underline; }
.prose img { margin: 1em auto; }
.prose iframe, .video-embed { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1em 0; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--orange); color: #444; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.video-wrap { margin: 0 0 20px; }
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.related { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 14px; }

.comments { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { padding: 14px 0; border-bottom: 1px solid #eee; }
.comment-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.comment-h strong { color: var(--ink); }
.comment-b { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; }
.comment-form textarea { min-height: 110px; }

/* ---------- forms / admin ---------- */
.form { max-width: 560px; }
.form-wide { max-width: none; }
.form .row { margin-bottom: 4px; }
.form .hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.notice { padding: 10px 14px; border-radius: 3px; margin: 0 0 16px; font-size: 14px; }
.notice-ok { background: #e7f4e8; color: #1b5e20; border: 1px solid #b7dfba; }
.notice-err { background: #fdecea; color: #8a1c14; border: 1px solid #f3b9b4; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.admin-toolbar h1 { font-size: 24px; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 8px; border-bottom: 1px solid #e4e4e4; vertical-align: middle; }
.admin-table th { background: #f4f4f4; font-weight: 700; white-space: nowrap; }
.admin-table img { width: 64px; height: 44px; object-fit: cover; }
.admin-table .num { text-align: right; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #eee; }
.badge-ok { background: #e7f4e8; color: #1b5e20; }
.badge-off { background: #fdecea; color: #8a1c14; }
.search-form { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check-list label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.check-list input { width: auto; }
.thumb-preview { max-width: 240px; margin-top: 8px; }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .banner-statymai { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .site-header { position: relative; }
  .header-in { min-height: 56px; gap: 12px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; background: transparent; border: 1px solid #666; border-radius: 3px; cursor: pointer; order: 1; }
  .nav-toggle span { display: block; height: 2px; background: #fff; }
  .logo { order: 2; }
  .logo img { height: 34px; }
  .hd-user { order: 3; margin-left: auto; }
  .login-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .login-btn span { display: none; }
  .out-d button { width: 42px; height: 42px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--dark); border-top: 1px solid #555; }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { min-height: 48px; padding: 0 18px; border-bottom: 1px solid #4a4a4a; width: 100%; }
  .page-title { font-size: 19px; }
  .hero-grid { grid-template-columns: 1fr; }
  .card-hero h2 { font-size: 21px; }
  .video-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 26px; }
  .prose { font-size: 16px; }
}
@media (max-width: 560px) {
  .card-row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .card-row .lead { display: none; }
  .card-row h3 { font-size: 15px; }
  .side-col { grid-template-columns: 1fr; }
  .fnav { border: 0; padding: 0; }
  .admin-table .hide-m { display: none; }
}
@media (prefers-reduced-motion: no-preference) { a, .btn, .pill { transition: background-color .15s, color .15s, filter .15s; } }

.latest-list li { padding: 5px 0; border-bottom: 1px solid #ececec; font-size: 13px; font-weight: 400; line-height: 1.3; }
.latest-list a { color: var(--text); }
.latest-list a:hover { color: var(--orange); }
.latest-list li:first-child { padding-top: 0; }
.latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }


/* ---------- ad slots ---------- */
.ad:empty { display: none; }
.ad-top, .ad-under-menu { text-align: center; max-width: 1020px; margin: 0 auto; overflow: hidden; }
.ad-side-top, .ad-side-bottom { overflow: hidden; }
.ad-article-media { width: 300px; max-width: 100%; }
.ad-article { margin: 0 0 16px; text-align: center; overflow: hidden; }

/* ---------- admin: old-style article form ---------- */
.btn-block { display: block; width: 100%; text-align: center; margin: 4px 0 12px; }
.admin-links li { padding: 4px 0; }
.hello { margin: 0 0 10px; }
.form-old { max-width: none; }
.form-old .frow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.form-old .frow > label { margin: 8px 0 0; font-size: 14px; color: #333; }
.form-old input[type=text], .form-old input[type=url], .form-old input[type=datetime-local], .form-old textarea { width: 100%; max-width: 640px; }
.form-old .fl { margin: 18px 0 6px; font-size: 14px; }
.form-old .req { color: #d92c1c; }
.form-old .check-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; }
.form-old .check-list label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.form-old .submit-row { text-align: center; margin-top: 18px; }
.btn-write { min-width: 160px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-d); cursor: pointer; }
.link-btn.danger { color: #c0291b; }
.link-btn:hover { text-decoration: underline; }
.inline-form { margin: 0; }
.thumb-preview { width: 160px; height: auto; margin: 8px 0; }
/* WYSIWYG */
.wys-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #f1f1f1; border: 1px solid #cfcfcf; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 6px; position: sticky; top: 0; z-index: 5; }
.wys-bar .grp { display: inline-flex; border: 1px solid #c9c9c9; border-radius: 3px; background: #fff; overflow: hidden; }
.wys-bar button { font: 600 14px var(--font); min-width: 34px; height: 32px; padding: 0 9px; border: 0; border-right: 1px solid #e3e3e3; background: #fff; cursor: pointer; }
.wys-bar button:last-child { border-right: 0; }
.wys-bar button:hover, .wys-bar button.on { background: #e9e9e9; }
.wys-area { min-height: 380px; border: 1px solid #cfcfcf; padding: 14px; background: #fff; font-size: 16px; line-height: 1.6; overflow: auto; }
.wys-area:focus { outline: 2px solid var(--orange); }
.wys-area img { max-width: 410px; height: auto; }
.wys-source { width: 100%; min-height: 380px; border: 1px solid #cfcfcf; padding: 12px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 700px) { .form-old .frow { grid-template-columns: 1fr; gap: 2px; } .form-old .frow > label { margin-top: 4px; } }
