.xinzhiji-iptv-container {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.iptv-main-wrapper {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.iptv-player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.iptv-player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iptv-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iptv-channel-info {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.iptv-channel-info #current-channel-name {
    font-size: 18px;
    font-weight: 600;
}

.iptv-channels-section {
    width: 320px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, margin 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iptv-channels-section.collapsed {
    width: 50px;
}

.iptv-channels-section.collapsed .iptv-channels-list {
    display: none;
}

.iptv-channels-section.collapsed .iptv-channels-header h3 {
    display: none;
}

.iptv-channels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.iptv-channels-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.iptv-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.iptv-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.iptv-toggle-btn .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.iptv-channels-section.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.iptv-channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.iptv-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.iptv-category {
    margin-bottom: 15px;
}

.iptv-category-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    padding: 8px 10px;
    background: #eef2ff;
    border-radius: 4px;
    margin-bottom: 8px;
}

.iptv-channel-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.iptv-channel-item:hover {
    background: #f0f4ff;
    transform: translateX(3px);
}

.iptv-channel-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.iptv-channel-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
}

.iptv-channel-logo-placeholder {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 12px;
}

.iptv-channel-name {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .iptv-main-wrapper {
        flex-direction: column;
    }
    
    .iptv-channels-section {
        width: 100%;
    }
    
    .iptv-channels-section.collapsed {
        width: 100%;
    }
}