/* 채널 페이지 전용 스타일 */
.channels-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* 필터 컨테이너 */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* 채널 썸네일 */
.channel-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.channel-name {
    font-weight: 600;
    color: #030303;
}

.channel-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.channel-link:hover {
    text-decoration: underline;
}

/* 태그 관련 스타일 */
.search-tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.search-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.search-tag .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.search-tag:hover .count {
    background: rgba(255,255,255,0.3);
}

.channel-tag-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-right: 2px;
}

/* 디버그 모드 스타일 */
.debug-controls {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.debug-badge {
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.visibility-toggle {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.visibility-toggle:hover {
    background: #f5f5f5;
}

.visibility-toggle.hidden {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* 태그 관리 */
.tag-manager {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin-left: 10px;
}

.channel-tags {
    display: inline-flex;
    gap: 5px;
    margin-left: 10px;
}

.channel-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.tag-input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    width: 120px;
}

.tag-selector {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.add-tag-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-right: 8px;
}

.add-tag-btn:hover {
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.6);
    transform: translateY(-1px);
}

.manage-tags-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
}

.manage-tags-btn:hover {
    box-shadow: 0 4px 8px rgba(245, 87, 108, 0.6);
    transform: translateY(-1px);
}

.remove-tag-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    margin-left: 4px;
}

/* 태그 관리 모달 스타일 */
.tag-management-modal {
    max-height: 70vh;
    overflow-y: auto;
}

.tag-list {
    margin-top: 20px;
}

.tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.tag-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-color-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
}

.tag-name {
    font-weight: 600;
    font-size: 16px;
}

.tag-actions {
    display: flex;
    gap: 8px;
}

.tag-delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #dc3545;
    color: white;
}

.tag-delete-btn:hover {
    background: #c82333;
}

.tag-videos-btn {
    padding: 6px 12px;
    font-size: 13px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
}

.tag-videos-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 태그된 채널 섹션 */
.tagged-channels-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tag-group {
    margin-bottom: 20px;
    display: block;
    width: 100%;
    clear: both;
}

.tag-group-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.tag-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.tag-group-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.channel-row.hidden {
    opacity: 0.5;
    background: #f5f5f5;
}

/* 정렬 아이콘 */
.sort-icon {
    margin-left: 5px;
    font-size: 12px;
    color: #999;
}

.sort-icon.active {
    color: #667eea;
}

/* 액션 버튼 */
.action-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #5a67d8;
}