/* ==========================================
   PODSTAWY
   ========================================== */

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background-color: #f5f3f7;
    color: #222;
}


/* ==========================================
   NAGŁÓWEK
   ========================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

background-color: #285943;

    padding: 20px 40px;
    border-bottom: 1px solid #2d6a4f;
}


/* LOGO */

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #9ac7ad;
}


/* MENU */

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #e5e2e7;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #9ac7ad;
}


/* ==========================================
   GŁÓWNA ZAWARTOŚĆ
   ========================================== */

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}


/* ==========================================
   POWITANIE
   ========================================== */

.welcome h2 {
    color: #222;
}

.welcome p {
    color: #77727d;
}


/* ==========================================
   NAJNOWSZE MANHWY
   ========================================== */

.latest {
    margin-top: 40px;
}

.latest h2 {
    margin-bottom: 20px;
}


/* ==========================================
   SIATKA MANHW
   ========================================== */

.manhwa-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 25px;
}


/* ==========================================
   KARTA MANHWY
   ========================================== */

.manhwa-card {
    display: block;

    background: #211d27;

    border-radius: 14px;
    overflow: hidden;

    text-decoration: none;
    color: white;

    border: 1px solid #34303a;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.manhwa-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(31, 107, 69, 0.25);
}


/* ==========================================
   OKŁADKA
   ========================================== */

.manhwa-card .cover {
    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: #ddd;
}

.manhwa-card .cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ==========================================
   INFORMACJE NA KARCIE
   ========================================== */

.manhwa-card-info {
    padding: 15px;
}

.manhwa-card-info h3 {
    margin: 0 0 6px;

    font-size: 19px;

    color: #ffffff;
}

.manhwa-type {
    margin: 0 0 12px;

    font-size: 13px;

    color: #c8c0d0;
}

.latest-chapter {
    margin: 0;

    font-size: 13px;

    color: #eeeeee;
}

.latest-chapter strong {
    color: #2d8a5c;
}


/* ==========================================
   STATUS
   ========================================== */

.status-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 10px;

    background: #1f6b45;
    color: white;

    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;
}


/* ==========================================
   STRONA MANHWY
   ========================================== */

.manhwa-info {
    display: flex;

    gap: 35px;

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.manhwa-cover {
    width: 220px;
    height: 320px;

    object-fit: cover;

    border-radius: 10px;
}

.manhwa-details {
    flex: 1;
}

.manhwa-details h1 {
    margin-top: 0;
    font-size: 32px;
}


/* ==========================================
   ROZDZIAŁY
   ========================================== */

.chapters {
    margin-top: 40px;
}

.chapter-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.chapter-list a {
    display: block;

    background: white;

    padding: 15px 20px;

    border-radius: 10px;

    color: #222;

    text-decoration: none;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.chapter-list a:hover {
    background-color: #eee;
}


/* ==========================================
   CZYTNIK
   ========================================== */

.reader {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    line-height: 0;
}

.reader h1 {
    line-height: normal;

    margin-bottom: 30px;
}

.reader img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    border: 0;


}


/* ==========================================
   NAWIGACJA CZYTNIKA
   ========================================== */

.reader-navigation {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin: 25px 0;
}

.nav-button {
    padding: 12px 20px;

    background-color: #1f6b45;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;

    transition: 0.2s;
}

.nav-button:hover {
    background-color: #2d8a5c;
}

.nav-button.disabled {
    opacity: 0.35;

    pointer-events: none;
}


/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */

@media (max-width: 1100px) {

    .manhwa-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


@media (max-width: 850px) {

    .manhwa-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 600px) {

    .manhwa-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 15px;
    }

    header {
        padding: 18px 20px;
    }

    nav {
        gap: 12px;
    }

}
/* ==========================================
   NOWE ROZDZIAŁY
   ========================================== */

.new-chapters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: white;

    padding: 20px 25px;

    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.chapter-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}

.chapter-info h2 {
    margin: 0 0 5px;

    font-size: 19px;

    color: #222;
}

.chapter-info p {
    margin: 0;

    color: #77727d;

    font-size: 14px;
}
/* ==========================================
   O STRONIE
   ========================================== */

.about-page {
    max-width: 850px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-page h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 32px;
    color: #222;
}

.about-page p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.about-intro {
    font-size: 20px !important;
    font-weight: 700;
    color: #285943 !important;
}

.about-section {
    margin-top: 35px;
}

.about-section h2 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #285943;
}
/* ==========================================
   OSTATNIO DODANE
   ========================================== */

.latest-update {
    display: flex;
    align-items: center;
    gap: 25px;

    background: #285943;
    color: white;

    padding: 22px 28px;

    border-radius: 15px;

    margin-bottom: 35px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

    cursor: pointer;
}


/* OKŁADKA */

.latest-update-cover {
    width: 100px;
    height: 140px;

    flex-shrink: 0;

    border-radius: 12px;

    overflow: hidden;
}

.latest-update-cover img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* TEKST */

.latest-update-text {
    flex: 1;
    min-width: 0;
}

.update-label {
    display: inline-block;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    margin-bottom: 6px;

    opacity: 0.8;
}

.latest-update h2 {
    margin: 0 0 5px;

    font-size: 21px;
}

.latest-update p {
    margin: 0;

    font-size: 14px;

    opacity: 0.85;
}


/* PRZYCISK */

.update-button {
    flex-shrink: 0;

    margin-left: auto;

    padding: 11px 18px;

    background: white;
    color: #285943;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s;
}

.update-button:hover {
    transform: translateY(-2px);
}
/* ==========================================
   EFEKT OKŁADEK MANHW
   ========================================== */

.manhwa-card .cover {
    overflow: hidden;
}

.manhwa-card .cover img {
    transition: transform 0.35s ease;
}

.manhwa-card:hover .cover img {
    transform: scale(1.04);
}
.manhwa-card-info h3 {
    transition: color 0.2s ease;
}

.manhwa-card:hover .manhwa-card-info h3 {
    color: #285943 !important;
}
/* ==========================================
   FILTRY MANHW
   ========================================== */

.manhwa-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 25px;
}

.filter-button {
    border: 1px solid #d8d3da;
    background: white;
    color: #555;

    padding: 9px 16px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.filter-button:hover {
    border-color: #285943;
    color: #285943;
}

.filter-button.active {
    background: #285943;
    border-color: #285943;
    color: white;
}
/* ==========================================
   STRONA MANHWY
   ========================================== */

.manhwa-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.manhwa-title-row h1 {
    margin-bottom: 0;
}

.manhwa-title-row .status-badge {
    position: static;
    display: inline-block;
}


.manhwa-description {
    margin-top: 20px;
    color: #555;
    line-height: 1.7;
}


.manhwa-meta {
    margin-top: 25px;
}

.manhwa-meta p {
    margin: 8px 0;
    color: #666;
}

.manhwa-meta strong {
    color: #285943;
}


/* ROZDZIAŁY */

.chapters-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chapters-heading h2 {
    margin: 0;
}

.chapters-heading span {
    font-size: 13px;
    color: #777;
}


.chapter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: white;

    padding: 17px 20px;

    border-radius: 10px;

    color: #222;
    text-decoration: none;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

    border: 1px solid transparent;
}


.chapter-list a:hover {
    transform: translateY(-2px);

    border-color: #285943;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}


.chapter-list strong {
    display: block;
    font-size: 15px;
}


.chapter-list small {
    display: block;
    margin-top: 5px;

    font-size: 12px;
    font-weight: 400;
    color: #888;
}




.chapter-arrow {
    color: #285943;
    font-size: 13px;
    font-weight: 700;
}
/* ==========================================
   NOWE ROZDZIAŁY
   ========================================== */

.new-chapters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    background: white;

    padding: 20px 24px;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    border: 1px solid transparent;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.chapter-item:hover {
    transform: translateY(-2px);

    border-color: #285943;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.09);
}


.chapter-title {
    display: flex;
    align-items: center;
    gap: 10px;
}


.chapter-title h2 {
    margin: 0;

    font-size: 18px;
}


.chapter-info p {
    margin: 7px 0 0;

    color: #777;

    font-size: 14px;
}


.new-badge {
    padding: 4px 7px;

    border-radius: 5px;

    background: #285943;
    color: white;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.7px;
}


.chapter-item .nav-button {
    flex-shrink: 0;

    background: #285943;

    border-radius: 8px;

    padding: 10px 16px;

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s;
}


.chapter-item .nav-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
/* ==========================================
   RESPONSYWNOŚĆ STRONY MANHWY
   ========================================== */

@media (max-width: 700px) {

    .manhwa-info {
        flex-direction: column;
        gap: 25px;
    }

    .manhwa-cover {
        width: 180px;
        height: 270px;
        margin: 0 auto;
    }

    .manhwa-details h1 {
        font-size: 27px;
    }

    .chapter-item {
        padding: 16px;
    }

}


@media (max-width: 500px) {

    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .chapter-item .nav-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .manhwa-info {
        padding: 22px;
    }

}
@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 18px;
        padding: 18px 20px;
    }

    .logo {
        font-size: 21px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        font-size: 14px;
    }

}
.latest-update-cover {
    width: 100px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.latest-update-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.latest-update {
    cursor: pointer;
}
.latest-more {
    text-align: right;
    margin-top: -20px;
    margin-bottom: 30px;
}

.latest-more a {
    color: #9ac7ad;
    text-decoration: none;
    font-weight: 600;
}

.latest-more a:hover {
    text-decoration: underline;
}
/* ==========================================
   OSTATNIE AKTUALIZACJE
   ========================================== */

.recent-updates {
    margin-bottom: 40px;
}

.recent-updates-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.recent-updates-heading h2 {
    margin: 0;
    font-size: 20px;
}

.recent-updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-update-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 18px;

    background: white;
    border: 1px solid #e4e0e6;
    border-radius: 10px;

    color: #222;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.recent-update-item:hover {
    transform: translateY(-2px);
    border-color: #285943;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.recent-update-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-update-main strong {
    font-size: 15px;
}

.recent-update-main span {
    color: #666;
    font-size: 13px;
}

.recent-update-date {
    flex-shrink: 0;
    color: #888;
    font-size: 12px;
}
/* ==========================================
   WYSZUKIWARKA W NAGŁÓWKU
   ========================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-search {
    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 8px;

    overflow: hidden;
}

.header-search input {
    width: 170px;

    padding: 9px 11px;

    border: 0;
    outline: none;

    background: transparent;
    color: white;

    font-family: inherit;
    font-size: 13px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.header-search button {
    border: 0;

    padding: 9px 11px;

    background: transparent;
    color: white;

    cursor: pointer;
}
/* ==========================================
   BRAK WYNIKÓW WYSZUKIWANIA
   ========================================== */

.no-results {
    grid-column: 1 / -1;

    text-align: center;

    padding: 60px 20px;

    color: #666;
}

.no-results h2 {
    margin: 0 0 8px;

    font-size: 20px;
    color: #333;
}

.no-results p {
    margin: 0;
    font-size: 14px;
}
/* ==========================================
   WYSZUKIWARKA W KATALOGU
   ========================================== */

.catalog-search {
    margin: 20px 0;
}

.catalog-search input {
    width: 100%;
    max-width: 420px;

    padding: 12px 14px;

    border: 1px solid #d8d3da;
    border-radius: 9px;

    background: white;
    color: #222;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.catalog-search input:focus {
    border-color: #285943;

    box-shadow:
        0 0 0 3px rgba(40, 89, 67, 0.10);
}
/* ==========================================
   SEZONY
   ========================================== */

.season-block {
    margin-bottom: 30px;
}

.season-title {
    margin: 0 0 12px;
    padding-bottom: 9px;

    border-bottom: 2px solid #285943;

    font-size: 18px;
    color: #285943;
}

.empty-season {
    margin: 0;
    padding: 15px 18px;

    background: #f5f3f5;
    border-radius: 8px;

    color: #888;
    font-size: 13px;
}
/* ==========================================
   ZAAWANSOWANE FILTRY
   ========================================== */

.advanced-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    margin: 20px 0 30px;

    padding: 22px 25px;

    background: white;

    border: 1px solid #e2dee4;
    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-group {
    min-width: 160px;
}

.filter-group h3 {
    margin: 0 0 12px;

    font-size: 14px;
    color: #285943;
}

.filter-group label {
    display: block;

    margin: 8px 0;

    font-size: 13px;
    color: #555;

    cursor: pointer;
}

.filter-group input {
    margin-right: 7px;
    accent-color: #285943;
}

.filter-options {
    display: flex;
    flex-direction: column;
}

.clear-filters {
    align-self: flex-end;

    padding: 9px 14px;

    border: 1px solid #285943;
    border-radius: 8px;

    background: transparent;
    color: #285943;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}

.clear-filters:hover {
    background: #285943;
    color: white;
}
/* ==========================================
   DODATKOWE INFORMACJE NA KARCIE
   ========================================== */

.manhwa-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;

    margin-bottom: 12px;

    font-size: 11px;
    color: #bdb8c1;
}

.manhwa-card-meta span {
    display: inline-flex;
    gap: 4px;
}

.manhwa-card-meta strong {
    color: #9ac7ad;
    font-weight: 700;
}
/* ==========================================
   LICZNIK WYNIKÓW
   ========================================== */

.catalog-results-info {
    margin: 0 0 15px;
}

.catalog-results-info span {
    font-size: 13px;
    color: #777;
    font-weight: 600;
}
/* ==========================================
   LŻEJSZE NAGŁÓWKI
   ========================================== */

.logo {
    font-weight: 600;
}

h1,
h2,
h3 {
    font-weight: 600;
}

#reader-title {
    font-weight: 600;
}
/* ==========================================
   WERSJA MOBILNA
   ========================================== */

@media (max-width: 768px) {

    /* HEADER */

    header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;

        padding: 18px 20px;
    }

    .logo {
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 15px;
    }


    /* GŁÓWNA ZAWARTOŚĆ */

    main {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* KAFEL NAJNOWSZEGO ROZDZIAŁU */

    .latest-update {
        gap: 15px;
        padding: 18px;
    }

    .latest-update-cover {
        width: 75px;
        height: 105px;
    }

    .latest-update h2 {
        font-size: 17px;
    }

    .update-button {
        padding: 9px 12px;
        font-size: 11px;
    }


    /* KAFELKI MANHW */

    .manhwa-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }


    /* FILTRY */

    .advanced-filters {
        flex-direction: column;
        gap: 20px;

        padding: 18px;
    }

    .filter-group {
        width: 100%;
    }

    .clear-filters {
        align-self: stretch;
    }


    /* STRONA KONKRETNEJ MANHWY */

    .manhwa-info {
        flex-direction: column;
    }

    .manhwa-cover {
        width: 180px;
        max-width: 100%;

        margin: 0 auto;
    }

    .manhwa-details {
        width: 100%;
    }


    /* ROZDZIAŁY */

    .chapter-list a {
        gap: 10px;
    }
    /* CZYTNIK */

    #reader-pages {
        width: 100%;
        max-width: 100%;
    }

    #reader-pages img {
        display: block;

        width: 100%;
        max-width: 100%;
        height: auto;

        margin: 0 auto;
    }

    .reader-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #reader-title {
        font-size: 18px;
        text-align: center;
    }
}
/* ==========================================
   PODPOWIEDZI WYSZUKIWARKI
   ========================================== */

.header-search-wrapper {
    position: relative;
}

.search-suggestions {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    display: none;

    background: white;

    border: 1px solid #ddd8df;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    z-index: 1000;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 10px;

    color: #222;
    text-decoration: none;

    border-bottom: 1px solid #eee;

    transition: background 0.15s ease;
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion:hover {
    background: #f4f1f5;
}

.search-suggestion img {
    width: 36px;
    height: 50px;

    object-fit: cover;

    border-radius: 5px;

    flex-shrink: 0;
}

.search-suggestion-info {
    min-width: 0;
}

.search-suggestion-title {
    display: block;

    font-size: 13px;
    font-weight: 600;

    color: #222;
}

.search-suggestion-meta {
    display: block;

    margin-top: 2px;

    font-size: 10px;
    color: #888;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ==========================================
   STOPKA / DISCORD
   ========================================== */

.site-footer {
    margin-top: 50px;
    padding: 28px 20px;

    background: #18221d;

    border-top: 1px solid #285943;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;

    text-align: center;
}

.footer-title {
    margin: 0 0 14px;

    color: #d8d2df;

    font-size: 13px;
}

.discord-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.discord-links a {
    padding: 9px 15px;

    border: 1px solid #285943;
    border-radius: 8px;

    color: #9ac7ad;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s;
}

.discord-links a:hover {
    background: #285943;
    color: white;
}
.catalog-search-wrapper {
    position: relative;
    width: 100%;
}

.catalog-search-wrapper .search-suggestions {
    top: calc(100% + 6px);
}
/* ==========================================
   PANEL ADMINISTRATORA
   ========================================== */

.admin-body {
    margin: 0;
    min-height: 100vh;
    background: #101713;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}


/* ==========================================
   MENU BOCZNE
   ========================================== */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 230px;
    padding: 28px 18px;

    display: flex;
    flex-direction: column;

    background: #18221d;
    border-right: 1px solid #285943;

    box-sizing: border-box;
}

.admin-logo {
    margin-bottom: 35px;

    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
}

.admin-logo span {
    display: block;
    margin-top: 5px;

    color: #87aa96;
    font-size: 11px;
    font-weight: 400;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-menu-item {
    width: 100%;
    padding: 12px 13px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #b8c7bf;

    font: inherit;
    font-size: 13px;
    text-align: left;

    cursor: pointer;
    transition: 0.2s;
}

.admin-menu-item:hover {
    background: #202f27;
    color: #ffffff;
}

.admin-menu-item.active {
    background: #285943;
    color: #ffffff;
}

.admin-back {
    margin-top: auto;
    padding: 11px 12px;

    color: #87aa96;
    font-size: 12px;
    text-decoration: none;

    border-top: 1px solid #26372e;
}

.admin-back:hover {
    color: #ffffff;
}


/* ==========================================
   GŁÓWNA CZĘŚĆ
   ========================================== */

.admin-main {
    width: calc(100% - 230px);
    margin-left: 230px;
    padding: 40px;

    box-sizing: border-box;
}

.admin-header {
    max-width: 1200px;
    margin: 0 auto 28px;
}

.admin-header h1 {
    margin: 0 0 6px;

    color: #ffffff;
    font-size: 28px;
}

.admin-header p {
    margin: 0;

    color: #84948b;
    font-size: 13px;
}


/* ==========================================
   STATYSTYKI
   ========================================== */

.admin-stats {
    max-width: 1200px;
    margin: 0 auto 30px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.admin-stat-card {
    padding: 20px;

    background: #18221d;
    border: 1px solid #26372e;
    border-radius: 12px;
}

.admin-stat-card span {
    display: block;
    margin-bottom: 10px;

    color: #84948b;
    font-size: 12px;
}

.admin-stat-card strong {
    color: #ffffff;
    font-size: 27px;
}


/* ==========================================
   SEKCJE
   ========================================== */

.admin-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 24px;

    background: #18221d;
    border: 1px solid #26372e;
    border-radius: 12px;
}

.admin-section-heading {
    margin-bottom: 18px;
}

.admin-section-heading h2 {
    margin: 0 0 4px;

    color: #ffffff;
    font-size: 17px;
}

.admin-section-heading p {
    margin: 0;

    color: #84948b;
    font-size: 12px;
}


/* ==========================================
   SZYBKIE AKCJE
   ========================================== */

.admin-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-action-card {
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    background: #111a15;
    border: 1px solid #26372e;
    border-radius: 10px;

    color: #ffffff;
    text-align: left;

    cursor: pointer;
    transition: 0.2s;
}

.admin-action-card:hover {
    border-color: #3d8060;
    background: #16241c;
    transform: translateY(-2px);
}

.admin-action-card > span {
    font-size: 22px;
}

.admin-action-card strong {
    font-size: 14px;
}

.admin-action-card small {
    color: #84948b;
    font-size: 11px;
}


/* ==========================================
   LISTA MANHW
   ========================================== */

.admin-manhwa-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-manhwa-item {
    padding: 11px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #111a15;
    border: 1px solid #26372e;
    border-radius: 9px;
}

.admin-manhwa-item img {
    width: 42px;
    height: 58px;

    object-fit: cover;
    border-radius: 5px;
}

.admin-manhwa-info {
    flex: 1;
}

.admin-manhwa-info strong {
    display: block;

    color: #ffffff;
    font-size: 13px;
}

.admin-manhwa-info span {
    color: #84948b;
    font-size: 11px;
}

.admin-edit-button {
    padding: 8px 12px;

    background: transparent;
    border: 1px solid #285943;
    border-radius: 7px;

    color: #9ac7ad;
    font-size: 11px;

    cursor: pointer;
}

.admin-edit-button:hover {
    background: #285943;
    color: #ffffff;
}


/* ==========================================
   TELEFON / TABLET
   ========================================== */

@media (max-width: 850px) {

    .admin-sidebar {
        width: 180px;
    }

    .admin-main {
        width: calc(100% - 180px);
        margin-left: 180px;
        padding: 25px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: static;

        width: 100%;
        height: auto;

        padding: 18px;
    }

    .admin-logo {
        margin-bottom: 18px;
    }

    .admin-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-back {
        margin-top: 15px;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 18px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* ==========================================
   FORMULARZE ADMINA
   ========================================== */

.admin-form {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field label {
    color: #d8e2dc;
    font-size: 12px;
    font-weight: 600;
}

.admin-field small {
    color: #718078;
    font-size: 10px;
}

.admin-field input[type="text"],
.admin-field textarea,
.admin-field select {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    background: #111a15;
    border: 1px solid #304138;
    border-radius: 8px;

    color: #ffffff;
    font: inherit;
    font-size: 13px;

    outline: none;
}

.admin-field textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
    border-color: #4a8c6b;
}

.admin-field input[type="file"] {
    padding: 12px;

    background: #111a15;
    border: 1px dashed #3b5848;
    border-radius: 8px;

    color: #a9b8b0;
}


/* GATUNKI */

.admin-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-genres label {
    padding: 8px 11px;

    background: #111a15;
    border: 1px solid #304138;
    border-radius: 7px;

    color: #b9c8c0;
    font-size: 11px;

    cursor: pointer;
}

.admin-genres label:hover {
    border-color: #4a8c6b;
}

.admin-genres input {
    margin-right: 5px;
}


/* SEKCJE */

.admin-sections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 12px;
}

.admin-secondary-button {
    padding: 9px 14px;

    background: transparent;
    border: 1px solid #35674f;
    border-radius: 7px;

    color: #9ac7ad;

    font: inherit;
    font-size: 12px;

    cursor: pointer;
}

.admin-secondary-button:hover {
    background: #203d2e;
    color: #ffffff;
}


/* PRZYCISKI NA DOLE */

.admin-form-actions {
    margin-bottom: 50px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.admin-cancel-button {
    padding: 11px 17px;

    color: #95a39b;
    text-decoration: none;
    font-size: 12px;
}

.admin-save-button {
    padding: 11px 20px;

    background: #326b50;
    border: 0;
    border-radius: 8px;

    color: #ffffff;

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.admin-save-button:hover {
    background: #3d8060;
}


@media (max-width: 700px) {

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

}
/* ==========================================
   SEKCJE W FORMULARZU ADMINA
   ========================================== */

.admin-section-row {
    display: grid;

    grid-template-columns:
        minmax(150px, 1fr)
        minmax(180px, 2fr)
        minmax(110px, 0.7fr)
        auto;

    align-items: end;

    gap: 12px;

    padding: 14px;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 9px;
}

.admin-section-row select,
.admin-section-row input {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 11px;

    background: #0e1611;

    border: 1px solid #304138;
    border-radius: 7px;

    color: #ffffff;

    font: inherit;
    font-size: 12px;
}

.admin-remove-section {
    padding: 10px 12px;

    background: transparent;

    border: 1px solid #70433f;
    border-radius: 7px;

    color: #d28d86;

    font: inherit;
    font-size: 11px;

    cursor: pointer;
}

.admin-remove-section:hover {
    background: #462722;
    color: white;
}


@media (max-width: 850px) {

    .admin-section-row {
        grid-template-columns: 1fr;
    }

}
.admin-new-genre {
    display: flex;
    gap: 9px;

    margin-top: 16px;
}

.admin-new-genre input {
    width: 260px;
    max-width: 100%;

    padding: 9px 11px;

    box-sizing: border-box;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 7px;

    color: #ffffff;

    font: inherit;
    font-size: 12px;

    outline: none;
}

.admin-new-genre input:focus {
    border-color: #4a8c6b;
}

@media (max-width: 600px) {

    .admin-new-genre {
        flex-direction: column;
    }

    .admin-new-genre input {
        width: 100%;
    }

}
/* ==========================================
   DODAWANIE ROZDZIAŁU
   ========================================== */

.admin-upload-summary {
    margin-top: 16px;
    padding: 12px 14px;

    background: #111a15;
    border: 1px solid #304138;
    border-radius: 8px;

    color: #9eaea5;
    font-size: 12px;
}

.admin-file-preview {
    margin-top: 10px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    max-height: 300px;
    overflow-y: auto;
}

.admin-file-item {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 11px;

    background: #111a15;
    border-radius: 6px;

    color: #aebdb5;
    font-size: 11px;
}

.admin-file-item strong {
    min-width: 25px;
    color: #70a889;
}

.admin-file-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ==========================================
   PODGLĄD STRON ROZDZIAŁU
   ========================================== */

.admin-file-preview {
    margin-top: 14px;

    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));

    gap: 12px;

    max-height: 600px;
    overflow-y: auto;

    padding-right: 5px;
}

.admin-file-preview-item {
    position: relative;

    overflow: hidden;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 9px;
}

.admin-file-preview-item:hover {
    border-color: #4a8c6b;
}

.admin-preview-number {
    position: absolute;

    top: 7px;
    left: 7px;

    z-index: 2;

    min-width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    box-sizing: border-box;

    background: #285943;

    border-radius: 6px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
}

.admin-preview-image {
    display: block;

    width: 100%;
    height: 190px;

    object-fit: cover;
    object-position: top;

    background: #0d140f;
}

.admin-preview-info {
    padding: 9px;
}

.admin-preview-info strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #dce5df;

    font-size: 10px;
}

.admin-preview-info span {
    display: block;

    margin-top: 4px;

    color: #718078;

    font-size: 9px;
}
/* ==========================================
   PODGLĄD OKŁADKI W ADMINIE
   ========================================== */

.admin-current-cover {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 18px;
    padding: 14px;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 10px;
}

/* hidden musi naprawdę ukrywać element */
.admin-current-cover[hidden] {
    display: none;
}

.admin-current-cover img {
    width: 95px;
    height: 135px;

    object-fit: cover;

    border-radius: 7px;

    background: #0d140f;
}

.admin-current-cover-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-current-cover-info strong {
    color: #e3ebe6;
    font-size: 13px;
}

.admin-current-cover-info span {
    color: #8fb9a0;
    font-size: 11px;
}

.admin-current-cover-info small {
    margin-top: 4px;

    color: #718078;
    font-size: 10px;
}


@media (max-width: 500px) {

    .admin-current-cover {
        align-items: flex-start;
    }

    .admin-current-cover img {
        width: 75px;
        height: 107px;
    }

}
/* ==========================================
   BIBLIOTEKA MANHW — ADMIN
   ========================================== */

.admin-library-tools {
    display: flex;
    gap: 12px;
}

.admin-library-search {
    flex: 1;
}

.admin-library-search input,
.admin-library-tools select {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    background: #111a15;
    border: 1px solid #304138;
    border-radius: 8px;

    color: #dce5df;

    font: inherit;
    font-size: 12px;

    outline: none;
}

.admin-library-tools select {
    width: 200px;
}

.admin-library-search input:focus,
.admin-library-tools select:focus {
    border-color: #4a8c6b;
}

.admin-library-summary {
    margin-top: 12px;

    color: #718078;
    font-size: 11px;
}


/* KARTY */

.admin-library-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(320px, 1fr)
        );

    gap: 12px;
}

.admin-library-card {
    display: flex;

    min-width: 0;

    overflow: hidden;

    background: #111a15;

    border: 1px solid #293b31;
    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.admin-library-card:hover {
    border-color: #3e624f;
    transform: translateY(-1px);
}

.admin-library-cover {
    width: 95px;
    min-width: 95px;
    height: 135px;

    object-fit: cover;

    background: #0d140f;
}

.admin-library-content {
    min-width: 0;
    flex: 1;

    padding: 13px;

    display: flex;
    flex-direction: column;
}

.admin-library-content h3 {
    margin: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #e1e9e4;
    font-size: 13px;
}

.admin-library-authors {
    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #718078;
    font-size: 10px;
}


/* META */

.admin-library-meta {
    margin-top: 11px;

    display: flex;
    align-items: center;
    gap: 7px;

    flex-wrap: wrap;
}

.admin-library-meta span {
    padding: 4px 7px;

    background: #19251e;

    border-radius: 5px;

    color: #91a198;
    font-size: 9px;
}

.admin-library-meta .status-ongoing {
    color: #83c79e;
}

.admin-library-meta .status-completed {
    color: #8fb8d4;
}

.admin-library-meta .status-paused {
    color: #d1ae79;
}

.admin-library-meta .status-planned {
    color: #a89ac7;
}


/* PRZYCISKI */

.admin-library-actions {
    margin-top: auto;
    padding-top: 10px;

    display: flex;
    gap: 7px;
}

.admin-library-actions a {
    padding: 7px 10px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;
}

.admin-library-edit {
    background: #1d2c24;
    color: #9db3a7;
}

.admin-library-edit:hover {
    background: #263a2f;
    color: #ffffff;
}

.admin-library-chapter {
    background: #285943;
    color: #ffffff;
}

.admin-library-chapter:hover {
    background: #347257;
}


/* BRAK WYNIKÓW */

.admin-library-empty {
    padding: 50px 20px;

    text-align: center;

    color: #718078;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 700px) {

    .admin-library-tools {
        flex-direction: column;
    }

    .admin-library-tools select {
        width: 100%;
    }

    .admin-library-grid {
        grid-template-columns: 1fr;
    }

}
.admin-library-manage {
    background: #252f2a;
    color: #aebbb4;
}

.admin-library-manage:hover {
    background: #303d36;
    color: #ffffff;
}
/* ==========================================
   ZARZĄDZANIE ROZDZIAŁAMI
   ========================================== */

.admin-chapters-back {
    display: inline-block;

    margin-bottom: 8px;

    color: #789488;
    text-decoration: none;
    font-size: 10px;
}

.admin-chapters-back:hover {
    color: #b7c9bf;
}


/* MANHWA */

.admin-chapters-manhwa {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-chapters-manhwa img {
    width: 70px;
    height: 100px;

    object-fit: cover;

    border-radius: 7px;

    background: #0d140f;
}

.admin-chapters-manhwa > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-chapters-manhwa strong {
    color: #e0e9e4;
    font-size: 14px;
}

.admin-chapters-manhwa span {
    color: #84968c;
    font-size: 10px;
}

.admin-chapters-manhwa small {
    color: #638071;
    font-size: 10px;
}


/* SEKCJE */

.admin-chapters-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-chapter-section {
    margin: 0;
}

.admin-chapter-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 12px;
}

.admin-chapter-section-heading h2 {
    margin: 0;

    color: #dce6e0;
    font-size: 14px;
}

.admin-chapter-section-heading span {
    padding: 4px 7px;

    background: #18251e;
    border-radius: 5px;

    color: #7f9589;
    font-size: 9px;
}


/* LISTA */

.admin-chapter-list {
    display: flex;
    flex-direction: column;
}

.admin-chapter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid #25332c;
}

.admin-chapter-row:last-child {
    border-bottom: 0;
}

.admin-chapter-row-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-chapter-row-info strong {
    color: #d9e3dd;
    font-size: 11px;
}

.admin-chapter-row-info span {
    color: #6f8177;
    font-size: 9px;
}


/* AKCJE */

.admin-chapter-row-actions {
    display: flex;
    gap: 6px;
}

.admin-chapter-row-actions button,
.admin-chapter-row-actions a {
    padding: 6px 9px;

    border-radius: 6px;

    font: inherit;
    font-size: 9px;

    cursor: pointer;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.admin-chapter-edit {
    background: #1e3027;
    border: 1px solid #345442;

    color: #9cc0aa;

    line-height: 1;
    
}

.admin-chapter-edit:hover {
    background: #294234;
    color: #ffffff;
}

.admin-chapter-delete {
    background: transparent;
    border: 1px solid #633b38;

    color: #c17c76;
}

.admin-chapter-delete:hover {
    background: #452522;
    color: #ffffff;
}

.admin-chapter-empty {
    padding: 20px 0;

    color: #617269;
    font-size: 10px;
}


/* MOBILE */

@media (max-width: 550px) {

    .admin-chapter-row {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* ==========================================
   MODAL USUWANIA — ADMIN
   ========================================== */

.admin-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(4, 8, 6, 0.72);
    backdrop-filter: blur(3px);
}

.admin-modal-overlay[hidden] {
    display: none;
}

.admin-modal {
    width: 100%;
    max-width: 430px;

    padding: 24px;

    background: #18221d;

    border: 1px solid #3f5549;
    border-radius: 13px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45);
}

.admin-modal h2 {
    margin: 0 0 10px;

    color: #ffffff;
    font-size: 17px;
}

.admin-modal p {
    margin: 0;

    color: #a7b5ad;
    font-size: 12px;
    line-height: 1.6;
}

.admin-modal-warning {
    margin-top: 16px;
    padding: 11px 13px;

    background: #291c1a;

    border: 1px solid #593633;
    border-radius: 7px;

    color: #d39a94;

    font-size: 10px;
}

.admin-modal-actions {
    margin-top: 22px;

    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.admin-modal-actions button {
    padding: 9px 14px;

    border-radius: 7px;

    font: inherit;
    font-size: 11px;

    cursor: pointer;
}

.admin-modal-cancel {
    background: transparent;

    border: 1px solid #425248;

    color: #9cacA3;
}

.admin-modal-cancel:hover {
    background: #222f28;
    color: #ffffff;
}

.admin-modal-delete {
    background: #713d38;

    border: 1px solid #864b45;

    color: #ffffff;
}

.admin-modal-delete:hover {
    background: #874842;
}
/* ==========================================
   LOGOWANIE DO PANELU
   ========================================== */

.admin-login-body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
    box-sizing: border-box;

    background: #0b100d;
}

.admin-login {
    width: 100%;
    max-width: 390px;
}

.admin-login-logo {
    margin-bottom: 22px;

    text-align: center;

    color: #e5eee8;
    font-size: 20px;
    font-weight: 700;
}

.admin-login-logo span {
    display: block;

    margin-top: 5px;

    color: #658072;
    font-size: 10px;
    font-weight: 400;
}

.admin-login-card {
    padding: 28px;

    background: #141e18;

    border: 1px solid #304138;
    border-radius: 13px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}

.admin-login-card h1 {
    margin: 0;

    color: #e3ece6;
    font-size: 20px;
}

.admin-login-card > p {
    margin: 7px 0 24px;

    color: #718078;
    font-size: 11px;
}

.admin-login-card .admin-field {
    margin-bottom: 16px;
}

.admin-login-card input {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    background: #0e1611;

    border: 1px solid #304138;
    border-radius: 7px;

    color: #e0e9e3;

    font: inherit;

    outline: none;
}

.admin-login-card input:focus {
    border-color: #4c8a69;
}

.admin-login-error {
    margin-bottom: 14px;
    padding: 10px 12px;

    background: #291c1a;

    border: 1px solid #593633;
    border-radius: 7px;

    color: #d39a94;

    font-size: 10px;
    line-height: 1.5;
}

.admin-login-button {
    width: 100%;

    margin-top: 5px;

    border: 0;

    cursor: pointer;
}

.admin-login-back {
    display: block;

    margin-top: 18px;

    text-align: center;

    color: #64776d;
    text-decoration: none;
    font-size: 10px;
}

.admin-login-back:hover {
    color: #a5b8ad;
}
/* ==========================================
   WYLOGOWANIE Z PANELU
   ========================================== */

.admin-logout {
    margin-top: auto;
    margin-bottom: 8px;

    width: 100%;
    padding: 10px 12px;

    background: transparent;

    border: 1px solid #3f5047;
    border-radius: 7px;

    color: #8fa097;

    font: inherit;
    font-size: 11px;
    text-align: left;

    cursor: pointer;
}

.admin-logout:hover {
    background: #222f28;
    color: #ffffff;
}

/* ==========================================
   NOWY MOTYW STRONY PUBLICZNEJ
   ========================================== */

/* TŁO */

body:not(.admin-body) {
    background: #101713;
    color: #dce5df;
}


/* ==========================================
   HEADER
   ========================================== */

body:not(.admin-body) > header {
    background: #18221d;
    border-bottom: 1px solid #285943;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

body:not(.admin-body) .logo {
    color: #ffffff;
}

body:not(.admin-body) nav a {
    color: #b8c7bf;
}

body:not(.admin-body) nav a:hover {
    color: #9ac7ad;
}


/* ==========================================
   NAGŁÓWKI
   ========================================== */

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) h3 {
    color: #ffffff;
}

body:not(.admin-body) .welcome h2 {
    color: #ffffff;
}

body:not(.admin-body) .welcome p {
    color: #84948b;
}


/* ==========================================
   GŁÓWNY NOWY ROZDZIAŁ
   ========================================== */

body:not(.admin-body) .latest-update {
    background: #18221d;

    border: 1px solid #285943;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.25);
}

body:not(.admin-body) .latest-update:hover {
    border-color: #3d8060;
}

body:not(.admin-body) .update-label {
    color: #9ac7ad;
}

body:not(.admin-body) .update-button {
    background: #326b50;
    color: #ffffff;
}

body:not(.admin-body) .update-button:hover {
    background: #3d8060;
}


/* ==========================================
   OSTATNIE AKTUALIZACJE
   ========================================== */

body:not(.admin-body) .recent-update-item {
    background: #18221d;
    border: 1px solid #26372e;
    color: #ffffff;
}

body:not(.admin-body) .recent-update-item:hover {
    background: #1c2922;
    border-color: #3d8060;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.2);
}

body:not(.admin-body) .recent-update-main strong {
    color: #ffffff;
}

body:not(.admin-body) .recent-update-main span {
    color: #9eaea5;
}

body:not(.admin-body) .recent-update-date {
    color: #718078;
}


/* ==========================================
   KAFELKI MANHW
   ========================================== */

body:not(.admin-body) .manhwa-card {
    background: #18221d;
    border: 1px solid #26372e;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.22);
}

body:not(.admin-body) .manhwa-card:hover {
    border-color: #3d8060;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3);
}

body:not(.admin-body) .manhwa-card-info h3 {
    color: #ffffff;
}

body:not(.admin-body) .manhwa-card:hover .manhwa-card-info h3 {
    color: #9ac7ad !important;
}

body:not(.admin-body) .manhwa-type {
    color: #84948b;
}

body:not(.admin-body) .latest-chapter {
    color: #b8c7bf;
}

body:not(.admin-body) .latest-chapter strong {
    color: #9ac7ad;
}


/* ==========================================
   STATUS
   ========================================== */

body:not(.admin-body) .status-badge {
    background: #285943;
    color: #ffffff;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.25);
}


/* ==========================================
   STRONA KONKRETNEJ MANHWY
   ========================================== */

body:not(.admin-body) .manhwa-info {
    background: #18221d;

    border: 1px solid #26372e;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);
}

body:not(.admin-body) .manhwa-details h1 {
    color: #ffffff;
}

body:not(.admin-body) #manhwa-description,
body:not(.admin-body) .manhwa-description {
    color: #a9b8b0;
    line-height: 1.75;
}

body:not(.admin-body) .manhwa-meta p {
    color: #9eaea5;
}

body:not(.admin-body) .manhwa-meta strong {
    color: #9ac7ad;
}


/* ==========================================
   SEZONY
   ========================================== */

body:not(.admin-body) .season-title {
    color: #9ac7ad;
    border-bottom-color: #285943;
}

body:not(.admin-body) .empty-season {
    background: #18221d;
    color: #718078;
}


/* ==========================================
   ROZDZIAŁY
   ========================================== */

body:not(.admin-body) .chapter-list a {
    background: #18221d;

    border: 1px solid #26372e;

    color: #ffffff;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.16);
}

body:not(.admin-body) .chapter-list a:hover {
    background: #1c2922;
    border-color: #3d8060;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);
}

body:not(.admin-body) .chapter-list small {
    color: #718078;
}



body:not(.admin-body) .chapter-arrow {
    color: #9ac7ad;
}

body:not(.admin-body) .chapters-heading span {
    color: #84948b;
}


/* ==========================================
   STRONA "NOWE ROZDZIAŁY"
   ========================================== */

body:not(.admin-body) .chapter-item {
    background: #18221d;

    border: 1px solid #26372e;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.18);
}

body:not(.admin-body) .chapter-item:hover {
    background: #1c2922;
    border-color: #3d8060;
}

body:not(.admin-body) .chapter-info h2 {
    color: #ffffff;
}

body:not(.admin-body) .chapter-info p {
    color: #9eaea5;
}

body:not(.admin-body) .chapter-info small {
    color: #718078;
}

body:not(.admin-body) .chapter-item .nav-button {
    background: #326b50;
}

body:not(.admin-body) .chapter-item .nav-button:hover {
    background: #3d8060;
}


/* ==========================================
   FILTRY
   ========================================== */

body:not(.admin-body) .advanced-filters {
    background: #18221d;

    border: 1px solid #26372e;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.18);
}

body:not(.admin-body) .filter-group h3 {
    color: #9ac7ad;
}

body:not(.admin-body) .filter-group label {
    color: #b8c7bf;
}

body:not(.admin-body) .filter-group input {
    accent-color: #3d8060;
}

body:not(.admin-body) .clear-filters {
    border-color: #35674f;
    color: #9ac7ad;
}

body:not(.admin-body) .clear-filters:hover {
    background: #285943;
    color: #ffffff;
}


/* ==========================================
   WYSZUKIWARKA KATALOGU
   ========================================== */

body:not(.admin-body) #catalog-search-input {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 15px;

    background: #18221d;

    border: 1px solid #304138;
    border-radius: 9px;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

body:not(.admin-body) #catalog-search-input::placeholder {
    color: #718078;
}

body:not(.admin-body) #catalog-search-input:focus {
    border-color: #4a8c6b;

    box-shadow:
        0 0 0 3px rgba(74, 140, 107, 0.12);
}


/* ==========================================
   PODPOWIEDZI WYSZUKIWANIA
   ========================================== */

body:not(.admin-body) .search-suggestions {
    background: #18221d;
    border-color: #304138;
}

body:not(.admin-body) .search-suggestion {
    color: #ffffff;
    border-bottom-color: #26372e;
}

body:not(.admin-body) .search-suggestion:hover {
    background: #202f27;
}

body:not(.admin-body) .search-suggestion-title {
    color: #ffffff;
}

body:not(.admin-body) .search-suggestion-meta {
    color: #84948b;
}


/* ==========================================
   BRAK WYNIKÓW
   ========================================== */

body:not(.admin-body) .no-results,
body:not(.admin-body) .no-results p {
    color: #84948b;
}

body:not(.admin-body) .no-results h2 {
    color: #ffffff;
}


/* ==========================================
   O STRONIE
   ========================================== */

body:not(.admin-body) .about-page {
    background: #18221d;

    border: 1px solid #26372e;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);
}

body:not(.admin-body) .about-page h1 {
    color: #ffffff;
}

body:not(.admin-body) .about-page p {
    color: #a9b8b0;
}

body:not(.admin-body) .about-intro,
body:not(.admin-body) .about-section h2 {
    color: #9ac7ad !important;
}


/* ==========================================
   LICZNIK WYNIKÓW
   ========================================== */

body:not(.admin-body) .catalog-results-info span {
    color: #84948b;
}


/* ==========================================
   STOPKA
   ========================================== */

body:not(.admin-body) .site-footer {
    background: #0d140f;
    border-top-color: #26372e;
}

/* ==========================================
   STRONA GŁÓWNA — DOPRACOWANIE UKŁADU
   ========================================== */

/* NOWY ROZDZIAŁ */

body:not(.admin-body) .latest-update {
    min-height: 170px;
    padding: 26px 30px;
    border-radius: 16px;
}

body:not(.admin-body) .latest-update-cover {
    width: 112px;
    height: 158px;
    border-radius: 12px;
}

body:not(.admin-body) .latest-update-cover img {
    object-fit: cover;
}

body:not(.admin-body) .latest-update-text h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

body:not(.admin-body) .latest-update-text p {
    color: #a9b8b0;
}

body:not(.admin-body) .update-label {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 1.2px;
}

body:not(.admin-body) .update-button {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}


/* OSTATNIE AKTUALIZACJE */

body:not(.admin-body) .recent-updates {
    margin-top: 36px;
}

body:not(.admin-body) .recent-updates-heading h2 {
    font-size: 19px;
}

body:not(.admin-body) .recent-update-item {
    padding: 16px 18px;
    border-radius: 10px;
}

body:not(.admin-body) .recent-update-main {
    gap: 18px;
}

body:not(.admin-body) .recent-update-main strong {
    min-width: 180px;
    font-size: 14px;
}

body:not(.admin-body) .recent-update-main span {
    font-size: 12px;
}


/* POWITANIE */

body:not(.admin-body) .welcome {
    margin: 42px 0 28px;
    padding: 22px 24px;

    background: #18221d;
    border: 1px solid #26372e;
    border-radius: 12px;
}

body:not(.admin-body) .welcome h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

body:not(.admin-body) .welcome p {
    margin: 0;
    font-size: 14px;
}


/* NAGŁÓWEK SEKCJI MANHW */

body:not(.admin-body) .latest > h2 {
    margin-bottom: 18px;
    font-size: 21px;
}


/* KAFELKI */

body:not(.admin-body) .manhwa-card {
    border-radius: 12px;
}

body:not(.admin-body) .manhwa-card-info {
    min-height: 135px;

    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .manhwa-card-info h3 {
    font-size: 16px;
    line-height: 1.35;
}

body:not(.admin-body) .manhwa-type {
    line-height: 1.45;
}

body:not(.admin-body) .latest-chapter {
    margin-top: auto;
}


/* LEPSZE ODSTĘPY */

body:not(.admin-body) main {
    margin-top: 34px;
    margin-bottom: 50px;
}


/* TELEFON */

@media (max-width: 768px) {

    body:not(.admin-body) .latest-update {
        min-height: auto;
        padding: 18px;
    }

    body:not(.admin-body) .latest-update-cover {
        width: 78px;
        height: 110px;
    }

    body:not(.admin-body) .latest-update-text h2 {
        font-size: 17px;
    }

    body:not(.admin-body) .recent-update-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    body:not(.admin-body) .recent-update-main strong {
        min-width: 0;
    }

}
/* ==========================================
   STRONA MANHWY — ZWIJANE SEKCJE
   ========================================== */

body:not(.admin-body) .season-block {
    margin-bottom: 12px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.16);
}


/* NAGŁÓWEK */

body:not(.admin-body) .season-header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 19px;

    border: 0;

    background: transparent;
    color: #ffffff;

    font-family: inherit;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


body:not(.admin-body) .season-header:hover {
    background: #1c2922;
}


/* TYTUŁ */

body:not(.admin-body) .season-header-title {
    font-size: 15px;
    font-weight: 700;

    text-align: left;
}


/* PRAWA STRONA */

body:not(.admin-body) .season-header-meta {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


body:not(.admin-body) .season-chapter-count {
    color: #84948b;

    font-size: 12px;
    font-weight: 500;
}


/* STRZAŁKA */

body:not(.admin-body) .season-toggle-arrow {
    color: #9ac7ad;

    font-size: 20px;
    line-height: 1;

    transition:
        transform 0.25s ease;
}


body:not(.admin-body)
.collapsible-section.open
.season-toggle-arrow {

    transform:
        rotate(180deg);
}


/* ==========================================
   ZAWARTOŚĆ SEKCJI
   ========================================== */

body:not(.admin-body) .season-content {
    display: none;

    padding:
        0 12px 12px;
}


body:not(.admin-body)
.collapsible-section.open
.season-content {

    display: block;
}


/* ROZDZIAŁY WEWNĄTRZ */

body:not(.admin-body)
.season-content > a {

    margin-bottom: 7px;

    background: #111a15;

    border-color: #26372e;

    box-shadow: none;
}


body:not(.admin-body)
.season-content > a:last-child {

    margin-bottom: 0;
}


body:not(.admin-body)
.season-content > a:hover {

    background: #202f27;

    border-color: #3d8060;
}


/* BRAK ROZDZIAŁÓW */

body:not(.admin-body)
.season-content
.empty-season {

    margin: 0;

    padding: 14px 16px;

    background: #111a15;

    border-radius: 8px;

    color: #718078;

    font-size: 13px;
}


/* TELEFON */

@media (max-width: 600px) {

    body:not(.admin-body) .season-header {
        padding: 15px;
    }

    body:not(.admin-body) .season-header-title {
        font-size: 14px;
    }

    body:not(.admin-body) .season-chapter-count {
        font-size: 11px;
    }

}
/* ==========================================
   STRONA MANHWY — GÓRNA KARTA
   ========================================== */

body:not(.admin-body) .manhwa-info {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);

    gap: 34px;

    padding: 28px;

    border-radius: 16px;

    background: #18221d;
    border: 1px solid #26372e;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22);
}


/* OKŁADKA */

body:not(.admin-body) .manhwa-cover {
    width: 230px;
    height: 325px;

    object-fit: cover;

    border-radius: 12px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.35);
}


/* ==========================================
   TYTUŁ
   ========================================== */

body:not(.admin-body) .manhwa-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;
}

body:not(.admin-body) .manhwa-title-row h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.2;

    color: #ffffff;
}


/* STATUS PRZY TYTULE */

body:not(.admin-body)
.manhwa-title-row
.status-badge {

    position: static;

    padding: 6px 10px;

    border-radius: 6px;

    background: #285943;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.3px;
}


/* ==========================================
   OPIS
   ========================================== */

body:not(.admin-body) #manhwa-description {
    max-width: 760px;

    margin: 0 0 24px;

    color: #a9b8b0;

    font-size: 14px;
    line-height: 1.75;
}


/* ==========================================
   INFORMACJE
   ========================================== */

body:not(.admin-body) .manhwa-meta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    overflow: hidden;

    border: 1px solid #26372e;
    border-radius: 10px;

    background: #26372e;
}


body:not(.admin-body) .manhwa-meta p {
    margin: 0;

    padding: 13px 15px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    background: #111a15;

    color: #dce5df;

    font-size: 13px;
}


body:not(.admin-body) .manhwa-meta strong {
    color: #718078;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}


body:not(.admin-body) .manhwa-meta span {
    color: #dce5df;

    line-height: 1.45;
}


/* ==========================================
   ROZDZIAŁY — NAGŁÓWEK
   ========================================== */

body:not(.admin-body) .chapters {
    margin-top: 36px;
}


body:not(.admin-body) .chapters-heading {
    margin-bottom: 16px;

    padding-bottom: 12px;

    border-bottom: 1px solid #26372e;
}


body:not(.admin-body) .chapters-heading h2 {
    margin: 0;

    font-size: 21px;
}


body:not(.admin-body) .chapters-heading span {
    padding: 5px 9px;

    border-radius: 6px;

    background: #18221d;

    color: #84948b;

    font-size: 11px;
}


/* ==========================================
   TABLET / TELEFON
   ========================================== */

@media (max-width: 750px) {

    body:not(.admin-body) .manhwa-info {
        grid-template-columns: 140px minmax(0, 1fr);

        gap: 20px;

        padding: 18px;
    }


    body:not(.admin-body) .manhwa-cover {
        width: 140px;
        height: 198px;
    }


    body:not(.admin-body) .manhwa-title-row h1 {
        font-size: 22px;
    }


    body:not(.admin-body) .manhwa-meta {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    body:not(.admin-body) .manhwa-info {
        display: block;
    }


    body:not(.admin-body) .manhwa-cover {
        display: block;

        width: 180px;
        height: 255px;

        margin:
            0 auto 22px;
    }


    body:not(.admin-body) .manhwa-title-row {
        justify-content: center;
        text-align: center;
    }


    body:not(.admin-body) #manhwa-description {
        text-align: left;
    }

}
/* ==========================================
   KATALOG MANHW — DOPRACOWANIE
   ========================================== */

/* NAGŁÓWEK STRONY */

body:not(.admin-body) .latest > h1 {
    margin-bottom: 22px;

    font-size: 28px;
    color: #ffffff;
}


/* ==========================================
   WYSZUKIWARKA KATALOGU
   ========================================== */

body:not(.admin-body) .catalog-search-wrapper {
    margin-bottom: 22px;
}

body:not(.admin-body) #catalog-search-input {
    min-height: 46px;

    padding: 13px 16px;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 10px;

    color: #ffffff;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

body:not(.admin-body) #catalog-search-input:hover {
    border-color: #3b5848;
}

body:not(.admin-body) #catalog-search-input:focus {
    background: #131e18;

    border-color: #4a8c6b;

    box-shadow:
        0 0 0 3px rgba(74, 140, 107, 0.12);
}


/* ==========================================
   PANEL FILTRÓW
   ========================================== */

body:not(.admin-body) .advanced-filters {
    gap: 34px;

    padding: 24px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 12px;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.18);
}

body:not(.admin-body) .filter-group {
    min-width: 170px;
}

body:not(.admin-body) .filter-group h3 {
    margin-bottom: 13px;

    color: #9ac7ad;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

body:not(.admin-body) .filter-group label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 8px 0;

    color: #b8c7bf;

    font-size: 12px;

    transition:
        color 0.15s ease;
}

body:not(.admin-body) .filter-group label:hover {
    color: #ffffff;
}

body:not(.admin-body) .filter-group input {
    accent-color: #4a8c6b;
}


/* ==========================================
   WYCZYŚĆ FILTRY
   ========================================== */

body:not(.admin-body) .clear-filters {
    padding: 10px 15px;

    background: #111a15;

    border: 1px solid #35674f;
    border-radius: 8px;

    color: #9ac7ad;

    font-size: 11px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

body:not(.admin-body) .clear-filters:hover {
    background: #285943;
    border-color: #3d8060;

    color: #ffffff;
}


/* ==========================================
   LICZNIK WYNIKÓW
   ========================================== */

body:not(.admin-body) .catalog-results-info {
    margin: 0 0 16px;
}

body:not(.admin-body) .catalog-results-info span {
    color: #718078;

    font-size: 11px;
    font-weight: 600;
}


/* ==========================================
   KAFELKI W KATALOGU
   ========================================== */

body:not(.admin-body) .manhwa-grid {
    gap: 20px;
}

body:not(.admin-body) .manhwa-card {
    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

body:not(.admin-body) .manhwa-card:hover {
    transform: translateY(-4px);

    border-color: #3d8060;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28);
}


/* OKŁADKA */

body:not(.admin-body) .manhwa-card .cover {
    background: #0d140f;
}

body:not(.admin-body) .manhwa-card .cover img {
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

body:not(.admin-body) .manhwa-card:hover .cover img {
    transform: scale(1.035);

    filter: brightness(1.04);
}


/* ==========================================
   INFORMACJE NA KAFELKU
   ========================================== */

body:not(.admin-body) .manhwa-card-info {
    min-height: 150px;

    padding: 14px 15px 15px;
}

body:not(.admin-body) .manhwa-card-info h3 {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.35;
}

body:not(.admin-body) .manhwa-type {
    margin-bottom: 11px;

    color: #84948b;

    font-size: 11px;
    line-height: 1.5;
}

body:not(.admin-body) .manhwa-card-meta {
    gap: 5px 10px;

    margin-bottom: 11px;

    color: #718078;

    font-size: 10px;
}

body:not(.admin-body) .manhwa-card-meta strong {
    color: #9ac7ad;
}

body:not(.admin-body) .latest-chapter {
    color: #a9b8b0;

    font-size: 11px;
}

body:not(.admin-body) .latest-chapter strong {
    color: #9ac7ad;
}


/* ==========================================
   STATUS NA OKŁADCE
   ========================================== */

body:not(.admin-body) .manhwa-card .status-badge {
    top: 10px;
    left: 10px;

    padding: 5px 8px;

    background: rgba(40, 89, 67, 0.93);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(154, 199, 173, 0.14);

    border-radius: 6px;

    font-size: 9px;
    letter-spacing: 0.3px;
}


/* ==========================================
   BRAK WYNIKÓW
   ========================================== */

body:not(.admin-body) .no-results {
    padding: 55px 20px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 12px;
}

body:not(.admin-body) .no-results h2 {
    font-size: 18px;
}

body:not(.admin-body) .no-results p {
    color: #718078;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 850px) {

    body:not(.admin-body) .advanced-filters {
        gap: 22px;
    }

}


/* ==========================================
   TELEFON
   ========================================== */

@media (max-width: 600px) {

    body:not(.admin-body) .advanced-filters {
        padding: 18px;
    }

    body:not(.admin-body) .manhwa-grid {
        gap: 14px;
    }

    body:not(.admin-body) .manhwa-card-info {
        min-height: 135px;

        padding: 12px;
    }

    body:not(.admin-body) .manhwa-card-info h3 {
        font-size: 14px;
    }

}
/* ==========================================
   CZYTNIK — NOWY WYGLĄD
   ========================================== */

body:not(.admin-body) .reader {
    max-width: 900px;
    margin: 0 auto;
}


/* ==========================================
   TYTUŁ ROZDZIAŁU
   ========================================== */

body:not(.admin-body) #reader-title {
    margin: 22px 0 26px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 600;

    line-height: 1.4;

    text-align: center;
}


/* ==========================================
   NAWIGACJA
   ========================================== */

body:not(.admin-body) .reader-navigation {
    display: grid;
    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 12px;

    margin: 20px 0;
}


body:not(.admin-body) .reader-navigation .nav-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 10px 15px;

    background: #18221d;

    border: 1px solid #304138;
    border-radius: 8px;

    color: #b8c7bf;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


body:not(.admin-body) .reader-navigation .nav-button:hover {
    background: #202f27;
    border-color: #4a8c6b;

    color: #ffffff;

    transform: translateY(-1px);
}


/* ŚRODKOWY PRZYCISK — LISTA ROZDZIAŁÓW */

body:not(.admin-body)
.reader-navigation
#chapter-list,

body:not(.admin-body)
.reader-navigation
#chapter-list-bottom {

    background: #285943;

    border-color: #35674f;

    color: #ffffff;
}


body:not(.admin-body)
.reader-navigation
#chapter-list:hover,

body:not(.admin-body)
.reader-navigation
#chapter-list-bottom:hover {

    background: #326b50;
}


/* POPRZEDNI DO LEWEJ */

body:not(.admin-body)
.reader-navigation
#previous-chapter,

body:not(.admin-body)
.reader-navigation
#previous-chapter-bottom {

    justify-self: start;
}


/* NASTĘPNY DO PRAWEJ */

body:not(.admin-body)
.reader-navigation
#next-chapter,

body:not(.admin-body)
.reader-navigation
#next-chapter-bottom {

    justify-self: end;
}


/* ==========================================
   NIEAKTYWNY PRZYCISK
   ========================================== */

body:not(.admin-body)
.reader-navigation
.nav-button.disabled {

    opacity: 0.28;

    background: #111a15;

    border-color: #26372e;

    color: #718078;

    transform: none;

    cursor: default;
}


/* ==========================================
   STRONY MANHWY
   ========================================== */

body:not(.admin-body) #reader-pages {
    width: 100%;

    overflow: hidden;

    background: #0d140f;
}


/*
BARDZO WAŻNE:
ZERO ODSTĘPÓW MIĘDZY STRONAMI.
*/

body:not(.admin-body) #reader-pages img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin: 0;
    padding: 0;

    border: 0;
}


/* ==========================================
   GÓRNA / DOLNA NAWIGACJA
   ========================================== */

body:not(.admin-body)
#reader-pages + .reader-navigation {

    margin-top: 26px;
}


/* ==========================================
   TELEFON
   ========================================== */

@media (max-width: 600px) {

    body:not(.admin-body) .reader {
        width: 100%;
    }


    body:not(.admin-body) #reader-title {
        margin: 18px 0 20px;

        padding: 0 8px;

        font-size: 17px;
    }


    body:not(.admin-body) .reader-navigation {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 7px;
    }


    body:not(.admin-body)
    .reader-navigation
    .nav-button {

        width: 100%;

        min-height: 40px;

        padding: 9px 7px;

        font-size: 10px;

        text-align: center;
    }


    body:not(.admin-body)
    .reader-navigation
    #previous-chapter,

    body:not(.admin-body)
    .reader-navigation
    #previous-chapter-bottom,

    body:not(.admin-body)
    .reader-navigation
    #next-chapter,

    body:not(.admin-body)
    .reader-navigation
    #next-chapter-bottom {

        justify-self: stretch;
    }

}
/* ==========================================
   NOWE ROZDZIAŁY — DOPRACOWANIE
   ========================================== */

body:not(.admin-body) .new-chapters {
    gap: 12px;
}

body:not(.admin-body) .chapter-item {
    padding: 18px 20px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 10px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.16);
}

body:not(.admin-body) .chapter-item:hover {
    background: #1c2922;

    border-color: #3d8060;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.22);
}

body:not(.admin-body) .chapter-info h2 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 17px;
}

body:not(.admin-body) .chapter-info p {
    color: #9eaea5;

    font-size: 13px;
}

body:not(.admin-body) .chapter-info small {
    display: block;

    margin-top: 5px;

    color: #718078;

    font-size: 11px;
}

body:not(.admin-body) .chapter-item .nav-button {
    padding: 10px 15px;

    background: #326b50;

    border-radius: 7px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}

body:not(.admin-body) .chapter-item .nav-button:hover {
    background: #3d8060;
}


/* ==========================================
   O STRONIE — DOPRACOWANIE
   ========================================== */

body:not(.admin-body) .about-page {
    max-width: 850px;

    padding: 34px 36px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);
}

body:not(.admin-body) .about-page h1 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 28px;
}

body:not(.admin-body) .about-page p {
    color: #a9b8b0;

    font-size: 14px;
    line-height: 1.8;
}

body:not(.admin-body) .about-intro {
    color: #9ac7ad !important;

    font-size: 18px !important;
}

body:not(.admin-body) .about-section {
    margin-top: 30px;
}

body:not(.admin-body) .about-section h2 {
    color: #9ac7ad !important;

    font-size: 18px;
}


/* ==========================================
   HEADER — DOPRACOWANIE
   ========================================== */

body:not(.admin-body) > header {
    min-height: 72px;

    padding: 0 40px;

    display: flex;
    align-items: center;

    background: #18221d;

    border-bottom: 1px solid #285943;
}

body:not(.admin-body) .logo {
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.7px;
}

body:not(.admin-body) .header-right {
    gap: 22px;
}

body:not(.admin-body) nav {
    gap: 22px;
}

body:not(.admin-body) nav a {
    color: #b8c7bf;

    font-size: 13px;
    font-weight: 500;
}

body:not(.admin-body) nav a:hover {
    color: #ffffff;
}


/* ==========================================
   WYSZUKIWARKA W HEADERZE
   ========================================== */

body:not(.admin-body) .header-search {
    background: #111a15;

    border: 1px solid #304138;

    border-radius: 8px;
}

body:not(.admin-body) .header-search input {
    width: 180px;

    color: #ffffff;
}

body:not(.admin-body) .header-search input::placeholder {
    color: #718078;
}

body:not(.admin-body) .header-search button {
    color: #9ac7ad;
}


/* ==========================================
   STOPKA
   ========================================== */

body:not(.admin-body) .site-footer {
    margin-top: 60px;

    padding: 30px 20px;

    background: #0d140f;

    border-top: 1px solid #26372e;
}

body:not(.admin-body) .footer-title {
    color: #84948b;

    font-size: 12px;
}

body:not(.admin-body) .discord-links a {
    padding: 8px 14px;

    background: #111a15;

    border: 1px solid #304138;

    color: #9ac7ad;
}

body:not(.admin-body) .discord-links a:hover {
    background: #285943;

    border-color: #3d8060;

    color: #ffffff;
}


/* ==========================================
   MOBILE — HEADER / STOPKA / O STRONIE
   ========================================== */

@media (max-width: 768px) {

    body:not(.admin-body) > header {
        min-height: auto;

        padding: 16px 18px;

        flex-direction: column;

        gap: 14px;
    }

    body:not(.admin-body) .header-right {
        width: 100%;

        flex-direction: column;

        gap: 12px;
    }

    body:not(.admin-body) nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 14px;
    }

    body:not(.admin-body) .header-search-wrapper {
        width: 100%;
    }

    body:not(.admin-body) .header-search {
        width: 100%;
    }

    body:not(.admin-body) .header-search input {
        width: 100%;
    }

    body:not(.admin-body) .about-page {
        padding: 24px 20px;
    }

    body:not(.admin-body) .chapter-item {
        gap: 14px;
    }

}
/* ==========================================
   GLOBALNY FINALNY SZLIF
   ========================================== */

/* GŁÓWNA SZEROKOŚĆ */

body:not(.admin-body) main {
    max-width: 1180px;

    margin:
        34px auto 56px;

    padding:
        0 22px;
}


/* ==========================================
   TYPOGRAFIA
   ========================================== */

body:not(.admin-body) {
    font-size: 14px;

    line-height: 1.55;
}

body:not(.admin-body) h1 {
    font-size: 30px;

    line-height: 1.2;
}

body:not(.admin-body) h2 {
    font-size: 21px;

    line-height: 1.3;
}

body:not(.admin-body) h3 {
    line-height: 1.35;
}


/* ==========================================
   LINKI
   ========================================== */

body:not(.admin-body) a {
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


/* ==========================================
   GŁÓWNE SEKCJE
   ========================================== */

body:not(.admin-body) .latest,
body:not(.admin-body) .recent-updates,
body:not(.admin-body) .chapters {
    scroll-margin-top: 20px;
}


/* ==========================================
   PRZYCISKI
   ========================================== */

body:not(.admin-body) .nav-button,
body:not(.admin-body) .update-button,
body:not(.admin-body) .clear-filters {
    box-sizing: border-box;

    font-family: inherit;
}


/* ==========================================
   ZAOKRĄGLENIA — SPÓJNOŚĆ
   ========================================== */

body:not(.admin-body) .latest-update,
body:not(.admin-body) .manhwa-info,
body:not(.admin-body) .advanced-filters,
body:not(.admin-body) .about-page {
    border-radius: 14px;
}

body:not(.admin-body) .manhwa-card,
body:not(.admin-body) .chapter-item,
body:not(.admin-body) .season-block,
body:not(.admin-body) .recent-update-item {
    border-radius: 11px;
}


/* ==========================================
   DELIKATNE OBRAMOWANIA
   ========================================== */

body:not(.admin-body) .manhwa-card,
body:not(.admin-body) .chapter-item,
body:not(.admin-body) .recent-update-item,
body:not(.admin-body) .season-block,
body:not(.admin-body) .manhwa-info,
body:not(.admin-body) .advanced-filters,
body:not(.admin-body) .about-page {
    border-color: #26372e;
}


/* ==========================================
   SEKCJE STRONY GŁÓWNEJ
   ========================================== */

body:not(.admin-body) .recent-updates-heading,
body:not(.admin-body) .chapters-heading {
    min-height: 34px;
}


/* ==========================================
   WYSZUKIWARKI
   ========================================== */

body:not(.admin-body) input[type="search"] {
    box-sizing: border-box;
}

body:not(.admin-body) input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}


/* ==========================================
   FOCUS — KLAWIATURA
   ========================================== */

body:not(.admin-body) a:focus-visible,
body:not(.admin-body) button:focus-visible,
body:not(.admin-body) input:focus-visible {
    outline: 2px solid #4a8c6b;
    outline-offset: 2px;
}


/* ==========================================
   SCROLLBAR — CHROMIUM
   ========================================== */

body:not(.admin-body) {
    scrollbar-color:
        #304138
        #101713;
}

body:not(.admin-body)::-webkit-scrollbar {
    width: 11px;
}

body:not(.admin-body)::-webkit-scrollbar-track {
    background: #101713;
}

body:not(.admin-body)::-webkit-scrollbar-thumb {
    background: #304138;

    border: 3px solid #101713;

    border-radius: 10px;
}

body:not(.admin-body)::-webkit-scrollbar-thumb:hover {
    background: #3d8060;
}


/* ==========================================
   RESPONSYWNOŚĆ — TABLET
   ========================================== */

@media (max-width: 900px) {

    body:not(.admin-body) main {
        padding:
            0 18px;
    }

}


/* ==========================================
   RESPONSYWNOŚĆ — TELEFON
   ========================================== */

@media (max-width: 600px) {

    body:not(.admin-body) main {
        margin-top: 24px;

        padding:
            0 14px;
    }


    body:not(.admin-body) h1 {
        font-size: 24px;
    }


    body:not(.admin-body) h2 {
        font-size: 19px;
    }

}
/* ==========================================
   O STRONIE — DISCORD I ZASADY
   ========================================== */

body:not(.admin-body) .about-discord-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;
}

body:not(.admin-body) .about-discord-links a {
    padding: 9px 15px;

    background: #111a15;

    border: 1px solid #35674f;
    border-radius: 8px;

    color: #9ac7ad;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
}

body:not(.admin-body) .about-discord-links a:hover {
    background: #285943;

    border-color: #3d8060;

    color: #ffffff;
}


/* ZASADY */

body:not(.admin-body) .about-rules {
    margin: 14px 0 0;

    padding-left: 20px;

    color: #a9b8b0;

    font-size: 13px;
    line-height: 1.75;
}

body:not(.admin-body) .about-rules li {
    margin-bottom: 9px;
}

body:not(.admin-body) .about-rules li::marker {
    color: #4a8c6b;
}


/* NOTKA NA DOLE */

body:not(.admin-body) .about-note {
    margin-top: 34px;

    padding-top: 18px;

    border-top: 1px solid #26372e;

    color: #718078;

    font-size: 10px;
    line-height: 1.6;
}
/* ==========================================
   ADMIN — KOMPAKTOWA LISTA GATUNKÓW
   ========================================== */

.admin-genres {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 7px 10px;

    max-height: 145px;

    overflow-y: auto;

    padding: 10px;

    background: #111a15;

    border: 1px solid #304138;
    border-radius: 8px;

    scrollbar-width: thin;
    scrollbar-color: #35674f #111a15;
}


.admin-genres label {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    margin: 0;

    padding: 7px 8px;

    background: #18221d;

    border: 1px solid #26372e;
    border-radius: 6px;

    color: #b8c7bf;

    font-size: 11px;

    cursor: pointer;
}


.admin-genres label:hover {
    background: #202f27;

    border-color: #35674f;

    color: #ffffff;
}


.admin-genres input[type="checkbox"] {
    flex-shrink: 0;

    margin: 0;

    accent-color: #4a8c6b;
}


/* SCROLLBAR */

.admin-genres::-webkit-scrollbar {
    width: 7px;
}

.admin-genres::-webkit-scrollbar-track {
    background: #111a15;
}

.admin-genres::-webkit-scrollbar-thumb {
    background: #35674f;

    border-radius: 10px;
}


@media (max-width: 900px) {

    .admin-genres {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}
/* ==========================================
   KATALOG — KOMPAKTOWE GATUNKI W FILTRACH
   ========================================== */

body:not(.admin-body) #genre-filters {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px 12px;

    max-height: 150px;

    overflow-y: auto;

    padding-right: 8px;

    scrollbar-width: thin;
    scrollbar-color: #35674f #18221d;
}


body:not(.admin-body) #genre-filters label {
    margin: 0;

    min-width: 0;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 11px;
}


/* SCROLLBAR */

body:not(.admin-body) #genre-filters::-webkit-scrollbar {
    width: 7px;
}

body:not(.admin-body) #genre-filters::-webkit-scrollbar-track {
    background: #18221d;
}

body:not(.admin-body) #genre-filters::-webkit-scrollbar-thumb {
    background: #35674f;

    border-radius: 10px;
}


/* TABLET */

@media (max-width: 900px) {

    body:not(.admin-body) #genre-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* TELEFON */

@media (max-width: 600px) {

    body:not(.admin-body) #genre-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        max-height: 170px;
    }

}
/* ==========================================
   LOGO KAMAA
   ========================================== */

body:not(.admin-body) .logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    font-size: 23px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: none;

    background:
        linear-gradient(
            90deg,
            #ffffff 15%,
            #dce5df 50%,
            #9ac7ad 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* SERDUSZKO */

body:not(.admin-body) .logo::after {
    content: "♡";

    margin-left: 8px;

    color: #9ac7ad;

    font-size: 14px;
    font-weight: 700;

    /*
    Serduszko ma własny kolor,
    nie gradient napisu.
    */
    -webkit-text-fill-color: #9ac7ad;

    transform: translateY(-1px);
}

.latest-chapter-label {
    color: #285943 !important;
    font-weight: 700 !important;
}

.latest-chapter-label {
    color: #9ac7ad !important;
    font-weight: 700 !important;
}

.admin-action-card,
.admin-action-card:hover,
.admin-action-card:visited,
.admin-action-card:active {
    text-decoration: none;
}

@media (max-width: 700px) {

    .admin-library-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .admin-library-actions a {
        text-align: center;
        box-sizing: border-box;
    }

    .admin-library-actions a:last-child {
        grid-column: 1 / -1;
    }

}

/* ==========================================
   PRZECZYTANE ROZDZIAŁY
   ========================================== */

.chapter-list a:visited strong {
    color: #777;
}

.chapter-list a:visited .chapter-arrow {
    color: #777;
}

.latest-chapter-label {
    color: #9ac7ad !important;
    font-weight: 700 !important;
}
.admin-file-preview-item {
    cursor: pointer;
    transition:
        outline 0.15s ease,
        transform 0.15s ease;
}

.admin-file-preview-item.selected {
    outline: 3px solid #4f9b78;
    outline-offset: 3px;
    transform: translateY(-2px);
}

.admin-file-preview-item.selected .admin-preview-number {
    font-weight: 800;
}
.admin-page-selection-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.admin-delete-selected-pages {
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
/* ==========================================
   ZAZNACZONE STRONY — ADMIN
   ========================================== */

.admin-page-selection-actions[hidden] {
    display: none !important;
}

.admin-page-selection-actions {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;

    color: #a7b5ad;
    font-size: 11px;
}

#selected-pages-count {
    display: inline-block;
    color: #a7b5ad;
    font-weight: 600;
}

.admin-delete-selected-pages {
    padding: 9px 14px;
    border: 1px solid #633b38;
    border-radius: 8px;

    background: transparent;
    color: #c17c76;

    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
/* ==========================================
   OCHRONA OBRAZKÓW W CZYTNIKU
   ========================================== */

#reader-pages img {
    -webkit-user-select: none;
    user-select: none;

    -webkit-user-drag: none;

    -webkit-touch-callout: none;
}
/* ==========================================
   STABILIZACJA CZYTNIKA — CLS
   ========================================== */

/*
Pasek przewijania zajmuje miejsce od początku,
więc nagłówek nie przesuwa się po dodaniu obrazków.
*/

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}


/*
Stopka jest niewidoczna, dopóki czytnik nie przygotuje
miejsca na wszystkie strony rozdziału.

visibility: hidden zachowuje miejsce stopki,
ale Cloudflare nie rejestruje jej skakania.
*/

body.reader-loading .site-footer {
    visibility: hidden;
}


/*
Wymiary zapisane przez JavaScript wyznaczają proporcje
obrazka jeszcze przed jego pobraniem.
*/

#reader-pages img[width][height] {
    height: auto;
}

/*
Rezerwujemy miejsce na listę gatunków, którą strona katalogu
uzupełnia dopiero po pobraniu danych z Supabase (13 pozycji).
*/
body:not(.admin-body) .advanced-filters #genre-filters {
    min-height: 390px;
}

/* ==========================================
   CLS — REZERWACJA MIEJSCA NA STRONIE GŁÓWNEJ
   ========================================== */

/* Lista ostatnich aktualizacji */
body:not(.admin-body) #recent-updates-list {
    min-height: 170px;
}

/* Miejsce na 5 najnowszych manhw */
body:not(.admin-body) #home-manhwa-container {
    min-height: 430px;
}

/* Na telefonie karty i aktualizacje układają się inaczej */
@media (max-width: 768px) {
    body:not(.admin-body) #recent-updates-list {
        min-height: 240px;
    }

    body:not(.admin-body) #home-manhwa-container {
        min-height: 390px;
    }
}
