/* 分享广场视频样式 */
.share-media-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.share-square-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease, opacity 0.35s ease;
    display: block;
    opacity: 0;
}

.share-square-item.is-video-loaded video {
    opacity: 1;
}

.share-video-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-video-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.18);
    border-top-color: var(--primary-color);
    animation: share-spin 0.8s linear infinite;
    flex-shrink: 0;
}

.share-video-spinner.is-error {
    animation: none;
    border-color: rgba(248, 81, 73, 0.35);
    border-top-color: #f85149;
}

.share-video-loading i {
    font-size: 22px;
    color: var(--primary-color);
}

/* 确保导航栏 / 首页 Banner 的 Font Awesome 图标不受其他样式影响 */
.nav-icon i,
.banner-icon i,
.banner-item .banner-icon i,
.sidebar-collapse-btn i,
.nav-section-collapse-btn i,
.share-square-title i,
.showcase-section-title i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.share-square-item.is-video-loaded .share-video-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.share-square-item.is-video-error .share-video-loading {
    color: #f85149;
}

.share-square-item.is-video-error .share-video-loading i {
    color: #f85149;
}

.share-square-item.is-video-loaded:hover video {
    transform: scale(1.1);
}

.share-square-item:hover video {
    transform: none;
}

/* 左上角标题徽章 */
.share-title-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
    white-space: nowrap;
}

/* 音频卡片样式 - 简洁版 */
.share-square-item .audio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.08) 100%);
    position: relative;
}

.share-square-item .audio-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.share-square-item .audio-play-btn i {
    font-size: 24px;
    color: #fff;
    margin-left: 3px;
}

.share-square-item:hover .audio-play-btn {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: #4ade80;
}

.share-square-item audio {
    display: none !important;
}

/* 分享广场标题与空状态图标 */
.share-square-title i,
.showcase-section-title i {
    color: var(--primary-color) !important;
}

.share-square-empty i {
    color: var(--primary-color) !important;
    opacity: 0.85;
}

/* 视频模态框样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

.video-modal-content video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-modal-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 8px;
    color: #fff;
}

.video-modal-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.video-modal-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.video-modal-info i {
    color: #ff6b6b;
}

