/* --- DOWNLOAD LIST --- */
.header-top {
    padding: 10px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 44px;
}
.header-top .title {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}

.download-list { 
    padding: 16px 20px 0; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.download-item { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
    position: relative;
}

/* For Drama List (Landscape covers) */
.download-item .cover-wrapper {
    position: relative;
    width: 140px; 
    height: 80px; 
    flex-shrink: 0;
}
.download-item .cover-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.download-item .badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-bottom-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}
.download-item .overlay-badge {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.download-info { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.download-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.download-info-top h4 {
    font-size: 15px; 
    font-weight: 500; 
    color: var(--text);
    margin: 0;
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 2;
    overflow: hidden; 
    word-break: break-word;
}
.download-info-top .size {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 8px;
}
.download-info .status {
    font-size: 12px; 
    color: var(--text-muted); 
}

.storage-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 16px 0 24px;
    background: var(--bg-app);
    z-index: 50;
}
.edit-mode .storage-info {
    display: none;
}

/* Edit State */
.edit-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 44px;
}
.edit-top-bar .select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #FFFFFF;
}
.edit-top-bar .cancel {
    font-size: 15px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}

.circle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
    display: inline-block;
    box-sizing: border-box;
    flex-shrink: 0;
}
.circle-icon.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    position: relative;
}
.circle-icon.selected::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.card-select-overlay {
    margin-right: 12px;
    display: none;
}
.edit-mode .card-select-overlay {
    display: block;
}

.bottom-delete-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #0A0A0A;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #1C1C1E;
    color: #666666;
    font-size: 10px;
    padding-bottom: 20px;
    z-index: 100;
}
.edit-mode .bottom-delete-bar {
    display: flex;
}
.bottom-delete-bar.active {
    color: #FF3B30;
}
.bottom-delete-bar i {
    width: 24px;
    height: 24px;
}

/* Cache More Button */
.btn-cache-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1C1C1E;
    color: var(--text);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 0 20px 20px;
    font-size: 15px;
    font-weight: 500;
}
.btn-cache-more .plus-box {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
