/* ============================================================
   Dziennik Lubiński — main.css
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans:  system-ui, -apple-system, sans-serif;
    --color-black:   #111;
    --color-mid:     #555;
    --color-muted:   #888;
    --color-border:  #ddd;
    --color-bg:      #fff;
    --color-bg-soft: #f5f5f3;
    --max-w: 1200px;
    --gutter: 24px;
}

html { font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background: var(--color-bg);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ── WRAPPER ── */
.dl-site { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── TICKER ── */
.dl-ticker {
    display: flex;
    align-items: center;
    background: var(--color-black);
    color: #fff;
    height: 34px;
    overflow: hidden;
    margin: 0 calc(-1 * var(--gutter));
}

.dl-ticker__label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 0 14px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.15);
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

.dl-ticker__track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.dl-ticker__inner {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: dl-ticker 30s linear infinite;
}

.dl-ticker__inner span {
    font-size: 12px;
    padding: 0 28px;
    opacity: .9;
}

.dl-ticker__inner span::before {
    content: "·";
    margin-right: 28px;
    opacity: .35;
}

.dl-ticker__inner span:first-child::before { display: none; }

@keyframes dl-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── HEADER ── */
.dl-header { padding: 16px 0 0; }

.dl-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: 12px;
}

.dl-header__meta {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.9;
}

.dl-header__meta--right { text-align: right; }

.dl-header__logo { text-align: center; }
.dl-header__logo a { text-decoration: none; }

.dl-header__logo-sub {
    display: block;
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.dl-header__logo-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--color-black);
}

.dl-header__rule {
    height: 3px;
    background: var(--color-black);
    margin: 10px 0 0;
}

.dl-header__rule-thin {
    height: 1px;
    background: var(--color-border);
    margin: 0 0 0;
}

/* ── NAV ── */
.dl-nav { display: flex; justify-content: center; border-bottom: 1px solid var(--color-border); }

.dl-nav__list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.dl-nav__list li a {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-mid);
    padding: 8px 14px;
    border-right: 1px solid var(--color-border);
    transition: color .15s;
}

.dl-nav__list li:first-child a { border-left: 1px solid var(--color-border); }
.dl-nav__list li a:hover { color: var(--color-black); text-decoration: none; }

/* ── HOMEPAGE ── */
.dl-homepage { margin-top: 20px; }

/* ── HERO WRAP ── */
.dl-hero-wrap {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

/* ── HERO ── */
.dl-hero {
    display: grid;
    grid-template-columns: 3fr 32px 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 0;
    padding-right: 20px;
    border-right: 1px solid var(--color-border);
}

/* Rotator wypełnia całą lewą kolumnę */
#dl-rotator {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#dl-rotator canvas {
    flex: 1;
    width: 100%;
    height: 100% !important;
    aspect-ratio: unset !important;
}

.dl-hero__main { padding-right: 20px; }

.dl-hero__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--color-bg-soft);
}

.dl-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.dl-hero__tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 2px solid var(--color-black);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 8px;
}

.dl-hero__title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.dl-hero__title a:hover { text-decoration: underline; }

.dl-hero__lead {
    font-size: 13px;
    color: var(--color-mid);
    line-height: 1.65;
    margin-bottom: 12px;
}

.dl-hero__byline {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dl-hero__divider { display: flex; justify-content: center; }
.dl-hero__divider::after { content: ""; display: block; width: 1px; background: var(--color-border); height: 100%; }

.dl-hero__side {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
    height: 100%;
}

.dl-hero__side-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.dl-hero__side-item:last-child { border-bottom: none; }
.dl-hero__side-item:first-child { padding-top: 0; }

.dl-hero__side-img {
    overflow: hidden;
    margin-bottom: 6px;
    background: var(--color-bg-soft);
    flex-shrink: 0;
    height: 90px;
}

.dl-hero__side-img img { width: 100%; height: 100%; object-fit: cover; }

.dl-hero__side-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.dl-hero__side-title {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dl-hero__side-title a:hover { text-decoration: underline; }

.dl-hero__side-time {
    font-size: 10px;
    color: var(--color-muted);
    margin-top: 5px;
}

/* ── X SIDEBAR ── */
.dl-x-col { padding-left: 16px; }

.dl-x-col__head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-black);
    margin-bottom: 10px;
}

.dl-x-col__head span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.dl-x-post {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.dl-x-post:last-child { border-bottom: none; }

.dl-x-post__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.dl-x-post__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
}

.dl-x-post__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-mid);
}

.dl-x-post__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dl-x-post__name {
    font-size: 11px;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.dl-x-post__handle {
    font-size: 10px;
    color: var(--color-muted);
    display: block;
}

.dl-x-post__icon { margin-left: auto; opacity: .3; flex-shrink: 0; }

.dl-x-post__body {
    font-size: 11px;
    line-height: 1.55;
    color: var(--color-black);
}

.dl-x-post__body a { color: #1a6db5; }

.dl-x-post__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--color-muted);
}

.dl-x-post__footer a { color: #1a6db5; }

/* ── RIBBON ── */
.dl-ribbon {
    display: flex;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.dl-ribbon__item {
    flex: 1;
    padding: 12px 14px;
    border-right: 1px solid var(--color-border);
}

.dl-ribbon__item:last-child { border-right: none; }

.dl-ribbon__num {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 4px;
}

.dl-ribbon__title {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.dl-ribbon__title a:hover { text-decoration: underline; }

.dl-ribbon__cat {
    font-size: 10px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
}

/* ── MOZAIKA ── */
.dl-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.dl-mosaic__item {
    padding: 14px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.dl-mosaic__item:nth-child(3n) { border-right: none; }
.dl-mosaic__item:nth-last-child(-n+3) { border-bottom: none; }
.dl-mosaic__item--wide { grid-column: span 2; }

.dl-mosaic__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--color-bg-soft);
}

.dl-mosaic__item--wide .dl-mosaic__img { aspect-ratio: 21 / 9; }
.dl-mosaic__img img { width: 100%; height: 100%; object-fit: cover; }

.dl-mosaic__tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-muted);
    margin-bottom: 5px;
}

.dl-mosaic__title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.dl-mosaic__title a:hover { text-decoration: underline; }

.dl-mosaic__lead {
    font-size: 12px;
    color: var(--color-mid);
    line-height: 1.55;
}

.dl-mosaic__time {
    font-size: 10px;
    color: var(--color-muted);
    margin-top: 6px;
}

/* ── OPINIE ── */
.dl-opinions { margin-bottom: 40px; }

.dl-section-head {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 2px solid var(--color-black);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 14px;
}

.dl-opinions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dl-opinion__author {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-mid);
    margin-bottom: 4px;
}

.dl-opinion__title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.dl-opinion__title a:hover { text-decoration: underline; }

.dl-opinion__excerpt {
    font-size: 12px;
    color: var(--color-mid);
    line-height: 1.55;
    font-style: italic;
}

/* ── SINGLE ── */
.dl-single {
    max-width: 760px;
    margin: 32px auto;
    padding: 0 var(--gutter);
}

.dl-single__cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-bottom: 2px solid var(--color-black);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 14px;
}

.dl-single__title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin-bottom: 14px;
}

.dl-single__meta {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
}

.dl-single__meta span + span::before { content: " · "; }

.dl-single__hero-img {
    margin-bottom: 24px;
    overflow: hidden;
}

.dl-single__hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.dl-single__hero-img figcaption {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 6px;
    font-style: italic;
}

.dl-single__body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-black);
}

.dl-single__body p { margin-bottom: 1.4em; }
.dl-single__body h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.dl-single__body h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.dl-single__body a { color: #1a6db5; text-decoration: underline; }
.dl-single__body blockquote {
    border-left: 3px solid var(--color-black);
    padding-left: 20px;
    margin: 1.6em 0;
    font-style: italic;
    color: var(--color-mid);
}

.dl-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.dl-tag {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-mid);
    transition: border-color .15s;
}

.dl-tag:hover { border-color: var(--color-black); color: var(--color-black); text-decoration: none; }

/* ── ARCHIVE ── */
.dl-archive { margin: 32px 0; }

.dl-archive__header {
    border-bottom: 3px solid var(--color-black);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.dl-archive__title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
}

.dl-archive__desc { font-size: 14px; color: var(--color-mid); margin-top: 6px; }

.dl-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dl-archive__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--color-bg-soft);
}

.dl-archive__img img { width: 100%; height: 100%; object-fit: cover; }

.dl-archive__tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.dl-archive__item-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.dl-archive__item-title a:hover { text-decoration: underline; }

.dl-archive__excerpt { font-size: 13px; color: var(--color-mid); line-height: 1.55; }

.dl-archive__meta { font-size: 11px; color: var(--color-muted); margin-top: 8px; }

/* ── PAGINATION ── */
.dl-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.dl-pagination .page-numbers {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    color: var(--color-mid);
}
.dl-pagination .current { background: var(--color-black); color: #fff; border-color: var(--color-black); }

/* ── FOOTER ── */
.dl-footer {
    border-top: 3px solid var(--color-black);
    padding: 28px 0 40px;
    margin-top: 40px;
    text-align: center;
}

.dl-footer__logo-sub {
    display: block;
    font-family: var(--font-serif);
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.dl-footer__logo-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.dl-footer__copy { font-size: 12px; color: var(--color-muted); margin-bottom: 12px; }

.dl-footer__nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.dl-footer__nav a { font-size: 11px; color: var(--color-mid); text-transform: uppercase; letter-spacing: .06em; }
.dl-footer__nav a:hover { color: var(--color-black); }

/* ── RESPONSIVE ── */
@media ( max-width: 900px ) {
    .dl-hero-wrap { grid-template-columns: 1fr; }
    .dl-x-col { padding-left: 0; border-top: 1px solid var(--color-border); padding-top: 16px; margin-top: 16px; }
    .dl-hero { grid-template-columns: 1fr; gap: 16px; padding-right: 0; border-right: none; }
    .dl-hero__divider { display: none; }
    .dl-hero__side { flex-direction: row; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
    .dl-mosaic { grid-template-columns: 1fr 1fr; }
    .dl-mosaic__item--wide { grid-column: span 2; }
    .dl-opinions__grid { grid-template-columns: 1fr 1fr; }
    .dl-archive__grid { grid-template-columns: 1fr 1fr; }
}

@media ( max-width: 600px ) {
    .dl-header__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .dl-header__meta { display: none; }
    .dl-header__logo-main { font-size: 36px; }
    .dl-header__logo { width: 100%; text-align: center; padding: 0 16px; }
    .dl-header__logo-img { width: 100% !important; max-width: 280px !important; height: auto !important; }
    .dl-nav__list { flex-wrap: wrap; justify-content: center; }
    .dl-ribbon { flex-wrap: wrap; }
    .dl-ribbon__item { flex: 0 0 50%; border-bottom: 1px solid var(--color-border); }
    .dl-mosaic { grid-template-columns: 1fr; }
    .dl-mosaic__item--wide { grid-column: span 1; }
    .dl-mosaic__item--wide .dl-mosaic__img { aspect-ratio: 16/9; }
    .dl-opinions__grid { grid-template-columns: 1fr; }
    .dl-archive__grid { grid-template-columns: 1fr; }
    .dl-hero__side { flex-direction: column; }
    .dl-single__title { font-size: 26px; }
    .dl-single__body { font-size: 16px; }
}

/* ── ROTATOR ── */
.dl-rotator {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-soft, #f5f5f3);
}

.dl-rotator__slide {
    display: none;
    flex-direction: column;
}

.dl-rotator__slide.is-active {
    display: flex;
}

.dl-rotator__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e0e0e0;
}

.dl-rotator__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dl-rotator__slide.is-active .dl-rotator__img img {
    animation: dl-zoom-in .6s ease forwards;
}

@keyframes dl-zoom-in {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

.dl-rotator__body {
    padding: 14px 0 4px;
}

.dl-rotator__tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 2px solid var(--color-black, #111);
    display: inline-block;
    padding-bottom: 2px;
    margin-bottom: 8px;
}

.dl-rotator__title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 8px;
}

.dl-rotator__title a:hover { text-decoration: underline; }

.dl-rotator__lead {
    font-size: 13px;
    color: var(--color-mid, #555);
    line-height: 1.65;
    margin-bottom: 10px;
}

.dl-rotator__byline {
    font-size: 11px;
    color: var(--color-muted, #888);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Strzałki */
.dl-rotator__btn {
    position: absolute;
    top: calc(50% - 40px);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    transition: background .15s, transform .15s;
    z-index: 10;
    padding: 0;
}

.dl-rotator__btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.dl-rotator__btn--prev { left: 8px; }
.dl-rotator__btn--next { right: 8px; }

/* Kropki */
.dl-rotator__dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 10px 0 2px;
}

.dl-rotator__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}

.dl-rotator__dot.is-active {
    background: #111;
    transform: scale(1.3);
}

/* Responsywność rotatora */
@media ( max-width: 900px ) {
    .dl-rotator__btn { display: none; }
    .dl-rotator__title { font-size: 18px; }
}

/* ── SEPARATOR slider / boczne ── */
.dl-hero__divider {
    width: 1px;
    background: var(--color-border, #ddd);
    margin: 0 20px;
    flex-shrink: 0;
}

/* ── ROTATOR PROGRESS BAR ── */
.dl-rotator__progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: rgba(255,255,255,.55);
    z-index: 20;
    transition: none;
}
.dl-rotator__progress.running {
    width: 100%;
    transition: width 5s linear;
}

/* ── ROTATOR wrapper — canvas + mini lista pod nim ── */
.dl-rotator {
    display: flex;
    flex-direction: column;
}

.dl-rotator canvas {
    display: block;
    width: 100%;
}

/* Mini lista newsów pod canvasem */
.dl-rotator__mini-list {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-top: none;
    display: flex;
    flex-direction: column;
}

.dl-rotator__mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background .15s;
}

.dl-rotator__mini-item:last-child { border-bottom: none; }
.dl-rotator__mini-item:hover { background: #eeecea; }
.dl-rotator__mini-item.is-active { background: #e8e5e0; }

.dl-rotator__mini-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-border);
    min-width: 20px;
    font-variant-numeric: tabular-nums;
}

.dl-rotator__mini-item.is-active .dl-rotator__mini-num {
    color: var(--color-black);
}

.dl-rotator__mini-title {
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
    flex: 1;
}

.dl-rotator__mini-cat {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-muted);
    white-space: nowrap;
}

/* ════════════════════════════════
   NOWOCZESNY SLIDER
   ════════════════════════════════ */

/* Wrapper hero — slider + X sidebar */
.dl-hero-wrap {
    display: grid;
    grid-template-columns: 1fr 220px;
    grid-template-rows: auto auto;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

/* Slider zajmuje całą lewą kolumnę (oba wiersze) */
#dl-nslider {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

/* Pasek nawigacji pod sliderem */
.dl-nslider__nav {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    background: #0d0d0d;
    border-top: none;
}

/* X sidebar — prawa kolumna obie wiersze */
.dl-x-col {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
}

/* ── Slajdy ── */
.dl-nslider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}
.dl-nslider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.dl-nslider__bg {
    position: absolute;
    inset: -4%;
    background-size: cover;
    background-position: center;
    background-color: #1a2a3a;
    transition: transform 7s ease;
}
.dl-nslider__slide.is-active .dl-nslider__bg {
    transform: scale(1.05);
}

.dl-nslider__dim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
}

/* Topbar */
.dl-nslider__topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
}
.dl-nslider__cat {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #fff;
    border-left: 3px solid #fff;
    padding-left: 8px;
}
.dl-nslider__time {
    font-family: var(--font-sans);
    font-size: 10px;
    color: rgba(255,255,255,.45);
}

/* Body */
.dl-nslider__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 22px 20px;
    z-index: 5;
    background: linear-gradient(transparent, rgba(0,0,0,.78) 40%);
}
.dl-nslider__title {
    font-family: var(--font-serif);
    font-size: clamp(16px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 8px;
}
.dl-nslider__title a { color: inherit; }
.dl-nslider__title a:hover { text-decoration: underline; }

.dl-nslider__lead {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 80%;
}
.dl-nslider__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.55);
    padding: 6px 14px;
    background: rgba(255,255,255,.08);
    transition: background .2s, border-color .2s;
}
.dl-nslider__link:hover {
    background: rgba(255,255,255,.2);
    border-color: #fff;
    text-decoration: none;
}

/* Strzałki */
.dl-nslider__arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    z-index: 10;
    transition: background .15s, transform .15s;
}
.dl-nslider__arr:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.dl-nslider__arr--prev { left: 12px; }
.dl-nslider__arr--next { right: 12px; }

/* ── Pasek nawigacji ── */
.dl-nslider__thumb {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    cursor: pointer;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    transition: background .15s;
    position: relative;
    overflow: hidden;
}
.dl-nslider__thumb:last-child { border-right: none; }
.dl-nslider__thumb:hover { background: #181818; }
.dl-nslider__thumb.is-active { background: #1e1e1e; }

.dl-nslider__thumb.is-active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: #fff;
    transform-origin: left;
    animation: nslider-progress 5s linear forwards;
}
@keyframes nslider-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.dl-nslider__thumb-cat {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.3);
}
.dl-nslider__thumb.is-active .dl-nslider__thumb-cat { color: rgba(255,255,255,.6); }

.dl-nslider__thumb-title {
    font-family: var(--font-serif);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dl-nslider__thumb.is-active .dl-nslider__thumb-title { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .dl-hero-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    #dl-nslider { grid-column: 1; grid-row: 1; }
    .dl-nslider__nav { grid-column: 1; grid-row: 2; }
    .dl-x-col {
        grid-column: 1;
        grid-row: 3;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: 16px;
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .dl-nslider__nav { display: none; }
    .dl-nslider__lead { display: none; }
}

/* ════════════════════════════════
   BREAKING NEWS BANNER
   ════════════════════════════════ */
.dl-breaking {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #c0392b;
    color: #fff;
    padding: 0 var(--gutter);
    height: 38px;
    margin: 0 calc(-1 * var(--gutter));
    position: relative;
    overflow: hidden;
}

.dl-breaking__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: dl-pulse 1.2s ease-in-out infinite;
}

@keyframes dl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

.dl-breaking__label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    flex-shrink: 0;
    background: rgba(0,0,0,.2);
    padding: 3px 8px;
    border-radius: 2px;
}

.dl-breaking__text {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-breaking__text:hover { text-decoration: underline; }

.dl-breaking__close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color .15s;
}
.dl-breaking__close:hover { color: #fff; }

/* ════════════════════════════════
   TICKER WRAP + LICZNIK ONLINE
   ════════════════════════════════ */
.dl-ticker-wrap {
    display: flex;
    align-items: center;
    background: var(--color-black);
}

.dl-readers {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 34px;
    border-right: 1px solid rgba(255,255,255,.12);
    flex-shrink: 0;
}

.dl-readers__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    animation: dl-pulse 2s ease-in-out infinite;
}

.dl-readers__num {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    min-width: 28px;
    transition: opacity .3s;
}

.dl-readers__label {
    font-family: var(--font-sans);
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Ticker teraz wewnątrz wrappera */
.dl-ticker-wrap .dl-ticker {
    flex: 1;
    margin: 0;
}

/* ════════════════════════════════
   CO NA WEEKEND
   ════════════════════════════════ */
.dl-weekend {
    margin-bottom: 28px;
    padding: 20px;
    background: #f9f7f2;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-black);
}

.dl-weekend__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.dl-weekend__icon {
    color: var(--color-black);
    flex-shrink: 0;
}

.dl-weekend__title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-black);
}

.dl-weekend__sub {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-muted);
    margin-left: auto;
}

.dl-weekend__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dl-weekend__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--color-bg-soft);
}
.dl-weekend__img img { width: 100%; height: 100%; object-fit: cover; }
.dl-weekend__img:hover img { transform: scale(1.03); transition: transform .3s; }

.dl-weekend__cat {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.dl-weekend__item-title {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
    margin-bottom: 5px;
}
.dl-weekend__item-title a:hover { text-decoration: underline; }

.dl-weekend__meta {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--color-muted);
}

@media (max-width: 700px) {
    .dl-weekend__grid { grid-template-columns: 1fr 1fr; }
    .dl-weekend__sub  { display: none; }
}
@media (max-width: 420px) {
    .dl-weekend__grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════
   KGHM / GPW PASEK NOTOWAŃ
   ════════════════════════════════ */
.dl-kghm {
    margin-bottom: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-black);
}

.dl-kghm__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

.dl-kghm__logo {
    background: var(--color-black);
    padding: 3px 8px;
    flex-shrink: 0;
}

.dl-kghm__logo-text {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #fff;
}

.dl-kghm__title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-black);
}

.dl-kghm__updated {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--color-muted);
    margin-left: auto;
}

.dl-kghm__ticker-wrap {
    padding: 0;
    min-height: 46px;
}

.dl-kghm__ticker-wrap .tradingview-widget-container {
    height: 46px;
}

    .dl-kghm__disclaimer { display: none; }
}

/* ── LOGO GRAFICZNE ── */
.dl-header__logo-img {
    height: auto !important;
    width: 180px !important;
    max-width: 180px !important;
    display: block;
}

@media (max-width: 600px) {
    .dl-header__logo-img { width: 120px !important; }
}
