/* playerShare.css - 播放页分享功能样式 */

/* 分享按钮 */
.player-share-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 24px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.player-share-btn:hover {
    opacity: 0.7;
}

/* 黑字模式下分享按钮为黑色 */
body.lyric-black-text .player-share-btn {
    color: #000;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* 分享遮罩层 */
.player-share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: none;
}

.player-share-overlay.show {
    display: block;
}

/* 分享面板 */
.player-share-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10003;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
}

.player-share-panel.show {
    transform: translateY(0);
}

.player-share-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.player-share-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.player-share-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.player-share-panel-close:hover {
    background: #f0f0f0;
}

.player-share-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.player-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    min-width: 80px;
}

.player-share-option:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.player-share-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.player-share-option-icon.copy {
    background: linear-gradient(to right, #0282ad, #04a9e1);
}

.player-share-option-icon.moment {
    background: linear-gradient(to right, #ff6b6b, #ff8787);
}

.player-share-option-text {
    font-size: 13px;
    color: #333;
    text-align: center;
}

/* 分享到动态模态框 */
.player-share-moment-modal {
    position: fixed;
    inset: 0;
    z-index: 10004;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.player-share-moment-modal.show {
    display: flex;
    pointer-events: auto;
}

.player-share-moment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.player-share-moment-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.player-share-moment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.player-share-moment-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.player-share-moment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.player-share-moment-modal-close:hover {
    background: #f0f0f0;
}

.player-share-moment-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.player-share-moment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    line-height: 1.5;
}

.player-share-moment-textarea:focus {
    border-color: #0282ad;
}

.player-share-moment-textarea.has-placeholder {
    color: #999;
}

.player-share-moment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.player-share-moment-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.player-share-moment-emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.player-share-moment-emoji-btn:hover {
    background: #f0f0f0;
    color: #0282ad;
}

.player-share-moment-emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 300px;
    margin-bottom: 8px;
    z-index: 10005;
}

.player-share-moment-emoji-picker.show {
    display: grid;
}

.player-share-moment-emoji-item {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.player-share-moment-emoji-item:hover {
    background: #f0f0f0;
}

.player-share-moment-char-count {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.player-share-moment-char-count.warning {
    color: #ff6b6b;
}

.player-share-moment-send-btn {
    background: linear-gradient(to right, #0282ad, #04a9e1);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.player-share-moment-send-btn:hover {
    opacity: 0.9;
}

.player-share-moment-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.player-share-moment-track-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-share-moment-track-preview-info {
    flex: 1;
}

.player-share-moment-track-preview-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 提示气泡 */
.player-share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 12px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 10006;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.player-share-toast.show {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

