/*
 * Webtoon Listesi v2 - app/pages/circle/webtoon-list-v2.php
 *
 * notification-v2 / premium-v2 ile ayni dil: notr rgba(128,128,128,..)
 * yuzeyler; demo1/demo2 takasinda JS beklemeden okunur. Opak gereken yerler
 * (yapiskan cubuk, cekmece, oneri listesi) temanin --bs-body-bg degiskenini kullanir.
 *
 * Yerlesim: >=1200px filtre paneli solda sabit (.wl2-drawer statik), daha dar
 * ekranda ayni eleman cekmece olur (850-1199 sagdan, <850 alttan).
 * Kart sutunlari .wl2-main genisligine gore (container query) secilir; 24'luk
 * sayfa 2/3/4/6/8 sutuna tam bolunur.
 *
 * PERFORMANS KURALLARI:
 *   - Sonsuz (infinite) animasyon YOK.
 *   - backdrop-filter YOK.
 *   - "transition: all" YOK.
 */

.wl2-wrap {
    --wl2-accent: #667eea;
    --wl2-accent-2: #5a6fd8;
    --wl2-accent-soft: rgba(102, 126, 234, .14);
    --wl2-danger: #e53935;
    --wl2-danger-soft: rgba(229, 57, 53, .13);
    --wl2-surface: rgba(128, 128, 128, .07);
    --wl2-surface-2: rgba(128, 128, 128, .12);
    --wl2-border: rgba(128, 128, 128, .2);
    --wl2-page: var(--bs-body-bg, #f9fafb);
    --wl2-radius: 14px;
    padding: .25rem;
}
.wl2-wrap *, .wl2-wrap *::before, .wl2-wrap *::after { box-sizing: border-box; }
.wl2-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Test seridi ---------- */
.wl2-testbar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; padding: 6px 12px; border-radius: 10px;
    font-size: .78rem; color: #c27c0e; white-space: nowrap; overflow: hidden;
    background: rgba(245, 166, 35, .12);
    border: 1px dashed rgba(245, 166, 35, .5);
}
.wl2-testbar span { overflow: hidden; text-overflow: ellipsis; }
.wl2-testbar a { margin-left: auto; color: inherit; font-weight: 700; text-decoration: underline; flex: 0 0 auto; }

/* ---------- Baslik ---------- */
.wl2-head { margin-bottom: 1rem; }
.wl2-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .3rem; line-height: 1.25; letter-spacing: -.01em; }
.wl2-head p { font-size: .88rem; opacity: .65; margin: 0; }

/* ---------- Butonlar ---------- */
.wl2-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: 0 1rem;
    border-radius: var(--wl2-radius);
    border: 1px solid var(--wl2-border);
    background: var(--wl2-page); color: inherit;
    font-size: .9rem; font-weight: 700; line-height: 1;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
.wl2-btn:hover { border-color: var(--wl2-accent); color: inherit; }
.wl2-btn:focus-visible, .wl2-pill:focus-visible,
.wl2-g:focus-visible, .wl2-tab:focus-visible, .wl2-chip:focus-visible,
.wl2-icon-btn:focus-visible, .wl2-link:focus-visible, .wl2-sug-item:focus-visible {
    outline: 2px solid var(--wl2-accent); outline-offset: 2px;
}
.wl2-btn-primary { background: var(--wl2-accent); border-color: var(--wl2-accent); color: #fff; }
.wl2-btn-primary:hover { background: var(--wl2-accent-2); border-color: var(--wl2-accent-2); color: #fff; }
.wl2-btn-primary[disabled] { background: var(--wl2-surface-2); border-color: transparent; color: inherit; opacity: .7; cursor: not-allowed; }
.wl2-btn-ghost { background: transparent; }
.wl2-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.3rem; height: 1.3rem; padding: 0 .38rem; border-radius: 999px;
    background: var(--wl2-accent); color: #fff; font-size: .7rem; font-weight: 800;
}
.wl2-icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 0; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wl2-surface-2); color: inherit; cursor: pointer;
}
.wl2-link {
    border: 0; background: none; padding: .25rem 0; color: var(--wl2-accent);
    font-size: .8rem; font-weight: 700; cursor: pointer;
}
.wl2-link[hidden] { display: none; }

/* ---------- Yerlesim ---------- */
.wl2-layout { display: block; }
.wl2-main { min-width: 0; container-type: inline-size; container-name: wl2main; }

/* ---------- Arama ---------- */
.wl2-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.wl2-search { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.wl2-search input {
    width: 100%; height: 50px; padding: 0 2.9rem 0 2.8rem;
    border-radius: var(--wl2-radius); border: 1px solid transparent;
    background: var(--wl2-surface-2); color: inherit; font-size: 1rem; font-weight: 500;
    -webkit-appearance: none; appearance: none;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.wl2-search input::placeholder { color: inherit; opacity: .55; }
.wl2-search input::-webkit-search-cancel-button { display: none; }
.wl2-search input:focus {
    outline: none; background: var(--wl2-page);
    border-color: var(--wl2-accent); box-shadow: 0 0 0 4px var(--wl2-accent-soft);
}
.wl2-search-ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); opacity: .5; font-size: .95rem; pointer-events: none; }
.wl2-search-clear {
    position: absolute; right: .4rem; top: 25px; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: transparent; color: inherit; opacity: .55; cursor: pointer;
}
.wl2-search-clear:hover { opacity: 1; background: var(--wl2-surface-2); }
.wl2-search-clear[hidden] { display: none; }

/* Oneriler */
.wl2-sug {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    padding: 6px; border-radius: var(--wl2-radius);
    background: var(--wl2-page); color: inherit;
    border: 1px solid var(--wl2-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
    max-height: min(70vh, 470px); overflow-y: auto; overscroll-behavior: contain;
}
.wl2-sug[hidden] { display: none; }
.wl2-sug-item {
    display: flex; align-items: center; gap: .75rem;
    padding: 6px 8px; border-radius: 10px;
    color: inherit; text-decoration: none;
}
.wl2-sug-item:hover, .wl2-sug-item.is-active { background: var(--wl2-accent-soft); color: inherit; }
.wl2-sug-item img {
    flex: 0 0 auto; width: 40px; height: 56px; border-radius: 6px;
    object-fit: cover; background: var(--wl2-surface-2);
}
.wl2-sug-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl2-sug-name { font-size: .9rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl2-sug-name mark { background: none; color: var(--wl2-accent); padding: 0; }
.wl2-sug-meta { font-size: .75rem; opacity: .6; }
.wl2-sug-adult { color: var(--wl2-danger); font-weight: 700; }
.wl2-sug-all {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    margin-top: 4px; padding: .7rem; border-radius: 10px;
    border-top: 1px solid var(--wl2-border);
    font-size: .85rem; font-weight: 700; color: var(--wl2-accent); text-decoration: none;
}
.wl2-sug-all:hover, .wl2-sug-all.is-active { background: var(--wl2-accent-soft); color: var(--wl2-accent); }
.wl2-sug-empty { padding: .8rem .7rem; font-size: .86rem; opacity: .7; }

/* Filtre butonu (yalnizca cekmece modunda) */
.wl2-open { height: 50px; padding: 0 1.1rem; background: var(--wl2-surface-2); border-color: transparent; }
.wl2-open:hover { border-color: var(--wl2-accent); }

/* ---------- Hizli filtreler ---------- */
.wl2-quick {
    display: flex; align-items: center; gap: .45rem;
    overflow-x: auto; margin: 0 -.25rem .85rem; padding: .1rem .25rem .3rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wl2-quick::-webkit-scrollbar { display: none; }
.wl2-quick-sep { flex: 0 0 1px; height: 22px; background: var(--wl2-border); margin: 0 .2rem; }
.wl2-pill {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem;
    min-height: 36px; padding: 0 .95rem; border-radius: 999px;
    border: 1px solid var(--wl2-border); background: var(--wl2-page); color: inherit;
    font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.wl2-pill:hover { border-color: var(--wl2-accent); color: var(--wl2-accent); }
.wl2-pill.is-on { background: var(--wl2-accent); border-color: var(--wl2-accent); color: #fff; }
.wl2-pill i, .wl2-pill svg { font-size: .72rem; }
.wl2-pill-more { background: transparent; border-style: dashed; color: var(--wl2-accent); }

/* ---------- Sonuc satiri + siralama + chip'ler ---------- */
.wl2-result { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; min-height: 40px; }
.wl2-total { font-size: .9rem; opacity: .8; white-space: nowrap; }
.wl2-total b { font-weight: 800; font-size: 1rem; }

.wl2-sort {
    position: relative; display: inline-flex; align-items: center; gap: .15rem;
    margin: 0; padding-left: .8rem; border-radius: 10px;
    background: var(--wl2-surface-2); cursor: pointer; min-width: 0;
}
.wl2-sort-lbl { font-size: .82rem; opacity: .6; white-space: nowrap; }
.wl2-sort select {
    height: 40px; padding: 0 2rem 0 .3rem; min-width: 0; max-width: 100%;
    border: 0; border-radius: 10px; background-color: transparent; color: inherit;
    font-size: .86rem; font-weight: 700; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center;
}
.wl2-sort select:focus { outline: none; }
.wl2-sort:focus-within { box-shadow: 0 0 0 2px var(--wl2-accent); }
.wl2-sort select option { color: #222; }

.wl2-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.wl2-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 32px; padding: 0 .75rem; border-radius: 999px;
    background: var(--wl2-accent-soft); color: var(--wl2-accent);
    font-size: .8rem; font-weight: 700; text-decoration: none;
}
.wl2-chip:hover { background: rgba(102, 126, 234, .26); color: var(--wl2-accent); }
.wl2-chip.is-excl { background: var(--wl2-danger-soft); color: var(--wl2-danger); }
.wl2-chip.is-excl:hover { background: rgba(229, 57, 53, .24); color: var(--wl2-danger); }
.wl2-chip-pre { font-weight: 600; opacity: .8; }
.wl2-chip i, .wl2-chip svg { font-size: .68rem; }
.wl2-clear-all { font-size: .8rem; font-weight: 700; color: inherit; opacity: .65; text-decoration: underline; padding: 0 .25rem; }
.wl2-clear-all:hover { opacity: 1; color: inherit; }

/* ---------- Bos sonuc ---------- */
.wl2-empty { text-align: center; padding: 3rem 1rem; border-radius: 16px; background: var(--wl2-surface); }
.wl2-empty-ico {
    width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--wl2-accent-soft); color: var(--wl2-accent); font-size: 1.4rem;
}
.wl2-empty b { display: block; font-size: 1rem; margin-bottom: .3rem; }
.wl2-empty p { font-size: .86rem; opacity: .7; margin: 0 0 1rem; }

/* ---------- Sayfa gecisi: yukleniyor ---------- */
.wl2-results { position: relative; transition: opacity .15s; }
.wl2-wrap.is-loading .wl2-results { opacity: .45; pointer-events: none; }
.wl2-wrap.is-loading .wl2-results::after {
    content: ""; position: absolute; left: 50%; top: 120px; width: 34px; height: 34px; margin-left: -17px;
    border-radius: 50%; border: 3px solid var(--wl2-accent-soft); border-top-color: var(--wl2-accent);
    animation: wl2-spin .7s linear 12;
}
@keyframes wl2-spin { to { transform: rotate(360deg); } }
/* Ust ilerleme cubugu: tiklamadan hemen sonra geri bildirim (tek seferlik animasyon) */
.wl2-wrap.is-loading::before {
    content: ""; position: fixed; z-index: 1100; top: 60px; left: 0; height: 3px; width: 85%;
    background: var(--wl2-accent); border-radius: 0 3px 3px 0;
    transform-origin: 0 50%; animation: wl2-progress 2.4s cubic-bezier(.1, .7, .3, 1) 1 both;
}
@keyframes wl2-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Mobil sayfalama */
.wl2-pager-m { display: none; }
@media (max-width: 849px) {
    .wl2-pager-m { display: flex; flex-direction: column; align-items: stretch; gap: .75rem; padding: 1.5rem 0 .5rem; }
    .wl2-pager-next { min-height: 52px; font-size: 1rem; border-radius: 14px; }
    .wl2-pager-info { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: .85rem; }
    .wl2-pager-info span { opacity: .6; }
    .wl2-pager-info a { color: inherit; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .4rem; }
    .wl2-pager-info a:hover { color: var(--wl2-accent); }
    .wl2-pager-m + .wl-pagination { display: none; }
}

/* ---------- Kart grid ---------- */
.wl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; }
@media (min-width: 560px)  { .wl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 850px)  { .wl-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1rem; } }
@media (min-width: 1700px) { .wl-grid { grid-template-columns: repeat(6, 1fr); } }
@container wl2main (min-width: 0)      { .wl-grid { grid-template-columns: repeat(2, 1fr); } }
@container wl2main (min-width: 500px)  { .wl-grid { grid-template-columns: repeat(3, 1fr); } }
@container wl2main (min-width: 700px)  { .wl-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1rem; } }
@container wl2main (min-width: 1000px) { .wl-grid { grid-template-columns: repeat(6, 1fr); } }
@container wl2main (min-width: 1500px) { .wl-grid { grid-template-columns: repeat(8, 1fr); } }

.wl-card { display: block; text-decoration: none; color: inherit; }
.wl-cover {
    position: relative; aspect-ratio: 5/7; border-radius: 12px; overflow: hidden;
    background: rgba(128, 128, 128, .15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    transition: transform .2s, box-shadow .2s;
}
.wl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-card:hover .wl-cover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.wl-badges { position: absolute; top: 7px; left: 7px; right: 7px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.wl-badge { font-size: .64rem; font-weight: 700; padding: .16rem .45rem; border-radius: 6px; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); letter-spacing: .01em; }
.wl-badge-adult { background: #e53935; }
.wl-badge-cur { background: #17a2b8; }
.wl-badge-done { background: #e53935; }
.wl-badge-ongoing { background: #28a745; }
.wl-name { margin: .6rem 0 .25rem; font-size: .9rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.wl-card:hover .wl-name { color: var(--wl2-accent); }
.wl-meta { font-size: .78rem; opacity: .7; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.wl-meta .wl-star { color: #f5a623; }
.wl-pagination { display: flex; flex-wrap: nowrap; justify-content: center; gap: .3rem; overflow-x: auto; padding: 1.6rem .25rem .5rem; }
.wl-pagination a, .wl-pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .55rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--wl2-surface-2); color: inherit; flex: 0 0 auto; }
.wl-pagination a:hover { background: rgba(102, 126, 234, .2); }
.wl-pagination .is-active { background: var(--wl2-accent); color: #fff; }
.wl-pagination .is-dots { background: transparent; pointer-events: none; opacity: .55; }

/* ---------- Filtre paneli / cekmece ---------- */
.wl2-scrim {
    position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .45);
    opacity: 0; transition: opacity .2s;
}
.wl2-scrim.is-open { opacity: 1; }
.wl2-drawer {
    position: fixed; z-index: 1041; top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 100%;
    display: flex; flex-direction: column;
    background: var(--wl2-page); color: inherit;
    box-shadow: -12px 0 32px rgba(0, 0, 0, .2);
    transform: translateX(100%); transition: transform .22s ease-out;
}
.wl2-drawer.is-open { transform: none; }
/* Bootstrap [hidden] kurali !important; panel genis ekranda gorunsun diye class ile acilir. */
.wl2-drawer:not(.is-shown) { display: none; }
.wl2-scrim[hidden] { display: none; }
.wl2-drawer-grip { display: none; }
.wl2-drawer-head {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.1rem .75rem; border-bottom: 1px solid var(--wl2-border);
}
.wl2-drawer-head h2 { font-size: 1.1rem; font-weight: 800; margin: 0 auto 0 0; display: flex; align-items: center; gap: .5rem; }
.wl2-drawer-head h2 i, .wl2-drawer-head h2 svg { font-size: .9rem; color: var(--wl2-accent); }
.wl2-reset-top { display: none; }
.wl2-drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1.1rem 1rem; scrollbar-width: thin; }
.wl2-drawer-foot {
    display: flex; gap: .6rem; padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--wl2-border); background: var(--wl2-page);
}
.wl2-drawer-foot .wl2-btn { min-height: 48px; }
.wl2-drawer-foot .wl2-btn-primary { flex: 1 1 auto; }

.wl2-sec { padding: 1rem 0; border-bottom: 1px solid var(--wl2-border); }
.wl2-sec:last-child { border-bottom: 0; }
.wl2-sec h3 { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .55; margin: 0 0 .7rem; }
.wl2-sec-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .1rem; }
.wl2-sec-row h3 { margin: 0; }

/* Durum: tek sutun secenek listesi (etiket + kisa aciklama) */
.wl2-opts { display: flex; flex-direction: column; gap: .4rem; }
.wl2-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.wl2-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wl2-opt-box {
    display: flex; align-items: center; gap: .75rem;
    min-height: 52px; padding: .55rem .85rem; border-radius: 12px;
    border: 1px solid var(--wl2-border); background: transparent;
    transition: background-color .15s, border-color .15s;
}
.wl2-opt:hover .wl2-opt-box { border-color: var(--wl2-accent); }
.wl2-opt-dot {
    position: relative; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--wl2-border); transition: border-color .15s;
}
.wl2-opt-dot::after {
    content: ""; position: absolute; inset: 3px; border-radius: 50%;
    background: var(--wl2-accent); transform: scale(0); transition: transform .15s;
}
.wl2-opt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl2-opt-txt b { font-size: .88rem; font-weight: 700; line-height: 1.25; }
.wl2-opt-txt small { font-size: .74rem; opacity: .6; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl2-opt input:checked + .wl2-opt-box { border-color: var(--wl2-accent); background: var(--wl2-accent-soft); }
.wl2-opt input:checked + .wl2-opt-box .wl2-opt-dot { border-color: var(--wl2-accent); }
.wl2-opt input:checked + .wl2-opt-box .wl2-opt-dot::after { transform: scale(1); }
.wl2-opt input:checked + .wl2-opt-box b { color: var(--wl2-accent); }
.wl2-opt input:focus-visible + .wl2-opt-box { outline: 2px solid var(--wl2-accent); outline-offset: 2px; }

.wl2-radios { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.wl2-years { display: flex; flex-wrap: wrap; gap: .4rem; }
.wl2-years .wl2-radio span { border-radius: 999px; min-height: 36px; padding: 0 .9rem; }
.wl2-radio { position: relative; margin: 0; cursor: pointer; }
.wl2-radio input { position: absolute; opacity: 0; pointer-events: none; }
.wl2-radio span {
    display: flex; align-items: center; min-height: 42px; padding: 0 .8rem;
    border-radius: 10px; border: 1px solid var(--wl2-border);
    font-size: .85rem; font-weight: 600;
    transition: background-color .15s, border-color .15s, color .15s;
}
.wl2-radio:hover span { border-color: var(--wl2-accent); }
.wl2-radio input:checked + span { border-color: var(--wl2-accent); background: var(--wl2-accent-soft); color: var(--wl2-accent); }
.wl2-radio input:focus-visible + span { outline: 2px solid var(--wl2-accent); outline-offset: 2px; }

.wl2-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: .7rem 0 .5rem; padding: 3px; border-radius: 12px; background: var(--wl2-surface-2); }
.wl2-tab {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 38px; border-radius: 9px; border: 0;
    background: transparent; color: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; opacity: .75;
}
.wl2-tab i, .wl2-tab svg { font-size: .72rem; }
.wl2-tab.is-on { background: var(--wl2-page); opacity: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.wl2-tab[data-mode="in"].is-on { color: var(--wl2-accent); }
.wl2-tab[data-mode="ex"].is-on { color: var(--wl2-danger); }
.wl2-tab-n:empty { display: none; }
.wl2-tab-n {
    min-width: 1.2rem; height: 1.2rem; padding: 0 .32rem; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wl2-accent); color: #fff; font-size: .68rem; font-weight: 800;
}
.wl2-tab[data-mode="ex"] .wl2-tab-n { background: var(--wl2-danger); }
.wl2-hint { font-size: .77rem; opacity: .65; margin: 0 0 .6rem; }
.wl2-adv .wl2-tabs { margin-top: .7rem; }
.wl2-adv-toggle { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; color: inherit; opacity: .75; }
.wl2-adv-toggle:hover { opacity: 1; color: var(--wl2-danger); }
.wl2-adv-toggle i, .wl2-adv-toggle svg { font-size: .72rem; color: var(--wl2-danger); }

.wl2-gsearch { position: relative; margin-bottom: .65rem; }
.wl2-gsearch i, .wl2-gsearch svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); opacity: .45; font-size: .8rem; pointer-events: none; }
.wl2-gsearch input {
    width: 100%; height: 40px; padding: 0 .8rem 0 2.2rem; border-radius: 10px;
    border: 1px solid var(--wl2-border); background: transparent; color: inherit; font-size: .88rem;
}
.wl2-gsearch input:focus { outline: none; border-color: var(--wl2-accent); }

.wl2-genres { display: flex; flex-wrap: wrap; gap: .4rem; }
.wl2-g {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 34px; padding: 0 .7rem; border-radius: 999px;
    border: 1px solid var(--wl2-border); background: transparent; color: inherit;
    font-size: .82rem; font-weight: 600; cursor: pointer; user-select: none;
    transition: background-color .12s, border-color .12s, color .12s;
}
.wl2-g:hover { border-color: var(--wl2-accent); }
.wl2-g-n { font-size: .7rem; font-weight: 600; opacity: .5; }
.wl2-g-in, .wl2-g-ex { display: none; font-size: .68rem; }
.wl2-g[data-state="in"] { background: var(--wl2-accent); border-color: var(--wl2-accent); color: #fff; }
.wl2-g[data-state="in"] .wl2-g-in { display: inline; }
.wl2-g[data-state="in"] .wl2-g-n { opacity: .8; }
.wl2-g[data-state="ex"] { background: var(--wl2-danger-soft); border-color: var(--wl2-danger); color: var(--wl2-danger); }
.wl2-g[data-state="ex"] .wl2-g-ex { display: inline; }
.wl2-g[data-state="ex"] .wl2-g-name { text-decoration: line-through; }
.wl2-g[hidden] { display: none; }
.wl2-gempty { font-size: .84rem; opacity: .65; margin: .4rem 0 0; }

.wl2-switch {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 40px; font-size: .88rem; font-weight: 600;
    color: inherit; cursor: pointer; user-select: none; margin: 0;
}
.wl2-switch-row { display: flex; justify-content: space-between; width: 100%; }
.wl2-switch-track {
    position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px;
    background: var(--wl2-surface-2); border: 1px solid var(--wl2-border);
    transition: background-color .15s, border-color .15s;
}
.wl2-switch-dot {
    position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .15s;
}
input:checked + .wl2-switch-track { background: var(--wl2-accent); border-color: var(--wl2-accent); }
input:checked + .wl2-switch-track .wl2-switch-dot { transform: translateX(18px); }
input:focus-visible + .wl2-switch-track { outline: 2px solid var(--wl2-accent); outline-offset: 2px; }

html.wl2-lock, html.wl2-lock body { overflow: hidden; }

/* ---------- Genis ekran: sabit sol panel ---------- */
@media (min-width: 1200px) {
    .wl2-layout {
        display: grid; grid-template-columns: 280px minmax(0, 1fr);
        gap: 1.75rem; align-items: start;
    }
    .wl2-drawer, .wl2-drawer:not(.is-shown) {
        display: flex; position: sticky; top: 76px; z-index: 1;
        width: auto; max-height: calc(100vh - 92px);
        transform: none; transition: none; box-shadow: none;
        border: 1px solid var(--wl2-border); border-radius: 16px;
        overflow: hidden;
    }
    .wl2-scrim, .wl2-scrim[hidden] { display: none; }
    .wl2-drawer-head { padding: .9rem 1.1rem .8rem; }
    .wl2-drawer-head h2 { font-size: 1rem; }
    .wl2-close, .wl2-open, .wl2-q-compact, .wl2-sec-sort { display: none; }
    .wl2-quick {
        margin-bottom: .9rem;
        -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
                mask-image: linear-gradient(90deg, #000 94%, transparent);
    }
    .wl2-reset-top { display: inline-block; }
    .wl2-reset-top[hidden] { display: none; }
    .wl2-drawer-body { padding: 0 1.1rem .5rem; }
    .wl2-sec { padding: .9rem 0; }
    /* Panel ekrandan uzun olabilir: uygula cubugu panel hizasinda ekranin altina sabitlenir */
    .wl2-drawer-foot { display: none; }
    .wl2-drawer.is-dirty .wl2-drawer-foot {
        display: flex; position: fixed; z-index: 50; bottom: 20px;
        left: var(--wl2-foot-left, auto); width: var(--wl2-foot-w, 280px);
        padding: .6rem; border: 1px solid var(--wl2-border); border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    }
    .wl2-drawer.is-dirty .wl2-drawer-body { padding-bottom: 5.5rem; }
    .wl2-drawer-foot .wl2-btn { min-height: 46px; }
    .wl2-drawer-foot .wl2-btn-ghost { display: none; }
    .wl2-bar { margin-bottom: 1rem; }
}

/* ---------- Tablet / mobil ---------- */
@media (max-width: 849px) {
    .wl2-head { margin-bottom: .6rem; }
    .wl2-head h1 { font-size: 1.2rem; margin: 0; }
    .wl2-head p { display: none; }
    .wl2-testbar { margin-bottom: 8px; }

    .wl2-bar {
        position: sticky; top: 60px; z-index: 20;
        margin: 0 -.25rem .6rem; padding: .5rem .25rem;
        background: var(--wl2-page);
    }
    .wl2-search input { height: 46px; font-size: 16px; }
    .wl2-search-clear { top: 23px; }
    .wl2-open { position: relative; height: 46px; padding: 0 .85rem; gap: .4rem; flex: 0 0 auto; }
    .wl2-open .wl2-badge { position: absolute; top: -5px; right: -5px; box-shadow: 0 0 0 2px var(--wl2-page); }
    .wl2-sug { max-height: calc(100dvh - 140px); }

    .wl2-quick {
        margin-bottom: .55rem;
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
                mask-image: linear-gradient(90deg, #000 88%, transparent);
    }
    .wl2-result { margin-bottom: .6rem; }
    .wl2-total { font-size: .84rem; }
    .wl2-sort-lbl { display: none; }
    .wl2-sort { padding-left: .2rem; }

    .wl2-drawer {
        top: auto; left: 0; width: 100%; height: 88vh; height: 88dvh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 32px rgba(0, 0, 0, .25);
        transform: translateY(100%);
    }
    .wl2-drawer-grip { display: block; width: 40px; height: 4px; border-radius: 4px; margin: 8px auto 0; background: var(--wl2-surface-2); }
    .wl2-drawer-head { padding-top: .55rem; }
}
@media (max-width: 380px) {
    .wl2-radios { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .wl2-drawer, .wl2-scrim, .wl2-switch-dot, .wl-cover { transition: none; }
}
