* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 左侧播放器 */
.player-container {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dplayer {
    width: 100%;
    height: 100%;
}

/* 右侧内容 */
.right-panel {
    width: 350px;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 255, 100, 0.1);
    border-left: 1px solid rgba(0, 255, 100, 0.3);
}

/* 标题和时间栏 */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.3);
    background-color: #2a2a2a;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #00ff64;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

.time {
    font-size: 14px;
    color: #00ff64;
    text-shadow: 0 0 3px rgba(0, 255, 100, 0.5);
}

/* 菜单栏 */
.menu-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.3);
    background-color: #2a2a2a;
}

.menu-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #00ff64;
    border-radius: 50%;
    background-color: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.menu-btn:hover {
    background-color: rgba(0, 255, 100, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
    transform: scale(1.05);
}

.menu-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

/* 节目列表 */
.channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #1e1e1e;
}

.channel-list h3 {
    margin-bottom: 15px;
    color: #00ff64;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

.channel-group {
    margin-bottom: 20px;
}

.channel-group h4 {
    margin-bottom: 10px;
    color: #00ff64;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 0 0 3px rgba(0, 255, 100, 0.5);
}

.channel-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgba(0, 255, 100, 0.05);
}

.channel-item:hover {
    background-color: rgba(0, 255, 100, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
}

.channel-item.active {
    background-color: rgba(0, 255, 100, 0.2);
    border-left: 4px solid #00ff64;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-name {
    flex: 1;
}

.delete-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #00ff64;
    border-radius: 50%;
    background-color: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

.delete-btn:hover {
    background-color: rgba(0, 255, 100, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.8);
}

.delete-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 3px rgba(0, 255, 100, 0.5);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid rgba(0, 255, 100, 0.5);
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
}

.close {
    color: #00ff64;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

.close:hover,
.close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.8);
}

#m3u8-url {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid rgba(0, 255, 100, 0.5);
    border-radius: 4px;
    font-size: 14px;
    background-color: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.2);
}

#confirm-url {
    background-color: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    border: 1px solid #00ff64;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

#confirm-url:hover {
    background-color: rgba(0, 255, 100, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
}

.cancel-btn {
    background-color: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    border: 1px solid #00ff64;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

.cancel-btn:hover {
    background-color: rgba(0, 255, 100, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 100, 0.8);
}

#source-list {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: #1e1e1e;
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 4px;
}

.source-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgba(0, 255, 100, 0.05);
}

.source-item:hover {
    background-color: rgba(0, 255, 100, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
}

.source-item.active {
    background-color: rgba(0, 255, 100, 0.2);
    border-left: 4px solid #00ff64;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 100, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 100, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        height: 40vh;
    }
    
    .player-container {
        height: 60vh;
    }
}