    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: #e6e6e6;
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding-top: 20px;
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #00dbde, #fc00ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .subtitle {
            font-size: 1.1rem;
            color: #a0a0c0;
            margin-bottom: 20px;
        }
        
        .player-section {
            background-color: rgba(30, 30, 46, 0.8);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .section-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #6ee7ff;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            font-size: 1.3rem;
        }
        
        .input-group {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .url-input {
            width: 100%;
            padding: 15px;
            background-color: rgba(20, 20, 35, 0.8);
            border: 1px solid #3a3a5d;
            border-radius: 10px;
            color: #e6e6e6;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .url-input:focus {
            outline: none;
            border-color: #6ee7ff;
            box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.2);
        }
        
        .button-group {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            width: 100%;
            flex-wrap: nowrap; /* 确保不换行 */
        }
        
        .btn {
            flex: 1;
            min-width: 0; /* 允许按钮在空间不足时缩小 */
            padding: 15px 10px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .btn-primary {
            background: linear-gradient(90deg, #00dbde, #0093E9);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 219, 222, 0.4);
        }
        
        .btn-secondary {
            background: linear-gradient(90deg, #8E2DE2, #4A00E0);
            color: white;
        }
        
        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(142, 45, 226, 0.4);
        }
        
        .btn-file {
            background: linear-gradient(90deg, #3498db, #2ecc71);
            color: white;
        }
        
        .btn-file:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        
        #fileInput {
            display: none;
        }
        
        .video-container {
            width: 100%;
            margin-top: 20px;
            border-radius: 10px;
            overflow: hidden;
            background-color: #000;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        video {
            width: 100%;
            max-height: 500px;
            outline: none;
        }
        
        /* 悬浮球样式 */
        .history-ball {
            position: fixed;
            top: 20px;
            left: 20px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8E2DE2, #4A00E0);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 5px 20px rgba(142, 45, 226, 0.5);
            z-index: 1000;
            transition: all 0.3s ease;
        }
        
        .history-ball:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(142, 45, 226, 0.7);
        }
        
        .history-ball i {
            font-size: 1.5rem;
            color: white;
        }
        
        .history-ball-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #e74c3c;
            color: white;
            font-size: 0.7rem;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 历史记录模态框 */
        .history-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
        }
        
        .history-modal.active {
            display: flex;
        }
        
        .history-content {
            background-color: rgba(30, 30, 46, 0.95);
            border-radius: 15px;
            width: 100%;
            max-width: 800px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }
        
        .history-header {
            padding: 20px 25px;
            background: linear-gradient(90deg, #8E2DE2, #4A00E0);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        
        .history-header h2 {
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .header-actions {
            display: flex;
            gap: 10px;
        }
        
        .header-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .header-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .close-modal:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .history-body {
            padding: 25px;
            overflow-y: auto;
            flex: 1;
        }
        
        .history-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .history-item {
            display: flex;
            flex-direction: column;
            padding: 15px;
            background-color: rgba(20, 20, 35, 0.8);
            border-radius: 10px;
            border-left: 4px solid #3498db;
            transition: all 0.3s ease;
        }
        
        .history-item:hover {
            background-color: rgba(25, 25, 40, 0.9);
            transform: translateX(5px);
        }
        
        .history-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .history-title {
            font-weight: 600;
            color: #6ee7ff;
            word-break: break-word;
            flex: 1;
           
            transition: all 0.2s ease;
        }
        
        .history-title:hover {
          
        }
        
        .history-url {
            color: #a0a0c0;
            font-size: 0.9rem;
            word-break: break-all;
            margin-bottom: 10px;
        }
        
        .history-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: #888;
            margin-top: 5px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .history-time {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .history-progress {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #a0a0c0;
        }
        
        .history-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        
         .action-btn1 {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
         
            gap: 5px;
        }
        
         .action-btn1.edit {
            background-color: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }
        
        .action-btn {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-btn.play {
            background-color: rgba(52, 152, 219, 0.2);
            color: #3498db;
        }
        
        .action-btn.edit {
            background-color: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }
        
        .action-btn.delete {
            background-color: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
        }
        
        .action-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        .edit-title-input {
            width: 100%;
            padding: 8px;
            background-color: rgba(30, 30, 50, 0.9);
            border: 1px solid #3a3a5d;
            border-radius: 6px;
            color: #e6e6e6;
            margin-bottom: 10px;
        }
        
        .empty-history {
            text-align: center;
            padding: 40px 20px;
            color: #a0a0c0;
            font-style: italic;
        }
        
        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #a0a0c0;
            font-size: 0.9rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 15px 20px;
            background-color: #2ecc71;
            color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.5s ease;
            z-index: 1000;
            max-width: 300px;
        }
        
        .notification.show {
            transform: translateY(0);
            opacity: 1;
        }
        
        .notification.error {
            background-color: #e74c3c;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .player-section {
                padding: 20px;
            }
            
            .button-group {
                flex-direction: row; /* 保持横排 */
                overflow-x: auto; /* 如果空间不足可以横向滚动 */
                padding-bottom: 5px;
            }
            
            .btn {
                font-size: 0.9rem;
                padding: 12px 8px;
                min-width: 100px; /* 设置最小宽度避免过度缩小 */
            }
            
            .video-container {
                min-height: 250px;
            }
            
            .history-ball {
                width: 50px;
                height: 50px;
                top: 15px;
                left: 15px;
            }
            
            .history-content {
                max-height: 85vh;
            }
            
            .history-header {
                padding: 15px 20px;
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .header-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .history-body {
                padding: 20px;
            }
            
          
        }
        
        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
            
            .player-section {
                padding: 15px;
            }
            
            .button-group {
                gap: 10px;
            }
            
            .btn {
                font-size: 0.85rem;
                padding: 10px 6px;
                min-width: 80px;
            }
            
            .history-ball {
                width: 45px;
                height: 45px;
                top: 10px;
                left: 10px;
            }
            
            .history-ball i {
                font-size: 1.2rem;
            }
            
            .notification {
                left: 10px;
                right: 10px;
                max-width: none;
            }
            
            .header-btn {
                padding: 6px 10px;
                font-size: 0.85rem;
            }
        }
        
        @media (max-width: 360px) {
            .button-group {
                gap: 8px;
            }
            
            .btn {
                font-size: 0.8rem;
                padding: 10px 5px;
                min-width: 70px;
            }
        }