/* Стили для страницы и компонентов офлайн хранилища AnimeHub */
.offline-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 80px;
    min-height: calc(100vh - 160px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.offline-hero {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.14) 0%, rgba(20, 22, 28, 0.88) 100%);
    border: 1px solid rgba(255, 71, 87, 0.28);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-sizing: border-box;
    width: 100%;
}

.offline-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 71, 87, 0.45);
    color: #ff6b81;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.offline-badge-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.offline-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.offline-hero-desc {
    font-size: 14px;
    color: #a4b0be;
    line-height: 1.55;
    max-width: 720px;
    margin: 0 0 20px;
}

.offline-storage-info {
    max-width: 440px;
    width: 100%;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.offline-storage-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.offline-storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.offline-storage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #ced6e0;
    font-weight: 500;
}

/* Вкладки */
.offline-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.offline-tabs::-webkit-scrollbar {
    display: none;
}

.offline-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #a4b0be;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offline-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.offline-tab-btn.active {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.35);
}

.offline-settings-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #a4b0be;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.offline-settings-btn:hover {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 77, 109, 0.4);
    color: #ff8fa3;
}

.offline-settings-btn svg {
    flex-shrink: 0;
}

/* Оболочка списка материалов */
.offline-list-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* Сетка карточек — адаптивно до мобильных */
.offline-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.offline-card {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.offline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 71, 87, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.offline-card-thumb {
    position: relative;
    height: 150px;
    background: #090a0d;
    overflow: hidden;
    width: 100%;
}

.offline-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offline-card:hover .offline-card-thumb img {
    transform: scale(1.04);
}

.offline-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.offline-card-badge.anime {
    background: rgba(255, 71, 87, 0.9);
    color: #fff;
}

.offline-card-badge.manga {
    background: rgba(46, 213, 115, 0.9);
    color: #fff;
}

.offline-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.95);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.offline-card:hover .offline-card-play-btn,
.offline-card:active .offline-card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.offline-card-info {
    padding: 14px 14px 10px;
    flex-grow: 1;
}

.offline-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offline-card-sub {
    font-size: 12.5px;
    color: #a4b0be;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: #747d8c;
}

.offline-card-meta-svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.offline-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.offline-action-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    box-sizing: border-box;
    font-family: inherit;
}

.offline-action-btn.open-btn {
    flex: 1;
    background: rgba(255, 71, 87, 0.16);
    color: #ff6b81;
    border: 1px solid rgba(255, 71, 87, 0.32);
    min-width: 90px;
}

.offline-action-btn.open-btn:hover {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35);
}

.offline-action-btn.delete-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a4b0be;
    width: 32px;
    height: 32px;
    padding: 0;
    flex: 0 0 32px;
}

.offline-action-btn.delete-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    color: #ff4757;
}

/* Бейджи прогресса истории (на чем остановился) */
.offline-card-history {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offline-card-history svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Свайпы для карточек */
.offline-card {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    will-change: transform;
}
.offline-card.swiping {
    transition: none !important;
}
.offline-card.swiping-left {
    box-shadow: -4px 0 16px rgba(255, 71, 87, 0.4) !important;
}
.offline-card.swiping-right {
    box-shadow: 4px 0 16px rgba(255, 183, 3, 0.4) !important;
}

/* Пустое состояние */
.offline-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 16px;
    background: rgba(20, 23, 31, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-sizing: border-box;
    width: 100%;
}

.offline-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.12);
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.offline-empty-state h3 {
    font-size: 18px;
    color: #fff;
    margin: 0 0 8px;
}

.offline-empty-state p {
    font-size: 13.5px;
    color: #a4b0be;
    max-width: 480px;
    line-height: 1.55;
    margin: 0 0 20px;
}

.offline-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.offline-browse-btn {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: #ff4757;
    color: #fff;
    transition: all 0.2s ease;
}

.offline-browse-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ced6e0;
}

.offline-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.3);
}

/* ==========================================================
 * ПОЛНОЦЕННЫЙ ОФЛАЙН ВИДЕОПЛЕЕР С НАВИГАЦИЕЙ ПО СКАЧАННЫМ СЕРИЯМ
 * ========================================================== */
.offline-player-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 11, 0.96);
    backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
}

.offline-pv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(18, 20, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.offline-pv-title-wrap {
    min-width: 0;
    flex: 1;
}

.offline-pv-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.offline-pv-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-pv-subtitle {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #a4b0be;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offline-pv-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.offline-fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ced6e0;
    border-radius: 9px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offline-fx-btn svg {
    width: 14px;
    height: 14px;
}

.offline-fx-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.offline-fx-btn.active {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
}

.offline-pv-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ced6e0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.offline-pv-close:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: scale(1.05);
}

.offline-pv-close svg {
    width: 18px;
    height: 18px;
}

.offline-pv-body {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.offline-player-view .awp-shell {
    margin: 0 auto;
    max-width: 100%;
}

.offline-player-view .awp-player {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.offline-player-frame {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16 / 9;
    max-height: 72vh;
}

.offline-player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Секция скачанных серий снизу плеера */
.offline-episodes-section {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    box-sizing: border-box;
    width: 100%;
}

.offline-episodes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.offline-episodes-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offline-episodes-head h4 svg {
    width: 18px;
    height: 18px;
    color: #ff4757;
}

.offline-episodes-count {
    font-size: 12px;
    color: #8b8e98;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 12px;
}

.offline-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.offline-ep-pill {
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #d6d9e0;
}

.offline-ep-pill:hover {
    background: #222530;
    border-color: rgba(255, 71, 87, 0.4);
    transform: translateY(-2px);
}

.offline-ep-pill.active {
    background: rgba(255, 71, 87, 0.16);
    border-color: #ff4757;
    color: #ff8fa3;
    box-shadow: 0 0 14px rgba(255, 71, 87, 0.3);
}

.offline-ep-pill-num {
    font-size: 13.5px;
    font-weight: 700;
}

.offline-ep-pill-meta {
    font-size: 11px;
    color: #8b8e98;
}

.offline-ep-pill.active .offline-ep-pill-meta {
    color: #ff8fa3;
    opacity: 0.8;
}

/* ==========================================================
 * АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
 * ========================================================== */
@media (max-width: 768px) {
    .offline-container {
        padding: 16px 12px 70px;
    }

    .offline-hero {
        padding: 20px 16px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .offline-hero-title {
        font-size: 22px;
    }

    .offline-hero-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .offline-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .offline-card {
        border-radius: 12px;
    }

    .offline-card-thumb {
        height: 110px;
    }

    .offline-card-info {
        padding: 10px 10px 6px;
    }

    .offline-card-title {
        font-size: 13.5px;
    }

    .offline-card-sub {
        font-size: 11.5px;
        margin-bottom: 6px;
    }

    .offline-card-meta {
        font-size: 10.5px;
    }

    .offline-card-actions {
        padding: 8px 10px 10px;
    }

    .offline-action-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .offline-action-btn.delete-btn {
        width: 32px;
        height: 32px;
    }

    .offline-pv-header {
        padding: 10px 12px;
    }

    .offline-pv-body {
        padding: 10px 8px 30px;
    }

    .offline-player-frame {
        border-radius: 10px;
        aspect-ratio: 16 / 9;
    }

    .offline-episodes-section {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .offline-episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 8px;
    }

    .offline-ep-pill {
        padding: 8px 10px;
    }

    .offline-ep-pill-num {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .offline-items-grid {
        grid-template-columns: 1fr;
    }

    .offline-card {
        flex-direction: row;
        height: auto;
        min-height: 110px;
    }

    .offline-card-thumb {
        width: 95px;
        height: auto;
        min-height: 110px;
        flex-shrink: 0;
    }

    .offline-card-info {
        padding: 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    .offline-card-actions {
        flex-direction: column;
        justify-content: center;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding: 8px 8px;
        gap: 6px;
        flex-shrink: 0;
    }

    .offline-action-btn {
        width: 32px;
        height: 32px;
        padding: 0 !important;
        min-width: 32px !important;
        flex: 0 0 32px !important;
    }

    .offline-action-btn.open-btn span {
        display: none;
    }

    .offline-action-btn.delete-btn {
        width: 32px;
        height: 32px;
    }
}

/* ========== Модальные окна удаления (одиночное / массовое с размытием) ========== */
.offline-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.offline-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.offline-confirm-dialog {
    background: #141720;
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 71, 87, 0.15);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    text-align: center;
    box-sizing: border-box;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.offline-modal-overlay.open .offline-confirm-dialog {
    transform: scale(1);
}
.offline-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.offline-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.offline-confirm-desc {
    font-size: 13.5px;
    color: #a4b0be;
    line-height: 1.45;
    margin: 0 0 22px;
}
.offline-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.offline-confirm-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}
.offline-confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #d6d9e0;
}
.offline-confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.offline-confirm-btn.danger {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
}
.offline-confirm-btn.danger:hover {
    background: #ff2e44;
}

/* Окно выбора серий для выборочного удаления */
.offline-delete-modal {
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.offline-modal-overlay.open .offline-delete-modal {
    transform: scale(1);
}
.offline-del-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.offline-del-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.offline-del-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ced6e0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1 !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    transition: all 0.2s ease !important;
}
.offline-del-close:hover {
    background: rgba(255, 71, 87, 0.25) !important;
    border-color: #ff4757 !important;
    color: #fff !important;
    transform: scale(1.05);
}
.offline-del-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #8b8e98;
}
.offline-del-subbar-btns {
    display: flex;
    gap: 8px;
}
.offline-del-quick-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d6d9e0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.offline-del-quick-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.offline-del-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.offline-del-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.offline-del-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.offline-del-item.selected {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.4);
}
.offline-del-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.offline-del-item.selected .offline-del-check {
    background: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}
.offline-del-check svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s ease;
}
.offline-del-item.selected .offline-del-check svg {
    opacity: 1;
    transform: scale(1);
}
.offline-del-title {
    flex: 1;
    font-size: 13.5px;
    color: #e8e8ec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offline-del-size {
    font-size: 11.5px;
    color: #8b8e98;
    flex-shrink: 0;
}
.offline-del-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 16, 23, 0.95);
    gap: 12px;
}
.offline-del-submit-btn {
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
    flex-grow: 1;
    justify-content: center;
}
.offline-del-submit-btn:hover {
    background: #ff2e44;
    box-shadow: 0 4px 18px rgba(255, 71, 87, 0.45);
}
.offline-del-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
