/* ============================================
   LIVESCORE - 用户认证与个人中心样式
   ============================================ */

/* 认证页面 */
.auth-card {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2) 0%, transparent 45%),
                linear-gradient(180deg, #0c1929 0%, #050914 100%);
    border: 1px solid rgba(15, 23, 42, 0.8);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    transition: var(--transition);
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 750;
    margin-bottom: 0.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-floating > label {
    color: var(--text-muted);
}

.form-control {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    height: auto;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow-blue);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-primary);
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
    opacity: 1;
}

.form-check-input {
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--border-default);
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 登录 / 注册 页面 - H5 优化 */
@media (max-width: 576px) {
    body .container.py-5 {
        padding-top: 4.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .auth-card {
        padding: 1.75rem 1.5rem 1.6rem;
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    }

    .auth-header {
        margin-bottom: 1.5rem;
    }

    .auth-title {
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .form-floating > .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .form-floating > label {
        font-size: 0.85rem;
    }

    .form-check {
        font-size: 0.85rem;
    }

    .auth-card .btn.btn-primary.btn-lg {
        padding: 0.7rem 1rem;
        font-size: 0.98rem;
        border-radius: 999px;
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
    }

    .auth-footer {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* 用户个人中心 */
.user-profile-header {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, #060d14 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.12), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.profile-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: focusBgPulse 6s ease-in-out infinite;
}

.profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
}

.avatar-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.avatar-upload-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.profile-meta i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* 标签页 */
.user-profile-tabs {
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-tabs {
    background: rgba(14, 165, 233, 0.05);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.5rem 0.5rem 0;
}

.profile-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    transition: var(--transition);
}

.profile-tabs .nav-link:hover {
    color: var(--text-primary);
}

.profile-tabs .nav-link.active {
    background: linear-gradient(180deg, #0c2d4d 0%, #061525 100%);
    color: var(--accent-primary);
    border: none;
    border-top: 2px solid var(--accent-primary);
}

.profile-tab-content {
    min-height: 400px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: rgba(14, 165, 233, 0.2);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* 收藏卡片 */
.favorite-card {
    display: flex;
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.favorite-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
    transform: translateY(-3px);
}

.favorite-img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.05);
}

.favorite-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.default-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(2, 132, 199, 0.1) 100%);
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.favorite-info {
    flex: 1;
    padding: 0.75rem 1rem;
}

.favorite-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.favorite-type {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.favorite-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.favorite-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.favorite-actions {
    display: flex;
    justify-content: space-between;
}

/* 观看历史 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    align-items: stretch;
}

.history-item:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
    transform: translateY(-3px);
}

.history-img {
    width: 96px;
    min-height: 96px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.05);
}

.history-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.history-info {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
}

.history-meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.history-actions {
    display: flex;
    justify-content: flex-start;
}

/* 观看记录卡片 - 移动端堆叠布局 */
@media (max-width: 576px) {
    .history-item {
        flex-direction: column;
    }

    .history-img {
        width: 100%;
        min-height: 140px;
    }

    .history-info {
        padding: 0.875rem 1rem 1rem;
    }

    .history-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 编辑个人资料 */
.profile-edit-card {
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.profile-edit-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    padding: 1.5rem 2rem;
}

.profile-edit-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-edit-card .card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.profile-edit-card .card-body {
    padding: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 用户菜单 */
.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.user-menu.show .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

/* 顶部导航用户菜单按钮：完全清除原生按钮样式 */
.user-menu-toggle {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px; /* 与 .btn-icon 一致，保证垂直居中 */
}

.user-menu-toggle:focus,
.user-menu-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

/* 顶部导航小头像（与 .btn-icon 同尺寸） */
.navbar .user-menu-toggle .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transform: translateY(-1px); /* 微调：略微上移，使视觉上与其他图标居中对齐 */
}

.navbar .user-menu-toggle .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 2px solid rgba(14, 165, 233, 0.3);
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.user-menu-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.user-menu-since {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-menu-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.user-menu-item {
    padding: 0;
}

.user-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.user-menu-link:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-primary);
}

.user-menu-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.user-menu-divider {
    height: 1px;
    background: rgba(14, 165, 233, 0.1);
    margin: 0.5rem 0;
}

/* ============================================
   H5 移动端样式优化
   ============================================ */

/* H5 用户操作区 */
.mobile-user-actions {
    display: flex;
    align-items: center;
    /* gap: 4px; */
    /* margin-right: 4px; */
}

/* H5 导航栏布局修复 */
@media (max-width: 991.98px) {
    .navbar .container-fluid {
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        margin-right: auto;
    }
    
    .navbar-toggler {
        margin-left: 4px !important;
        padding: 0.25rem 0.5rem;
    }
}

/* ==================== 移动端导航菜单 ==================== */
@media (max-width: 991.98px) {
    /* 下拉菜单容器 */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 10, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0.75rem 1rem 1rem;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
    
    /* 菜单列表 */
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }
    
    /* 菜单项基础样式 */
    .navbar-collapse .nav-link-icon {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 0.75rem 1rem !important;
        margin: 0;
        border-radius: 8px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        background: transparent;
        border: none !important;
        box-shadow: none !important;
        transition: background 0.2s ease, color 0.2s ease;
    }
    
    /* 菜单项悬停 */
    .navbar-collapse .nav-link-icon:hover {
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-primary);
        transform: none;
    }
    
    /* 菜单项激活状态 */
    .navbar-collapse .nav-link-icon.active {
        background: rgba(14, 165, 233, 0.08);
        color: var(--accent-primary) !important;
        border: none !important;
        box-shadow: none !important;
        transform: none;
    }
    
    /* 图标样式 */
    .navbar-collapse .nav-link-icon i {
        width: 18px;
        font-size: 0.95rem;
        text-align: center;
        color: inherit;
        transform: none !important;
        filter: none !important;
    }
    
    .navbar-collapse .nav-link-icon.active i {
        color: var(--accent-primary);
    }
    
    /* 文字样式 */
    .navbar-collapse .nav-link-icon span {
        flex: 1;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* 徽章样式 */
    .navbar-collapse .nav-link-icon .badge {
        font-size: 0.65rem;
        font-weight: 600;
        padding: 0.2rem 0.45rem;
        border-radius: 4px;
        margin-left: auto;
    }
    
    /* 隐藏PC端特效 */
    .navbar-collapse .nav-link-icon::before,
    .navbar-collapse .nav-link-icon .nav-indicator {
        display: none !important;
    }
}

.mobile-user-actions .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    background: transparent;
    border: none;
}

/* 未登录时的登录按钮（H5）*/
.mobile-user-actions .btn-primary.btn-sm {
    background: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
}

.mobile-user-actions .user-menu-toggle {
    height: 36px;
}

.mobile-user-actions .user-avatar {
    width: 32px;
    height: 32px;
}

.mobile-user-actions .user-avatar img {
    width: 32px !important;
    height: 32px !important;
}

/* H5 用户菜单弹窗：与桌面一致，在头像下方弹出 */
.mobile-dropdown {
    min-width: 220px;
}

/* 移动端菜单遮罩层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 移动端下拉菜单细节（不改变 Bootstrap 默认导航布局） */
.user-menu-dropdown.mobile-dropdown {
    padding: 0.75rem 0 1.25rem;
}

.user-menu-dropdown.mobile-dropdown .user-menu-header {
    padding: 0.75rem 1rem 1rem;
}

.user-menu-dropdown.mobile-dropdown .user-menu-avatar {
    width: 44px;
    height: 44px;
}

/* ============================================
   企业级个人中心样式优化
   ============================================ */

/* 个人中心头部增强 */
.user-profile-header {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0c2038 50%, #061525 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 
        0 0 60px rgba(14, 165, 233, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.profile-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 100% at 50% -20%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: profileBgPulse 8s ease-in-out infinite;
}

@keyframes profileBgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 2rem;
    text-align: center;
}

/* 头像容器增强 */
.avatar-container {
    position: relative;
    margin-bottom: 1.75rem;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(14, 165, 233, 0.4);
    box-shadow: 
        0 0 30px rgba(14, 165, 233, 0.3),
        0 0 60px rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 
        0 0 40px rgba(14, 165, 233, 0.4),
        0 0 80px rgba(14, 165, 233, 0.15);
    transform: scale(1.02);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 头像上传按钮增强 */
.avatar-upload-btn {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    border: 3px solid #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.avatar-upload-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* 用户名增强 */
.profile-username {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: #f8fafc;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 个人信息标签增强 */
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-meta i {
    color: #0EA5E9;
    font-size: 0.875rem;
}

/* 操作按钮增强 */
.profile-actions {
    display: flex;
    gap: 1rem;
}

.profile-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-actions .btn-outline-primary {
    border-color: rgba(14, 165, 233, 0.5);
    color: #0EA5E9;
}

.profile-actions .btn-outline-primary:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0EA5E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* 标签页增强 */
.user-profile-tabs {
    background: linear-gradient(180deg, #0c1929 0%, #080f1a 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-tabs {
    background: rgba(14, 165, 233, 0.03);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    padding: 0.75rem 0.75rem 0;
}

.profile-tabs .nav-link {
    color: #64748b;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.profile-tabs .nav-link:hover {
    color: #e2e8f0;
    background: rgba(14, 165, 233, 0.05);
}

.profile-tabs .nav-link.active {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, transparent 100%);
    color: #0EA5E9;
    border: none;
    border-top: 2px solid #0EA5E9;
}

.profile-tabs .nav-link i {
    opacity: 0.7;
}

.profile-tabs .nav-link.active i {
    opacity: 1;
}

.profile-tab-content {
    min-height: 400px;
    padding: 1.5rem !important;
}

/* 空状态增强 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgba(14, 165, 233, 0.15);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.empty-state .btn {
    padding: 0.625rem 1.5rem;
}

/* 收藏卡片增强 */
.favorite-card {
    display: flex;
    background: linear-gradient(135deg, #0c1929 0%, #0a1525 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 
        0 0 30px rgba(14, 165, 233, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.favorite-img {
    width: 90px;
    min-height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.05);
}

.favorite-info {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorite-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-actions .btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* 观看历史增强 */
.history-item {
    display: flex;
    background: linear-gradient(135deg, #0c1929 0%, #0a1525 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 
        0 0 30px rgba(14, 165, 233, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.history-img {
    width: 110px;
    min-height: 110px;
}

.history-info {
    flex: 1;
    padding: 1.125rem 1.5rem;
}

.history-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #f1f5f9;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.625rem;
}

.history-meta span {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ============================================
   播放器操作按钮企业级样式
   ============================================ */

.live-player-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.875rem;
}

.player-action-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    color: #0EA5E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.player-action-btn.active {
    background: rgba(14, 165, 233, 0.25);
    border-color: #0EA5E9;
    color: #0EA5E9;
}

.player-action-btn.close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.share-modal-content {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18) 0%, transparent 45%),
                linear-gradient(180deg, #0c1929 0%, #050914 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85), 0 0 40px rgba(56, 189, 248, 0.18);
    transform: translateY(8px) scale(0.96);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.share-modal-title {
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #f9fafb;
}

.share-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: rgba(30, 64, 175, 0.85);
    color: #e5e7eb;
}

/* 登录提示弹窗按钮区域精细化布局 */
.login-required-modal .share-modal-content {
    padding-bottom: 1.75rem;
}

.login-required-modal .share-modal-content p {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.login-required-modal .share-modal-content .report-submit {
    min-width: 120px;
    font-size: 0.9rem;
    border-radius: 999px;
    border: none;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

/* 左侧：次级按钮（稍后再说） */
.login-required-modal .share-modal-content > div:last-child .report-submit:first-child {
    background: rgba(15, 23, 42, 0.9) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.login-required-modal .share-modal-content > div:last-child .report-submit:first-child:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.8);
}

/* 右侧：主按钮（前往登录） */
.login-required-modal .share-modal-content > div:last-child .report-submit:last-child {
    background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    color: #f9fafb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.login-required-modal .share-modal-content > div:last-child .report-submit:last-child:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.6);
}

/* 确保 Bootstrap 模态框（如头像上传）始终在导航栏和自定义遮罩层之上 */
.modal {
    z-index: 11000 !important;
}

.modal-backdrop {
    z-index: 10990 !important;
}

.modal-backdrop.show {
    z-index: 10990 !important;
}

/* 确保模态框内容在backdrop之上可点击 */
.modal-dialog {
    position: relative;
    z-index: 11001 !important;
}

.modal-content {
    position: relative;
    z-index: 11002 !important;
}

@media (max-width: 576px) {
    .share-modal-content {
        max-width: 92%;
        padding: 1.25rem 1.25rem 1.5rem;
        border-radius: 16px;
    }

    .share-modal-title {
        font-size: 1.05rem;
    }

    .login-required-modal .share-modal-content {
        padding: 1.25rem 1.25rem 1.4rem;
    }

    .login-required-modal .share-modal-content p {
        font-size: 0.87rem;
        margin-bottom: 1rem;
    }

    .login-required-modal .share-modal-content > div:last-child {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }

    .login-required-modal .share-modal-content .report-submit {
        flex: 1;
        min-width: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.5rem;
}

.share-option span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.share-option.wechat i { color: #07C160; }
.share-option.weibo i { color: #E6162D; }
.share-option.qq i { color: #12B7F5; }
.share-option.link i { color: #0EA5E9; }

/* 报错弹窗 */
.report-modal-content {
    max-width: 400px;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
    font-size: 0.9375rem;
}

.report-option:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
}

.report-option.selected {
    background: rgba(14, 165, 233, 0.15);
    border-color: #0EA5E9;
}

.report-option i {
    color: #0EA5E9;
    font-size: 1rem;
    width: 20px;
}

.report-submit {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* Toast 通知 */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #0c1929 0%, #0a1525 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    border-color: rgba(34, 197, 94, 0.4);
}

.toast-notification.success i {
    color: #22C55E;
}

.toast-notification.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-notification.error i {
    color: #EF4444;
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-notification span {
    color: #e2e8f0;
    font-size: 0.9375rem;
}
