/* Series Modal - Matches Settings Popup Style */
.series-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.series-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.series-modal-content {
    background: #1e2433;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow: hidden;
}

.series-modal-overlay.show .series-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.series-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.series-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.series-modal-icon {
    font-size: 22px;
    color: #9333ea;
}

.series-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.series-modal-subtitle {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.series-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.15s;
    display: flex;
}

.series-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.series-modal-body {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.series-modal-body::-webkit-scrollbar {
    width: 5px;
}

.series-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.series-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.series-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.15s ease;
}

.series-item:hover {
    background: rgba(147, 51, 234, 0.15);
    transform: translateX(2px);
}

.series-item:last-child {
    margin-bottom: 0;
}

.series-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background-opacity: 0.2;
}

.series-item-icon i {
    font-size: 18px;
}

.series-item-info {
    flex: 1;
    min-width: 0;
}

.series-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.series-item-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.series-item-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.series-item:hover .series-item-arrow {
    transform: translateX(2px);
    color: rgba(255, 255, 255, 0.5);
}

.series-item.current-series {
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.3);
    cursor: default;
}

.series-item.current-series:hover {
    background: rgba(147, 51, 234, 0.2);
    transform: none;
}

.series-item.current-series .series-item-arrow {
    color: #9333ea;
    font-size: 16px;
}

.series-item.current-series:hover .series-item-arrow {
    transform: none;
}

.series-remove-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.series-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateX(2px);
}

.series-remove-btn i {
    font-size: 16px;
}

.series-create-btn {
    width: 100%;
    padding: 10px 16px;
    background: #9333ea;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.series-create-btn:hover {
    background: #7e22ce;
    transform: translateY(-1px);
}
