/* coding: utf-8 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff; /* #f0f4f8; */
    color: #2d3748;
}

img, fieldset, label, a img {
    border: medium none;
    padding: 0;
}

h1 {
    color: #00376C;
    font-size: 18px;
    font-weight: 700;
    clear: both;
    letter-spacing: -0.01em;
}

a {
    color: #4a7fc1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2c5f9e;
    text-decoration: underline;
}

div.hidden { visibility: hidden; }

/* ── Pasek kanałów ── */
#channel-bar {
    background: #fff;
    border-bottom: 1px solid #dde3ed;
    padding: 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#channel-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 20px;
}

/* ── Winieta / nagłówek ── */
#winieta {
    background: #ffffff;
    width: 100%;
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,55,108,0.18);
    border-bottom: 1px solid #dde3ed;
}

.winieta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

#ALogo {
    display: block;
    max-height: 80px;
    max-width: 90%;
    width: auto;
    height: auto;
}

a.logout {
    display: block;
    position: absolute;
    top: 10%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #2c5f9e;
    background: #e8f0ff;
    border: 1px solid #c5d5f0;
    border-radius: 6px;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

a.logout:hover {
    background: #d0e2ff;
    color: #1a3f6f;
    text-decoration: none;
}

/* ── Główna zawartość ── */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ── Formularz logowania ── */
#niezalogowany {
    margin: 60px auto;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,55,108,0.13);
    padding: 36px 32px;
}

#niezalogowany fieldset {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#niezalogowany span {
    font-size: 20px;
    font-weight: 700;
    color: #00376C;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

#niezalogowany input[type="text"],
#niezalogowany input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dde3ed;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background: #f7f9fc;
    transition: border-color 0.2s, box-shadow 0.2s;
    float: none;
    height: auto;
    margin: 0;
}

#niezalogowany input[type="text"]:focus,
#niezalogowany input[type="password"]:focus {
    outline: none;
    border-color: #6ba3ff;
    box-shadow: 0 0 0 3px rgba(107,163,255,0.15);
    background: #fff;
}

#niezalogowany input.ok,
#niezalogowany input[type="image"] {
    display: none;
}

.login-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4a7fc1 0%, #6ba3ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,127,193,0.35);
}

#message { color: #c62828; font-size: 13px; text-align: center; }

#forgot {
    background: #e8f0ff;
    border-left: 4px solid #6ba3ff;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 13px;
    color: #3a5a8a;
}

#forgot p { padding-top: 0; margin: 0; }
#forgot a { color: #4a7fc1; font-weight: 600; }

/* ── Lista kanałów / harmonogram ── */
div.channels { max-width: 1100px; margin: 0 auto; }

h1.listing {
    margin: 24px 0 8px 0;
    font-size: 17px;
    color: #00376C;
    border-bottom: 2px solid #dde3ed;
    padding-bottom: 6px;
}

p.listing {
    margin: 0 0 16px 0;
}

p.listing a {
    display: inline-block;
    background: #e8f0ff;
    border: 1px solid #c5d5f0;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2c5f9e;
    transition: background 0.2s;
}

p.listing a:hover {
    background: #d0e2ff;
    text-decoration: none;
}

ul.schedule_entries {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

ul.schedule_entries > li {
    padding: 8px 12px;
    border-radius: 7px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

ul.schedule_entries > li:hover {
    background: #eaf1fb;
    border-left-color: #6ba3ff;
}

ul.schedule_entries ul {
    font-size: 13px;
    margin: 6px 0 0 16px;
    padding: 0;
    list-style: disc;
    color: #4a7fc1;
}

ul.schedule_entries ul li {
    padding: 2px 0;
}

a.title_link {
    color: #1a3f6f;
    font-weight: 500;
    transition: color 0.15s;
}

a.title_link:hover {
    color: #4a7fc1;
    text-decoration: none;
}

.nowy {
    color: #c62828;
    font-weight: 700;
    font-size: 12px;
}

/* ── Zapowiedzi (highlights) ── */
.highlights-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.highlight-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,55,108,0.09);
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.highlight-item:hover {
    box-shadow: 0 4px 16px rgba(0,55,108,0.16);
}

.highlight-item img {
    display: block;
    width: 280px;
    height: auto;
    border-radius: 6px;
}

.highlight-item a {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2c5f9e;
}

/* ── Karta produktu (photos_list) ── */
p.normal {
    max-width: 820px;
    clear: both;
    margin: 24px 0 16px 0;
    font-size: 14px;
    line-height: 1.65;
    color: #4a5568;
}

p.filmography_description {
    max-width: 820px;
    clear: both;
    margin: 0 0 8px 0;
    font-size: 14px;
}

div.filmography_description {
    max-width: 820px;
    clear: both;
    margin-bottom: 8px;
}

p.film_data {
    max-width: 820px;
    margin: 4px 0;
    font-size: 14px;
}

p.film_data b {
    color: #00376C;
    min-width: 130px;
    display: inline-block;
}

p.obsada {
    max-width: 820px;
    font-size: 14px;
    margin: 4px 0;
}

/* Zdjęcia */
ul.photos {
    list-style-type: none;
    clear: both;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0;
}

ul.photos li {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,55,108,0.09);
    overflow: hidden;
    width: 280px;
    transition: box-shadow 0.2s, transform 0.2s;
}

ul.photos li:hover {
    box-shadow: 0 4px 16px rgba(0,55,108,0.16);
    transform: translateY(-2px);
}

ul.photos div.ph1 {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

ul.photos li img {
    display: block;
    margin: auto;
    max-width: 270px;
    max-height: 270px;
}

ul.photos div.ph2 {
    padding: 8px;
    width: 280px;
}

ul.photos div.ph2 p {
    text-align: center;
    margin: 0;
    font-size: 12px;
    color: #718096;
}

a.return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: left;
    clear: both;
    margin: 20px 0;
    padding: 8px 16px;
    background: #e8f0ff;
    border: 1px solid #c5d5f0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #2c5f9e;
    transition: background 0.2s;
}

a.return::before { content: '←'; }

a.return:hover {
    background: #d0e2ff;
    text-decoration: none;
}

h1.ftitle {
    margin: 28px 0 12px 0;
    font-size: 22px;
    color: #00376C;
}

h1.emissions {
    margin: 24px 0 8px 0;
    font-size: 17px;
    padding-top: 16px;
    border-top: 2px solid #dde3ed;
    color: #00376C;
}

p.emissions {
    margin-left: 0;
    width: 100%;
    max-width: 720px;
    font-size: 13px;
}

div.image { position: relative; }
div.image img { max-width: 270px; max-height: 270px; }

p.photo_copyright_owners_str {
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    font-weight: bold;
    font-size: 11px;
    color: #EF4135;
    background: rgba(255,255,255,0.7);
    padding: 1px 4px;
    border-radius: 3px;
}
