/* 移动端底部导航栏样式 */

/* 底部导航栏容器 - 默认隐藏，仅移动端显示 */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1500;
    padding: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* 移动端显示底部导航 */
@media (max-width: 768px) {
    .mobile-mode .bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
    }
    
    /* 移动端隐藏侧边栏 */
    .mobile-mode .sidebar {
        display: none !important;
    }
    
    /* 移动端主内容区调整 */
    .mobile-mode .main-content {
        margin-left: 0;
    }
    
    /* 移动端内容区底部padding适配底部导航 */
    .mobile-mode .content-area {
        padding-bottom: 80px;
    }
}

/* 底部导航按钮 */
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 8px 4px;
    font-size: 11px;
}

.bottom-nav-item i {
    font-size: 20px;
    transition: all var(--transition-normal);
}

.bottom-nav-item span {
    font-weight: 500;
}

.bottom-nav-item:active {
    background: var(--bg-hover);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* 移动端"我的"页面样式 */
.mobile-profile-page {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
}

/* 用户信息卡片 */
.profile-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 24px;
}

.profile-user-info {
    flex: 1;
}

.profile-username {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-level {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 金币余额卡片 */
.profile-gold-card {
    background: linear-gradient(135deg, rgba(205, 170, 94, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    text-align: center;
}

.profile-gold-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-gold-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--warning-color);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.profile-gold-refresh {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-gold-refresh:active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 功能入口列表 */
.profile-actions-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.profile-action-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-normal);
    width: 100%;
    text-align: left;
}

.profile-action-item:last-child {
    border-bottom: none;
}

.profile-action-item:active {
    background: var(--bg-hover);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.action-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* 登录/退出按钮 */
.profile-auth-action {
    padding: var(--spacing-lg) 0;
}

.profile-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.profile-auth-btn:active {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.profile-auth-btn i {
    font-size: 18px;
}

/* 移动端"我的"页面容器 */
#mobileProfileContainer {
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
}

/* 移动端全屏直播回放页面 */
.mobile-live-replay-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    background: #000 !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 覆盖浮动播放器样式，使其在移动端全屏显示 */
.mobile-live-replay-page .floating-video-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
    background: #000 !important;
    overflow: hidden !important;
}

.mobile-live-replay-page .floating-video-element {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* 移动端控制栏始终可见 */
.mobile-live-replay-page .floating-controls {
    opacity: 0 !important;
    position: fixed !important;
    bottom: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease !important;
}

/* 显示状态 */
.mobile-live-replay-page .floating-controls.show {
    opacity: 1 !important;
}

/* 控制按钮确保可点击 */
.mobile-live-replay-page .control-btn {
    pointer-events: auto !important;
}

/* 进度条确保可见 */
.mobile-live-replay-page .progress-layer {
    z-index: 10000 !important;
}

/* 移动端关闭按钮始终可见 */
.mobile-live-replay-page .btn-close {
    opacity: 0 !important;
    z-index: 10001 !important;
    position: fixed !important;
    top: 8px !important;
    right: 8px !important;
    transition: opacity 0.3s ease !important;
}

.mobile-live-replay-page .btn-close.show {
    opacity: 1 !important;
}

/* 移动端列表按钮始终可见 */
.mobile-live-replay-page .list-entry-btn {
    opacity: 0 !important;
    z-index: 10001 !important;
    position: fixed !important;
    transition: opacity 0.3s ease !important;
}

.mobile-live-replay-page .btn-unexchanged-list {
    top: 8px !important;
    right: 160px !important;
}

.mobile-live-replay-page .btn-exchanged-list {
    top: 8px !important;
    right: 122px !important;
}

.mobile-live-replay-page .btn-favorited-list {
    top: 8px !important;
    right: 84px !important;
}

.mobile-live-replay-page .list-entry-btn.show {
    opacity: 1 !important;
}

/* 右侧视频切换按钮 */
.video-nav-buttons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-nav-buttons.show {
    opacity: 1;
}

.video-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.video-nav-btn:active {
    transform: scale(0.9);
    background: rgba(125, 43, 168, 0.8);
    border-color: #7D2BA8;
}

/* 付费遮罩样式复用 */
.mobile-live-replay-page .payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.mobile-live-replay-page .payment-overlay-content {
    text-align: center;
    padding: 20px;
    color: #c7d5e0;
    max-width: 90%;
}

.mobile-live-replay-page .payment-icon {
    font-size: 48px;
    color: #7D2BA8;
    margin-bottom: 16px;
}

.mobile-live-replay-page .payment-title {
    font-size: 20px;
    font-weight: 600;
    color: #c7d5e0;
    margin-bottom: 8px;
}

.mobile-live-replay-page .payment-desc {
    font-size: 14px;
    color: #8f98a0;
    margin-bottom: 16px;
}

.mobile-live-replay-page .payment-price {
    font-size: 32px;
    font-weight: 700;
    color: #cdaa5e;
    margin-bottom: 20px;
}

.mobile-live-replay-page .price-unit {
    font-size: 16px;
    color: #8f98a0;
    margin-left: 8px;
}

.mobile-live-replay-page .btn-unlock {
    background: linear-gradient(180deg, #7D2BA8 0%, #6B1B9B 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 12px;
    display: block;
}

.mobile-live-replay-page .btn-unlock:active {
    background: linear-gradient(180deg, #6B1B9B 0%, #5A1587 100%);
    transform: scale(0.98);
}

.mobile-live-replay-page .btn-skip {
    background: linear-gradient(180deg, #3d4450 0%, #2a2e38 100%);
    color: #c7d5e0;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.mobile-live-replay-page .btn-skip:active {
    background: linear-gradient(180deg, #4a5160 0%, #3d4450 100%);
    transform: scale(0.98);
}

/* 移动端直播回放容器 */
#mobileLiveReplayContainer {
    display: none;
}

/* 移动端充值容器 - 添加底部padding避免被底部导航遮挡 */
#mobileRechargeContainer {
    display: none;
    padding-bottom: 80px;
}