/* =====================================================
   Katalog Pocztówek Korea–Japonia
   Czysty CSS – jedna wersja, brak konfliktów
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;1,400&family=Cinzel:wght@400;600&family=Noto+Serif+JP:wght@300;400;600&display=swap');

/* ===================== ZMIENNE ===================== */
:root {
    --cream:      #f5ead8;
    --cream-dark: #e8d8b8;
    --cream-mid:  #ede0c6;
    --ink:        #2c1f0e;
    --ink-light:  #5c3f1e;
    --ink-faint:  #8a6a42;
    --red:        #8b2020;
    --red-lt:     #c0392b;
    --gold:       #a07840;
    --gold-lt:    #c9a060;
    --shadow:     rgba(44,31,14,.16);
    --border:     rgba(44,31,14,.22);
    --line:       rgba(44,31,14,.08);
    --h:          38px;   /* wspólna wysokość pól i przycisków */
    --r:          3px;    /* wspólny border-radius */
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    background-color: #d6c4a2;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 28px, var(--line) 28px, var(--line) 29px
    );
    color: var(--ink);
    font-family: 'Noto Serif', 'Noto Serif JP', Georgia, serif;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-lt); }

/* ===================== HEADER ===================== */
.site-header {
    background: linear-gradient(135deg, #1a0f05 0%, #2c1f0e 55%, #1a0f05 100%);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,.45);
    text-align: center;
    padding: 1.5rem 1rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.site-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: .08em;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    font-size: clamp(1.05rem, 3.5vw, 1.9rem);
    line-height: 1.25;
}
.site-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(.78rem, 2.2vw, 1rem);
    color: var(--gold-lt);
    letter-spacing: .2em;
    margin-top: .3rem;
    font-weight: 300;
}
.header-divider {
    display: flex; align-items: center; justify-content: center;
    gap: .6rem; margin-top: .5rem;
    color: var(--gold); opacity: .6;
    font-size: clamp(.55rem, 1.2vw, .68rem);
    letter-spacing: .25em;
}
.header-divider::before, .header-divider::after {
    content: ''; flex-shrink: 0;
    width: 32px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===================== NAV ===================== */
.site-nav {
    background: var(--cream-dark);
    border-bottom: 2px solid var(--border);
    padding: 0 1rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    font-family: 'Cinzel', serif;
    font-size: .76rem;
    letter-spacing: .07em;
    min-height: 42px;
    flex-wrap: nowrap;          /* nigdy nie łamie na nową linię */
    overflow-x: auto;           /* przewija się poziomo na małych ekranach */
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;      /* ukryj scrollbar */
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--ink-light);
    padding: 0 .75rem;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-nav a:hover  { color: var(--red); border-bottom-color: var(--red); }
.site-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-spacer { flex: 1 1 auto; min-width: .5rem; }

/* Ikony użytkownika po prawej – zawsze widoczne */
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    padding: 0 .25rem 0 .5rem;
}
.nav-user-icon {
    display: inline-flex; align-items: center; gap: .28rem;
    color: var(--ink-faint);
    font-size: .66rem;
    font-family: 'Cinzel', serif; letter-spacing: .04em;
    white-space: nowrap;
}
.nav-user-name {
    color: var(--ink-light); font-weight: 600;
    max-width: 90px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.nav-icon-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--ink-faint); padding: .2rem .35rem;
    border-radius: var(--r); border: 1px solid transparent;
    transition: all .2s; cursor: pointer; flex-shrink: 0;
    white-space: nowrap; line-height: 1;
}
.nav-icon-btn:hover {
    color: var(--ink-light); background: var(--cream-mid);
    border-color: var(--border);
}
.nav-icon-login { color: var(--red); }
.nav-icon-login:hover {
    color: var(--red-lt);
    background: rgba(139,32,32,.07);
    border-color: rgba(139,32,32,.2);
}
.nav-login-label {
    font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: .06em;
}

/* ===================== CONTAINER ===================== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.2rem 1rem;
}

/* ===================== FILTER BAR ===================== */
.filter-bar {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
    overflow: hidden;
}

/* Górny pasek – zawsze widoczny */
.filter-top-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    width: 100%;
}

/* Wrapper ikony + pole szukaj */
.filter-search-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 1;
    min-width: 0;
}
.filter-search-icon {
    flex-shrink: 0;
    color: var(--ink-faint);
    display: flex; align-items: center;
    pointer-events: none;
}
.filter-search-input {
    flex: 1;
    min-width: 0;
    height: var(--h);
    padding: 0 .7rem;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--ink);
    font-family: 'Noto Serif', serif;
    font-size: .88rem;
    outline: none;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
}
.filter-search-input:focus { border-color: var(--gold); background: #fdf7ee; }

.filter-search-clear {
    background: none; border: none; cursor: pointer;
    color: var(--ink-faint); font-size: .72rem;
    padding: 4px; line-height: 1;
    flex-shrink: 0;
    transition: color .2s;
}
.filter-search-clear:hover { color: var(--red); }

/* Przycisk Filtry */
.filter-toggle-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    height: var(--h); padding: 0 .8rem;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .07em;
    color: var(--ink-light); cursor: pointer;
    transition: all .2s; white-space: nowrap;
    flex-shrink: 0;
}
.filter-toggle-btn:hover { background: var(--cream-dark); border-color: var(--gold); color: var(--ink); }
.filter-toggle-btn.has-active { border-color: var(--gold); color: var(--ink); }
.filter-chevron { transition: transform .25s ease; flex-shrink: 0; }
.filter-toggle-btn.expanded .filter-chevron { transform: rotate(180deg); }
.filter-active-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); flex-shrink: 0;
}

/* Przycisk Szukaj – identyczna wysokość co pole */
.filter-submit-main {
    height: var(--h);
    padding: 0 1rem;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--cream);
    border: 2px solid var(--gold);
    border-radius: var(--r);
    font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .09em;
    cursor: pointer; transition: background .2s;
    white-space: nowrap;
}
.filter-submit-main:hover { background: var(--ink-light); }

/* Panel rozwijany */
.filter-panel {
    width: 100%;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.filter-panel[hidden] {
    display: block !important;
    max-height: 0;
    overflow: hidden;
}
.filter-panel.open { max-height: 700px; }

.filter-panel-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-end;
    padding: .75rem .75rem .85rem;
}

/* Grupy wewnątrz panelu */
.filter-group {
    display: flex; flex-direction: column; gap: .2rem; min-width: 0;
}
.filter-group label {
    font-family: 'Cinzel', serif; font-size: .62rem;
    color: var(--ink-faint); letter-spacing: .07em; white-space: nowrap;
}
.filter-group select {
    height: var(--h); padding: 0 1.8rem 0 .65rem;
    background: var(--cream-mid);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a6a42'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .55rem center;
    border: 1px solid var(--border); border-radius: var(--r);
    color: var(--ink); font-family: 'Noto Serif', serif; font-size: .82rem;
    outline: none; transition: border-color .2s, background-color .2s;
    -webkit-appearance: none; appearance: none;
    cursor: pointer;
}
.filter-group select:focus { border-color: var(--gold); background-color: #fdf7ee; }

.filter-group-select { flex: 0 0 120px; }
.filter-group-tags   { flex: 1 1 200px; }

.filter-panel-actions {
    display: flex; gap: .4rem; align-items: flex-end; margin-left: auto;
}

/* Tagi w filtrze */
.tag-filter-wrap {
    min-height: var(--h); height: auto;
    display: flex; flex-wrap: wrap; gap: .22rem; align-items: center;
    padding: .28rem .5rem;
    background: var(--cream-mid);
    border: 1px solid var(--border); border-radius: var(--r);
}
.tag-chip {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 7px; border-radius: 10px;
    font-size: .6rem; font-family: 'Cinzel', serif; letter-spacing: .04em;
    cursor: pointer; border: 1px solid var(--border);
    background: var(--cream); color: var(--ink-light);
    transition: all .15s; user-select: none; white-space: nowrap;
}
.tag-chip:hover, .tag-chip.active {
    background: var(--ink); color: var(--cream); border-color: var(--gold);
}
.tag-cnt { opacity: .5; font-size: .56rem; margin-left: 1px; }

/* Wyniki */
.results-info {
    font-size: .78rem; color: var(--ink-faint); font-style: italic;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}

/* ===================== CARDS GRID ===================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 1.1rem;
}

.card {
    background: var(--cream); border: 1px solid var(--border); border-radius: 3px;
    overflow: hidden;
    box-shadow: 2px 3px 10px var(--shadow), inset 0 0 40px rgba(255,255,255,.25);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer; position: relative; width: 100%;
}
.card:hover {
    transform: translateY(-4px) rotate(.25deg);
    box-shadow: 5px 7px 20px var(--shadow);
}
.card::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    border: 10px solid transparent;
    border-bottom-color: var(--cream-dark);
    border-right-color: var(--cream-dark);
}

.card-img-wrap {
    position: relative; width: 100%;
    aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--cream-dark);
}
.card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    filter: sepia(28%) contrast(.93) brightness(1.03);
    transition: transform .35s ease;
}
.card:hover .card-img { transform: scale(1.04); }

.card-photo-count {
    position: absolute; bottom: 5px; right: 7px;
    background: rgba(44,31,14,.65); color: var(--cream);
    font-size: .58rem; font-family: 'Cinzel', serif;
    padding: 1px 6px; border-radius: 8px; letter-spacing: .04em;
}
.card-placeholder {
    width: 100%; aspect-ratio: 4 / 3;
    background: var(--cream-dark);
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 18px,
        rgba(44,31,14,.04) 18px, rgba(44,31,14,.04) 19px
    );
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--ink-faint);
    font-size: clamp(1.4rem, 5vw, 2rem);
}
.card-placeholder span {
    font-size: .58rem; letter-spacing: .12em;
    font-family: 'Cinzel', serif; margin-top: .35rem;
}

.card-body { padding: .65rem .8rem .7rem; }
.card-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .15rem;
}
.card-kraj {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Cinzel', serif; font-size: .6rem; font-weight: 600;
    letter-spacing: .1em; color: var(--red); text-transform: uppercase;
}
.card-share-btn {
    background: none; border: none; cursor: pointer;
    color: var(--ink-faint); padding: 3px 4px;
    border-radius: 3px; line-height: 1;
    display: flex; align-items: center;
    transition: color .2s, background .2s;
    flex-shrink: 0; margin: -3px -4px 0 0;
}
.card-share-btn:hover { color: var(--gold); background: var(--cream-dark); }

.card-title {
    font-size: clamp(.78rem, 1.8vw, .9rem); font-weight: 600;
    color: var(--ink); line-height: 1.35; margin: .15rem 0;
}
.card-year { font-size: .66rem; color: var(--ink-faint); font-style: italic; }
.card-tags { display: flex; gap: .18rem; flex-wrap: wrap; margin-top: .3rem; }
.card-tag {
    font-size: .56rem; font-family: 'Cinzel', serif;
    padding: 1px 5px; border-radius: 8px;
    background: var(--cream-dark); color: var(--ink-faint);
    border: 1px solid var(--border); white-space: nowrap;
}
.badges { display: flex; gap: .18rem; flex-wrap: wrap; margin-top: .32rem; }
.badge {
    display: inline-flex; padding: 1px 5px; border-radius: 2px;
    font-size: .56rem; font-family: 'Cinzel', serif;
    letter-spacing: .04em; border: 1px solid; white-space: nowrap;
}
.badge-yes { background: #f0e8cc; border-color: var(--gold); color: var(--gold); }
.badge-no  { border-color: var(--border); color: var(--ink-faint); opacity: .5; }

/* ===================== MODAL ===================== */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(20,12,4,.82);
    z-index: 900; align-items: center; justify-content: center;
    padding: .75rem; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--cream); border: 2px solid var(--gold); border-radius: 4px;
    width: 100%; max-width: 860px;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,.55);
    margin: auto;
}
.modal-header {
    background: linear-gradient(135deg, #1a0f05, #2c1f0e);
    padding: .8rem 1.1rem;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 10;
}
.modal-header-actions {
    display: flex; align-items: center; gap: .35rem; flex-shrink: 0;
}
.modal-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(.78rem, 2.2vw, .95rem);
    color: var(--cream); letter-spacing: .05em;
    padding-right: .5rem; line-height: 1.3;
}
.modal-close {
    background: none; border: none; color: var(--gold-lt);
    font-size: 1.25rem; cursor: pointer; padding: 0 .2rem;
    flex-shrink: 0; transition: color .2s; line-height: 1;
}
.modal-close:hover { color: var(--cream); }
.modal-share-btn {
    background: none; border: none; cursor: pointer;
    color: var(--gold-lt); padding: .2rem .3rem;
    border-radius: 3px; line-height: 1;
    display: flex; align-items: center;
    transition: color .2s, background .2s;
}
.modal-share-btn:hover { color: var(--cream); background: rgba(255,255,255,.1); }

/* Lightbox */
.lightbox-wrap {
    position: relative; background: #0e0805; width: 100%;
    aspect-ratio: 4 / 3; overflow: hidden; max-height: 55vh;
}
.lightbox-img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    display: block; cursor: zoom-in; transition: transform .3s;
}
.lightbox-img.zoomed { transform: scale(1.85); cursor: zoom-out; }

.lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(44,31,14,.6); color: var(--cream);
    border: none; font-size: clamp(1.1rem, 4vw, 1.5rem);
    padding: .3rem .55rem; cursor: pointer; border-radius: 2px; z-index: 5;
    transition: background .2s; line-height: 1;
    min-width: 40px; min-height: 48px;
    display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(44,31,14,.9); }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-counter {
    position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    background: rgba(44,31,14,.6); color: var(--cream);
    font-family: 'Cinzel', serif; font-size: .6rem;
    padding: 2px 9px; border-radius: 9px; letter-spacing: .08em; white-space: nowrap;
}
.lb-thumbs {
    display: flex; gap: 3px; padding: 5px 6px;
    background: #0e0805; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.lb-thumb {
    width: 48px; height: 37px; object-fit: cover; flex-shrink: 0;
    cursor: pointer; opacity: .5;
    border: 2px solid transparent; border-radius: 2px;
    transition: opacity .2s, border-color .2s;
}
.lb-thumb.active, .lb-thumb:hover { opacity: 1; border-color: var(--gold); }

/* Zoom overlay */
.zoom-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.96); z-index: 2000;
    align-items: center; justify-content: center;
    padding: .5rem; cursor: zoom-out;
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border: 1px solid var(--gold);
    box-shadow: 0 0 40px rgba(0,0,0,.8);
}

.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-gallery { border-right: 1px solid var(--border); overflow: hidden; }
.modal-details { padding: 1rem 1.1rem; }
.detail-row {
    display: flex; gap: .45rem;
    padding-bottom: .62rem; margin-bottom: .62rem;
    border-bottom: 1px solid var(--line); font-size: .82rem;
}
.detail-row:last-child { border-bottom: none; margin-bottom: 0; }
.detail-label {
    font-family: 'Cinzel', serif; font-size: .62rem;
    color: var(--ink-faint); letter-spacing: .06em;
    min-width: 85px; padding-top: 2px; flex-shrink: 0;
}
.detail-price { color: var(--red); font-weight: 600; }
.modal-comment {
    padding: .85rem 1.1rem 1.1rem;
    border-top: 1px solid var(--border);
    font-size: .82rem; font-style: italic;
    color: var(--ink-light); line-height: 1.8;
    background: rgba(255,255,255,.18);
}
.modal-admin-bar {
    display: flex; gap: .45rem; flex-wrap: wrap;
    padding: .6rem 1.1rem;
    background: var(--cream-mid);
    border-top: 1px solid var(--border);
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: var(--h); padding: 0 1.1rem;
    border: none; border-radius: var(--r);
    font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .09em;
    cursor: pointer; transition: all .2s;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    -webkit-appearance: none;
}
.btn-sm { height: 30px; padding: 0 .85rem; font-size: .63rem; }

.btn-primary   { background: var(--ink);  color: var(--cream); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--ink-light); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--ink-light); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--cream-dark); color: var(--ink); }
.btn-danger    { background: var(--red); color: #fdf7ee; border: 2px solid #6b1818; }
.btn-danger:hover { background: #6b1818; color: #fdf7ee; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-family: 'Cinzel', serif; font-size: .68rem;
    color: var(--ink-faint); letter-spacing: .07em; margin-bottom: .28rem;
}

/* Wspólna wysokość i wygląd dla wszystkich pól */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select {
    display: block; width: 100%;
    height: var(--h);           /* ← ta sama zmienna co przyciski */
    padding: 0 .85rem;
    background: var(--cream-mid);
    border: 1px solid var(--border); border-radius: var(--r);
    color: var(--ink); font-family: 'Noto Serif', serif; font-size: .9rem;
    outline: none; transition: border-color .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a6a42'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
    padding-right: 2rem; cursor: pointer;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--gold); background: #fdf7ee;
}
.form-group textarea {
    display: block; width: 100%; padding: .5rem .85rem;
    background: var(--cream-mid);
    border: 1px solid var(--border); border-radius: var(--r);
    color: var(--ink); font-family: 'Noto Serif', serif; font-size: .9rem;
    outline: none; resize: vertical; min-height: 88px;
    transition: border-color .2s, background .2s;
}
.form-group textarea:focus { border-color: var(--gold); background: #fdf7ee; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

.form-checkboxes { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.check-label {
    display: flex; align-items: center; gap: .38rem;
    font-family: 'Cinzel', serif; font-size: .68rem;
    letter-spacing: .05em; color: var(--ink-light); cursor: pointer;
}
.check-label input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--red);
    cursor: pointer; flex-shrink: 0;
}

/* ===================== LOGIN ===================== */
.login-wrap {
    max-width: 400px; width: 100%;
    margin: 2.5rem auto; padding: 0 1rem;
}

/* Wymuszenie tej samej wysokości co --h na polach logowania */
.login-wrap .form-group input[type="text"],
.login-wrap .form-group input[type="password"] {
    height: var(--h);
    width: 100%;
    font-size: .9rem;
}

/* Przycisk Zaloguj – pełna szerokość, identyczna wysokość */
.login-wrap .btn-submit {
    width: 100%;
    height: var(--h);
    margin-top: .3rem;
    font-size: .75rem;
    display: flex; align-items: center; justify-content: center;
}

.login-readonly-note {
    text-align: center; margin-top: 1rem;
    font-size: .76rem; color: var(--ink-faint);
    font-style: italic; line-height: 1.6;
}

/* ===================== UPLOAD ===================== */
.upload-zone {
    border: 2px dashed var(--border); border-radius: 4px;
    padding: 1rem; background: var(--cream-mid);
    text-align: center; position: relative; cursor: pointer;
    transition: border-color .2s, background .2s;
}
.upload-zone:hover { border-color: var(--gold); background: #fdf7ee; }
.upload-zone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-text { font-size: .74rem; color: var(--ink-faint); font-style: italic; margin-top: .3rem; }

.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .65rem; }
.photo-item { position: relative; width: 76px; }
.photo-item img {
    width: 76px; height: 58px; object-fit: cover;
    border-radius: 2px; border: 2px solid var(--border);
    filter: sepia(20%); display: block;
}
.photo-item.cover img { border-color: var(--gold); }
.photo-del {
    position: absolute; top: -5px; right: -5px;
    width: 18px; height: 18px; background: var(--red); color: #fff;
    border: none; border-radius: 50%; font-size: .6rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.photo-cover-label {
    font-family: 'Cinzel', serif; font-size: .52rem;
    letter-spacing: .05em; color: var(--gold); text-align: center; margin-top: 2px;
}
.photo-drag-handle {
    position: absolute; bottom: 3px; left: 3px;
    font-size: .85rem; color: rgba(255,255,255,.75);
    cursor: grab; line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    user-select: none;
}
.photo-item.dragging {
    opacity: .35; border: 2px dashed var(--gold) !important; border-radius: 2px;
}

/* ===================== TAGS INPUT ===================== */
.tags-input-wrap {
    display: flex; flex-wrap: wrap; gap: .22rem;
    padding: .3rem .6rem; min-height: var(--h);
    background: var(--cream-mid); border: 1px solid var(--border);
    border-radius: var(--r); cursor: text;
    transition: border-color .2s; align-items: center;
}
.tags-input-wrap:focus-within { border-color: var(--gold); background: #fdf7ee; }
.tags-input-wrap .tag-pill {
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--ink); color: var(--cream);
    padding: 2px 7px; border-radius: 9px;
    font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .03em;
}
.tags-input-wrap .tag-pill button {
    background: none; border: none; color: var(--gold-lt);
    cursor: pointer; font-size: .7rem; line-height: 1; padding: 0;
}
.tags-input-wrap input {
    border: none; background: transparent; outline: none;
    font-family: 'Noto Serif', serif; font-size: .85rem;
    color: var(--ink); min-width: 80px; flex: 1; padding: 1px 3px;
}
.tags-suggestions {
    position: absolute; z-index: 200; top: 100%; left: 0;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 2px 4px 12px var(--shadow);
    max-height: 160px; overflow-y: auto; min-width: 180px;
}
.tags-suggestions div {
    padding: 6px 11px; font-size: .82rem; cursor: pointer; color: var(--ink-light);
}
.tags-suggestions div:hover { background: var(--cream-mid); }

/* ===================== ADMIN ===================== */
.admin-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 4px; box-shadow: 3px 3px 14px var(--shadow); overflow: hidden;
}
.admin-card-header {
    background: linear-gradient(135deg, #1a0f05, #2c1f0e);
    padding: .85rem 1.4rem; display: flex; align-items: center; gap: .7rem;
}
.admin-card-header h2 {
    font-family: 'Cinzel', serif; font-size: .92rem;
    color: var(--cream); letter-spacing: .07em; font-weight: 600;
}
.admin-card-body { padding: 1.4rem; }
.admin-wrap { max-width: 860px; margin: 1.2rem auto; padding: 0 1rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem; table-layout: auto; }
.admin-table th {
    font-family: 'Cinzel', serif; font-size: .62rem; letter-spacing: .07em;
    color: var(--ink-faint); text-align: left;
    padding: .52rem .82rem; border-bottom: 2px solid var(--border);
    background: var(--cream-mid); white-space: nowrap;
}
.admin-table td {
    padding: .52rem .82rem; border-bottom: 1px solid var(--line);
    color: var(--ink-light); vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.4); }
.admin-table .thumb {
    width: 46px; height: 35px; object-fit: cover;
    border-radius: 2px; filter: sepia(22%); display: block;
}

/* ===================== ALERTS ===================== */
.alert {
    padding: .68rem 1rem; border-radius: 3px;
    margin-bottom: .9rem; font-size: .82rem; border-left: 4px solid;
}
.alert-success { background: #e8f0d8; border-color: #5a7a30; color: #3a5220; }
.alert-error   { background: #f0ddd8; border-color: var(--red); color: var(--red); }
.alert-info    { background: #e8e4d8; border-color: var(--gold); color: var(--ink-light); }

/* ===================== BACKUP ===================== */
.backup-section {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 4px; padding: 1.1rem; margin-bottom: 1rem;
    box-shadow: 2px 2px 8px var(--shadow);
}
.backup-section h3 {
    font-family: 'Cinzel', serif; font-size: .83rem;
    letter-spacing: .07em; color: var(--ink); margin-bottom: .7rem;
    padding-bottom: .42rem; border-bottom: 1px solid var(--border);
}

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: .28rem; margin-top: 1.8rem; flex-wrap: wrap;
}
.pag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 .45rem;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: var(--r); font-family: 'Cinzel', serif;
    font-size: .7rem; letter-spacing: .04em;
    color: var(--ink-light); text-decoration: none;
    transition: all .2s; cursor: pointer;
}
.pag-btn:hover { background: var(--cream-dark); color: var(--ink); border-color: var(--gold); }
.pag-current { background: var(--ink); color: var(--cream); border-color: var(--gold); cursor: default; }
.pag-current:hover { background: var(--ink); color: var(--cream); }
.pag-disabled { color: var(--ink-faint); opacity: .4; cursor: default; pointer-events: none; }
.pag-ellipsis { color: var(--ink-faint); font-size: .78rem; padding: 0 .15rem; line-height: 34px; }

/* ===================== TOAST ===================== */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--ink); color: var(--cream);
    padding: .55rem 1.1rem; border-radius: 18px;
    font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .06em;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 3000; white-space: nowrap; max-width: 90vw;
    overflow: hidden; text-overflow: ellipsis;
    border: 1px solid var(--gold);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--ink-faint); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: .7rem; }
.empty-state p { font-style: italic; font-size: .85rem; }

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--ink); color: var(--gold-lt); text-align: center;
    padding: 1rem;
    font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .12em;
    margin-top: 2.5rem; border-top: 3px solid var(--gold);
}

/* ===================== CARD DETAIL PAGE (card.php) ===================== */
.card-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.1rem; flex-wrap: wrap; gap: .45rem;
}
.card-nav-btn {
    display: inline-flex; align-items: center;
    height: 34px; padding: 0 .85rem;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .06em;
    color: var(--ink-light); text-decoration: none; transition: all .2s;
}
.card-nav-btn:hover { background: var(--cream-dark); color: var(--ink); border-color: var(--gold); }
.card-nav-disabled  { opacity: .38; pointer-events: none; cursor: default; }
.card-nav-back {
    font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .06em;
    color: var(--ink-faint); text-decoration: none; transition: color .2s;
}
.card-nav-back:hover { color: var(--red); }

.card-detail {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    box-shadow: 3px 4px 16px var(--shadow);
}
.card-detail-gallery { border-right: 1px solid var(--border); }
.cd-main-img-wrap {
    position: relative; width: 100%; aspect-ratio: 4 / 3;
    background: #0e0805; overflow: hidden;
}
.cd-main-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    display: block; cursor: zoom-in;
    transition: transform .25s ease;
}
.cd-main-img-wrap img:hover { transform: scale(1.015); }
.cd-thumbs {
    display: flex; gap: 4px; padding: 5px 6px;
    background: #0e0805; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.card-detail-info { padding: 1.4rem 1.5rem; }
.cd-kraj {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Cinzel', serif; font-size: .63rem; font-weight: 600;
    letter-spacing: .1em; color: var(--red); text-transform: uppercase;
}
.cd-title {
    font-size: clamp(.92rem, 2.5vw, 1.3rem);
    font-weight: 600; color: var(--ink); line-height: 1.3; margin: .28rem 0 .15rem;
}
.cd-year { font-size: .78rem; color: var(--ink-faint); font-style: italic; margin-bottom: .75rem; }
.cd-meta-grid { margin: .65rem 0 .85rem; }
.cd-meta-row {
    display: flex; gap: .45rem;
    padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .82rem;
}
.cd-meta-row:last-child { border-bottom: none; }
.cd-meta-label {
    font-family: 'Cinzel', serif; font-size: .6rem;
    color: var(--ink-faint); letter-spacing: .06em;
    min-width: 85px; padding-top: 2px; flex-shrink: 0;
}
.val-yes { color: #3a6a20; font-weight: 600; }
.val-no  { color: var(--ink-faint); }
.cd-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin: .7rem 0; }
.cd-tags .card-tag { font-size: .66rem; padding: 2px 8px; }
.cd-tags .card-tag:hover { background: var(--ink); color: var(--cream); border-color: var(--gold); }
.cd-comment {
    margin: .7rem 0; padding: .7rem .95rem;
    background: rgba(255,255,255,.3); border-left: 3px solid var(--gold);
    border-radius: 0 3px 3px 0;
    font-size: .82rem; font-style: italic; color: var(--ink-light); line-height: 1.7;
}
.cd-actions {
    display: flex; gap: .42rem; flex-wrap: wrap;
    margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border);
}

/* ===================== RESPONSIVE ===================== */

/* Tablet ≤860px */
@media (max-width: 860px) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery { border-right: none; border-bottom: 1px solid var(--border); }
    .lightbox-wrap { max-height: none; aspect-ratio: 4 / 3; }
    .card-detail { grid-template-columns: 1fr; }
    .card-detail-gallery { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
    html { font-size: 15px; }
    .container { padding: .9rem .7rem; }

    /* Header */
    .site-header { padding: 1rem .75rem .9rem; }
    .header-divider { display: none; }

    /* Nav – poziomy scroll, nigdy nie zawija */
    .site-nav { padding: 0 .75rem; }

    /* Filter top row */
    .filter-top-row { padding: .48rem .6rem; gap: .38rem; }
    .filter-toggle-btn span:not(.filter-active-dot) { display: none; }
    .filter-toggle-btn { padding: 0 .6rem; }

    /* Panel filtrów – 2 kolumny */
    .filter-panel-inner { gap: .45rem; padding: .6rem .6rem .7rem; }
    .filter-group-select { flex: 1 1 calc(50% - .25rem); min-width: 0; }
    .filter-group-tags   { flex: 1 1 100%; }
    .filter-panel-actions { width: 100%; margin-left: 0; }
    .filter-panel-actions .btn { flex: 1; }

    /* Siatka – 2 kolumny */
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }

    /* Modal od dołu */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal {
        max-width: 100%; border-radius: 10px 10px 0 0;
        border-left: none; border-right: none; border-bottom: none;
        max-height: 96dvh;
    }

    /* Formularze */
    .form-row { grid-template-columns: 1fr; gap: .5rem; }
    .admin-card-body { padding: 1rem .85rem; }
    .admin-wrap { padding: 0 .7rem; }
    .admin-table { font-size: .72rem; }
    .admin-table th, .admin-table td { padding: .4rem .5rem; }
}

/* Mini ≤340px */
@media (max-width: 340px) {
    .cards-grid { grid-template-columns: 1fr; }
}

/* Duże ekrany ≥1400px */
@media (min-width: 1400px) {
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Touch – brak hover animacji */
@media (hover: none) {
    .card:hover { transform: none; box-shadow: 2px 3px 10px var(--shadow); }
    .card:hover .card-img { transform: none; }
}

/* ===================== SHARE DROPDOWN ===================== */
.share-wrap { position: relative; display: inline-flex; }

.share-dropdown {
    display: none;
    position: fixed;
    z-index: 5000;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(44,31,14,.25);
    min-width: 200px;
    overflow: hidden;
}
.share-dropdown.open { display: block; }

.share-dropdown-title {
    font-family: 'Cinzel', serif;
    font-size: .65rem;
    letter-spacing: .1em;
    color: var(--ink-faint);
    padding: .6rem .9rem .4rem;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
}

.share-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    font-family: 'Cinzel', serif;
    font-size: .72rem;
    letter-spacing: .05em;
    color: var(--ink-light);
    text-decoration: none;
    transition: background .15s, color .15s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.share-item:hover { background: var(--cream-dark); color: var(--ink); }
.share-item svg { flex-shrink: 0; color: var(--ink-faint); }
.share-item:hover svg { color: var(--red); }

/* ===================== TAG FILTER – bez ramki, overflow strzałka ===================== */
.tag-filter-wrap {
    height: var(--h);
    min-height: unset;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .25rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
}

.tag-more-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    color: var(--ink-faint);
    font-size: .65rem;
    line-height: 1;
    padding: 0;
    transition: all .15s;
}
.tag-more-btn:hover {
    background: var(--cream-dark);
    border-color: var(--gold);
    color: var(--ink);
}
.tag-more-btn.active {
    background: var(--ink);
    border-color: var(--gold);
    color: var(--cream);
}

/* Panel z nadmiarem tagów */
.tag-overflow-panel {
    display: none;
    position: fixed;   /* fixed zamiast absolute – ucieka z overflow:hidden rodzica */
    min-width: 200px;
    max-width: 360px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 6px 20px var(--shadow);
    padding: .5rem .6rem;
    z-index: 800;      /* ponad filter-panel */
    flex-wrap: wrap;
    gap: .25rem;
}
.tag-overflow-panel.open { display: flex; }

/* ===================== PRZEŁĄCZNIK WIDOKU ===================== */
.view-toggle {
    display: inline-flex;
    gap: 2px;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2px;
}
.view-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 26px;
    background: none; border: none; border-radius: 2px;
    color: var(--ink-faint); cursor: pointer;
    transition: all .15s;
}
.view-btn:hover { background: var(--cream-dark); color: var(--ink-light); }
.view-btn.active {
    background: var(--ink);
    color: var(--cream);
}

/* ===================== WIDOK ZWOJÓW ===================== */
.scrolls-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.pscroll {
    position: relative;
    cursor: pointer;
    filter: drop-shadow(2px 4px 8px rgba(60,35,10,.2));
    transition: filter .2s;
}
.pscroll:hover { filter: drop-shadow(3px 6px 14px rgba(60,35,10,.3)); }

/* Rolka */
.pscroll-rod {
    height: 16px;
    background: #6b3a1f;
    border-radius: 3px 3px 0 0;
    position: relative;
    z-index: 3;
    box-shadow: 0 2px 0 #4a2610, inset 0 1px 0 rgba(255,220,160,.2);
}
.pscroll-rod-bottom {
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 0 #4a2610;
}
.pscroll-rod::before, .pscroll-rod::after,
.pscroll-rod-bottom::before, .pscroll-rod-bottom::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 26px; height: 22px;
    background: #7d4422;
    border-radius: 4px;
    box-shadow: 0 2px 0 #4a2610;
}
.pscroll-rod::before, .pscroll-rod-bottom::before { left: -5px; }
.pscroll-rod::after,  .pscroll-rod-bottom::after  { right: -5px; }
.pscroll-rod-bottom::before, .pscroll-rod-bottom::after { top: 1px; }

/* Ciało zwoju */
.pscroll-body {
    background: #f2e4c4;
    background-image:
        repeating-linear-gradient(
            0deg, transparent, transparent 22px,
            rgba(120,80,20,.06) 22px, rgba(120,80,20,.06) 23px
        );
    border-left: 3px solid #c8a060;
    border-right: 3px solid #c8a060;
    padding: 1rem 1.3rem 1rem 1.5rem;
    position: relative;
    z-index: 2;
}
.pscroll-body::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 8% 15%, rgba(160,100,30,.07) 0%, transparent 45%),
        radial-gradient(ellipse at 88% 80%, rgba(140,80,20,.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Numer zwoju */
.pscroll-num {
    position: absolute;
    left: .45rem; top: 1rem;
    writing-mode: vertical-rl;
    font-size: .58rem;
    font-family: 'Cinzel', serif;
    color: #a07840;
    letter-spacing: .1em;
    opacity: .45;
    user-select: none;
}

/* Zawartość */
.pscroll-content {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

/* Miniatura */
.pscroll-img {
    width: 100px;
    height: 76px;
    flex-shrink: 0;
    border: 2px solid #a07840;
    overflow: hidden;
    border-radius: 1px;
}
.pscroll-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(.92) brightness(1.02);
}
.pscroll-img-empty {
    background: #e0ceaa;
    background-image: repeating-linear-gradient(
        45deg, transparent, transparent 10px,
        rgba(120,80,20,.05) 10px, rgba(120,80,20,.05) 11px
    );
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

/* Kanji pionowy */
.pscroll-kanji {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .68rem;
    color: #8a5c20;
    letter-spacing: .18em;
    opacity: .5;
    flex-shrink: 0;
    padding: 0 .25rem;
    border-right: 1px solid rgba(140,80,20,.18);
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    user-select: none;
}

/* Info */
.pscroll-info { flex: 1; min-width: 0; }
.pscroll-kraj {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Cinzel', serif; font-size: .6rem;
    font-weight: 600; letter-spacing: .1em;
    color: #8b2020; text-transform: uppercase;
    margin-bottom: .18rem;
}
.pscroll-title {
    font-size: clamp(.88rem, 2vw, 1.05rem);
    font-weight: 600; color: #2c1f0e;
    line-height: 1.35; margin-bottom: .2rem;
    font-family: 'Noto Serif', serif;
}
.pscroll-rok {
    font-size: .72rem; color: #7a5c2a;
    font-style: italic; margin-bottom: .4rem;
}
.pscroll-badges { display: flex; gap: .2rem; flex-wrap: wrap; margin-bottom: .4rem; }
.pscroll-comment {
    font-size: .75rem; color: #5c3f1e;
    font-style: italic; line-height: 1.55;
    border-top: 1px solid rgba(140,80,20,.15);
    padding-top: .32rem; margin-top: .32rem;
}

/* Akcje (share) */
.pscroll-actions {
    flex-shrink: 0;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: flex-start;
}
.pscroll-share { color: #8a6a42 !important; }
.pscroll-share:hover { color: #a07840 !important; }

/* Pieczęć */
.pscroll-hanko {
    position: absolute;
    right: 1rem; bottom: .75rem;
    width: 34px; height: 34px;
    border: 2px solid #8b2020;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: #8b2020;
    font-size: .95rem;
    opacity: .3;
    transform: rotate(-5deg);
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    user-select: none;
    pointer-events: none;
}

/* Responsywność zwojów */
@media (max-width: 640px) {
    .pscroll-img { width: 72px; height: 56px; }
    .pscroll-kanji { display: none; }
    .pscroll-num { display: none; }
    .pscroll-hanko { display: none; }
    .pscroll-body { padding: .8rem .9rem; }
    .pscroll-content { gap: .6rem; }
}

/* ===================== BULK BAR (manage.php) ===================== */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .55rem .9rem;
    margin-bottom: .7rem;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: 'Cinzel', serif;
    font-size: .72rem;
    letter-spacing: .05em;
    color: var(--ink-faint);
    transition: background .2s, border-color .2s;
}
.bulk-bar-active {
    background: #f8f0e0;
    border-color: var(--gold);
    color: var(--ink-light);
}
.bulk-count {
    min-width: 120px;
    font-weight: 600;
    color: var(--ink-light);
}

/* Podświetlenie zaznaczonego wiersza */
.manage-row.row-selected td {
    background: rgba(160,120,64,.08) !important;
}
.admin-table .manage-row:hover td {
    background: rgba(255,255,255,.45);
}
.admin-table .manage-row.row-selected:hover td {
    background: rgba(160,120,64,.12) !important;
}
