/* =========================================================================
   SportPilot.top — nowoczesny portal sportowy (Bootstrap 5 + custom theme)
   Ładowany po Bootstrapie i bazowym style.css.
   ========================================================================= */

:root,
[data-bs-theme="dark"] {
    --bs-body-bg: #070b12;
    --bs-body-color: #edf3fa;
    --bs-border-color: #1d2b3c;
    --bs-primary: #c8ff3e;
    --bs-link-color: #7fb6ff;
    --bs-link-hover-color: #c8ff3e;

    --ink: #070b12;
    --ink-2: #0a111a;
    --panel: #0e1723;
    --panel-2: #132131;
    --panel-3: #18293c;
    --line: #1d2b3c;
    --line-2: #2b4057;
    --paper: #edf3fa;
    --paper-dim: #cbd8e7;
    --muted: #8ea3b9;
    --muted-2: #6c8198;
    --lime: #c8ff3e;
    --lime-dim: #a8df1f;
    --lime-ink: #0a0f00;
    --red: #ff5b4d;
    --blue: #6ba8ff;
    --amber: #ffc857;
    --gold: #ffc857;
    --free: #4ade80;
    --sport: var(--lime);
    --sport-soft: rgba(200, 255, 62, .1);
    --radius: 16px;
    --radius-sm: 10px;
    --serif: var(--font);
}

[data-sport="pilka-nozna"] { --sport: #c8ff3e; --sport-soft: rgba(200, 255, 62, .11); }
[data-sport="koszykowka"] { --sport: #ff9a5c; --sport-soft: rgba(255, 154, 92, .12); }
[data-sport="tenis"] { --sport: #ffd84d; --sport-soft: rgba(255, 216, 77, .12); }
[data-sport="f1"] { --sport: #ff5b4d; --sport-soft: rgba(255, 91, 77, .12); }
[data-sport="mma"] { --sport: #b991ff; --sport-soft: rgba(185, 145, 255, .12); }
[data-sport="zuzel"] { --sport: #5cd8ff; --sport-soft: rgba(92, 216, 255, .12); }

body {
    background:
        radial-gradient(1200px 600px at 50% -240px, rgba(84, 130, 255, .12), transparent 65%),
        radial-gradient(900px 500px at 100% 0, rgba(200, 255, 62, .05), transparent 70%),
        var(--ink);
    color: var(--paper);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: -.045em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2.1rem); line-height: 1.03; }
h3 { font-size: 1.08rem; line-height: 1.2; }

a {
    color: var(--blue);
}

a:hover {
    color: var(--lime);
}

.site-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Górny pasek ------------------------------------------------------------- */

.topline {
    background: #04070c;
    border-bottom: 1px solid var(--line);
    color: var(--muted-2);
    font-size: .66rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 32px;
}

.topline-date,
.topline-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    white-space: nowrap;
}

.topline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(200, 255, 62, .8);
}

.topline-link {
    color: var(--lime);
    font-weight: 800;
    text-decoration: none;
}

.topline-link:hover {
    color: var(--paper);
}

/* Navbar ------------------------------------------------------------------ */

.site-navbar {
    background: rgba(7, 11, 18, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    padding-block: .55rem;
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-right: 1.5rem;
    padding: 0;
    color: var(--paper);
}

.sport-brand .brand-badge {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 34px;
    background: var(--lime);
    color: var(--lime-ink);
    border-radius: 10px;
    font-family: var(--font);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    box-shadow: 0 8px 24px rgba(200, 255, 62, .22);
}

.brand-word {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-word span {
    color: var(--lime);
}

.site-navbar .navbar-toggler {
    border-color: var(--line-2);
    padding: .35rem .5rem;
}

.site-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(200, 255, 62, .18);
}

.site-navbar .navbar-nav {
    gap: .1rem;
}

.site-navbar .nav-link {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    padding: .5rem .7rem;
    border-radius: 9px;
    transition: color .15s ease, background .15s ease;
}

.site-navbar .nav-link:hover {
    color: var(--paper);
    background: var(--panel);
}

.site-navbar .nav-link.active {
    color: var(--lime-ink);
    background: var(--lime);
}

.site-navbar .nav-free {
    color: var(--free);
}

.site-navbar .nav-free.active {
    color: var(--lime-ink);
    background: var(--free);
}

.site-navbar .navbar-collapse {
    padding-block: .4rem;
}

/* Hero + slider ----------------------------------------------------------- */

.home-hero {
    margin-bottom: 2.4rem;
}

.home-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
}

.home-hero-head h1 {
    max-width: 20ch;
    margin-bottom: .6rem;
}

.home-hero-lead {
    max-width: 64ch;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero-counters {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}

.hero-counters > div {
    min-width: 92px;
    padding: .7rem .85rem;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
}

.hero-counters strong {
    display: block;
    color: var(--lime);
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}

.hero-counters span {
    display: block;
    margin-top: .25rem;
    color: var(--muted-2);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero-carousel {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.hero-slide {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    min-height: 360px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(80% 100% at 100% 0, var(--sport-soft), transparent 60%),
        linear-gradient(135deg, #101c2b 0%, #070b12 70%);
    overflow: hidden;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg, rgba(7, 11, 18, .95) 0%, rgba(7, 11, 18, .72) 36%, rgba(7, 11, 18, .18) 68%, rgba(7, 11, 18, .04) 100%),
        linear-gradient(0deg, rgba(7, 11, 18, .55) 0%, transparent 46%);
    pointer-events: none;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .74;
    filter: saturate(1.02) contrast(1.03);
}

.hero-slide-glow {
    position: absolute;
    right: -120px;
    top: -120px;
    z-index: 1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--sport);
    filter: blur(120px);
    opacity: .13;
    pointer-events: none;
}

.hero-slide-body {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-slide-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .8rem;
}

.hero-slide-meta {
    margin: 0 0 .45rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-slide h2 {
    max-width: 22ch;
    margin-bottom: .8rem;
    font-size: clamp(1.9rem, 4.4vw, 3.5rem);
    line-height: .98;
}

.hero-slide h2 a {
    color: var(--paper);
    text-decoration: none;
}

.hero-slide h2 a:hover {
    color: var(--lime);
}

.hero-slide-stations {
    margin-bottom: 1.2rem;
    color: var(--paper-dim);
    font-size: .86rem;
}

.hero-slide-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem;
}

.hero-slide-hint {
    color: var(--muted-2);
    font-size: .74rem;
    font-weight: 600;
}

.hero-slide-time {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 1.5rem;
    border-left: 1px solid var(--line-2);
    text-align: right;
}

.hero-slide-time strong {
    color: var(--lime);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.07em;
    font-variant-numeric: tabular-nums;
}

.hero-slide-time span {
    margin-top: .4rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.hero-carousel .carousel-indicators {
    margin-bottom: .9rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 26px;
    height: 4px;
    margin: 0 3px;
    border: 0;
    border-radius: 99px;
    background: var(--paper);
    opacity: .3;
}

.hero-carousel .carousel-indicators .active {
    background: var(--lime);
    opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 52px;
    opacity: .75;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* Sekcje ------------------------------------------------------------------ */

.portal-section,
.news-section {
    margin-top: 2.8rem;
}

.section-bar {
    border-bottom: 1px solid var(--line);
    padding-bottom: .8rem;
    margin-bottom: 1rem;
}

.section-bar h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.section-link {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.section-link:hover {
    color: var(--lime);
}

.kicker {
    color: var(--lime);
    font-family: var(--font);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.kicker-mark::before {
    background: var(--lime);
}

/* Filtry ------------------------------------------------------------------ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}

.filters {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .3rem;
}

.chip {
    padding: .42rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.chip:hover {
    color: var(--paper);
    border-color: var(--line-2);
}

.chip.is-active,
.chip[aria-pressed="true"] {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--lime-ink);
}

.filter-status {
    color: var(--muted-2);
    font-size: .72rem;
}

/* Terminarz --------------------------------------------------------------- */

.day-group {
    margin-top: 1.5rem;
}

.day-group:first-child {
    margin-top: 0;
}

.day-group-past .event-card {
    opacity: .68;
}

.day-group-past .event-card:hover {
    opacity: 1;
}

.today-note {
    margin: 0 0 1rem;
    padding: .7rem .9rem;
    border: 1px dashed var(--line-2);
    border-radius: 10px;
    color: var(--muted);
    font-size: .85rem;
}

.day-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .7rem;
}

.day-heading {
    margin: 0;
    color: var(--paper-dim);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.day-heading time {
    color: var(--paper);
}

.day-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding-inline: .4rem;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: .64rem;
    font-weight: 800;
}

.event-list {
    display: grid;
    gap: .65rem;
}

/* Karta wydarzenia -------------------------------------------------------- */

.event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
    padding: .95rem 1rem;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.event-card::before {
    left: 0;
    top: .9rem;
    bottom: .9rem;
    width: 3px;
    border-radius: 3px;
}

.event-card.is-free::before {
    background: var(--free);
}

.event-card:hover {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border-color: var(--line-2);
    transform: translateY(-1px);
}

.fixture-time {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.fixture-time time {
    color: var(--paper);
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}

.event-status {
    color: var(--muted-2);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.fixture-meta {
    gap: .45rem;
    margin-bottom: .3rem;
}

.tag {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.tag-sport {
    color: var(--sport);
}

.tag-league {
    color: var(--muted);
}

.event-title {
    margin-bottom: .35rem;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.event-title a {
    color: var(--paper);
}

.event-title a:hover {
    color: var(--lime);
}

.channel {
    color: var(--muted);
    font-size: .7rem;
}

.channel.is-confirmed {
    color: var(--paper-dim);
}

.channel.is-confirmed::before {
    background: var(--lime);
}

.channel.is-free-channel {
    color: var(--free);
}

.fixture-action .btn {
    min-height: 34px;
    padding: .38rem .7rem;
    font-size: .7rem;
}

/* Badge i przyciski ------------------------------------------------------- */

.badge {
    padding: .22rem .48rem;
    border-radius: 999px;
    font-size: .58rem;
    letter-spacing: .06em;
}

.badge-free {
    border-color: rgba(74, 222, 128, .45);
    background: rgba(74, 222, 128, .1);
    color: var(--free);
}

.badge-featured {
    border-color: rgba(255, 200, 87, .45);
    background: rgba(255, 200, 87, .1);
    color: var(--amber);
}

.badge-live {
    border-color: rgba(255, 91, 77, .5);
    background: rgba(255, 91, 77, .12);
    color: var(--red);
}

.badge-sport {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--sport);
}

.badge-sport .icon {
    width: 13px;
    height: 13px;
}

.btn {
    border-radius: 10px;
    font-weight: 800;
    font-size: .82rem;
}

.btn-primary {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--lime-ink);
}

.btn-primary:hover {
    background: #dcff7a;
    border-color: #dcff7a;
    color: var(--lime-ink);
}

.btn-outline {
    border-color: var(--line-2);
    color: var(--paper);
}

.btn-outline:hover {
    border-color: var(--lime);
    color: var(--lime);
    background: rgba(200, 255, 62, .06);
}

.btn-secondary {
    background: var(--panel-2);
    border-color: var(--line);
    color: var(--paper);
}

/* Sidebar ----------------------------------------------------------------- */

.portal-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.side-card {
    padding: 1.05rem;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 16px;
}

.side-card-head {
    margin-bottom: .8rem;
}

.side-card-head .kicker {
    margin-bottom: .2rem;
}

.side-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

.station-grid {
    display: grid;
    gap: .35rem;
}

.station-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .38rem .5rem;
    border: 1px solid var(--line);
    border-left: 2px solid var(--line-2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .02);
    font-size: .72rem;
}

.station-badge.is-free {
    border-left-color: var(--free);
}

.station-badge.is-confirmed {
    border-left-color: var(--lime);
}

.station-name {
    color: var(--paper-dim);
    font-weight: 700;
}

.station-badge.is-free .station-name {
    color: var(--free);
}

.station-confirmed {
    color: var(--lime);
}

.station-badge small {
    color: var(--muted-2);
    font-size: .56rem;
    text-transform: uppercase;
}

.side-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .75rem;
    color: var(--lime);
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.league-index {
    list-style: none;
    padding: 0;
    margin: 0;
}

.league-index li {
    border-top: 1px solid var(--line);
}

.league-index li:first-child {
    border-top: 0;
}

.league-index a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .48rem 0;
    color: var(--paper-dim);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.league-index a:hover {
    color: var(--lime);
}

.league-index small {
    color: var(--muted-2);
    font-size: .58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-card {
    border-color: rgba(255, 200, 87, .22);
    background:
        linear-gradient(180deg, rgba(255, 200, 87, .06), transparent 70%),
        var(--panel);
}

.legal-card h2 {
    font-size: 1rem;
}

.legal-card p {
    color: var(--muted);
    font-size: .8rem;
}

.legal-mini {
    color: var(--muted-2) !important;
    font-size: .66rem !important;
}

/* Darmowe / puste --------------------------------------------------------- */

.free-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1.2rem;
    padding: 1.15rem 1.25rem;
    background:
        radial-gradient(420px 160px at 100% 0, rgba(74, 222, 128, .16), transparent 70%),
        linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid rgba(74, 222, 128, .35);
    border-radius: 16px;
    color: var(--paper);
    text-decoration: none;
}

.free-banner:hover {
    border-color: var(--free);
    color: var(--paper);
}

.free-banner h3 {
    margin-bottom: .25rem;
    font-size: 1.15rem;
}

.free-banner p {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.free-banner strong {
    color: var(--free);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.free-banner > span {
    color: var(--free);
    font-size: 1.3rem;
}

.empty-state {
    padding: 2rem 1.2rem;
    background: var(--panel);
    border: 1px dashed var(--line-2);
    border-radius: 16px;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.empty-filter {
    border-color: var(--line-2);
    border-radius: 10px;
}

/* Newsy ------------------------------------------------------------------- */

.news-section {
    padding-top: .5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .18s ease, transform .18s ease;
}

.news-card:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
}

.news-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 100% 0, rgba(200, 255, 62, .25), transparent 60%),
        linear-gradient(135deg, #18293c, #0b1119);
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-media img {
    transform: scale(1.04);
}

.news-media-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 1rem;
    color: var(--lime);
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .9rem 1rem 1rem;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: var(--lime);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.news-meta time {
    color: var(--muted-2);
}

.news-body h3 {
    margin: 0;
    font-size: .98rem;
    line-height: 1.28;
    letter-spacing: -.02em;
}

.news-body h3 a {
    color: var(--paper);
    text-decoration: none;
}

.news-body h3 a:hover {
    color: var(--lime);
}

.news-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Newsy przy wydarzeniu ---------------------------------------------------- */

.event-news {
    margin-top: 1.8rem;
    margin-bottom: 2.4rem;
}

.event-news-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-news-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: .9rem;
    align-items: center;
    padding: .6rem;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .18s ease, transform .18s ease;
}

.event-news-item:hover {
    border-color: var(--line-2);
    transform: translateY(-1px);
}

.event-news-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background:
        radial-gradient(120% 120% at 100% 0, rgba(200, 255, 62, .25), transparent 60%),
        linear-gradient(135deg, #18293c, #0b1119);
}

.event-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.event-news-item:hover .event-news-media img {
    transform: scale(1.04);
}

.event-news-media .news-media-fallback {
    padding: .3rem;
    font-size: .62rem;
}

.event-news-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.event-news-body h3 {
    margin: 0;
    font-size: .95rem;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.event-news-body h3 a {
    color: var(--paper);
    text-decoration: none;
}

.event-news-body h3 a:hover {
    color: var(--lime);
}

@media (max-width: 560px) {
    .event-news-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }
}

/* Strony wewnętrzne ------------------------------------------------------- */

.page-masthead,
.league-masthead {
    padding: 1.2rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.6rem;
}

.page-masthead h1,
.league-masthead-copy h1 {
    max-width: 22ch;
}

.page-masthead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: 1rem;
    color: var(--muted-2);
    font-size: .66rem;
    text-transform: uppercase;
}

.page-masthead-meta strong {
    color: var(--lime);
    font-family: var(--font);
}

.league-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.league-emblem {
    width: 68px;
    height: 68px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    color: var(--lime);
    font-size: 1.2rem;
    font-weight: 900;
}

.league-stats {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.league-stats > div {
    padding: .65rem .8rem;
    border-left: 1px solid var(--line);
}

.league-stats > div:first-child {
    border-left: 0;
}

.league-stats strong {
    color: var(--lime);
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 900;
}

.league-stats span {
    color: var(--muted-2);
    font-size: .56rem;
}

.league-grid {
    gap: .65rem;
}

.league-card {
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.league-card:hover {
    background: var(--panel-2);
    border-color: var(--line-2);
}

.content-layout,
.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.aside-card,
.side-panel {
    padding: 1.05rem;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 16px;
}

.quick-panel {
    border-top: 1px solid var(--line);
}

.quick-facts li {
    border-top: 1px solid var(--line);
}

.quick-facts span {
    color: var(--muted-2);
}

.quick-facts strong {
    color: var(--paper-dim);
}

.broadcaster-side-list li {
    border-top: 1px solid var(--line);
}

.broadcaster-logo-mini {
    border-color: var(--line);
    background: rgba(255, 255, 255, .02);
}

/* Wydarzenie -------------------------------------------------------------- */

.event-detail-header {
    padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--line);
}

.event-header-copy h1 {
    max-width: 28ch;
}

.event-header-time {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 2px solid var(--sport);
    border-radius: 12px;
    padding: .7rem .9rem;
}

.event-header-time strong {
    color: var(--lime);
    font-family: var(--font);
    font-size: 1.9rem;
    font-weight: 900;
}

.event-facts {
    border-top: 1px solid var(--line);
}

.event-facts dt {
    color: var(--muted-2);
}

.event-facts dd {
    color: var(--paper-dim);
}

.station-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .7rem 0 0;
    margin-bottom: 1.2rem;
    border: 0;
}

.station-strip-label {
    color: var(--muted-2);
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.station-strip-items {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.station-strip .station-badge {
    border-radius: 8px;
}

.broadcast-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.broadcast-row.is-free {
    background: linear-gradient(90deg, rgba(74, 222, 128, .06), transparent 75%);
}

.broadcast-row.is-bookmaker {
    background: linear-gradient(90deg, rgba(107, 168, 255, .05), transparent 75%);
}

.broadcaster-logo {
    border-color: var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
}

.broadcast-channel {
    color: var(--paper-dim);
}

.confirm-badge {
    color: var(--lime);
}

.price-free {
    color: var(--free);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    padding: .8rem 0;
}

.faq-item summary::after {
    color: var(--lime);
}

.faq-item p {
    color: var(--muted);
    font-family: var(--font);
}

/* Program TV -------------------------------------------------------------- */

.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tv-station {
    padding: 1rem;
    background: linear-gradient(180deg, var(--panel), var(--ink-2));
    border: 1px solid var(--line);
    border-radius: 16px;
}

.tv-station-head {
    border-bottom: 1px solid var(--line);
}

.tv-station-head h2 {
    font-size: 1.15rem;
}

.tv-list li {
    border-bottom: 1px solid var(--line);
}

.tv-list time strong {
    color: var(--lime);
    font-family: var(--font);
    font-weight: 900;
}

.tv-list div a {
    color: var(--paper);
    font-family: var(--font);
    font-size: .86rem;
}

.tv-list div a:hover {
    color: var(--lime);
}

.tv-confirmed {
    color: var(--lime);
}

/* SEO i stopka ------------------------------------------------------------ */

.seo-copy {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font);
    font-size: .9rem;
    max-width: none;
}

.seo-copy h2 {
    color: var(--paper);
    font-size: 1.3rem;
}

.site-footer {
    margin-top: 4rem;
    background: #05090f;
    border-top: 1px solid var(--line);
}

.footer-main {
    padding-block: 2.5rem 1.5rem;
}

.footer-lockup {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .6rem;
    color: var(--paper);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-lockup .brand-badge {
    width: 36px;
    height: 30px;
    background: var(--lime);
    color: var(--lime-ink);
    border-radius: 8px;
}

.footer-lockup .brand-word span {
    color: var(--lime);
}

.footer-desc {
    max-width: 46ch;
    color: var(--muted);
    font-size: .82rem;
}

.footer-edition {
    color: var(--muted-2) !important;
    font-size: .64rem !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-heading {
    margin-bottom: .55rem;
    color: var(--paper-dim);
    font-family: var(--font);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .3rem;
}

.footer-links a {
    color: var(--muted);
    font-size: .8rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--lime);
}

.footer-bottom {
    padding-block: 1.1rem 1.5rem;
    border-top: 1px solid var(--line);
}

.legal-box {
    border-color: rgba(255, 200, 87, .22);
    border-left: 2px solid var(--amber);
    background: rgba(255, 200, 87, .04);
    color: #e3d6b8;
    border-radius: 8px;
}

.footer-copy {
    color: var(--muted-2);
}

/* Reklamy ----------------------------------------------------------------- */

.ad-slot {
    position: relative;
    margin: 1.6rem 0;
    padding: .55rem;
    min-height: 112px;
    background: rgba(255, 255, 255, .015);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ad-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--muted-2);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ad-slot .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 90px;
}

.ad-slot-horizontal {
    min-height: 132px;
}

.ad-slot-sidebar {
    min-height: 260px;
    margin: 0;
}

/* PWA --------------------------------------------------------------------- */

.pwa-install {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: .65rem;
    width: min(100% - 32px, 380px);
    padding: .7rem .8rem;
    background: rgba(14, 23, 35, .97);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
    backdrop-filter: blur(16px);
}

.pwa-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 32px;
    border-radius: 8px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.pwa-copy {
    min-width: 0;
    flex: 1;
}

.pwa-copy strong {
    display: block;
    color: var(--paper);
    font-size: .78rem;
    line-height: 1.2;
}

.pwa-copy span {
    display: block;
    overflow: hidden;
    color: var(--muted-2);
    font-size: .64rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-2);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.pwa-close:hover {
    background: var(--panel-2);
    color: var(--paper);
}

@media (min-width: 992px) {
    .pwa-install {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .pwa-install {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
}

/* Responsywność ----------------------------------------------------------- */

@media (min-width: 992px) {
    .home-hero-head {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .league-masthead {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        align-items: end;
    }

    .league-stats {
        grid-column: auto;
        align-self: end;
    }

    .event-layout,
    .content-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .event-card {
        grid-template-columns: 82px minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
    }

    .fixture-time {
        flex-direction: column;
        align-items: flex-start;
        gap: .1rem;
    }

    .broadcast-row {
        grid-template-columns: 180px minmax(0, 1fr) 250px;
        align-items: center;
        gap: 1.2rem;
    }

    .broadcast-action {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .broadcast-action .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .topline {
        display: none;
    }

    .home-hero-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .hero-counters {
        justify-self: start;
    }

    .home-hero-head h1 {
        max-width: none;
    }

    .hero-slide {
        min-height: 320px;
    }

    .hero-slide::after {
        background:
            linear-gradient(100deg, rgba(7, 11, 18, .96) 0%, rgba(7, 11, 18, .72) 58%, rgba(7, 11, 18, .28) 100%),
            linear-gradient(0deg, rgba(7, 11, 18, .6) 0%, transparent 50%);
    }

    .hero-slide-time {
        display: none;
    }

    .site-navbar .nav-link {
        padding: .55rem .7rem;
    }
}

@media (max-width: 575.98px) {
    .topline-note {
        display: none;
    }

    .topline-inner {
        justify-content: space-between;
    }

    .hero-counters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: .35rem;
    }

    .hero-counters > div {
        min-width: 0;
        padding: .55rem .6rem;
    }

    .hero-counters strong {
        font-size: 1.3rem;
    }

    .hero-slide {
        padding: 1.3rem;
        min-height: 300px;
    }

    .hero-slide h2 {
        font-size: 1.7rem;
    }

    .hero-slide-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .free-banner {
        grid-template-columns: 1fr auto;
    }

    .free-banner > span {
        display: none;
    }

    .news-media {
        aspect-ratio: 16 / 8;
    }
}

/* Strony prawne ----------------------------------------------------------- */

.legal-page {
    padding-bottom: .5rem;
}

.legal-masthead {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.legal-masthead h1 {
    margin-bottom: .6rem;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -.02em;
}

.legal-masthead .lead {
    max-width: 78ch;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

.legal-updated {
    margin-top: .7rem;
    color: var(--muted-2) !important;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}

.legal-toc a {
    padding: .34rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.legal-toc a:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.legal-content {
    margin-top: 1.2rem;
}

.legal-content section {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}

.legal-content section:last-of-type {
    border-bottom: 0;
}

.legal-content h2 {
    margin-bottom: .65rem;
    color: var(--paper);
    font-size: clamp(1.08rem, 1.8vw, 1.3rem);
    letter-spacing: -.01em;
}

.legal-content h3 {
    margin: 1rem 0 .4rem;
    color: var(--paper-dim);
    font-size: 1rem;
}

.legal-content p {
    max-width: 92ch;
    margin-bottom: .7rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.legal-content ul {
    display: grid;
    gap: .35rem;
    margin: 0 0 .8rem;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

.legal-content strong {
    color: var(--paper-dim);
}

.legal-content a {
    color: var(--blue);
    text-decoration: none;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--lime);
    text-decoration: underline;
}

.legal-note {
    padding: .75rem .9rem;
    border-left: 2px solid var(--line-2);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, .02);
    color: var(--muted-2) !important;
    font-size: .8rem !important;
}

.legal-warning {
    margin: .8rem 0;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 200, 87, .22);
    border-left: 3px solid var(--amber);
    border-radius: 10px;
    background: rgba(255, 200, 87, .05);
    color: #e3d6b8;
    font-size: .85rem;
    line-height: 1.55;
}

.legal-warning strong {
    color: var(--amber);
}

.legal-contact-card,
.contact-card {
    display: grid;
    gap: .35rem;
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        radial-gradient(70% 120% at 100% 0, rgba(200, 255, 62, .06), transparent 65%),
        rgba(255, 255, 255, .02);
}

.legal-contact-card p {
    margin: .3rem 0 0;
    font-size: .82rem;
}

.legal-contact-label {
    display: block;
    color: var(--muted-2);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-contact-card a,
.contact-card .contact-email {
    color: var(--lime);
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-card .contact-email {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

.contact-card p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.legal-table-wrap {
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: .8rem;
    line-height: 1.5;
}

.legal-table th,
.legal-table td {
    padding: .65rem .8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: rgba(255, 255, 255, .03);
    color: var(--paper-dim);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.legal-table td {
    color: var(--muted);
}

.legal-table code {
    padding: .1rem .3rem;
    border-radius: 5px;
    background: rgba(200, 255, 62, .08);
    color: var(--sport);
    font-size: .76rem;
    white-space: nowrap;
}

.legal-links {
    gap: .4rem !important;
}

@media (max-width: 575.98px) {
    .legal-masthead .lead {
        font-size: .88rem;
    }

    .legal-content p,
    .legal-content ul {
        font-size: .86rem;
    }

    .legal-actions .btn {
        flex: 1 1 auto;
    }
}

/* Baner cookies ----------------------------------------------------------- */

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    border-top: 1px solid var(--line-2);
    background: rgba(8, 14, 22, .98);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .8rem 1.5rem;
    align-items: center;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding: 1rem 0;
}

.cookie-consent-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

.cookie-consent-copy .cookie-consent-title {
    margin-bottom: .2rem;
    color: var(--paper);
    font-size: .88rem;
    font-weight: 800;
}

.cookie-consent-copy a {
    color: var(--blue);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
}

.cookie-consent .btn-link {
    padding-inline: .35rem;
    color: var(--muted);
    font-size: .74rem;
    text-decoration: underline;
}

.cookie-consent .btn-link:hover {
    color: var(--lime);
}

.cookie-consent-prefs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
}

.cookie-consent-prefs[hidden] {
    display: none;
}

.cookie-pref {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: .6rem .7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
}

.cookie-pref strong {
    display: block;
    color: var(--paper-dim);
    font-size: .76rem;
}

.cookie-pref small {
    display: block;
    color: var(--muted-2);
    font-size: .66rem;
    line-height: 1.4;
}

.cookie-pref input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: .1rem;
    accent-color: var(--lime);
}

.cookie-consent-prefs-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.footer-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .8rem;
    text-align: left;
    cursor: pointer;
}

.footer-link-button:hover {
    color: var(--lime);
}

html.ads-disabled .ad-slot {
    display: none !important;
}

@media (max-width: 900px) {
    .cookie-consent-inner {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: flex-start;
    }

    .cookie-consent-prefs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        width: min(100% - 1.4rem, var(--max));
        padding: .8rem 0;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 auto;
    }
}
