/* Swipe Mode（从 style.css 拆分） */
/* --- Swipe Mode --- */
.swipe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    overflow: hidden;
}

.swipe-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.swipe-header {
    position: absolute;
    top: 20px; /* 设置明确的顶部留白 */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 去掉上下 padding，保留两侧 */
    padding: 0 20px;
    color: var(--text-color);
    z-index: 2002;
}

.swipe-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swipe-favorites-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: var(--global-border-radius);
    color: var(--text-color);
    cursor: default;
    user-select: none;
}

.swipe-favorites-icon {
    color: var(--accent-color); /* 使用强调色 */
}

.swipe-artist-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.swipe-counter {
    font-size: 16px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: var(--global-border-radius);
}

.swipe-artist-name {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.swipe-artist-name.favorited-feedback {
    color: var(--accent-color);
}

.swipe-artist-name.copied-feedback {
    color: var(--accent-color);
    transition: color 0.1s ease-in-out;
}

.swipe-close-btn {
    font-size: 36px;
    line-height: 1;
    color: var(--secondary-text-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.swipe-close-btn:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.swipe-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 40px;
}

.swipe-like-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 2005;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-like-feedback.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.swipe-like-feedback .heart {
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%230a84ff'%3E%3Cpath d='M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z'/%3E%3C/svg%3E") center no-repeat;
    background-size: contain;
    filter: drop-shadow(0 5px 15px rgba(10, 132, 255, 0.4));
    animation: swipe-heart-beat 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes swipe-heart-beat {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}




.swipe-container.swipe-transition .swipe-image {
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.swipe-image {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
    border-radius: var(--global-border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.swipe-image--current {
    transform: scale(1);
    opacity: 1;
    z-index: 2001;
}

.swipe-image--prev,
.swipe-image--next {
    position: absolute;
    transform: scale(0.8);
    opacity: 0.5;
    filter: blur(8px);
    z-index: 2000;
}

.swipe-image--prev {
    transform: scale(0.8) translateX(-50vw);
}

.swipe-image--next {
    transform: scale(0.8) translateX(50vw);
}

.swipe-hint {
    position: absolute;
    bottom: 20px;
    font-size: 16px;
    color: var(--secondary-text-color);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: var(--global-border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.swipe-hint kbd {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    color: var(--text-color);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

