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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #1e88e5;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    width: 250px;
}

.main-content {
    display: flex;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.channel-list {
    width: 300px;
    background-color: #f9f9f9;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.channel-groups {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
    white-space: nowrap;
}

.group-btn {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 8px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.group-btn.active {
    background-color: #1e88e5;
    color: white;
}

.channels {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.channel-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.channel-item:hover {
    background-color: #f0f0f0;
}

.channel-item.active {
    background-color: #e3f2fd;
}

.channel-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.player-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#player-wrapper {
    width: 100%;
    background-color: #000;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.current-info {
    margin-top: 20px;
}

.current-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.current-info p {
    color: #666;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .channel-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .channels {
        max-height: 200px;
    }
} 