/* === ZMIENNE I RESET === */
:root {
    --bg: #0b0e14;
    --panel: #0f1420;
    --panel-2: #12192a;
    --text: #e8eefc;
    --muted: #9fb3d9;
    --accent: #5aa9ff;
    --accent-2: #9d7bff;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    background: radial-gradient(1200px 800px at 10% -10%, #0e1333 0%, transparent 60%),
                radial-gradient(900px 700px at 110% 10%, #102b45 0%, transparent 60%),
                var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

#site {
    width: 1200px;
    margin: 0 auto;
    transform-origin: top center;
}
@media (max-width: 1199px) {
    #site {
        position: relative;
        left: 50%;
        margin: 0;
        transform: translateX(-50%) scale(calc(100vw / 1200px));
    }
}

/* === GŁÓWNE SEKCJE === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section {
    margin-bottom: 28px;
}

.section h2 {
    font-size: 24px;
    margin: 28px 0 16px;
    color: #dbe6ff;
}

/* === HERO (NAGŁÓWEK) === */
.hero {
    position: relative;
    padding: 64px 20px 48px;
    text-align: center;
    overflow: hidden;
}
.hero__inner {
    max-width: 980px;
    margin: 0 auto;
}
.logo {
    font-size: 72px;
    margin: 0 0 8px 0;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--text), #c9d6ff 30%, #b4c7ff 60%, #e8eefc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tagline {
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 20px;
}
.cta {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #071019;
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform .15s ease, filter .15s ease;
    text-align: center;
}
.cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* === NAWIGACJA (STYL "CHIP") === */
.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 28px;
}
.topnav .btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd84d 0%, #f3c400 100%);
    color: #0a0f18;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .2px;
    border: 1px solid #d8b100;
    box-shadow: 0 3px 0 rgba(0,0,0,.25);
    transition: background .2s ease, transform .12s ease, color .2s ease;
    cursor: pointer;
}
.topnav .btn:hover {
    background: var(--accent);
    color: #0a0f18;
    border-color: var(--accent);
    transform: translateY(-1px);
}
.topnav .btn:active {
    transform: translateY(0);
}
.topnav .btn.active {
    background: #ff1744;
    color: #0a0f18;
    border: 1px solid #c4001d;
}
.topnav .btn.active:hover {
    background: #198754;
    color: #fff;
    border-color: #146c43;
}


/* === SEKCJA GŁÓWNA (FEATURED) === */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    align-items: start;
    margin: 10px 0 12px;
}
.featured-video {
    background: #0a0f18;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}
.featured-aside {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.featured-aside h3 { margin: 0 0 8px; }
.featured-aside p { color: var(--muted); }
.featured-aside .cta {
    margin-top: auto;
}

/* === KARTY (GRID) === */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.12);
}
.card__media {
    aspect-ratio: 16/9;
    background: #0a0f18;
}
.card__media iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.card__body {
    padding: 14px 16px 16px;
}
.card__body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.card__body p {
    margin: 0 0 10px;
    color: var(--muted);
}
.link {
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border-bottom: 1px dotted rgba(255,255,255,.35);
    padding-bottom: 2px;
}
.link:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* === SEKCJE POLECANE I KONTAKT (Style przeniesione z HTML) === */
.section-divider {
    max-width: 1200px;
    margin: 48px auto 0; /* Zmieniono: usunięto dolny margines 28px */
    padding: 0 16px;
}
.divider-title {
    width: 100%;
    background: #1E40AF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    border-radius: 12px;
    border: 1px solid #1E3A8A;
}
.section-text-block {
    max-width: 880px;
    margin: 12px auto 28px;
    padding: 0 16px;
    text-align: center;
    color: #c7d2fe;
    font-size: 15px;
    line-height: 1.6;
}
.section-text-block h2 {
    text-align: center;
    font-size: 22px;
    margin: 6px 0 14px;
}

.contact-form {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.contact-form label {
    display: block;
    color: #aab4c6;
    font-size: 14px;
    margin: .75rem 0 .25rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid #2a3g47;
    background: #0f172a;
    color: #e8eefc;
}
.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}
.contact-form button {
    display: block;
    margin: 16px auto 0;
    padding: .8rem 1.4rem;
    border: 0;
    border-radius: 12px;
    background: #2563EB;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
#contactStatus {
    text-align: center;
    margin-top: .75rem;
    font-size: .95rem;
    color: #aab4c6;
}


/* === FOOTER === */
.footer {
    padding: 28px 20px;
    text-align: center;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,.05);
    background: #0a0f18;
    font-weight: 700;
}

/* === Dodatkowe style dla listy w sekcji Featured === */
.featured-aside .featured-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.featured-aside .featured-intro {
    font-size: 0.9em;
    color: var(--muted);
    margin-bottom: 10px;
}
.featured-aside .featured-list {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0 15px;
    font-size: 0.9em;
    color: var(--muted);
}
.featured-aside .featured-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}
.featured-aside .featured-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--muted);
}
.featured-aside .list-item-break {
    margin-top: 1em;
}

/* === DODATKOWE STYLE DLA KART POLECANYCH === */
.card-channel-name {
    font-size: 0.9em !important;
    font-weight: bold;
    color: var(--accent) !important;
    margin-bottom: 4px !important;
}

/* === BANER IN-APP === */
.inapp-open {
    position: fixed;
    inset: auto 12px 12px 12px;
    z-index: 99999;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    padding: 14px 14px 12px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}
.inapp-open h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #fff;
}
.inapp-open p {
    margin: 0 0 10px;
    color: #cbd5e1;
}
.inapp-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.inapp-btn {
    text-decoration: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    font-family: inherit;
    font-size: 14px;
}
.inapp-btn-primary {
    background: linear-gradient(135deg, #5aa9ff, #9d7bff);
    color: #071019;
}
.inapp-btn-secondary {
    background: #ffd84d;
    color: #0a0f18;
    border: 1px solid #d8b100;
}
.inapp-btn-ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px dashed rgba(255,255,255,.35);
}
.inapp-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}
@media (min-width: 700px) {
    .inapp-open {
        right: 20px;
        left: auto;
        max-width: 420px;
    }
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    font-size: 1em;
}
.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu .btn {
    text-align: center;
    white-space: nowrap;
    padding: 8px 16px;
}

/* === STYLE PODSTRON === */
.subpage-bar {
    background-color: #1E40AF;
    color: #fff;
    padding: 14px 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.subpage-notice {
    text-align: center;
    font-size: 2em;
    color: var(--muted);
    padding: 40px 0;
}

/* === STYLE DLA PLAYLIST I POZIOMEJ KARUZELI === */
.playlist-description {
    max-width: 880px;
    margin: 12px auto 28px;
    padding: 0 16px;
    text-align: center;
    color: var(--muted);
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.6;
}

.slider {
    position: relative;
    padding: 0;
    max-width: 1200px;
    margin: 28px auto 0; /* Zmieniono: Dodano górny margines */
}

.slider__wrapper {
    overflow-x: auto; /* Włącza poziomy pasek przewijania */
    padding-bottom: 12px; /* Daje przestrzeń na pasek przewijania */
    -webkit-overflow-scrolling: touch; /* Płynne przewijanie na iOS */
    scrollbar-width: thin; /* Styl paska dla Firefox */
    scrollbar-color: var(--accent) var(--panel); /* Kolory paska dla Firefox */
}
/* Stylowanie paska przewijania dla Chrome, Safari, Edge */
.slider__wrapper::-webkit-scrollbar {
    height: 8px;
}
.slider__wrapper::-webkit-scrollbar-track {
    background: var(--panel);
    border-radius: 4px;
}
.slider__wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
    border: 2px solid var(--panel);
}

.slider__track {
    display: flex;
    gap: 18px;
}

.slider__slide {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
}

.slider .card__body h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
}

.slider__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(30, 64, 175, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.slider__arrow:hover {
    background-color: #1E40AF;
}

.slider__arrow--left {
    left: -60px;
}

.slider__arrow--right {
    right: -60px;
}

/* === STYLE DLA STRONY LISTU === */
.letter-container {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 24px 32px 32px;
    max-width: 900px;
    margin: 28px auto;
    box-shadow: var(--shadow);
}
.letter-container h2 {
    color: var(--accent);
    font-size: 1.5em;
    margin-bottom: 2.5em; /* Zwiększony odstęp */
    text-align: center; /* Wyśrodkowanie */
}
.letter-container h3 {
    color: var(--text);
    font-size: 1.2em;
    margin: 2em 0 1em;
}
.letter-container p {
    color: var(--muted);
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1.5em;
}