.kt-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.kt-button { box-sizing:border-box; display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border:1px solid transparent; border-radius:var(--kt-radius,12px); background:var(--kt-primary,#2369d0); color:#fff; font-size:14px; font-weight:650; line-height:20px; text-align:center; text-decoration:none; cursor:pointer; }
.kt-button:hover { background:#1f5bb8; box-shadow:none; color:#fff; }
.kt-button--secondary { border-color:var(--kt-border,#ffffff14); background:var(--kt-surface-raised,#1c2535); color:var(--kt-text,#eef3fb); }
.kt-button--secondary:hover { background:#27344a; color:var(--kt-text,#eef3fb); }
.kt-button--danger { background:#b93650; }
.kt-button--danger:hover { background:#982b42; }
.kt-button:disabled { opacity:.55; cursor:wait; }
.kt-button:focus-visible,.kt-toast__close:focus-visible { outline:2px solid #9ed0ff; outline-offset:3px; }
.kt-toasts { position:fixed; z-index:100100; right:76px; bottom:24px; display:flex; flex-direction:column; gap:10px; width:min(390px,calc(100vw - 100px)); pointer-events:none; }
.kt-toast { display:flex; align-items:flex-start; gap:12px; padding:14px 12px 14px 16px; border:1px solid #7290bc66; border-left:3px solid #3589ff; border-radius:12px; background:#172031f5; box-shadow:0 10px 35px #0006; color:#eef3fb; font-size:14px; line-height:21px; pointer-events:auto; overflow-wrap:anywhere; }
.kt-toast > span { flex:1; }
.kt-toast[data-tone="error"] { border-left-color:#ff7b91; }
.kt-toast[data-tone="success"] { border-left-color:#51dba9; }
.kt-toast__close { flex:none; width:28px; height:28px; margin:-4px -3px 0 0; padding:0; border:0; border-radius:6px; background:transparent; color:#c0cee3; font-size:24px; cursor:pointer; }
.kt-confirm { width:min(440px,calc(100vw - 32px)); box-sizing:border-box; max-height:85dvh; padding:26px; overflow:auto; border:1px solid var(--kt-border,#ffffff14); border-radius:18px; background:var(--kt-surface,#141a27); color:var(--kt-text,#eef3fb); box-shadow:0 24px 80px #0008; }
.kt-confirm::backdrop { background:#060b16c9; backdrop-filter:blur(4px); }
.kt-confirm h2 { margin:0 0 12px; font-size:22px; line-height:28px; }
.kt-confirm p { color:var(--kt-muted,#a4b2c8); font-size:14px; line-height:22px; }
.kt-confirm__actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:24px; }
.kt-confirm--fallback { position:fixed; z-index:100050; top:50%; left:50%; margin:0; transform:translate(-50%,-50%); box-shadow:0 0 0 100vmax #060b16c9; }
.kt-skeleton-group { display:grid; grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; width:100%; }
.kt-skeleton-card { min-width:0; padding-top:20px; }
.kt-skeleton-poster,.kt-skeleton-line { border-radius:10px; background:linear-gradient(100deg,#172031 20%,#263248 45%,#172031 70%); background-size:250% 100%; animation:kt-shimmer 1.5s linear infinite; }
.kt-skeleton-poster { position:relative; aspect-ratio:16/9; }
.kt-skeleton-poster::after { content:""; position:absolute; right:5%; top:-20px; width:22%; aspect-ratio:2/3; border:1px solid var(--kt-border,#ffffff14); border-radius:8px; background:var(--kt-surface-raised,#1c2535); }
.kt-skeleton-line { display:none; }
.kt-skeleton-line--short { width:55%; height:11px; margin-top:8px; }
.catalog-card__poster:has(> img:not(.is-image-loaded)) { background:linear-gradient(100deg,#172031 20%,#263248 45%,#172031 70%); background-size:250% 100%; animation:kt-shimmer 1.5s linear infinite; }
@keyframes kt-shimmer { to { background-position:-250% 0; } }
.home-intro { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:28px; padding-bottom:10px; }
.home-intro h1 { margin:0; font-size:24px; line-height:32px; font-weight:650; }
.home-intro p { margin:5px 0 0; color:var(--kt-muted); font-size:14px; line-height:21px; }
.home-intro__links { display:flex; gap:8px; flex-wrap:wrap; }
.home-intro__links a { display:inline-flex; align-items:center; min-height:40px; padding:7px 12px; border:1px solid var(--kt-border); border-radius:10px; color:var(--kt-muted); font-size:13px; text-decoration:none; }
.home-intro__links a:hover { background:var(--kt-surface-raised); color:var(--kt-text); }
.home-ad { margin:12px auto 36px; }
.home-ad__label { margin:0 0 8px; color:var(--kt-muted); font-size:11px; }
.home-ad .swiper { margin:0; }
.home-ad .banner-item { max-height:150px; }
.home-ad .banner-poster { max-height:150px; object-fit:contain; }
.feature-section .feature-slide { position:relative; }
.kt-page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 24px; }
.kt-page-header h1 { min-width:0; margin:0; color:var(--kt-text); font-size:28px; line-height:36px; overflow-wrap:anywhere; }
.catalog-filter-toggle { display:none; }
.catalog-filter-heading { display:none; }
.catalog-filter-actions { display:flex; gap:8px; align-items:center; justify-content:flex-end; }
.catalog-filter-panel { box-sizing:border-box; width:100%; padding:12px; margin-bottom:18px; border:1px solid var(--kt-border); border-radius:var(--kt-radius); background:var(--kt-surface); }
.catalog-filter-panel .filter-block__form { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); align-items:end; gap:8px; }
.catalog-filter-panel .filter-block__cell,.catalog-filter-panel .filter-block__cell-content { min-width:0; width:auto; }
.catalog-filter-panel label { display:block; margin-bottom:4px; color:var(--kt-muted); font-size:11px; line-height:16px; }
.catalog-filter-panel .filter-block__cell-content select { box-sizing:border-box; display:block; width:100%; height:38px; min-height:38px; margin:0; padding:8px 30px 8px 10px; gap:0; border:1px solid #445976; border-radius:8px; color:var(--kt-text); font-family:inherit; font-size:13px; line-height:18px; opacity:1; box-shadow:none; transition:border-color .15s ease; }
/* Legacy dle_filter.css changes the arrow image on hover. Keep every layer
   explicit so no background shorthand can turn that image into a tiled fill. */
.catalog-filter-panel select,.catalog-filter-panel select:hover,.catalog-filter-panel select:focus,.catalog-filter-panel select:active {
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    background-color:var(--kt-surface-raised);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath stroke='%23b9c9df' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 10px center; background-size:12px 8px;
}
.catalog-filter-panel .filter-block__cell-content select:hover { border-color:#6b87aa; }
.catalog-filter-panel select:focus-visible { outline:2px solid #9ed0ff !important; outline-offset:2px; }
.catalog-filter-actions .kt-button { min-height:36px; padding:7px 12px; font-size:12px; line-height:20px; letter-spacing:normal; text-transform:none; box-shadow:none; }
.catalog-filter-actions .kt-button:hover { background:#285da8; box-shadow:none; }
.catalog-filter-actions .kt-button--secondary:hover { border-color:#6b87aa; background:#26364c; }
.catalog-filter-actions { grid-column:1 / -1; }
.catalog-filter-overlay { display:none; }
.catalog-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; }
.catalog-active-filters[hidden] { display:none; }
.catalog-filter-chip { box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; min-height:28px; max-width:100%; padding:4px 8px; border:1px solid #4986c55c; border-radius:7px; background:#183353; color:#d9eaff; font-size:11px; line-height:18px; text-decoration:none; overflow-wrap:anywhere; }
.catalog-empty { grid-column:1 / -1; width:100%; box-sizing:border-box; padding:48px 20px; border:1px dashed var(--kt-border); border-radius:14px; color:var(--kt-muted); text-align:center; }
.catalog-empty h2 { margin-bottom:10px; color:var(--kt-text); font-size:22px; }
.catalog-empty p { margin-bottom:20px; font-size:14px; }
@media(min-width:1700px) { .kt-skeleton-group { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(min-width:700px) and (max-width:1099px) { .kt-skeleton-group { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:699px) {
    .kt-toasts { right:12px; bottom:calc(190px + env(safe-area-inset-bottom, 0px)); width:calc(100vw - 24px); }
    .kt-skeleton-group { grid-template-columns:minmax(0,1fr); gap:14px; }
    .kt-skeleton-poster { aspect-ratio:16/10; }
    .home-intro { padding-top:20px; gap:12px; }
    .home-intro h1 { font-size:21px; line-height:28px; }
    .home-intro p { font-size:12px; }
    .home-intro__links a { min-height:36px; padding:5px 10px; font-size:12px; }
    .kt-page-header { align-items:flex-start; gap:12px; margin-bottom:20px; }
    .kt-page-header h1 { font-size:23px; line-height:30px; }
    .catalog-filter-toggle { display:inline-flex; flex:none; padding:9px 12px; font-size:12px; }
    .catalog-filter-panel { display:none; position:fixed; z-index:100020; right:0; bottom:0; left:0; max-height:85dvh; box-sizing:border-box; overflow:auto; margin:0; padding:20px 18px max(20px,env(safe-area-inset-bottom)); border-radius:20px 20px 0 0; }
    .catalog-filter-panel[data-open="true"] { display:block; }
    .catalog-filter-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
    .catalog-filter-heading h2 { margin:0; font-size:21px; }
    .catalog-filter-heading button { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:8px; background:var(--kt-surface-raised); color:var(--kt-text); font-size:25px; }
    .catalog-filter-heading button:focus-visible { outline:2px solid #9ed0ff !important; outline-offset:2px; }
    .catalog-filter-panel .filter-block__form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .catalog-filter-overlay[data-open="true"] { display:block; position:fixed; z-index:100010; inset:0; width:100%; height:100%; padding:0; border:0; background:#060b16bd; }
    html.kt-filters-open { overflow:hidden; }
    .catalog-filter-actions { position:sticky; bottom:-1px; margin-bottom:-1px; padding-top:12px; background:var(--kt-surface); }
    .catalog-filter-actions .kt-button { flex:1; min-height:44px; padding:10px; font-size:13px; line-height:22px; }
    .catalog-filter-panel label { margin-bottom:5px; font-size:12px; }
    .catalog-filter-panel .filter-block__cell-content select { height:44px; min-height:44px; padding:10px 30px 10px 10px; font-size:16px; line-height:22px; }
    .catalog-filter-chip { min-height:44px; padding:8px 10px; font-size:12px; }
    .kt-confirm { padding:22px; }
}
header .head-search.show { display:flex; flex-direction:column; }
header .head-search .head-search-container { flex:none; }
header .head-search .head-search-result { flex:1; min-height:0; height:auto; }
header .head-search .head-search-frame-link { display:flex; align-items:center; gap:8px; width:max-content; max-width:100%; min-height:44px; margin:6px auto 0; color:var(--kt-muted); font-size:13px; text-decoration:none; }
header .head-search .head-search-frame-link:hover { color:var(--kt-text); }
header .head-search .head-search-frame-link:focus-visible { outline:2px solid #9ed0ff !important; outline-offset:3px; border-radius:4px; }
@media(prefers-reduced-motion:reduce) { .kt-skeleton-poster,.kt-skeleton-line,.catalog-card__poster:has(> img:not(.is-image-loaded)) { animation:none; } }
